@inf-monkeys-tech/monkeys 1.1.50 → 1.1.52
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/lib/contracts/declarative-control-http.d.ts +1228 -536
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control.d.ts +115 -8
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +37 -9
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +352 -208
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/contracts/render.d.ts +201 -1
- package/lib/contracts/render.d.ts.map +1 -1
- package/lib/contracts/render.js +70 -18
- package/lib/contracts/render.js.map +1 -1
- package/lib/contracts/tenant.d.ts +6 -6
- package/lib/contracts/workflow-definition.d.ts +4 -4
- package/lib/esm/{chunk-HADHWAS6.mjs → chunk-BNFELJET.mjs} +3 -3
- package/lib/esm/chunk-BNFELJET.mjs.map +1 -0
- package/lib/esm/{chunk-QESY23FV.mjs → chunk-CB4WTYNQ.mjs} +2 -2
- package/lib/esm/{chunk-JTMTLJYW.mjs → chunk-E46Y3E7E.mjs} +2 -2
- package/lib/esm/{chunk-V6QJCBGM.mjs → chunk-EMZG7H6M.mjs} +2 -2
- package/lib/esm/{chunk-DCW2YDFC.mjs → chunk-LQ72DLZI.mjs} +90 -22
- package/lib/esm/chunk-LQ72DLZI.mjs.map +1 -0
- package/lib/esm/{chunk-J5D3M43J.mjs → chunk-TFNKWLY6.mjs} +31 -15
- package/lib/esm/chunk-TFNKWLY6.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +12 -4
- package/lib/esm/index.mjs +14 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +11 -3
- package/lib/json-schema/overlay-node.schema.json +100 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +110 -1
- package/lib/json-schema/page.schema.json +111 -2
- package/lib/json-schema/render-node.schema.json +100 -0
- package/lib/json-schema/render-tree.schema.json +100 -0
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +27 -10
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +88 -52
- package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
- package/lib/schemas/index.d.ts +178 -9
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +9 -4
- package/lib/schemas/index.js.map +1 -1
- package/package.json +3 -2
- package/lib/esm/chunk-DCW2YDFC.mjs.map +0 -1
- package/lib/esm/chunk-HADHWAS6.mjs.map +0 -1
- package/lib/esm/chunk-J5D3M43J.mjs.map +0 -1
- /package/lib/esm/{chunk-QESY23FV.mjs.map → chunk-CB4WTYNQ.mjs.map} +0 -0
- /package/lib/esm/{chunk-JTMTLJYW.mjs.map → chunk-E46Y3E7E.mjs.map} +0 -0
- /package/lib/esm/{chunk-V6QJCBGM.mjs.map → chunk-EMZG7H6M.mjs.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
PAGE_STREAM_MAX_FRAME_BYTES,
|
|
5
5
|
PageStreamDescriptorSchema,
|
|
6
6
|
PageStreamEventSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CB4WTYNQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AccessPolicySchema,
|
|
10
10
|
ActionProgramDefinitionSchema,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
require_validation,
|
|
116
116
|
require_validation_error,
|
|
117
117
|
resolveThemeTokens
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-LQ72DLZI.mjs";
|
|
119
119
|
import {
|
|
120
120
|
__commonJS,
|
|
121
121
|
__toESM
|
|
@@ -2359,10 +2359,12 @@ var pageDependencies = (page, compilerRevisionRef) => [
|
|
|
2359
2359
|
role: "action-program",
|
|
2360
2360
|
revisionRef: binding.programRevisionRef
|
|
2361
2361
|
},
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2362
|
+
...binding.sourceIntentSchemaRevisionRef ? [
|
|
2363
|
+
{
|
|
2364
|
+
role: "schema",
|
|
2365
|
+
revisionRef: binding.sourceIntentSchemaRevisionRef
|
|
2366
|
+
}
|
|
2367
|
+
] : [],
|
|
2366
2368
|
...programDependencies(binding.definition)
|
|
2367
2369
|
]),
|
|
2368
2370
|
...page.actionBindings.flatMap((binding) => [
|
|
@@ -2642,6 +2644,7 @@ var resolvePage = (input) => {
|
|
|
2642
2644
|
...node.style ? { style: node.style } : {},
|
|
2643
2645
|
responsive: node.responsive ?? [],
|
|
2644
2646
|
state: node.state ?? "idle",
|
|
2647
|
+
...node.skeleton ? { skeleton: node.skeleton } : {},
|
|
2645
2648
|
renderModel: node.model ?? {},
|
|
2646
2649
|
...node.repeat ? { repeat: { ...node.repeat, limit: node.repeat.limit ?? 200 } } : {}
|
|
2647
2650
|
});
|
|
@@ -2676,6 +2679,7 @@ var resolvePage = (input) => {
|
|
|
2676
2679
|
} : {},
|
|
2677
2680
|
...node.access ? { accessPolicy: node.access } : {},
|
|
2678
2681
|
...node.activeWhen ? { activationWhen: node.activeWhen } : {},
|
|
2682
|
+
...node.loadingWhen ? { loadingWhen: node.loadingWhen } : {},
|
|
2679
2683
|
allowedSideEffects: [...registration.allowedSideEffects]
|
|
2680
2684
|
});
|
|
2681
2685
|
for (const [index, binding] of (node.data ?? []).entries()) {
|
|
@@ -2825,17 +2829,19 @@ var resolvePage = (input) => {
|
|
|
2825
2829
|
program.definition
|
|
2826
2830
|
);
|
|
2827
2831
|
assertProgramRegistration(program, page.tenantScope, page.surface, path);
|
|
2828
|
-
const
|
|
2829
|
-
|
|
2832
|
+
const isPageMount = binding.trigger === "page-mount";
|
|
2833
|
+
const resolvedPortName = binding.port ?? (isPageMount ? "page-mount" : "");
|
|
2834
|
+
const port = isPageMount ? void 0 : registration.outputPorts.find(
|
|
2835
|
+
(candidate) => candidate.name === resolvedPortName
|
|
2830
2836
|
);
|
|
2831
|
-
if (!port)
|
|
2837
|
+
if (!isPageMount && !port)
|
|
2832
2838
|
throw new DeclarativeControlCompilationError(
|
|
2833
2839
|
"PORT_TYPE_MISMATCH",
|
|
2834
2840
|
path,
|
|
2835
2841
|
"Program source port is not registered."
|
|
2836
2842
|
);
|
|
2837
|
-
if ((node.actions ?? []).some((action) => action.port ===
|
|
2838
|
-
(action) => action.source.capabilityInstanceId === node.id && action.source.port ===
|
|
2843
|
+
if ((node.actions ?? []).some((action) => action.port === resolvedPortName) || programBindings.some(
|
|
2844
|
+
(action) => action.source.capabilityInstanceId === node.id && action.source.port === resolvedPortName
|
|
2839
2845
|
))
|
|
2840
2846
|
throw new DeclarativeControlCompilationError(
|
|
2841
2847
|
"CAPABILITY_BINDING_MISMATCH",
|
|
@@ -2873,8 +2879,8 @@ var resolvePage = (input) => {
|
|
|
2873
2879
|
const { program: _program, port: _port, ...rest } = binding;
|
|
2874
2880
|
programBindings.push({
|
|
2875
2881
|
...rest,
|
|
2876
|
-
source: { capabilityInstanceId: node.id, port:
|
|
2877
|
-
sourceIntentSchemaRevisionRef: port.schemaRevisionRef,
|
|
2882
|
+
source: { capabilityInstanceId: node.id, port: resolvedPortName },
|
|
2883
|
+
...port ? { sourceIntentSchemaRevisionRef: port.schemaRevisionRef } : {},
|
|
2878
2884
|
programRevisionRef: program.definitionRevisionRef,
|
|
2879
2885
|
definition
|
|
2880
2886
|
});
|
|
@@ -3499,13 +3505,23 @@ var compilePageRuntimeBundleInternal = (input, legacy) => {
|
|
|
3499
3505
|
const instance = page.capabilityInstances.find(
|
|
3500
3506
|
(candidate) => candidate.instanceId === binding.source.capabilityInstanceId
|
|
3501
3507
|
);
|
|
3508
|
+
if ("trigger" in binding && binding.trigger === "page-mount") {
|
|
3509
|
+
if (!instance) {
|
|
3510
|
+
throw new DeclarativeControlCompilationError(
|
|
3511
|
+
"PORT_TYPE_MISMATCH",
|
|
3512
|
+
`programBindings[${index - page.actionBindings.length}].source.capabilityInstanceId`,
|
|
3513
|
+
"Page-mount program binding must reference a declared capability instance."
|
|
3514
|
+
);
|
|
3515
|
+
}
|
|
3516
|
+
return;
|
|
3517
|
+
}
|
|
3502
3518
|
const registration = instance && registrationsByPair.get(
|
|
3503
3519
|
`${revisionRefKey(instance.capabilityRevisionRef)}:${revisionRefKey(instance.providerRevisionRef)}`
|
|
3504
3520
|
);
|
|
3505
3521
|
const port = registration?.outputPorts.find(
|
|
3506
3522
|
(candidate) => candidate.name === binding.source.port
|
|
3507
3523
|
);
|
|
3508
|
-
if (!port || !sameSchemaContract(
|
|
3524
|
+
if (!port || !binding.sourceIntentSchemaRevisionRef || !sameSchemaContract(
|
|
3509
3525
|
port.schemaRevisionRef,
|
|
3510
3526
|
binding.sourceIntentSchemaRevisionRef
|
|
3511
3527
|
)) {
|
|
@@ -7477,4 +7493,4 @@ export {
|
|
|
7477
7493
|
collectManagedFileReferences,
|
|
7478
7494
|
resolveFileResourceReference
|
|
7479
7495
|
};
|
|
7480
|
-
//# sourceMappingURL=chunk-
|
|
7496
|
+
//# sourceMappingURL=chunk-TFNKWLY6.mjs.map
|