@cueframe/kernel 0.2.58 → 0.2.59-rc.0
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/dist/_members/account-model/testing/conversationStoreContract.d.ts +3 -4
- package/dist/_members/account-model/testing/restorePointStoreContract.d.ts +3 -4
- package/dist/_members/account-model/validators/index.d.ts +0 -1
- package/dist/_members/animate/index.d.ts +0 -2
- package/dist/_members/authoring/index.d.ts +1 -1
- package/dist/_members/authoring/prompts/index.d.ts +0 -1
- package/dist/_members/authoring/resources.d.ts +2 -11
- package/dist/_members/cloud-import/CloudImportService.d.ts +0 -1
- package/dist/_members/cloud-import/index.d.ts +0 -2
- package/dist/_members/component-runtime/allowedImports.d.ts +6 -0
- package/dist/_members/component-runtime/allowedImports.d.ts.map +1 -1
- package/dist/_members/component-runtime/browserIdentity.d.ts +2 -12
- package/dist/_members/component-runtime/browserIdentity.d.ts.map +1 -1
- package/dist/_members/component-runtime/canonicalIdentity.d.ts +8 -1
- package/dist/_members/component-runtime/canonicalIdentity.d.ts.map +1 -1
- package/dist/_members/component-runtime/contracts.d.ts +2 -1
- package/dist/_members/component-runtime/contracts.d.ts.map +1 -1
- package/dist/_members/component-runtime/identity.d.ts +2 -3
- package/dist/_members/component-runtime/identity.d.ts.map +1 -1
- package/dist/_members/component-runtime/importPolicy.d.ts +5 -0
- package/dist/_members/component-runtime/importPolicy.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/checks.d.ts +71 -0
- package/dist/_members/component-runtime/template/checks.d.ts.map +1 -0
- package/dist/_members/component-runtime/template/extract.d.ts +4 -0
- package/dist/_members/component-runtime/template/extract.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/index.d.ts +1 -0
- package/dist/_members/component-runtime/template/index.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/schema.d.ts +14 -13
- package/dist/_members/component-runtime/template/schema.d.ts.map +1 -1
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts +3 -4
- package/dist/_members/component-runtime/template/testing/templateApplyContract.d.ts.map +1 -1
- package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts +15 -0
- package/dist/_members/component-runtime/testing/sourcePolicyCases.d.ts.map +1 -0
- package/dist/_members/component-runtime/webglProbe.d.ts.map +1 -1
- package/dist/_members/compose/index.d.ts +1 -1
- package/dist/_members/compose/primitiveRegistry.d.ts +0 -2
- package/dist/_members/composition/audio/audioMix.d.ts +0 -1
- package/dist/_members/composition/audio/mixStaging.d.ts +0 -5
- package/dist/_members/composition/fixtures/index.d.ts +0 -1
- package/dist/_members/composition/graphics-plan/index.d.ts +0 -2
- package/dist/_members/composition/graphics-plan/schemas.d.ts +4 -4
- package/dist/_members/composition/invariants/etag.d.ts +0 -1
- package/dist/_members/composition/invariants/index.d.ts +0 -1
- package/dist/_members/composition/ops/compositionOps.d.ts +0 -1
- package/dist/_members/composition/ops/compositionOps.shared.d.ts +6 -0
- package/dist/_members/composition/ops/index.d.ts +2 -1
- package/dist/_members/composition/primitive-catalog/index.d.ts +0 -2
- package/dist/_members/composition/projection/behind-readiness.d.ts +0 -6
- package/dist/_members/composition/timeline/link.d.ts +0 -4
- package/dist/_members/composition/timeline/plan.d.ts +0 -1
- package/dist/_members/composition/validators/brandKit.d.ts +4 -4
- package/dist/_members/composition/validators/brandKitBody.d.ts +8 -8
- package/dist/_members/composition/validators/cardHtml.d.ts +11 -0
- package/dist/_members/composition/validators/composition.d.ts +2 -5
- package/dist/_members/composition/validators/css-tree-subpaths.d.ts +16 -0
- package/dist/_members/composition/validators/index.d.ts +0 -3
- package/dist/_members/composition/validators/session.d.ts +3 -3
- package/dist/_members/composition/validators/webhook.d.ts +4 -4
- package/dist/_members/composition-ops/alphaLayers.d.ts +0 -5
- package/dist/_members/composition-ops/index.d.ts +2 -2
- package/dist/_members/composition-ops/opRecorder.d.ts +23 -3
- package/dist/_members/core/render/exportSettings.d.ts +4 -2
- package/dist/_members/core/render/index.d.ts +1 -1
- package/dist/_members/core/render/vcam/requiredRegion.d.ts +0 -1
- package/dist/_members/director/ai-sdk/index.d.ts +0 -1
- package/dist/_members/director/ai-sdk/messages.d.ts +0 -1
- package/dist/_members/director/domain/chat.d.ts +0 -78
- package/dist/_members/director/domain/index.d.ts +0 -1
- package/dist/_members/errors/registry.d.ts +6 -0
- package/dist/_members/foundation/canonical/index.d.ts +14 -0
- package/dist/_members/foundation/index.d.ts +1 -1
- package/dist/_members/foundation/primitives/index.d.ts +0 -2
- package/dist/_members/foundation/testing/index.d.ts +1 -0
- package/dist/_members/foundation/testing/knownRed.d.ts +13 -0
- package/dist/_members/mcp/adapter.d.ts +21 -0
- package/dist/_members/mcp/compositionOps.d.ts +10 -0
- package/dist/_members/mcp/server.d.ts +0 -5
- package/dist/_members/mcp/wait.d.ts +3 -1
- package/dist/_members/media-model/generation.d.ts +0 -25
- package/dist/_members/nle-export/xml-utils.d.ts +0 -8
- package/dist/_members/plane/conformance.d.ts +20 -0
- package/dist/_members/primitives/index.d.ts +1 -11
- package/dist/_members/primitives/lib/index.d.ts +1 -1
- package/dist/_members/primitives/lib/tokens.d.ts +0 -16
- package/dist/_members/render-harness/cardAssetAdmission.d.ts +1 -0
- package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -1
- package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
- package/dist/_members/render-harness/materializeSources.d.ts.map +1 -1
- package/dist/_members/render-harness/mediaServer.d.ts +6 -1
- package/dist/_members/render-harness/mediaServer.d.ts.map +1 -1
- package/dist/account-model/testing.js +15 -5
- package/dist/account-model/validators.js +5 -7
- package/dist/account-model.js +5 -7
- package/dist/animate/preparation-facts.js +1 -1
- package/dist/animate.js +2 -6
- package/dist/authoring/composer.js +1 -1
- package/dist/authoring/context.js +8 -7
- package/dist/authoring/models/defaults.d.ts +1 -0
- package/dist/authoring/models/defaults.js +7 -0
- package/dist/authoring/models.js +5 -3
- package/dist/authoring/motion.d.ts +1 -0
- package/dist/authoring/motion.js +25 -0
- package/dist/authoring/prompts.js +4 -14
- package/dist/authoring/providers.js +1 -1
- package/dist/authoring/resource-routing.js +2 -2
- package/dist/authoring/resources.js +4 -22
- package/dist/authoring/scene.js +3 -2
- package/dist/authoring.js +662 -219
- package/dist/brand-derivation/constants.js +1 -1
- package/dist/brand-derivation.js +1 -1
- package/dist/{chunk-TKFLSGAS.js → chunk-25JH5QZA.js} +2 -2
- package/dist/{chunk-LBJ5LI5V.js → chunk-2K2GBFLU.js} +17 -8
- package/dist/{chunk-RAXHCRVV.js → chunk-2PAP5LO5.js} +1 -1
- package/dist/{chunk-MNO6AO2J.js → chunk-3HLDIIWA.js} +1 -1
- package/dist/{chunk-PTVTWQ4T.js → chunk-3JEUNKDK.js} +2 -2
- package/dist/chunk-3VWJ3H4X.js +68 -0
- package/dist/{chunk-S5H6GH6M.js → chunk-3Z7CN54H.js} +1 -1
- package/dist/{chunk-FVDFPJHT.js → chunk-46WBCUPE.js} +1 -1
- package/dist/chunk-4VBLQIM5.js +30 -0
- package/dist/{chunk-N2OZDD44.js → chunk-6HA55CRU.js} +4 -5
- package/dist/{chunk-WL2MLKWU.js → chunk-6HPEMDQW.js} +1 -1
- package/dist/{chunk-PWWZTY3G.js → chunk-6KZCXAYL.js} +5 -2
- package/dist/{chunk-IEXAKOEX.js → chunk-6QGARSV6.js} +2 -15
- package/dist/{chunk-3YVIAWET.js → chunk-7II5OM7R.js} +13 -1
- package/dist/{chunk-VLJOIUHL.js → chunk-7PSQUTL5.js} +3 -3
- package/dist/{chunk-UFD4EZHM.js → chunk-AFUITAH6.js} +4 -5
- package/dist/{chunk-HGCYZMII.js → chunk-AK6QPX7A.js} +9 -9
- package/dist/{chunk-EC6VFQE6.js → chunk-BZVOCVQV.js} +1 -0
- package/dist/{chunk-RBWS5XHE.js → chunk-CAF7BRNE.js} +2 -2
- package/dist/{chunk-TR53N6HB.js → chunk-CEO47DIE.js} +6 -3
- package/dist/chunk-CIOUDOGN.js +12 -0
- package/dist/{chunk-GQ6XGAFB.js → chunk-DCKADD5B.js} +1 -1
- package/dist/{chunk-4NIJWK45.js → chunk-EISHFHU5.js} +0 -8
- package/dist/chunk-EQH37KNZ.js +224 -0
- package/dist/{chunk-EXY4JJPH.js → chunk-F6PLDBAK.js} +2 -11
- package/dist/{chunk-DAARYRNT.js → chunk-FKSXKS35.js} +6 -6
- package/dist/{chunk-KBDUEU4W.js → chunk-FZB7UX44.js} +1 -1
- package/dist/chunk-H2ZZXISB.js +24 -0
- package/dist/{chunk-WSMCZRJ2.js → chunk-I2HNC4PQ.js} +1 -1
- package/dist/{chunk-NVXSKKRN.js → chunk-IUJABAG2.js} +14 -10
- package/dist/{chunk-7NIOFHMH.js → chunk-IVFMOHAC.js} +1 -9
- package/dist/{chunk-UKDBU7HM.js → chunk-JNBNDHEF.js} +3 -3
- package/dist/{chunk-JWMWVP64.js → chunk-KC4LNZL5.js} +4 -9
- package/dist/{chunk-GCQ7Z7S7.js → chunk-KKATUGRU.js} +3 -9
- package/dist/{chunk-Q5P5UFOP.js → chunk-KLQ53NX3.js} +13 -1
- package/dist/{chunk-UMXES6ED.js → chunk-LVMWPFV4.js} +1 -1
- package/dist/{chunk-REST55RC.js → chunk-NECN7TT4.js} +5 -4
- package/dist/{chunk-4ZE564YF.js → chunk-NM7NWXGF.js} +0 -146
- package/dist/{chunk-5T655LYZ.js → chunk-NY6EI5YW.js} +4 -4
- package/dist/{chunk-UXRSEMJJ.js → chunk-ONSGT6UJ.js} +66 -35
- package/dist/{chunk-VZ7TYX6Z.js → chunk-P3EFZDM5.js} +0 -17
- package/dist/{chunk-BEFSJMFF.js → chunk-P6RVYHLT.js} +9 -9
- package/dist/{chunk-TBHSOEYK.js → chunk-PLWDYWK6.js} +4 -34
- package/dist/{chunk-KYRDKK2D.js → chunk-Q6CJ6HCU.js} +1 -6
- package/dist/{chunk-FWSJLHSV.js → chunk-R642352J.js} +1 -1
- package/dist/{chunk-XELS2BGA.js → chunk-R6HTIP3N.js} +1 -3
- package/dist/{chunk-RL5SO653.js → chunk-RQRPSSRT.js} +1 -1
- package/dist/chunk-RR7UBEBV.js +172 -0
- package/dist/{chunk-FHMTAZD4.js → chunk-RWJHZCOR.js} +1 -71
- package/dist/{chunk-73DQTUWY.js → chunk-TIAJMEQ4.js} +2 -22
- package/dist/{chunk-2ESYSVXG.js → chunk-U67V476Y.js} +2 -15
- package/dist/{chunk-3VLDQE26.js → chunk-U7KSOA2L.js} +4 -21
- package/dist/{chunk-K66NLMGX.js → chunk-UGWJC4GA.js} +62 -18
- package/dist/chunk-VBYINB74.js +136 -0
- package/dist/{chunk-W2245F6G.js → chunk-WTQRLFR2.js} +1 -1
- package/dist/{chunk-JN3GF36B.js → chunk-X2RTLS6K.js} +2 -23
- package/dist/chunk-XHMKPTHV.js +20 -0
- package/dist/{chunk-2L33CKIY.js → chunk-XOT2VWCO.js} +18 -31
- package/dist/{chunk-AK5QBHOB.js → chunk-XQGQ5EFS.js} +10 -1
- package/dist/chunk-XR76OZKC.js +21 -0
- package/dist/chunk-ZCEYEIRB.js +179 -0
- package/dist/{chunk-IMIUHG2E.js → chunk-ZPJQ3TQL.js} +1 -3
- package/dist/cloud-import.js +1 -16
- package/dist/component-runtime/browserOptions.js +4 -3
- package/dist/component-runtime/contracts.js +2 -2
- package/dist/component-runtime/identity/browser.js +2 -17
- package/dist/component-runtime/identity.js +5 -7
- package/dist/component-runtime/importPolicy.js +3 -3
- package/dist/component-runtime/mediaResolution.js +1 -1
- package/dist/component-runtime/render.js +8 -7
- package/dist/component-runtime/sourceAdmission.js +3 -3
- package/dist/component-runtime/template/testing.js +15 -12
- package/dist/component-runtime/template.js +165 -13
- package/dist/component-runtime.js +27 -28
- package/dist/compose.js +28 -45
- package/dist/composition/audio.js +4 -8
- package/dist/composition/brand-kit.js +1 -1
- package/dist/composition/brief.js +1 -1
- package/dist/composition/card-html.d.ts +1 -0
- package/dist/composition/card-html.js +15 -0
- package/dist/composition/depth.js +1 -1
- package/dist/composition/floors.js +2 -2
- package/dist/composition/fonts.js +1 -1
- package/dist/composition/graphics-plan.js +4 -44
- package/dist/composition/invariants.js +5 -12
- package/dist/composition/ops.js +7 -6
- package/dist/composition/primitive-catalog.js +2 -6
- package/dist/composition/projection.js +3 -5
- package/dist/composition/reframe/coverage.js +1 -1
- package/dist/composition/reframe/kenBurns.js +1 -1
- package/dist/composition/reframe/shotScale.js +1 -1
- package/dist/composition/reframe/trajectory.js +1 -1
- package/dist/composition/reframe.js +1 -1
- package/dist/composition/scene/budget-policy.js +1 -1
- package/dist/composition/scene.js +1 -1
- package/dist/composition/timeline.js +4 -8
- package/dist/composition/validators/brand-kit-body.js +5 -4
- package/dist/composition/validators/graphic-kinds.js +1 -1
- package/dist/composition/validators.js +8 -65
- package/dist/composition-ops.js +17 -16
- package/dist/composition.js +13 -79
- package/dist/context-7SWSVJ6Z.js +17 -0
- package/dist/core/render.js +13 -9
- package/dist/core/select.js +3 -3
- package/dist/core.js +9 -9
- package/dist/director/ai-sdk.js +7 -11
- package/dist/director/domain.js +9 -17
- package/dist/director.js +9 -21
- package/dist/{dist-LAJ2363K.js → dist-6FO67KVA.js} +1 -1
- package/dist/errors.js +2 -2
- package/dist/foundation/canonical.d.ts +1 -0
- package/dist/foundation/canonical.js +7 -0
- package/dist/foundation/primitives.js +4 -6
- package/dist/foundation/testing.d.ts +1 -0
- package/dist/foundation/testing.js +7 -0
- package/dist/foundation.js +7 -9
- package/dist/{magic-string.es-SDTMJBWP.js → magic-string.es-KVSW34UD.js} +1 -1
- package/dist/mcp/adapter.js +11 -19
- package/dist/mcp/composition-ops.d.ts +1 -0
- package/dist/mcp/composition-ops.js +11 -0
- package/dist/mcp/core.js +2 -2
- package/dist/mcp/curation.js +1 -1
- package/dist/mcp/executor.js +1 -1
- package/dist/mcp/scene-shot.js +3 -3
- package/dist/mcp/server.js +6 -7
- package/dist/mcp/wire-schema.js +13 -2
- package/dist/mcp.js +11 -10
- package/dist/media-model/generation.js +6 -8
- package/dist/media-model/media-kind.js +1 -1
- package/dist/media-model/testing.js +2 -2
- package/dist/media-model/transcriptSearch.js +1 -1
- package/dist/media-model.js +6 -8
- package/dist/nle-export/xml.js +1 -1
- package/dist/nle-export.js +2 -2
- package/dist/perception.js +1 -1
- package/dist/plane/conformance.js +8 -4
- package/dist/plane/contract.js +1 -1
- package/dist/plane.js +8 -4
- package/dist/primitives/backgrounds.js +3 -3
- package/dist/primitives/captions.js +2 -2
- package/dist/primitives/effects.js +4 -4
- package/dist/primitives/hero-text.js +4 -4
- package/dist/primitives/layouts.js +4 -4
- package/dist/primitives/lib/easings.js +1 -1
- package/dist/primitives/lib/frameScale.js +1 -1
- package/dist/primitives/lib/index.js +7 -13
- package/dist/primitives/lib/palette.js +2 -2
- package/dist/primitives/lib/preview.js +1 -1
- package/dist/primitives/lib/schema.js +1 -1
- package/dist/primitives/lib/seeded-random.js +1 -1
- package/dist/primitives/lib/text/contrast.js +3 -3
- package/dist/primitives/lib/text/fill.js +1 -1
- package/dist/primitives/lib/text/fitText.js +1 -1
- package/dist/primitives/lib/text/marker.js +1 -1
- package/dist/primitives/lib/text/motion.js +1 -1
- package/dist/primitives/lib/text/recolor.js +1 -1
- package/dist/primitives/lib/text/stage.js +1 -1
- package/dist/primitives/lib/text/typeface.js +1 -1
- package/dist/primitives/lib/tokens.js +4 -11
- package/dist/primitives/lib.js +7 -13
- package/dist/primitives/scenes.js +5 -5
- package/dist/primitives/subject-foreground.js +1 -1
- package/dist/primitives/text.js +4 -4
- package/dist/primitives/transitions.js +3 -3
- package/dist/primitives/ui-blocks.js +5 -5
- package/dist/primitives/workspace.js +1 -1
- package/dist/primitives.js +24 -38
- package/dist/render-harness/cardAssetAdmission.js +4 -4
- package/dist/render-harness/cardFonts.js +3 -3
- package/dist/render-harness/renderInputAssets.js +4 -4
- package/dist/render-harness.js +100 -82
- package/dist/{src-ZP6727AA.js → src-XI5MULKD.js} +17 -16
- package/package.json +38 -60
- package/dist/_members/account-model/validators/workingComposition.d.ts +0 -11
- package/dist/_members/animate/animations/index.d.ts +0 -9
- package/dist/_members/animate/easing/index.d.ts +0 -3
- package/dist/_members/animate/mobjects/index.d.ts +0 -4
- package/dist/_members/animate/scene/internal.d.ts +0 -29
- package/dist/_members/authoring/prompts/graphics.d.ts +0 -9
- package/dist/_members/cloud-import/cloudConfig.d.ts +0 -2
- package/dist/_members/composition/autozoom/index.d.ts +0 -25
- package/dist/_members/composition/graphics-plan/instantiateMotif.d.ts +0 -34
- package/dist/_members/composition/invariants/time.d.ts +0 -14
- package/dist/_members/composition/types/index.d.ts +0 -8
- package/dist/_members/composition/validators/font.d.ts +0 -58
- package/dist/_members/composition/validators/registry.d.ts +0 -79
- package/dist/_members/composition/validators/render.d.ts +0 -2068
- package/dist/_members/director/ai-sdk/chunks.d.ts +0 -14
- package/dist/_members/director/domain/ports.d.ts +0 -32
- package/dist/_members/director/testing/contract.d.ts +0 -52
- package/dist/_members/director/testing/index.d.ts +0 -1
- package/dist/_members/foundation/codes/index.d.ts +0 -10
- package/dist/_members/nle-export/server/index.d.ts +0 -1
- package/dist/_members/nle-export/server/pack-zip.d.ts +0 -6
- package/dist/_members/render-harness/assetRefs.d.ts +0 -26
- package/dist/_members/render-harness/assetRefs.d.ts.map +0 -1
- package/dist/_members/render-harness/remotion-runtime.d.ts +0 -87
- package/dist/authoring/build-tools.d.ts +0 -1
- package/dist/authoring/build-tools.js +0 -28
- package/dist/authoring/capabilities.d.ts +0 -1
- package/dist/authoring/capabilities.js +0 -11
- package/dist/authoring/pipelineTrace.d.ts +0 -1
- package/dist/authoring/pipelineTrace.js +0 -7
- package/dist/authoring/tools.d.ts +0 -1
- package/dist/authoring/tools.js +0 -31
- package/dist/chunk-6UZYUWBX.js +0 -197
- package/dist/chunk-7EDLPIUN.js +0 -384
- package/dist/chunk-GF52TW4I.js +0 -51
- package/dist/chunk-IG3YAOUZ.js +0 -418
- package/dist/chunk-JOURGVOR.js +0 -27
- package/dist/chunk-MFMR3LHO.js +0 -116
- package/dist/chunk-OSMXQV5V.js +0 -18
- package/dist/chunk-QDBVYZSF.js +0 -128
- package/dist/chunk-U3JPILZS.js +0 -15
- package/dist/chunk-Y4HPN4BC.js +0 -364
- package/dist/composition/autozoom.d.ts +0 -1
- package/dist/composition/autozoom.js +0 -76
- package/dist/composition/fixtures.d.ts +0 -1
- package/dist/composition/fixtures.js +0 -154
- package/dist/composition/types.d.ts +0 -1
- package/dist/composition/types.js +0 -0
- package/dist/context-4WSFPRLX.js +0 -16
- package/dist/director/testing.d.ts +0 -1
- package/dist/director/testing.js +0 -22
- package/dist/foundation/codes.d.ts +0 -1
- package/dist/foundation/codes.js +0 -7
- package/dist/nle-export/server.d.ts +0 -1
- package/dist/nle-export/server.js +0 -25856
- /package/dist/{chunk-FTVZF4GO.js → chunk-S432RE6G.js} +0 -0
|
@@ -10,26 +10,27 @@ import {
|
|
|
10
10
|
coerceParameterValue,
|
|
11
11
|
findReferences,
|
|
12
12
|
parseTemplateDocument
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-NECN7TT4.js";
|
|
14
|
+
import "../chunk-CEO47DIE.js";
|
|
15
|
+
import "../chunk-BZVOCVQV.js";
|
|
16
|
+
import "../chunk-ZCEYEIRB.js";
|
|
17
|
+
import "../chunk-6KZCXAYL.js";
|
|
18
|
+
import "../chunk-AFUITAH6.js";
|
|
19
19
|
import "../chunk-WPZKOVYF.js";
|
|
20
20
|
import "../chunk-B7J5UUUV.js";
|
|
21
|
+
import "../chunk-EQH37KNZ.js";
|
|
22
|
+
import "../chunk-WREYUH2E.js";
|
|
21
23
|
import {
|
|
22
24
|
CURRENT_MATTE_BAKE_VERSION
|
|
23
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-IVFMOHAC.js";
|
|
24
26
|
import "../chunk-DKBFAQCW.js";
|
|
25
|
-
import "../chunk-WREYUH2E.js";
|
|
26
27
|
import "../chunk-ILO4NEZ3.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-XQGQ5EFS.js";
|
|
28
29
|
import "../chunk-VG2ND6PX.js";
|
|
29
30
|
import "../chunk-CL5Y6V6K.js";
|
|
30
31
|
import "../chunk-2L7PYYJK.js";
|
|
31
32
|
import "../chunk-OOL7ZUG7.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-U67V476Y.js";
|
|
33
34
|
|
|
34
35
|
// ../execution/component-runtime/src/template/extract.ts
|
|
35
36
|
function extractTemplate(args) {
|
|
@@ -50,7 +51,7 @@ function extractTemplate(args) {
|
|
|
50
51
|
if (typeof holder?.[key] !== "string" || holder[key].length === 0) {
|
|
51
52
|
throw new Error(`clip ${m.clipId} has no media at source.${m.slot === void 0 ? "mediaId" : `assets.${m.slot}`}`);
|
|
52
53
|
}
|
|
53
|
-
parameters.push({ name: m.name, type: "media", kind: m.kind, required: true, default: holder[key], ...m.label ? { label: m.label } : {} });
|
|
54
|
+
parameters.push({ name: m.name, type: "media", kind: m.kind, required: m.required ?? true, default: holder[key], ...m.label ? { label: m.label } : {} });
|
|
54
55
|
holder[key] = `{{${m.name}}}`;
|
|
55
56
|
}
|
|
56
57
|
for (const t of args.textParams) {
|
|
@@ -63,7 +64,9 @@ function extractTemplate(args) {
|
|
|
63
64
|
required: t.required,
|
|
64
65
|
default: t.default ?? parent[leaf],
|
|
65
66
|
...t.options ? { options: t.options } : {},
|
|
66
|
-
...t.label ? { label: t.label } : {}
|
|
67
|
+
...t.label ? { label: t.label } : {},
|
|
68
|
+
...t.min !== void 0 ? { min: t.min } : {},
|
|
69
|
+
...t.max !== void 0 ? { max: t.max } : {}
|
|
67
70
|
});
|
|
68
71
|
parent[leaf] = `{{${t.name}}}`;
|
|
69
72
|
}
|
|
@@ -82,18 +85,167 @@ function extractTemplate(args) {
|
|
|
82
85
|
}
|
|
83
86
|
return doc;
|
|
84
87
|
}
|
|
88
|
+
|
|
89
|
+
// ../execution/component-runtime/src/template/checks.ts
|
|
90
|
+
var TEMPLATE_PROBES = Object.freeze([
|
|
91
|
+
{ name: "red", rgb: [230, 40, 40] },
|
|
92
|
+
{ name: "green", rgb: [40, 200, 60] },
|
|
93
|
+
{ name: "blue", rgb: [40, 80, 230] },
|
|
94
|
+
{ name: "yellow", rgb: [240, 220, 40] },
|
|
95
|
+
{ name: "magenta", rgb: [220, 40, 220] },
|
|
96
|
+
{ name: "cyan", rgb: [40, 210, 220] },
|
|
97
|
+
{ name: "orange", rgb: [245, 140, 30] },
|
|
98
|
+
{ name: "violet", rgb: [130, 60, 200] }
|
|
99
|
+
]);
|
|
100
|
+
var TEMPLATE_CHECK_LIMITS = Object.freeze({
|
|
101
|
+
/** A pixel matches a probe when every channel is within this distance. */
|
|
102
|
+
probeTolerance: 36,
|
|
103
|
+
/** A parameter is seen when some frame shows at least this many probe pixels, counted at full output resolution (a 20x20 patch). */
|
|
104
|
+
minFullResPixels: 400,
|
|
105
|
+
/** Below this many full-resolution probe pixels (about 64x64) the parameter is seen but flagged as barely visible. */
|
|
106
|
+
lowFullResPixels: 4096,
|
|
107
|
+
/** A pixel changed between two frames when some channel moved more than this. */
|
|
108
|
+
diffThreshold: 24,
|
|
109
|
+
/** Consecutive sampled frames that differ in fewer pixels than this count as not moving. */
|
|
110
|
+
stillDiff: 2e-3,
|
|
111
|
+
/** A frame is blank when this fraction of its pixels sits within `blankSpread` of its mean colour (a uniform frame). */
|
|
112
|
+
blankShare: 0.999,
|
|
113
|
+
blankSpread: 8,
|
|
114
|
+
/** More blank sampled frames than this fraction fails the template. */
|
|
115
|
+
blankFraction: 0.2,
|
|
116
|
+
/** The last-to-first change may be at most this many times the average neighbouring change. */
|
|
117
|
+
seamRatio: 2.5
|
|
118
|
+
});
|
|
119
|
+
function templateCheckFrames(durationInFrames, loop, stride = 5) {
|
|
120
|
+
if (!Number.isInteger(durationInFrames) || durationInFrames < 4) throw new Error("A template check needs at least 4 frames.");
|
|
121
|
+
if (!Number.isInteger(stride) || stride < 1) throw new Error("stride must be a positive integer.");
|
|
122
|
+
const frames = /* @__PURE__ */ new Set();
|
|
123
|
+
for (let f = 0; f < durationInFrames; f += stride) frames.add(f);
|
|
124
|
+
if (loop) for (const f of [0, 1, durationInFrames - 2, durationInFrames - 1]) frames.add(f);
|
|
125
|
+
return [...frames].sort((a, b) => a - b);
|
|
126
|
+
}
|
|
127
|
+
function assignTemplateProbes(parameters) {
|
|
128
|
+
const visual = parameters.filter((p) => p.type === "media" && (p.kind === "image" || p.kind === "video"));
|
|
129
|
+
if (visual.length > TEMPLATE_PROBES.length) {
|
|
130
|
+
throw new Error(`A template check supports at most ${TEMPLATE_PROBES.length} image or video parameters; this template has ${visual.length}.`);
|
|
131
|
+
}
|
|
132
|
+
return Object.fromEntries(visual.map((p, i) => [p.name, TEMPLATE_PROBES[i]]));
|
|
133
|
+
}
|
|
134
|
+
function assertFrame(input, frame) {
|
|
135
|
+
if (frame.rgba.length !== input.width * input.height * 4) {
|
|
136
|
+
throw new Error(`Frame ${frame.frame} has ${frame.rgba.length} bytes; expected ${input.width * input.height * 4}.`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function probeCoverage(rgba, probe, tolerance = TEMPLATE_CHECK_LIMITS.probeTolerance) {
|
|
140
|
+
const [r, g, b] = probe.rgb;
|
|
141
|
+
let hits = 0;
|
|
142
|
+
for (let i = 0; i < rgba.length; i += 4) {
|
|
143
|
+
if (Math.abs(rgba[i] - r) <= tolerance && Math.abs(rgba[i + 1] - g) <= tolerance && Math.abs(rgba[i + 2] - b) <= tolerance) hits++;
|
|
144
|
+
}
|
|
145
|
+
return hits / (rgba.length / 4);
|
|
146
|
+
}
|
|
147
|
+
function changedFraction(a, b) {
|
|
148
|
+
const threshold = TEMPLATE_CHECK_LIMITS.diffThreshold;
|
|
149
|
+
let changed = 0;
|
|
150
|
+
for (let i = 0; i < a.length; i += 4) {
|
|
151
|
+
if (Math.abs(a[i] - b[i]) > threshold || Math.abs(a[i + 1] - b[i + 1]) > threshold || Math.abs(a[i + 2] - b[i + 2]) > threshold) changed++;
|
|
152
|
+
}
|
|
153
|
+
return changed / (a.length / 4);
|
|
154
|
+
}
|
|
155
|
+
function isBlankFrame(rgba) {
|
|
156
|
+
const n = rgba.length / 4;
|
|
157
|
+
let r = 0;
|
|
158
|
+
let g = 0;
|
|
159
|
+
let b = 0;
|
|
160
|
+
for (let i = 0; i < rgba.length; i += 4) {
|
|
161
|
+
r += rgba[i];
|
|
162
|
+
g += rgba[i + 1];
|
|
163
|
+
b += rgba[i + 2];
|
|
164
|
+
}
|
|
165
|
+
r /= n;
|
|
166
|
+
g /= n;
|
|
167
|
+
b /= n;
|
|
168
|
+
const spread = TEMPLATE_CHECK_LIMITS.blankSpread;
|
|
169
|
+
let near = 0;
|
|
170
|
+
for (let i = 0; i < rgba.length; i += 4) {
|
|
171
|
+
if (Math.abs(rgba[i] - r) <= spread && Math.abs(rgba[i + 1] - g) <= spread && Math.abs(rgba[i + 2] - b) <= spread) near++;
|
|
172
|
+
}
|
|
173
|
+
return near / n >= TEMPLATE_CHECK_LIMITS.blankShare;
|
|
174
|
+
}
|
|
175
|
+
function analyzeTemplateFrames(input) {
|
|
176
|
+
if (input.frames.length < 2) throw new Error("A template check needs at least two frames.");
|
|
177
|
+
if (!(input.scale > 0 && input.scale <= 1)) throw new Error("scale must be within (0, 1].");
|
|
178
|
+
const frames = [...input.frames].sort((a, b) => a.frame - b.frame);
|
|
179
|
+
for (const frame of frames) assertFrame(input, frame);
|
|
180
|
+
const byFrame = new Map(frames.map((f) => [f.frame, f.rgba]));
|
|
181
|
+
const failures = [];
|
|
182
|
+
const warnings = [];
|
|
183
|
+
const pixels = input.width * input.height;
|
|
184
|
+
const toFullRes = (coverage) => coverage * pixels / (input.scale * input.scale);
|
|
185
|
+
const slots = {};
|
|
186
|
+
for (const [name, probe] of Object.entries(input.slots)) {
|
|
187
|
+
let peak = 0;
|
|
188
|
+
let seenFrames = 0;
|
|
189
|
+
for (const frame of frames) {
|
|
190
|
+
const coverage = probeCoverage(frame.rgba, probe);
|
|
191
|
+
peak = Math.max(peak, coverage);
|
|
192
|
+
if (toFullRes(coverage) >= TEMPLATE_CHECK_LIMITS.minFullResPixels) seenFrames++;
|
|
193
|
+
}
|
|
194
|
+
const peakFullResPixels = Math.round(toFullRes(peak));
|
|
195
|
+
const seen = peakFullResPixels >= TEMPLATE_CHECK_LIMITS.minFullResPixels;
|
|
196
|
+
slots[name] = { seen, peakCoverage: peak, peakFullResPixels, framesSeen: seenFrames };
|
|
197
|
+
const percent = (peak * 100).toFixed(2);
|
|
198
|
+
if (!seen) failures.push(`Media parameter ${name} never appears (peak ${peakFullResPixels} px, ${percent}% of the frame).`);
|
|
199
|
+
else if (peakFullResPixels < TEMPLATE_CHECK_LIMITS.lowFullResPixels) warnings.push(`Media parameter ${name} is barely visible (peak ${peakFullResPixels} px, ${percent}% of the frame).`);
|
|
200
|
+
}
|
|
201
|
+
const blank = frames.filter((f) => isBlankFrame(f.rgba)).length;
|
|
202
|
+
const blankFraction = blank / frames.length;
|
|
203
|
+
if (blankFraction > TEMPLATE_CHECK_LIMITS.blankFraction) {
|
|
204
|
+
failures.push(`${Math.round(blankFraction * 100)}% of sampled frames are blank.`);
|
|
205
|
+
}
|
|
206
|
+
let still = true;
|
|
207
|
+
for (let i = 1; i < frames.length; i++) {
|
|
208
|
+
if (changedFraction(frames[i - 1].rgba, frames[i].rgba) >= TEMPLATE_CHECK_LIMITS.stillDiff) {
|
|
209
|
+
still = false;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (still) warnings.push("Nothing moves between sampled frames.");
|
|
214
|
+
let seam = null;
|
|
215
|
+
if (input.loop) {
|
|
216
|
+
const last = input.durationInFrames - 1;
|
|
217
|
+
const needed = [0, 1, last - 1, last];
|
|
218
|
+
if (needed.some((f) => !byFrame.has(f))) throw new Error(`A loop check needs frames ${needed.join(", ")}.`);
|
|
219
|
+
const across = changedFraction(byFrame.get(last), byFrame.get(0));
|
|
220
|
+
const neighbours = (changedFraction(byFrame.get(last - 1), byFrame.get(last)) + changedFraction(byFrame.get(0), byFrame.get(1))) / 2;
|
|
221
|
+
const ratio = across === 0 ? 0 : across / Math.max(neighbours, TEMPLATE_CHECK_LIMITS.stillDiff);
|
|
222
|
+
seam = { ratio };
|
|
223
|
+
if (ratio > TEMPLATE_CHECK_LIMITS.seamRatio) {
|
|
224
|
+
failures.push(`The loop jumps at its seam: the last-to-first change is ${ratio.toFixed(1)}x the neighbouring frames.`);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return { slots, blankFraction, still, seam, failures, warnings };
|
|
228
|
+
}
|
|
85
229
|
export {
|
|
86
230
|
CURRENT_MATTE_BAKE_VERSION,
|
|
87
231
|
MATTE_KEY,
|
|
88
232
|
PRESET_NAME,
|
|
233
|
+
TEMPLATE_CHECK_LIMITS,
|
|
89
234
|
TEMPLATE_MAX_BYTES,
|
|
235
|
+
TEMPLATE_PROBES,
|
|
90
236
|
TemplateDocumentSchema,
|
|
91
237
|
TemplateError,
|
|
92
238
|
TemplateParameterSchema,
|
|
239
|
+
analyzeTemplateFrames,
|
|
240
|
+
assignTemplateProbes,
|
|
93
241
|
bindTemplate,
|
|
242
|
+
changedFraction,
|
|
94
243
|
checkReferences,
|
|
95
244
|
coerceParameterValue,
|
|
96
245
|
extractTemplate,
|
|
97
246
|
findReferences,
|
|
98
|
-
|
|
247
|
+
isBlankFrame,
|
|
248
|
+
parseTemplateDocument,
|
|
249
|
+
probeCoverage,
|
|
250
|
+
templateCheckFrames
|
|
99
251
|
};
|
|
@@ -7,12 +7,7 @@ import {
|
|
|
7
7
|
sourceIdentityForBake,
|
|
8
8
|
startComponentAssetServer,
|
|
9
9
|
verifyComponentOutput
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
COMPONENT_MEDIA_HEADROOM,
|
|
13
|
-
COMPONENT_MEDIA_TIERS,
|
|
14
|
-
planComponentMediaRepresentation
|
|
15
|
-
} from "./chunk-BVA3537Z.js";
|
|
10
|
+
} from "./chunk-P6RVYHLT.js";
|
|
16
11
|
import {
|
|
17
12
|
COMPONENT_BROWSER_CLEANUP_TIMEOUT_MS,
|
|
18
13
|
COMPONENT_BROWSER_FIREWALL_ATTEMPTS,
|
|
@@ -52,29 +47,14 @@ import {
|
|
|
52
47
|
stagedBrowserLocator,
|
|
53
48
|
verifyLocalStagedBrowser,
|
|
54
49
|
vp9AlphaFfmpegOverride
|
|
55
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-AK6QPX7A.js";
|
|
56
51
|
import "./chunk-WB2VFDQZ.js";
|
|
57
|
-
import {
|
|
58
|
-
bundleIdentityFields,
|
|
59
|
-
componentArtifactId,
|
|
60
|
-
componentBundleId,
|
|
61
|
-
componentRenderKey,
|
|
62
|
-
sha256Hex,
|
|
63
|
-
sourceVersionId
|
|
64
|
-
} from "./chunk-EXY4JJPH.js";
|
|
65
|
-
import {
|
|
66
|
-
canonicalJson
|
|
67
|
-
} from "./chunk-DAARYRNT.js";
|
|
68
|
-
import {
|
|
69
|
-
COMPONENT_IMPORT_ALLOWLIST,
|
|
70
|
-
assertComponentImportsAllowed
|
|
71
|
-
} from "./chunk-K66NLMGX.js";
|
|
72
52
|
import {
|
|
73
53
|
assertSourceReadsDeclaredAssets,
|
|
74
54
|
describeMissingAssetReads,
|
|
75
55
|
missingDeclaredAssetHandleReads,
|
|
76
56
|
sourceAssetReads
|
|
77
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-6HPEMDQW.js";
|
|
78
58
|
import {
|
|
79
59
|
HALF_FLOAT_COLOR_TARGET_EXTENSIONS,
|
|
80
60
|
admittedHost,
|
|
@@ -87,7 +67,21 @@ import {
|
|
|
87
67
|
resolvedComponentRenderer,
|
|
88
68
|
webGlRefusal,
|
|
89
69
|
webglBackend
|
|
90
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-KC4LNZL5.js";
|
|
71
|
+
import {
|
|
72
|
+
componentArtifactId,
|
|
73
|
+
componentBundleId,
|
|
74
|
+
componentRenderKey,
|
|
75
|
+
sha256Hex,
|
|
76
|
+
sourceVersionId
|
|
77
|
+
} from "./chunk-F6PLDBAK.js";
|
|
78
|
+
import {
|
|
79
|
+
canonicalIdentityJson
|
|
80
|
+
} from "./chunk-FKSXKS35.js";
|
|
81
|
+
import {
|
|
82
|
+
COMPONENT_IMPORT_ALLOWLIST,
|
|
83
|
+
assertComponentImportsAllowed
|
|
84
|
+
} from "./chunk-UGWJC4GA.js";
|
|
91
85
|
import {
|
|
92
86
|
CANVAS2D_COMPONENT_MANIFEST_V2,
|
|
93
87
|
COMPONENT_BUNDLE_VERSION,
|
|
@@ -128,11 +122,17 @@ import {
|
|
|
128
122
|
assertRendererReceiptMatches,
|
|
129
123
|
authoredComponentProps,
|
|
130
124
|
readComponentSourceRef
|
|
131
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-BZVOCVQV.js";
|
|
126
|
+
import {
|
|
127
|
+
COMPONENT_MEDIA_HEADROOM,
|
|
128
|
+
COMPONENT_MEDIA_TIERS,
|
|
129
|
+
planComponentMediaRepresentation
|
|
130
|
+
} from "./chunk-BVA3537Z.js";
|
|
131
|
+
import "./chunk-XHMKPTHV.js";
|
|
132
132
|
import "./chunk-CL5Y6V6K.js";
|
|
133
133
|
import "./chunk-2L7PYYJK.js";
|
|
134
134
|
import "./chunk-OOL7ZUG7.js";
|
|
135
|
-
import "./chunk-
|
|
135
|
+
import "./chunk-U67V476Y.js";
|
|
136
136
|
export {
|
|
137
137
|
CANVAS2D_COMPONENT_MANIFEST_V2,
|
|
138
138
|
COMPONENT_BROWSER_CLEANUP_TIMEOUT_MS,
|
|
@@ -202,8 +202,7 @@ export {
|
|
|
202
202
|
bakeComponentAlphaV2,
|
|
203
203
|
bakeOpacityContradictsPolicy,
|
|
204
204
|
buildLocalWebpackOverride,
|
|
205
|
-
|
|
206
|
-
canonicalJson,
|
|
205
|
+
canonicalIdentityJson,
|
|
207
206
|
componentArtifactId,
|
|
208
207
|
componentBrowserBackend,
|
|
209
208
|
componentBrowserOptions,
|
package/dist/compose.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import "./chunk-JVDUSOYG.js";
|
|
2
|
-
import "./chunk-JQMPHKLU.js";
|
|
3
2
|
import "./chunk-ZZRBKGDA.js";
|
|
4
3
|
import {
|
|
5
4
|
isContrastCritical
|
|
6
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3VWJ3H4X.js";
|
|
6
|
+
import "./chunk-JQMPHKLU.js";
|
|
7
7
|
import "./chunk-GULDS3VE.js";
|
|
8
|
-
import {
|
|
9
|
-
catalog as catalog3
|
|
10
|
-
} from "./chunk-FVDFPJHT.js";
|
|
11
|
-
import {
|
|
12
|
-
catalog as catalog6
|
|
13
|
-
} from "./chunk-VLJOIUHL.js";
|
|
14
|
-
import {
|
|
15
|
-
catalog as catalog2
|
|
16
|
-
} from "./chunk-TKFLSGAS.js";
|
|
17
8
|
import {
|
|
18
9
|
catalog as catalog8
|
|
19
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RQRPSSRT.js";
|
|
20
11
|
import {
|
|
21
12
|
catalog as catalog4
|
|
22
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3JEUNKDK.js";
|
|
23
14
|
import {
|
|
24
15
|
catalog as catalog7
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-QGAWDLYX.js";
|
|
27
|
-
import "./chunk-S5H6GH6M.js";
|
|
28
|
-
import "./chunk-QAGGJHAF.js";
|
|
29
|
-
import "./chunk-MFHXCHRI.js";
|
|
16
|
+
} from "./chunk-JNBNDHEF.js";
|
|
30
17
|
import {
|
|
31
18
|
catalog
|
|
32
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CAF7BRNE.js";
|
|
33
20
|
import "./chunk-DLF4WVSE.js";
|
|
34
21
|
import "./chunk-U4V4FZGE.js";
|
|
22
|
+
import {
|
|
23
|
+
catalog as catalog3
|
|
24
|
+
} from "./chunk-46WBCUPE.js";
|
|
25
|
+
import "./chunk-QGAWDLYX.js";
|
|
26
|
+
import {
|
|
27
|
+
catalog as catalog6
|
|
28
|
+
} from "./chunk-7PSQUTL5.js";
|
|
29
|
+
import "./chunk-3Z7CN54H.js";
|
|
30
|
+
import "./chunk-QAGGJHAF.js";
|
|
35
31
|
import "./chunk-LT4PWSR2.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-ZFEXATWN.js";
|
|
32
|
+
import "./chunk-R642352J.js";
|
|
38
33
|
import {
|
|
39
34
|
catalog as catalog5
|
|
40
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2PAP5LO5.js";
|
|
36
|
+
import "./chunk-ZFEXATWN.js";
|
|
37
|
+
import {
|
|
38
|
+
catalog as catalog2
|
|
39
|
+
} from "./chunk-25JH5QZA.js";
|
|
40
|
+
import "./chunk-MFHXCHRI.js";
|
|
41
41
|
import "./chunk-XHGZ2E77.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-WTQRLFR2.js";
|
|
43
|
+
import "./chunk-RWJHZCOR.js";
|
|
44
44
|
import "./chunk-XV2K3AQT.js";
|
|
45
45
|
import {
|
|
46
46
|
getPrimitiveSubtextParam,
|
|
47
47
|
getPrimitiveText,
|
|
48
48
|
getPrimitiveTextParam,
|
|
49
49
|
listPrimitivesByCategory
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-EISHFHU5.js";
|
|
51
51
|
import {
|
|
52
52
|
CueframeError,
|
|
53
53
|
encodeError
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-XQGQ5EFS.js";
|
|
55
55
|
import "./chunk-7PA7FGLD.js";
|
|
56
56
|
import {
|
|
57
57
|
NEUTRAL_RAMP
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
import "./chunk-CL5Y6V6K.js";
|
|
60
60
|
import "./chunk-2L7PYYJK.js";
|
|
61
61
|
import "./chunk-OOL7ZUG7.js";
|
|
62
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-U67V476Y.js";
|
|
63
63
|
|
|
64
64
|
// ../execution/compose/src/primitiveRegistry.ts
|
|
65
65
|
var allCatalogs = [
|
|
@@ -75,23 +75,8 @@ var allCatalogs = [
|
|
|
75
75
|
var registryMap = new Map(
|
|
76
76
|
allCatalogs.map((meta) => [meta.id, meta])
|
|
77
77
|
);
|
|
78
|
-
var overrideMap = /* @__PURE__ */ new Map();
|
|
79
|
-
var overrideOwner = null;
|
|
80
|
-
function registerPrimitiveOverride(meta, owner) {
|
|
81
|
-
if (overrideOwner !== null && overrideOwner !== owner) {
|
|
82
|
-
throw new Error(
|
|
83
|
-
`primitive override registry is single-tenant per process: owner '${overrideOwner}' already registered overrides; '${owner}' must call resetPrimitiveOverrides() first (or render in its own process). Registering a second tenant's overrides into the shared map would leak across tenants.`
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
overrideOwner = owner;
|
|
87
|
-
overrideMap.set(meta.id, meta);
|
|
88
|
-
}
|
|
89
|
-
function resetPrimitiveOverrides() {
|
|
90
|
-
overrideMap.clear();
|
|
91
|
-
overrideOwner = null;
|
|
92
|
-
}
|
|
93
78
|
function resolvePrimitive(id) {
|
|
94
|
-
return
|
|
79
|
+
return registryMap.get(id);
|
|
95
80
|
}
|
|
96
81
|
function listPrimitives() {
|
|
97
82
|
return [...registryMap.keys()];
|
|
@@ -211,8 +196,6 @@ export {
|
|
|
211
196
|
isRegisteredTransition,
|
|
212
197
|
listPrimitives,
|
|
213
198
|
listPrimitivesByCategory,
|
|
214
|
-
registerPrimitiveOverride,
|
|
215
|
-
resetPrimitiveOverrides,
|
|
216
199
|
resolvePrimitive,
|
|
217
200
|
resolveTransitionPresentation
|
|
218
201
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AMBIENCE_BED,
|
|
3
|
-
AMBIENCE_TRACK_ID,
|
|
4
3
|
DEFAULT_SFX_INTENSITY,
|
|
5
4
|
MUSIC_BED,
|
|
6
5
|
MUSIC_PACK_ENTRIES,
|
|
@@ -23,17 +22,15 @@ import {
|
|
|
23
22
|
pickSfx,
|
|
24
23
|
roleDefaultGainDb,
|
|
25
24
|
sfxByFamily,
|
|
26
|
-
sfxPackR2Key
|
|
27
|
-
|
|
28
|
-
} from "../chunk-VZ7TYX6Z.js";
|
|
25
|
+
sfxPackR2Key
|
|
26
|
+
} from "../chunk-P3EFZDM5.js";
|
|
29
27
|
import {
|
|
30
28
|
SFX_PACK_ENTRIES,
|
|
31
29
|
SFX_PACK_VERSION
|
|
32
30
|
} from "../chunk-7PA7FGLD.js";
|
|
33
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-U67V476Y.js";
|
|
34
32
|
export {
|
|
35
33
|
AMBIENCE_BED,
|
|
36
|
-
AMBIENCE_TRACK_ID,
|
|
37
34
|
DEFAULT_SFX_INTENSITY,
|
|
38
35
|
MUSIC_BED,
|
|
39
36
|
MUSIC_PACK_ENTRIES,
|
|
@@ -58,6 +55,5 @@ export {
|
|
|
58
55
|
pickSfx,
|
|
59
56
|
roleDefaultGainDb,
|
|
60
57
|
sfxByFamily,
|
|
61
|
-
sfxPackR2Key
|
|
62
|
-
sfxTransients
|
|
58
|
+
sfxPackR2Key
|
|
63
59
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../_members/composition/validators/cardHtml.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CardHtml,
|
|
3
|
+
cardHtmlProblem,
|
|
4
|
+
cssUrlPayloads,
|
|
5
|
+
hasNonFragmentCssUrl,
|
|
6
|
+
isFragmentReference
|
|
7
|
+
} from "../chunk-EQH37KNZ.js";
|
|
8
|
+
import "../chunk-U67V476Y.js";
|
|
9
|
+
export {
|
|
10
|
+
CardHtml,
|
|
11
|
+
cardHtmlProblem,
|
|
12
|
+
cssUrlPayloads,
|
|
13
|
+
hasNonFragmentCssUrl,
|
|
14
|
+
isFragmentReference
|
|
15
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPrimitiveCatalogMeta
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-EISHFHU5.js";
|
|
4
4
|
import "../chunk-7PA7FGLD.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-U67V476Y.js";
|
|
6
6
|
|
|
7
7
|
// ../composition/src/floors/types.ts
|
|
8
8
|
function floorAdvisoryLine(advisory) {
|
|
@@ -20,18 +20,19 @@ import {
|
|
|
20
20
|
PlanRect,
|
|
21
21
|
StyleRole,
|
|
22
22
|
ZPlane
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-AFUITAH6.js";
|
|
24
24
|
import "../chunk-WPZKOVYF.js";
|
|
25
25
|
import "../chunk-B7J5UUUV.js";
|
|
26
|
+
import "../chunk-EQH37KNZ.js";
|
|
27
|
+
import "../chunk-WREYUH2E.js";
|
|
26
28
|
import {
|
|
27
29
|
placeInLegalArea,
|
|
28
30
|
resolveBrandRefsDeep
|
|
29
31
|
} from "../chunk-DKBFAQCW.js";
|
|
30
|
-
import "../chunk-WREYUH2E.js";
|
|
31
32
|
import "../chunk-ILO4NEZ3.js";
|
|
32
33
|
import "../chunk-VG2ND6PX.js";
|
|
33
34
|
import "../chunk-OOL7ZUG7.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-U67V476Y.js";
|
|
35
36
|
|
|
36
37
|
// ../composition/src/graphics-plan/solve.ts
|
|
37
38
|
var TEMPLATES = {
|
|
@@ -329,45 +330,6 @@ function dedupeOverlappingHeroes(clips) {
|
|
|
329
330
|
}
|
|
330
331
|
return dropped.size === 0 ? clips : clips.filter((c) => !dropped.has(c.id));
|
|
331
332
|
}
|
|
332
|
-
|
|
333
|
-
// ../composition/src/graphics-plan/instantiateMotif.ts
|
|
334
|
-
var MotifInstantiationError = class extends Error {
|
|
335
|
-
};
|
|
336
|
-
var SLOT_RE = /(<[^>]*\bdata-slot="([^"]+)"[^>]*>)([\s\S]*?)(<\/)/g;
|
|
337
|
-
var escapeHtml = (s) => s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
338
|
-
function instantiateMotif(motif, copy) {
|
|
339
|
-
if (motif.coverage !== "reproduced") {
|
|
340
|
-
throw new MotifInstantiationError(
|
|
341
|
-
`motif coverage is '${motif.coverage}' \u2014 only 'reproduced' skins instantiate; approximated/skipped motifs go to the designer`
|
|
342
|
-
);
|
|
343
|
-
}
|
|
344
|
-
if (motif.body.kind !== "card") {
|
|
345
|
-
throw new MotifInstantiationError(
|
|
346
|
-
`v1 instantiates card bodies only (got '${motif.body.kind}')`
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
const seen = /* @__PURE__ */ new Set();
|
|
350
|
-
const html = motif.body.html.replace(SLOT_RE, (_m, open, slot, inner, close) => {
|
|
351
|
-
if (/[<>]/.test(inner)) {
|
|
352
|
-
throw new MotifInstantiationError(
|
|
353
|
-
`slot '${slot}' contains nested markup \u2014 skins must keep slots text-only`
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
if (!(slot in copy)) {
|
|
357
|
-
throw new MotifInstantiationError(
|
|
358
|
-
`slot '${slot}' not filled \u2014 copy carries [${Object.keys(copy).join(", ")}]`
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
seen.add(slot);
|
|
362
|
-
return `${open}${escapeHtml(copy[slot])}${close}`;
|
|
363
|
-
});
|
|
364
|
-
for (const key of Object.keys(copy)) {
|
|
365
|
-
if (!seen.has(key)) {
|
|
366
|
-
throw new MotifInstantiationError(`copy has no slot '${key}' in the skin`);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
return { html, ...motif.body.tokens ? { tokens: motif.body.tokens } : {} };
|
|
370
|
-
}
|
|
371
333
|
export {
|
|
372
334
|
ContentBeat,
|
|
373
335
|
ContentPlan,
|
|
@@ -385,7 +347,6 @@ export {
|
|
|
385
347
|
GraphicsPlan,
|
|
386
348
|
LayoutElement,
|
|
387
349
|
LayoutPlan,
|
|
388
|
-
MotifInstantiationError,
|
|
389
350
|
MotionElement,
|
|
390
351
|
MotionPlan,
|
|
391
352
|
PlanRect,
|
|
@@ -393,7 +354,6 @@ export {
|
|
|
393
354
|
ZPlane,
|
|
394
355
|
compileBeat,
|
|
395
356
|
compileGraphicsPlan,
|
|
396
|
-
instantiateMotif,
|
|
397
357
|
parseStatValue,
|
|
398
358
|
planMotion,
|
|
399
359
|
rectsOverlap,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
canonicalJSON,
|
|
3
2
|
checkClipKeyframes,
|
|
4
3
|
checkComposition,
|
|
5
4
|
checkIdCollisions,
|
|
@@ -7,11 +6,9 @@ import {
|
|
|
7
6
|
checkSceneMarkerPartition,
|
|
8
7
|
collectClipPlacementIssues,
|
|
9
8
|
compositionDuration,
|
|
10
|
-
etag
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
sourceFrame
|
|
14
|
-
} from "../chunk-TBHSOEYK.js";
|
|
9
|
+
etag
|
|
10
|
+
} from "../chunk-PLWDYWK6.js";
|
|
11
|
+
import "../chunk-XHMKPTHV.js";
|
|
15
12
|
import {
|
|
16
13
|
InvariantError,
|
|
17
14
|
checkClipDurationMatchesTrim,
|
|
@@ -23,10 +20,9 @@ import {
|
|
|
23
20
|
checkTransitions,
|
|
24
21
|
isSourceKindCompatible
|
|
25
22
|
} from "../chunk-T56BK7NS.js";
|
|
26
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-U67V476Y.js";
|
|
27
24
|
export {
|
|
28
25
|
InvariantError,
|
|
29
|
-
canonicalJSON,
|
|
30
26
|
checkClipDurationMatchesTrim,
|
|
31
27
|
checkClipKeyframes,
|
|
32
28
|
checkClipSourceTrackKind,
|
|
@@ -42,8 +38,5 @@ export {
|
|
|
42
38
|
collectClipPlacementIssues,
|
|
43
39
|
compositionDuration,
|
|
44
40
|
etag,
|
|
45
|
-
isSourceKindCompatible
|
|
46
|
-
otioFrames,
|
|
47
|
-
otioRationalTime,
|
|
48
|
-
sourceFrame
|
|
41
|
+
isSourceKindCompatible
|
|
49
42
|
};
|