declarative-spec 1.6.2 → 1.8.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/README.md +20 -0
- package/package.json +1 -1
- package/src/index.js +2 -2
- package/src/v5/index.js +8 -8
- package/src/v5/meta.js +2 -2
- package/src/v5/spec.json +1893 -1893
- package/src/v6/index.js +8 -8
- package/src/v6/meta.js +7 -7
- package/src/v6/spec.json +2436 -2436
- package/src/v7/README.md +13 -0
- package/src/v7/index.js +8 -0
- package/src/v7/meta.js +7 -0
- package/src/v7/register.js +11 -0
- package/src/v7/spec.json +2536 -0
- package/src/v8/README.md +13 -0
- package/src/v8/index.js +8 -0
- package/src/v8/meta.js +6 -0
- package/src/v8/register.js +11 -0
- package/src/v8/spec.json +2612 -0
package/src/v8/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Declarative Spec V7
|
|
2
|
+
|
|
3
|
+
V7 preserves all V6 specifications and adds `bootstrapHeader`.
|
|
4
|
+
|
|
5
|
+
`bootstrapHeader` models the Bootstrap navigation header from the Monaco V2 example. Inline SVG elements have been replaced with Bootstrap Icons class-based `<i>` elements:
|
|
6
|
+
|
|
7
|
+
- Brand: `bi bi-bootstrap-fill`
|
|
8
|
+
- Home: `bi bi-house`
|
|
9
|
+
- Render: `bi bi-table`
|
|
10
|
+
|
|
11
|
+
The Render anchor retains `id="renderId"` for the existing JavaScript binding contract.
|
|
12
|
+
|
|
13
|
+
See [`samples/bootstrap-header/v7`](../../samples/bootstrap-header/v7/) for a runnable sample.
|
package/src/v8/index.js
ADDED
package/src/v8/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;
|