@aglyn/aglyn 1.0.0-beta.182 → 1.0.0-beta.183
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 +11 -11
- package/src/lib/app-utils/compose-reusable-components.d.ts +10 -0
- package/src/lib/app-utils/compose-reusable-components.js +6 -1
- package/src/lib/app-utils/compose-reusable-components.js.map +1 -1
- package/src/lib/app-utils/definition-canvas-tree.d.ts +24 -0
- package/src/lib/app-utils/definition-canvas-tree.js +38 -0
- package/src/lib/app-utils/definition-canvas-tree.js.map +1 -1
- package/src/lib/app-utils/docs-index.generated.js +9 -2
- package/src/lib/app-utils/docs-index.generated.js.map +1 -1
- package/src/lib/app-utils/load-referenced-components.d.ts +166 -0
- package/src/lib/app-utils/load-referenced-components.js +219 -0
- package/src/lib/app-utils/load-referenced-components.js.map +1 -0
- package/src/lib/app-utils/reusable-component-kind.d.ts +119 -0
- package/src/lib/app-utils/reusable-component-kind.js +119 -0
- package/src/lib/app-utils/reusable-component-kind.js.map +1 -0
- package/src/lib/app-utils/server.d.ts +1 -0
- package/src/lib/app-utils/server.js +2 -0
- package/src/lib/app-utils/server.js.map +1 -1
- package/src/lib/foundation/constants/components.d.ts +7 -0
- package/src/lib/foundation/constants/components.js +6 -0
- package/src/lib/foundation/constants/components.js.map +1 -1
- package/src/lib/foundation/definitions/platform.types.d.ts +29 -0
- package/src/lib/foundation/definitions/platform.types.js.map +1 -1
- package/src/lib/foundation/index.d.ts +1 -1
- package/src/lib/foundation/index.js.map +1 -1
- package/src/lib/plugin-manager/plugin-resource-drafts.d.ts +17 -3
- package/src/lib/plugin-manager/plugin-resource-drafts.js +2 -2
- package/src/lib/plugin-manager/plugin-resource-drafts.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/aglyn",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.183",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aglyn/shared-data-enums": "1.0.0-beta.
|
|
37
|
-
"@aglyn/shared-data-mdi": "1.0.0-beta.
|
|
38
|
-
"@aglyn/shared-data-types": "1.0.0-beta.
|
|
39
|
-
"@aglyn/shared-util-email": "1.0.0-beta.
|
|
40
|
-
"@aglyn/shared-util-first-touch": "1.0.0-beta.
|
|
41
|
-
"@aglyn/shared-util-http": "1.0.0-beta.
|
|
42
|
-
"@aglyn/shared-util-logger": "1.0.0-beta.
|
|
43
|
-
"@aglyn/shared-util-timestamp": "1.0.0-beta.
|
|
44
|
-
"@aglyn/shared-util-tools": "1.0.0-beta.
|
|
45
|
-
"@aglyn/shared-util-vendor": "1.0.0-beta.
|
|
36
|
+
"@aglyn/shared-data-enums": "1.0.0-beta.183",
|
|
37
|
+
"@aglyn/shared-data-mdi": "1.0.0-beta.183",
|
|
38
|
+
"@aglyn/shared-data-types": "1.0.0-beta.183",
|
|
39
|
+
"@aglyn/shared-util-email": "1.0.0-beta.183",
|
|
40
|
+
"@aglyn/shared-util-first-touch": "1.0.0-beta.183",
|
|
41
|
+
"@aglyn/shared-util-http": "1.0.0-beta.183",
|
|
42
|
+
"@aglyn/shared-util-logger": "1.0.0-beta.183",
|
|
43
|
+
"@aglyn/shared-util-timestamp": "1.0.0-beta.183",
|
|
44
|
+
"@aglyn/shared-util-tools": "1.0.0-beta.183",
|
|
45
|
+
"@aglyn/shared-util-vendor": "1.0.0-beta.183",
|
|
46
46
|
"@data-driven-forms/react-form-renderer": "^4.2.0",
|
|
47
47
|
"@msgpack/msgpack": "^3.1.3",
|
|
48
48
|
"@types/unist": "^3.0.3",
|
|
@@ -175,6 +175,16 @@ export interface InstanceStyleTarget {
|
|
|
175
175
|
* render it either.
|
|
176
176
|
*/
|
|
177
177
|
export declare function listInstanceStyleTargets(definition: Pick<ReusableComponentTree<any>, 'rootId' | 'nodes'> | null | undefined): InstanceStyleTarget[];
|
|
178
|
+
/**
|
|
179
|
+
* Definitions may nest instances of other definitions; expansion runs in
|
|
180
|
+
* passes capped here so a self-referencing definition can't recurse forever.
|
|
181
|
+
*
|
|
182
|
+
* Exported for the one reader that has to agree with it: a loader fetching
|
|
183
|
+
* only the definitions a document references (`load-referenced-components`)
|
|
184
|
+
* follows nesting exactly this deep, so it never reads a level the graft
|
|
185
|
+
* would not expand, and never stops short of one it would.
|
|
186
|
+
*/
|
|
187
|
+
export declare const MAX_COMPONENT_DEPTH = 5;
|
|
178
188
|
type NormalizedNodes<N extends AglynNodeSchema> = Record<NodeId, N>;
|
|
179
189
|
/** Stored shape of a host-level reusable component definition's tree. */
|
|
180
190
|
export interface ReusableComponentTree<N extends AglynNodeSchema = AglynNodeSchema> {
|
|
@@ -318,7 +318,12 @@ const isStyleRecord = (value)=>typeof value === 'object' && value !== null && !A
|
|
|
318
318
|
/**
|
|
319
319
|
* Definitions may nest instances of other definitions; expansion runs in
|
|
320
320
|
* passes capped here so a self-referencing definition can't recurse forever.
|
|
321
|
-
|
|
321
|
+
*
|
|
322
|
+
* Exported for the one reader that has to agree with it: a loader fetching
|
|
323
|
+
* only the definitions a document references (`load-referenced-components`)
|
|
324
|
+
* follows nesting exactly this deep, so it never reads a level the graft
|
|
325
|
+
* would not expand, and never stops short of one it would.
|
|
326
|
+
*/ export const MAX_COMPONENT_DEPTH = 5;
|
|
322
327
|
function instancePrefix(instanceId) {
|
|
323
328
|
return `${COMPONENT_NODE_ID_PREFIX}${instanceId}__`;
|
|
324
329
|
}
|