illimi-runtime 1.0.0-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +130 -0
- package/dist/directives/bind.d.ts +8 -0
- package/dist/directives/bind.d.ts.map +1 -0
- package/dist/directives/bind.js +69 -0
- package/dist/directives/bind.js.map +1 -0
- package/dist/directives/evaluator.d.ts +40 -0
- package/dist/directives/evaluator.d.ts.map +1 -0
- package/dist/directives/evaluator.js +125 -0
- package/dist/directives/evaluator.js.map +1 -0
- package/dist/directives/for.d.ts +9 -0
- package/dist/directives/for.d.ts.map +1 -0
- package/dist/directives/for.js +67 -0
- package/dist/directives/for.js.map +1 -0
- package/dist/directives/html.d.ts +8 -0
- package/dist/directives/html.d.ts.map +1 -0
- package/dist/directives/html.js +11 -0
- package/dist/directives/html.js.map +1 -0
- package/dist/directives/if.d.ts +12 -0
- package/dist/directives/if.d.ts.map +1 -0
- package/dist/directives/if.js +15 -0
- package/dist/directives/if.js.map +1 -0
- package/dist/directives/index.d.ts +16 -0
- package/dist/directives/index.d.ts.map +1 -0
- package/dist/directives/index.js +16 -0
- package/dist/directives/index.js.map +1 -0
- package/dist/directives/model.d.ts +8 -0
- package/dist/directives/model.d.ts.map +1 -0
- package/dist/directives/model.js +38 -0
- package/dist/directives/model.js.map +1 -0
- package/dist/directives/on.d.ts +8 -0
- package/dist/directives/on.d.ts.map +1 -0
- package/dist/directives/on.js +50 -0
- package/dist/directives/on.js.map +1 -0
- package/dist/directives/show.d.ts +8 -0
- package/dist/directives/show.d.ts.map +1 -0
- package/dist/directives/show.js +11 -0
- package/dist/directives/show.js.map +1 -0
- package/dist/directives/text.d.ts +12 -0
- package/dist/directives/text.d.ts.map +1 -0
- package/dist/directives/text.js +15 -0
- package/dist/directives/text.js.map +1 -0
- package/dist/directives/types.d.ts +27 -0
- package/dist/directives/types.d.ts.map +1 -0
- package/dist/directives/types.js +7 -0
- package/dist/directives/types.js.map +1 -0
- package/dist/dom/createNode.d.ts +14 -0
- package/dist/dom/createNode.d.ts.map +1 -0
- package/dist/dom/createNode.js +304 -0
- package/dist/dom/createNode.js.map +1 -0
- package/dist/dom/events.d.ts +22 -0
- package/dist/dom/events.d.ts.map +1 -0
- package/dist/dom/events.js +104 -0
- package/dist/dom/events.js.map +1 -0
- package/dist/dom/updateProps.d.ts +15 -0
- package/dist/dom/updateProps.d.ts.map +1 -0
- package/dist/dom/updateProps.js +51 -0
- package/dist/dom/updateProps.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/jquery/bridge.d.ts +39 -0
- package/dist/jquery/bridge.d.ts.map +1 -0
- package/dist/jquery/bridge.js +59 -0
- package/dist/jquery/bridge.js.map +1 -0
- package/dist/providers/storage.d.ts +24 -0
- package/dist/providers/storage.d.ts.map +1 -0
- package/dist/providers/storage.js +126 -0
- package/dist/providers/storage.js.map +1 -0
- package/dist/renderer/hydrate.d.ts +22 -0
- package/dist/renderer/hydrate.d.ts.map +1 -0
- package/dist/renderer/hydrate.js +105 -0
- package/dist/renderer/hydrate.js.map +1 -0
- package/dist/renderer/mount.d.ts +15 -0
- package/dist/renderer/mount.d.ts.map +1 -0
- package/dist/renderer/mount.js +70 -0
- package/dist/renderer/mount.js.map +1 -0
- package/dist/renderer/patch.d.ts +15 -0
- package/dist/renderer/patch.d.ts.map +1 -0
- package/dist/renderer/patch.js +147 -0
- package/dist/renderer/patch.js.map +1 -0
- package/dist/router/index.d.ts +15 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/index.js +263 -0
- package/dist/router/index.js.map +1 -0
- package/dist/router/types.d.ts +67 -0
- package/dist/router/types.d.ts.map +1 -0
- package/dist/router/types.js +5 -0
- package/dist/router/types.js.map +1 -0
- package/dist/state/store.d.ts +15 -0
- package/dist/state/store.d.ts.map +1 -0
- package/dist/state/store.js +36 -0
- package/dist/state/store.js.map +1 -0
- package/package.json +42 -0
- package/tsconfig.base.json +28 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/state/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC;AAElC,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAClD,GAAG,EAAE,MAAM,CAAC,CAAC;IACb,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACvB,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,MAAM,IAAI,CAAC;CAC/C;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAmC/E"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Illimi Runtime - Reactive Store
|
|
3
|
+
*
|
|
4
|
+
* Small state container for app-level or page-level state.
|
|
5
|
+
*/
|
|
6
|
+
export function createStore(initial) {
|
|
7
|
+
let state = initial;
|
|
8
|
+
const listeners = new Set();
|
|
9
|
+
function notify() {
|
|
10
|
+
listeners.forEach((listener) => listener());
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
get() {
|
|
14
|
+
return state;
|
|
15
|
+
},
|
|
16
|
+
set(next) {
|
|
17
|
+
state = next;
|
|
18
|
+
notify();
|
|
19
|
+
},
|
|
20
|
+
patch(partial) {
|
|
21
|
+
state = { ...state, ...partial };
|
|
22
|
+
notify();
|
|
23
|
+
},
|
|
24
|
+
update(updater) {
|
|
25
|
+
state = updater(state);
|
|
26
|
+
notify();
|
|
27
|
+
},
|
|
28
|
+
subscribe(listener) {
|
|
29
|
+
listeners.add(listener);
|
|
30
|
+
return () => {
|
|
31
|
+
listeners.delete(listener);
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/state/store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,MAAM,UAAU,WAAW,CAAgC,OAAU;IACnE,IAAI,KAAK,GAAG,OAAO,CAAC;IACpB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAY,CAAC;IAEtC,SAAS,MAAM;QACb,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO;QACL,GAAG;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,GAAG,CAAC,IAAI;YACN,KAAK,GAAG,IAAI,CAAC;YACb,MAAM,EAAE,CAAC;QACX,CAAC;QAED,KAAK,CAAC,OAAO;YACX,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;YACjC,MAAM,EAAE,CAAC;QACX,CAAC;QAED,MAAM,CAAC,OAAO;YACZ,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;YACvB,MAAM,EAAE,CAAC;QACX,CAAC;QAED,SAAS,CAAC,QAAQ;YAChB,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxB,OAAO,GAAG,EAAE;gBACV,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC7B,CAAC,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "illimi-runtime",
|
|
3
|
+
"version": "1.0.0a",
|
|
4
|
+
"description": "Illimi Runtime - DOM Renderer and jQuery Bridge",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"authors": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Rapha Panchi",
|
|
13
|
+
"email": "raphapanchi@gmail.com",
|
|
14
|
+
"url": "https://github.com/ralphxp"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Codizium Team",
|
|
18
|
+
"email": "hell.codizium@gmail.com",
|
|
19
|
+
"url": "https://github.com/codizium"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [],
|
|
26
|
+
"author": "",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"illimi-core": "^1.0.0a"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git@github.com:codizium/illimi-runtime.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/codizium/illimi-runtime/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/codizium/illimi-runtime#readme",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": "^25.3.3"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* === Module System === */
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
|
|
7
|
+
/* === Output === */
|
|
8
|
+
"target": "ES2020",
|
|
9
|
+
"outDir": "./dist",
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
|
|
14
|
+
/* === Project Structure === */
|
|
15
|
+
/* rootDir is set per-package in package tsconfigs */
|
|
16
|
+
"rootDir": "./src",
|
|
17
|
+
|
|
18
|
+
/* === Type Safety === */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUncheckedIndexedAccess": true,
|
|
21
|
+
"exactOptionalPropertyTypes": true,
|
|
22
|
+
|
|
23
|
+
/* === Interop & Stability === */
|
|
24
|
+
"esModuleInterop": true,
|
|
25
|
+
"forceConsistentCasingInFileNames": true,
|
|
26
|
+
"skipLibCheck": true
|
|
27
|
+
}
|
|
28
|
+
}
|