declarative-spec 1.2.1 → 1.4.1
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/package.json +3 -2
- package/src/index.js +3 -2
- package/src/v3/index.js +8 -0
- package/src/v3/meta.js +6 -0
- package/src/v3/register.js +11 -0
- package/src/v3/spec.json +1605 -0
- package/src/v4/index.js +8 -0
- package/src/v4/meta.js +6 -0
- package/src/v4/register.js +11 -0
- package/src/v4/spec.json +1605 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "declarative-spec",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "High-level declarative UI component blueprints, option configurations, and assembly contracts for JSON-to-DOM compilers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"url": "git+https://github.com/keshavsoft/declarative-spec.git"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "
|
|
23
|
+
"build:json": "node scripts/sync-latest-json.mjs",
|
|
24
|
+
"build": "npx @keshavsoft/build-cli && npm run build:json"
|
|
24
25
|
},
|
|
25
26
|
"keywords": [
|
|
26
27
|
"declarative-ui",
|
package/src/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from "./
|
|
2
|
-
|
|
1
|
+
export { default } from "./v4/index.js";
|
|
2
|
+
|
|
3
|
+
export * from "./v4/index.js";
|
package/src/v3/index.js
ADDED
package/src/v3/meta.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import meta from "./meta.js";
|
|
2
|
+
|
|
3
|
+
const registerGlobal = (spec) => {
|
|
4
|
+
if (typeof globalThis === "undefined") return;
|
|
5
|
+
|
|
6
|
+
globalThis.ks ??= {};
|
|
7
|
+
globalThis.ks.declarative ??= {};
|
|
8
|
+
globalThis.ks.declarative.spec = { meta, data: spec };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default registerGlobal;
|