@inf-monkeys-tech/monkeys 1.1.4 → 1.1.5
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 +7 -0
- package/lib/contracts/declarative-control-http.d.ts +108182 -67435
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control-http.js +14 -6
- package/lib/contracts/declarative-control-http.js.map +1 -1
- package/lib/contracts/declarative-control.d.ts +1106 -624
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-control.js +80 -6
- package/lib/contracts/declarative-control.js.map +1 -1
- package/lib/contracts/semantic.d.ts +68 -0
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/semantic.js +3 -1
- package/lib/contracts/semantic.js.map +1 -1
- package/lib/esm/contracts/index.mjs +85 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +164 -59
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +158 -59
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +84 -8
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/navigation-release.schema.json +1 -0
- package/lib/json-schema/navigation-runtime-bundle.schema.json +1 -0
- package/lib/json-schema/page-release.schema.json +1 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +1 -0
- package/lib/json-schema/workbench-release.schema.json +1 -0
- package/lib/json-schema/workbench-runtime-bundle.schema.json +1 -0
- package/lib/runtime/declarative-control-compiler.d.ts +6 -1
- package/lib/runtime/declarative-control-compiler.d.ts.map +1 -1
- package/lib/runtime/declarative-control-compiler.js +67 -39
- package/lib/runtime/declarative-control-compiler.js.map +1 -1
- package/lib/schemas/index.d.ts +251 -245
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -5
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -10410,6 +10410,7 @@ var ReleaseDependencyRoleSchema = z14.enum([
|
|
|
10410
10410
|
"capability",
|
|
10411
10411
|
"provider",
|
|
10412
10412
|
"ontology-definition",
|
|
10413
|
+
"projection-spec",
|
|
10413
10414
|
"query-definition",
|
|
10414
10415
|
"view",
|
|
10415
10416
|
"projection",
|
|
@@ -10439,6 +10440,7 @@ var DependencyKindByRole = {
|
|
|
10439
10440
|
capability: "capability",
|
|
10440
10441
|
provider: "view-provider",
|
|
10441
10442
|
"ontology-definition": "ontology-definition",
|
|
10443
|
+
"projection-spec": "projection-spec",
|
|
10442
10444
|
"query-definition": "domain-query-definition",
|
|
10443
10445
|
view: "view",
|
|
10444
10446
|
projection: "projection",
|
|
@@ -11623,6 +11625,58 @@ var OntologyBindingSchema = z14.object({
|
|
|
11623
11625
|
});
|
|
11624
11626
|
}
|
|
11625
11627
|
});
|
|
11628
|
+
var LegacyOntologyBindingSchema = z14.object({
|
|
11629
|
+
...OntologyBindingSchema.shape,
|
|
11630
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
11631
|
+
canonicalDataViewRevisionRef: z14.never().optional(),
|
|
11632
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
11633
|
+
}).strict().superRefine((value, context) => {
|
|
11634
|
+
if (Boolean(value.viewRevisionRef) === Boolean(value.projectionRevisionRef)) {
|
|
11635
|
+
context.addIssue({
|
|
11636
|
+
code: "custom",
|
|
11637
|
+
path: ["viewRevisionRef"],
|
|
11638
|
+
message: "Legacy bindings require exactly one View or projection revision."
|
|
11639
|
+
});
|
|
11640
|
+
}
|
|
11641
|
+
for (const [key, reference, kind] of [
|
|
11642
|
+
[
|
|
11643
|
+
"ontologyDefinitionRevisionRef",
|
|
11644
|
+
value.ontologyDefinitionRevisionRef,
|
|
11645
|
+
"ontology-definition"
|
|
11646
|
+
],
|
|
11647
|
+
["viewRevisionRef", value.viewRevisionRef, "view"],
|
|
11648
|
+
["projectionRevisionRef", value.projectionRevisionRef, "projection-spec"]
|
|
11649
|
+
]) {
|
|
11650
|
+
if (reference && reference.kind !== kind)
|
|
11651
|
+
context.addIssue({
|
|
11652
|
+
code: "custom",
|
|
11653
|
+
path: [key, "kind"],
|
|
11654
|
+
message: `Expected a ${kind} revision.`
|
|
11655
|
+
});
|
|
11656
|
+
}
|
|
11657
|
+
if (value.cursorWindow && value.pagination !== "cursor")
|
|
11658
|
+
context.addIssue({
|
|
11659
|
+
code: "custom",
|
|
11660
|
+
path: ["cursorWindow"],
|
|
11661
|
+
message: "Cursor-window navigation requires cursor pagination."
|
|
11662
|
+
});
|
|
11663
|
+
});
|
|
11664
|
+
var PersistedOntologyBindingSchema = z14.object({
|
|
11665
|
+
...OntologyBindingSchema.shape,
|
|
11666
|
+
viewRevisionRef: RevisionRefSchema.optional(),
|
|
11667
|
+
canonicalDataViewRevisionRef: RevisionRefSchema.optional(),
|
|
11668
|
+
projectionRevisionRef: RevisionRefSchema.optional()
|
|
11669
|
+
}).strict().superRefine((value, context) => {
|
|
11670
|
+
const schema2 = value.canonicalDataViewRevisionRef ? OntologyBindingSchema : LegacyOntologyBindingSchema;
|
|
11671
|
+
const parsed = schema2.safeParse(value);
|
|
11672
|
+
if (!parsed.success)
|
|
11673
|
+
for (const issue of parsed.error.issues)
|
|
11674
|
+
context.addIssue({
|
|
11675
|
+
code: "custom",
|
|
11676
|
+
path: issue.path,
|
|
11677
|
+
message: issue.message
|
|
11678
|
+
});
|
|
11679
|
+
});
|
|
11626
11680
|
var ActionResultBindingEffectSourceSchema = z14.discriminatedUnion(
|
|
11627
11681
|
"kind",
|
|
11628
11682
|
[
|
|
@@ -12165,7 +12219,7 @@ var ResolvedPageSchema = z14.object({
|
|
|
12165
12219
|
stateDefinitions: z14.array(PageStateDefinitionSchema).optional(),
|
|
12166
12220
|
entryTransitions: z14.array(PageEntryTransitionSchema).optional(),
|
|
12167
12221
|
interactionBindings: z14.array(InteractionBindingSchema).optional(),
|
|
12168
|
-
ontologyBindings: z14.array(
|
|
12222
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
12169
12223
|
queryBindings: z14.array(QueryBindingSchema).optional(),
|
|
12170
12224
|
actionBindings: z14.array(ActionBindingSchema),
|
|
12171
12225
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -13949,7 +14003,7 @@ var DeclarativeWorkbenchCatalogSchema = z14.object({
|
|
|
13949
14003
|
});
|
|
13950
14004
|
}
|
|
13951
14005
|
});
|
|
13952
|
-
var
|
|
14006
|
+
var CompatiblePageRuntimeBundleSchema = z14.object({
|
|
13953
14007
|
contract: z14.literal("PageRuntimeBundle"),
|
|
13954
14008
|
...RuntimeBundleBaseShape,
|
|
13955
14009
|
pageId: ContractIdentifierSchema,
|
|
@@ -13958,7 +14012,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13958
14012
|
routeClaims: z14.array(CompiledRouteClaimSchema),
|
|
13959
14013
|
routeStatePresentations: z14.array(PageRouteStatePresentationSchema).default([]),
|
|
13960
14014
|
shellRevisionRef: RevisionRefSchema,
|
|
13961
|
-
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
14015
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema.optional(),
|
|
13962
14016
|
renderTree: RenderTreeSchema,
|
|
13963
14017
|
capabilityInstances: z14.array(CapabilityInstanceSchema),
|
|
13964
14018
|
deniedCapabilityInstanceIds: z14.array(ContractIdentifierSchema).default([]),
|
|
@@ -13966,7 +14020,7 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
13966
14020
|
stateDefinitions: z14.array(PageStateDefinitionSchema).default([]),
|
|
13967
14021
|
entryTransitions: z14.array(ResolvedPageEntryTransitionSchema).default([]),
|
|
13968
14022
|
interactionBindings: z14.array(InteractionBindingSchema).default([]),
|
|
13969
|
-
ontologyBindings: z14.array(
|
|
14023
|
+
ontologyBindings: z14.array(PersistedOntologyBindingSchema),
|
|
13970
14024
|
queryBindings: z14.array(QueryBindingSchema).default([]),
|
|
13971
14025
|
actionBindings: z14.array(ActionBindingSchema),
|
|
13972
14026
|
pageAccessPolicy: AccessPolicySchema,
|
|
@@ -14021,6 +14075,15 @@ var PageRuntimeBundleSchema = z14.object({
|
|
|
14021
14075
|
var ResolvedWorkbenchAppInstanceSchema = WorkbenchAppInstanceSchema.extend({
|
|
14022
14076
|
targetAccessPolicy: AccessPolicySchema
|
|
14023
14077
|
}).strict();
|
|
14078
|
+
var PageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
14079
|
+
shellDescriptor: DeclarativeRuntimeShellDescriptorSchema,
|
|
14080
|
+
ontologyBindings: z14.array(OntologyBindingSchema)
|
|
14081
|
+
});
|
|
14082
|
+
var LegacyPageRuntimeBundleSchema = CompatiblePageRuntimeBundleSchema.safeExtend({
|
|
14083
|
+
shellDescriptor: z14.never().optional(),
|
|
14084
|
+
ontologyBindings: z14.array(LegacyOntologyBindingSchema)
|
|
14085
|
+
});
|
|
14086
|
+
var ReadablePageRuntimeBundleSchema = z14.union([PageRuntimeBundleSchema, LegacyPageRuntimeBundleSchema]);
|
|
14024
14087
|
var WorkbenchRuntimeIdentitySchema = z14.object({
|
|
14025
14088
|
name: I18nTextSchema,
|
|
14026
14089
|
description: I18nTextSchema.optional()
|
|
@@ -14833,6 +14896,7 @@ var OntologyViewDefinitionSchema = z17.object({
|
|
|
14833
14896
|
renderModelSchemaRevisionRef: ExactRefKindSchema("schema"),
|
|
14834
14897
|
requiredPermissionCodes: z17.array(ContractIdentifierSchema).default([])
|
|
14835
14898
|
}).strict();
|
|
14899
|
+
var LegacyOntologyViewDefinitionSchema = OntologyViewDefinitionSchema.omit({ canonicalDataViewRevisionRef: true });
|
|
14836
14900
|
var ConceptRelationshipSchema = z17.object({
|
|
14837
14901
|
kind: ContractIdentifierSchema,
|
|
14838
14902
|
targetConceptId: ContractIdentifierSchema,
|
|
@@ -15150,6 +15214,7 @@ var DeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimePageTargetSc
|
|
|
15150
15214
|
routePath: DeclarativeRuntimeActionRoutePathSchema.optional(),
|
|
15151
15215
|
idempotencyKey: z18.string().trim().min(1).max(256)
|
|
15152
15216
|
}).strict();
|
|
15217
|
+
var LegacyDeclarativeRuntimeActionExecuteIntentSchema = DeclarativeRuntimeActionExecuteIntentSchema.safeExtend({ pageState: DeclarativeRuntimeParametersSchema.default({}) });
|
|
15153
15218
|
var DeclarativeNativeDownloadSchema = z18.object({
|
|
15154
15219
|
url: z18.string().min(1).max(32768).refine((value) => {
|
|
15155
15220
|
try {
|
|
@@ -15537,7 +15602,12 @@ var DeclarativeCreateTemplateRegistrationSchema = z18.object({
|
|
|
15537
15602
|
description: I18nTextSchema,
|
|
15538
15603
|
supportedSurfaces: z18.array(ProductSurfaceSchema).min(1),
|
|
15539
15604
|
legacyMigrationSourcePageIds: z18.array(ContractIdentifierSchema).min(1).max(256).optional(),
|
|
15540
|
-
document: z18.union([
|
|
15605
|
+
document: z18.union([
|
|
15606
|
+
PageSchema,
|
|
15607
|
+
ResolvedPageSchema,
|
|
15608
|
+
NavigationSchema,
|
|
15609
|
+
WorkbenchSchema
|
|
15610
|
+
]),
|
|
15541
15611
|
sourceContentHash: Sha256Schema
|
|
15542
15612
|
}).strict().superRefine((value, context) => {
|
|
15543
15613
|
const expected = value.document.contract === "Page" ? "page" : value.document.contract === "Navigation" ? "navigation" : "workbench";
|
|
@@ -16033,6 +16103,7 @@ var DeclarativeCreateIntentSchema = z18.object({
|
|
|
16033
16103
|
});
|
|
16034
16104
|
var DeclarativeDocumentSchema = z18.union([
|
|
16035
16105
|
PageSchema,
|
|
16106
|
+
ResolvedPageSchema,
|
|
16036
16107
|
NavigationSchema,
|
|
16037
16108
|
WorkbenchSchema
|
|
16038
16109
|
]);
|
|
@@ -16339,7 +16410,7 @@ var DeclarativePreviewResultSchema = z18.object({
|
|
|
16339
16410
|
revision: z18.number().int().positive(),
|
|
16340
16411
|
contentHash: Sha256Schema,
|
|
16341
16412
|
bundle: z18.union([
|
|
16342
|
-
|
|
16413
|
+
ReadablePageRuntimeBundleSchema,
|
|
16343
16414
|
NavigationRuntimeBundleSchema,
|
|
16344
16415
|
WorkbenchRuntimeBundleSchema
|
|
16345
16416
|
]),
|
|
@@ -16356,7 +16427,7 @@ var DeclarativePublicationItemResultSchema = z18.object({
|
|
|
16356
16427
|
WorkbenchReleaseSchema
|
|
16357
16428
|
]),
|
|
16358
16429
|
bundle: z18.union([
|
|
16359
|
-
|
|
16430
|
+
ReadablePageRuntimeBundleSchema,
|
|
16360
16431
|
NavigationRuntimeBundleSchema,
|
|
16361
16432
|
WorkbenchRuntimeBundleSchema
|
|
16362
16433
|
]).optional()
|
|
@@ -16628,7 +16699,7 @@ var DeclarativeRuntimeResolvedSchema = z18.object({
|
|
|
16628
16699
|
surface: ProductSurfaceSchema,
|
|
16629
16700
|
normalizedPath: z18.string().trim().min(1),
|
|
16630
16701
|
routeParameters: z18.record(ContractIdentifierSchema, z18.string()),
|
|
16631
|
-
page:
|
|
16702
|
+
page: ReadablePageRuntimeBundleSchema.optional(),
|
|
16632
16703
|
workbench: WorkbenchRuntimeBundleSchema.optional(),
|
|
16633
16704
|
redirect: DeclarativeRuntimeRedirectSchema.optional(),
|
|
16634
16705
|
navigation: NavigationRuntimeBundleSchema.optional(),
|
|
@@ -22734,11 +22805,19 @@ var pageDependencies = (page, compilerRevisionRef) => [
|
|
|
22734
22805
|
role: "ontology-definition",
|
|
22735
22806
|
revisionRef: binding.ontologyDefinitionRevisionRef
|
|
22736
22807
|
},
|
|
22737
|
-
{ role: "view", revisionRef: binding.viewRevisionRef },
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22808
|
+
...binding.viewRevisionRef ? [{ role: "view", revisionRef: binding.viewRevisionRef }] : [],
|
|
22809
|
+
..."projectionRevisionRef" in binding && binding.projectionRevisionRef ? [
|
|
22810
|
+
{
|
|
22811
|
+
role: "projection-spec",
|
|
22812
|
+
revisionRef: binding.projectionRevisionRef
|
|
22813
|
+
}
|
|
22814
|
+
] : [],
|
|
22815
|
+
...binding.canonicalDataViewRevisionRef ? [
|
|
22816
|
+
{
|
|
22817
|
+
role: "view",
|
|
22818
|
+
revisionRef: binding.canonicalDataViewRevisionRef
|
|
22819
|
+
}
|
|
22820
|
+
] : [],
|
|
22742
22821
|
{
|
|
22743
22822
|
role: "schema",
|
|
22744
22823
|
revisionRef: binding.renderModelSchemaRevisionRef
|
|
@@ -23312,8 +23391,30 @@ var resolvePage = (input) => {
|
|
|
23312
23391
|
};
|
|
23313
23392
|
return ResolvedPageSchema.parse(resolved);
|
|
23314
23393
|
};
|
|
23315
|
-
var
|
|
23394
|
+
var compileLegacyPageRuntimeBundle = (input) => deepFreeze(
|
|
23395
|
+
LegacyPageRuntimeBundleSchema.parse(
|
|
23396
|
+
compilePageRuntimeBundleInternal(input, true)
|
|
23397
|
+
)
|
|
23398
|
+
);
|
|
23399
|
+
var compilePageRuntimeBundle = (input) => deepFreeze(
|
|
23400
|
+
PageRuntimeBundleSchema.parse(
|
|
23401
|
+
compilePageRuntimeBundleInternal(input, false)
|
|
23402
|
+
)
|
|
23403
|
+
);
|
|
23404
|
+
var compilePageRuntimeBundleInternal = (input, legacy) => {
|
|
23316
23405
|
const parsedPage = ResolvedPageSchema.parse(input.page);
|
|
23406
|
+
parsedPage.ontologyBindings.forEach(
|
|
23407
|
+
(binding) => (legacy ? LegacyOntologyBindingSchema : OntologyBindingSchema).parse(
|
|
23408
|
+
binding
|
|
23409
|
+
)
|
|
23410
|
+
);
|
|
23411
|
+
if (legacy && (parsedPage.queryBindings?.length || input.domainQueryRegistry?.length)) {
|
|
23412
|
+
throw new DeclarativeControlCompilationError(
|
|
23413
|
+
"QUERY_DEFINITION_MISMATCH",
|
|
23414
|
+
"queryBindings",
|
|
23415
|
+
"Domain queries require the current compiler and its governed registries."
|
|
23416
|
+
);
|
|
23417
|
+
}
|
|
23317
23418
|
const page = {
|
|
23318
23419
|
...parsedPage,
|
|
23319
23420
|
routeStatePresentations: parsedPage.routeStatePresentations ?? [],
|
|
@@ -23456,43 +23557,45 @@ var compilePageRuntimeBundle = (input) => {
|
|
|
23456
23557
|
domainQueryDependencies(definition)
|
|
23457
23558
|
);
|
|
23458
23559
|
});
|
|
23459
|
-
const
|
|
23460
|
-
|
|
23461
|
-
|
|
23462
|
-
if (shellRegistration.resourceKind !== "shell" || !sameRevisionRef(
|
|
23463
|
-
shellRegistration.resourceRevisionRef,
|
|
23464
|
-
page.shellRevisionRef
|
|
23465
|
-
) || declarativeProductResourceRevisionHash(shellRegistration) !== shellRegistration.resourceRevisionRef.contentHash || declarativeProductResourceSourceHash(shellRegistration.document) !== shellRegistration.sourceContentHash) {
|
|
23466
|
-
throw new DeclarativeControlCompilationError(
|
|
23467
|
-
"SHELL_REVISION_MISMATCH",
|
|
23468
|
-
"shellRegistration",
|
|
23469
|
-
"The active Shell registration does not match the Page exact Shell revision."
|
|
23560
|
+
const shellDescriptor = legacy ? void 0 : (() => {
|
|
23561
|
+
const shellRegistration = DeclarativeProductResourceRegistrationSchema.parse(
|
|
23562
|
+
input.shellRegistration
|
|
23470
23563
|
);
|
|
23471
|
-
|
|
23472
|
-
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23476
|
-
|
|
23564
|
+
if (shellRegistration.resourceKind !== "shell" || !sameRevisionRef(
|
|
23565
|
+
shellRegistration.resourceRevisionRef,
|
|
23566
|
+
page.shellRevisionRef
|
|
23567
|
+
) || declarativeProductResourceRevisionHash(shellRegistration) !== shellRegistration.resourceRevisionRef.contentHash || declarativeProductResourceSourceHash(shellRegistration.document) !== shellRegistration.sourceContentHash) {
|
|
23568
|
+
throw new DeclarativeControlCompilationError(
|
|
23569
|
+
"SHELL_REVISION_MISMATCH",
|
|
23570
|
+
"shellRegistration",
|
|
23571
|
+
"The active Shell registration does not match the Page exact Shell revision."
|
|
23572
|
+
);
|
|
23573
|
+
}
|
|
23574
|
+
if (!shellRegistration.supportedSurfaces.includes(release.target.surface)) {
|
|
23575
|
+
throw new DeclarativeControlCompilationError(
|
|
23576
|
+
"SHELL_SURFACE_MISMATCH",
|
|
23577
|
+
"shellRegistration.supportedSurfaces",
|
|
23578
|
+
"The active Shell registration does not support the release surface."
|
|
23579
|
+
);
|
|
23580
|
+
}
|
|
23581
|
+
const shellDocument = DeclarativeShellResourceDocumentSchema.parse(
|
|
23582
|
+
shellRegistration.document
|
|
23477
23583
|
);
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
shellRegistration.document
|
|
23481
|
-
);
|
|
23482
|
-
const shellChrome = shellDocument.surfaceChrome.find(
|
|
23483
|
-
(entry) => entry.surface === release.target.surface
|
|
23484
|
-
);
|
|
23485
|
-
if (!shellChrome) {
|
|
23486
|
-
throw new DeclarativeControlCompilationError(
|
|
23487
|
-
"SHELL_CHROME_UNAVAILABLE",
|
|
23488
|
-
"shellRegistration.document.surfaceChrome",
|
|
23489
|
-
"The active Shell does not declare chrome for the release surface."
|
|
23584
|
+
const shellChrome = shellDocument.surfaceChrome.find(
|
|
23585
|
+
(entry) => entry.surface === release.target.surface
|
|
23490
23586
|
);
|
|
23491
|
-
|
|
23492
|
-
|
|
23493
|
-
|
|
23494
|
-
|
|
23495
|
-
|
|
23587
|
+
if (!shellChrome) {
|
|
23588
|
+
throw new DeclarativeControlCompilationError(
|
|
23589
|
+
"SHELL_CHROME_UNAVAILABLE",
|
|
23590
|
+
"shellRegistration.document.surfaceChrome",
|
|
23591
|
+
"The active Shell does not declare chrome for the release surface."
|
|
23592
|
+
);
|
|
23593
|
+
}
|
|
23594
|
+
return {
|
|
23595
|
+
shellRevisionRef: page.shellRevisionRef,
|
|
23596
|
+
header: shellChrome.header
|
|
23597
|
+
};
|
|
23598
|
+
})();
|
|
23496
23599
|
if (page.renderTree.nodes.length > input.limits.maxRenderNodes)
|
|
23497
23600
|
throw new DeclarativeControlCompilationError(
|
|
23498
23601
|
"RENDER_NODE_LIMIT_EXCEEDED",
|
|
@@ -23591,23 +23694,23 @@ var compilePageRuntimeBundle = (input) => {
|
|
|
23591
23694
|
"Page requests undeclared provider side effects."
|
|
23592
23695
|
);
|
|
23593
23696
|
}
|
|
23594
|
-
if (!sameRevisionRef(
|
|
23697
|
+
if (!legacy && (!registration.propertySchemaRevisionRef || !sameRevisionRef(
|
|
23595
23698
|
instance.propertySchemaRevisionRef,
|
|
23596
23699
|
registration.propertySchemaRevisionRef
|
|
23597
|
-
)) {
|
|
23700
|
+
))) {
|
|
23598
23701
|
throw new DeclarativeControlCompilationError(
|
|
23599
23702
|
"CAPABILITY_BINDING_MISMATCH",
|
|
23600
23703
|
`capabilityInstances[${index}].propertySchemaRevisionRef`,
|
|
23601
23704
|
"Capability properties do not pin the exact schema registered by the active Design catalog."
|
|
23602
23705
|
);
|
|
23603
23706
|
}
|
|
23604
|
-
if (!accessPolicyChainImplies(
|
|
23707
|
+
if (!legacy && (!registration.accessPolicy || !accessPolicyChainImplies(
|
|
23605
23708
|
[
|
|
23606
23709
|
page.pageAccessPolicy,
|
|
23607
23710
|
...instance.accessPolicy ? [instance.accessPolicy] : []
|
|
23608
23711
|
],
|
|
23609
23712
|
registration.accessPolicy
|
|
23610
|
-
)) {
|
|
23713
|
+
))) {
|
|
23611
23714
|
throw new DeclarativeControlCompilationError(
|
|
23612
23715
|
"AUDIENCE_WIDER_THAN_TARGET",
|
|
23613
23716
|
`capabilityInstances[${index}]`,
|
|
@@ -23937,7 +24040,7 @@ var compilePageRuntimeBundle = (input) => {
|
|
|
23937
24040
|
(presentation) => presentation.surface === release.target.surface
|
|
23938
24041
|
),
|
|
23939
24042
|
shellRevisionRef: page.shellRevisionRef,
|
|
23940
|
-
shellDescriptor,
|
|
24043
|
+
...shellDescriptor ? { shellDescriptor } : {},
|
|
23941
24044
|
renderTree,
|
|
23942
24045
|
capabilityInstances: page.capabilityInstances,
|
|
23943
24046
|
deniedCapabilityInstanceIds: [],
|
|
@@ -23953,12 +24056,7 @@ var compilePageRuntimeBundle = (input) => {
|
|
|
23953
24056
|
observationPolicyRevisionRef: page.observationPolicyRevisionRef,
|
|
23954
24057
|
privacyClassification: page.privacyClassification
|
|
23955
24058
|
};
|
|
23956
|
-
return
|
|
23957
|
-
PageRuntimeBundleSchema.parse({
|
|
23958
|
-
...unsigned,
|
|
23959
|
-
contentHash: canonicalContentHash(unsigned)
|
|
23960
|
-
})
|
|
23961
|
-
);
|
|
24059
|
+
return { ...unsigned, contentHash: canonicalContentHash(unsigned) };
|
|
23962
24060
|
};
|
|
23963
24061
|
var workbenchDependencyRole = (kind) => {
|
|
23964
24062
|
switch (kind) {
|
|
@@ -26839,6 +26937,10 @@ export {
|
|
|
26839
26937
|
JsonValueSchema,
|
|
26840
26938
|
LEGACY_CURRENT_USER_MENU_ITEM_IDS,
|
|
26841
26939
|
LegacyBrowserPreferenceImportSchema,
|
|
26940
|
+
LegacyDeclarativeRuntimeActionExecuteIntentSchema,
|
|
26941
|
+
LegacyOntologyBindingSchema,
|
|
26942
|
+
LegacyOntologyViewDefinitionSchema,
|
|
26943
|
+
LegacyPageRuntimeBundleSchema,
|
|
26842
26944
|
LegacyRouteClaimSchema,
|
|
26843
26945
|
LegacyRoutePolicySchema,
|
|
26844
26946
|
LegacyRouteTakeoverAuthorizationSchema,
|
|
@@ -26945,6 +27047,7 @@ export {
|
|
|
26945
27047
|
PermissionAlternativePolicySchema,
|
|
26946
27048
|
PermissionBundleSchema,
|
|
26947
27049
|
PermissionDefinitionSchema,
|
|
27050
|
+
PersistedOntologyBindingSchema,
|
|
26948
27051
|
ProductAccessDeclarationSchema,
|
|
26949
27052
|
ProductBodySchema,
|
|
26950
27053
|
ProductContextSchema,
|
|
@@ -26972,6 +27075,7 @@ export {
|
|
|
26972
27075
|
RadarScoreProjectionSchema,
|
|
26973
27076
|
RadarSelectionSchema,
|
|
26974
27077
|
RadarWritebackRecordSchema,
|
|
27078
|
+
ReadablePageRuntimeBundleSchema,
|
|
26975
27079
|
RecordEditorDraftOperationSchema,
|
|
26976
27080
|
RecordEditorDraftSchema,
|
|
26977
27081
|
RecordEditorFieldErrorSchema,
|
|
@@ -27121,6 +27225,7 @@ export {
|
|
|
27121
27225
|
compileDeclarativeRouteOwnerIndex,
|
|
27122
27226
|
compileDeclarativeWorkbenchCatalog,
|
|
27123
27227
|
compileDesignCapabilityCatalogArtifact,
|
|
27228
|
+
compileLegacyPageRuntimeBundle,
|
|
27124
27229
|
compileLegacyRouteTakeoverAuthorization,
|
|
27125
27230
|
compileMenuRuntimeBundle,
|
|
27126
27231
|
compileNavigationRuntimeBundle,
|