mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-24 17:39:36 +01:00
🚚
This commit is contained in:
parent
d7e0b17e38
commit
dfcb98bfbe
4
src/jsdom.d.ts → jsdom.d.ts
vendored
4
src/jsdom.d.ts → jsdom.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
import { el, assign, on } from "../index.d";
|
import { el, assign, on } from "./index.d";
|
||||||
export * from "../index.d";
|
export * from "./index.d";
|
||||||
export function register(dom: typeof document): Promise<{
|
export function register(dom: typeof document): Promise<{
|
||||||
el: typeof el,
|
el: typeof el,
|
||||||
assign: typeof assign,
|
assign: typeof assign,
|
@ -1,4 +1,4 @@
|
|||||||
import { prop_process } from './dom-common.js';
|
import { prop_process } from './src/dom-common.js';
|
||||||
const { setDelete }= prop_process;
|
const { setDelete }= prop_process;
|
||||||
/** @param {HTMLElement} obj */
|
/** @param {HTMLElement} obj */
|
||||||
prop_process.setDelete= function(obj, prop, value){
|
prop_process.setDelete= function(obj, prop, value){
|
||||||
@ -13,7 +13,7 @@ export let assign;
|
|||||||
export let on;
|
export let on;
|
||||||
export async function register(dom, keys_aditional= []){
|
export async function register(dom, keys_aditional= []){
|
||||||
if(dom_last===dom)
|
if(dom_last===dom)
|
||||||
return import("../index.js");
|
return import("./index.js");
|
||||||
|
|
||||||
keys.push(...keys_aditional);
|
keys.push(...keys_aditional);
|
||||||
const w= dom.window;
|
const w= dom.window;
|
||||||
@ -21,7 +21,7 @@ export async function register(dom, keys_aditional= []){
|
|||||||
globalThis.window= w;
|
globalThis.window= w;
|
||||||
w.console= globalThis.console;
|
w.console= globalThis.console;
|
||||||
|
|
||||||
const m= await import("../index.js");
|
const m= await import("./index.js");
|
||||||
el= m.el;
|
el= m.el;
|
||||||
assign= m.assign;
|
assign= m.assign;
|
||||||
on= m.on;
|
on= m.on;
|
23
package.json
23
package.json
@ -16,17 +16,13 @@
|
|||||||
"types": "./index.d.ts",
|
"types": "./index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
|
||||||
"import": "./index.js",
|
|
||||||
"types": "./index.d.ts"
|
|
||||||
},
|
|
||||||
"./jsdom": {
|
"./jsdom": {
|
||||||
"import": "./src/jsdom.js",
|
"import": "./jsdom.js",
|
||||||
"types": "./src/jsdom.d.ts"
|
"types": "./jsdom.d.ts"
|
||||||
},
|
},
|
||||||
"./signals": {
|
"./signals": {
|
||||||
"import": "./src/signals.js",
|
"import": "./signals.js",
|
||||||
"types": "./src/signals.d.ts"
|
"types": "./signals.d.ts"
|
||||||
},
|
},
|
||||||
"./signals-lib": {
|
"./signals-lib": {
|
||||||
"import": "./src/signals-lib.js",
|
"import": "./src/signals-lib.js",
|
||||||
@ -35,14 +31,11 @@
|
|||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
".": [
|
|
||||||
"./index.d.ts"
|
|
||||||
],
|
|
||||||
"./jsdom": [
|
"./jsdom": [
|
||||||
"./src/jsdom.d.ts"
|
"./jsdom.d.ts"
|
||||||
],
|
],
|
||||||
"./signals": [
|
"./signals": [
|
||||||
"./src/signals.d.ts"
|
"./signals.d.ts"
|
||||||
],
|
],
|
||||||
"./signals-lib": [
|
"./signals-lib": [
|
||||||
"./src/signals.d.ts"
|
"./src/signals.d.ts"
|
||||||
@ -50,8 +43,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"*.js",
|
||||||
"index.d.ts",
|
"*.d.ts",
|
||||||
"src"
|
"src"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
|
0
src/signals.d.ts → signals.d.ts
vendored
0
src/signals.d.ts → signals.d.ts
vendored
4
signals.js
Normal file
4
signals.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export { S, isSignal } from "src/signals-lib.js";
|
||||||
|
import { signals_config } from "src/signals-lib.js";
|
||||||
|
import { registerReactivity } from "src/signals-common.js";
|
||||||
|
registerReactivity(signals_config);
|
@ -1,4 +0,0 @@
|
|||||||
export { S, isSignal } from "./signals-lib.js";
|
|
||||||
import { signals_config } from "./signals-lib.js";
|
|
||||||
import { registerReactivity } from "./signals-common.js";
|
|
||||||
registerReactivity(signals_config);
|
|
Loading…
Reference in New Issue
Block a user