@magmonium/cli 0.8.16 → 0.8.18

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.
Files changed (34) hide show
  1. package/bin/cli.js +2 -0
  2. package/bin/commands/assets.js +42 -0
  3. package/bin/commands/fix-i18n.js +27 -12
  4. package/bin/commands/i18n-baseline.js +33 -0
  5. package/codegen/index.js +585 -51
  6. package/package.json +1 -1
  7. package/src/compilers/logo-compiler.d.ts.map +1 -1
  8. package/src/compilers/logo-compiler.js +3 -1
  9. package/src/compilers/logo-compiler.js.map +1 -1
  10. package/src/compilers/web-component/lib/web-component-wrapper.d.ts.map +1 -1
  11. package/src/compilers/web-component/lib/web-component-wrapper.js +62 -48
  12. package/src/compilers/web-component/lib/web-component-wrapper.js.map +1 -1
  13. package/src/compilers/web-component/model/type.d.ts +1 -0
  14. package/src/compilers/web-component/model/type.d.ts.map +1 -1
  15. package/src/index.d.ts +1 -0
  16. package/src/index.d.ts.map +1 -1
  17. package/src/index.js +1 -0
  18. package/src/index.js.map +1 -1
  19. package/src/utils/ai-provider-translator.d.ts +10 -5
  20. package/src/utils/ai-provider-translator.d.ts.map +1 -1
  21. package/src/utils/ai-provider-translator.js +37 -31
  22. package/src/utils/ai-provider-translator.js.map +1 -1
  23. package/src/utils/app-logo-svg.d.ts +4 -3
  24. package/src/utils/app-logo-svg.d.ts.map +1 -1
  25. package/src/utils/app-logo-svg.js +30 -4
  26. package/src/utils/app-logo-svg.js.map +1 -1
  27. package/src/utils/i18n-fixer.d.ts +2 -3
  28. package/src/utils/i18n-fixer.d.ts.map +1 -1
  29. package/src/utils/i18n-fixer.js +24 -56
  30. package/src/utils/i18n-fixer.js.map +1 -1
  31. package/src/utils/i18n-gate.d.ts +28 -0
  32. package/src/utils/i18n-gate.d.ts.map +1 -0
  33. package/src/utils/i18n-gate.js +66 -0
  34. package/src/utils/i18n-gate.js.map +1 -0
package/codegen/index.js CHANGED
@@ -23,6 +23,8 @@ __export(index_exports, {
23
23
  ALL_VARIANT: () => ALL_VARIANT,
24
24
  API_SEGMENT: () => API_SEGMENT,
25
25
  APP_CONFIG_SOURCE: () => APP_CONFIG_SOURCE,
26
+ APP_LOGO_VALUE_ASSET: () => APP_LOGO_VALUE_ASSET,
27
+ APP_LOGO_VALUE_SLOTS: () => APP_LOGO_VALUE_SLOTS,
26
28
  APP_MODES: () => APP_MODES,
27
29
  APP_RELEASE_DOC: () => APP_RELEASE_DOC,
28
30
  APP_ROOT_IMPORTS: () => APP_ROOT_IMPORTS,
@@ -241,6 +243,7 @@ __export(index_exports, {
241
243
  PATTERN_MESSAGE_CONFIG_KEY: () => PATTERN_MESSAGE_CONFIG_KEY,
242
244
  PATTERN_NAME_MAX_LENGTH: () => PATTERN_NAME_MAX_LENGTH,
243
245
  PATTERN_NAME_PATTERN: () => PATTERN_NAME_PATTERN,
246
+ PLUGIN_HARNESS_PATH: () => PLUGIN_HARNESS_PATH,
244
247
  PLUGIN_INPUTS_KEY: () => PLUGIN_INPUTS_KEY,
245
248
  PLUGIN_LINK_KEY: () => PLUGIN_LINK_KEY,
246
249
  PLUGIN_OUTPUTS_KEY: () => PLUGIN_OUTPUTS_KEY,
@@ -250,7 +253,9 @@ __export(index_exports, {
250
253
  QUANTIFIER_LABELS: () => QUANTIFIER_LABELS,
251
254
  RANGED_SURFACE_KEYS: () => RANGED_SURFACE_KEYS,
252
255
  RAW_CONFIG_SOURCE: () => RAW_CONFIG_SOURCE,
256
+ REMOTE_APP_COLOR_KEY: () => REMOTE_APP_COLOR_KEY,
253
257
  REMOTE_BETA_KEY: () => REMOTE_BETA_KEY,
258
+ REMOTE_GLYPH_KEY: () => REMOTE_GLYPH_KEY,
254
259
  REMOTE_MOUNT_KEY: () => REMOTE_MOUNT_KEY,
255
260
  REMOTE_MOUNT_NAME_KEY: () => REMOTE_MOUNT_NAME_KEY,
256
261
  REMOTE_URL_SLOT_KEY: () => REMOTE_URL_SLOT_KEY,
@@ -369,6 +374,7 @@ __export(index_exports, {
369
374
  assetRoot: () => assetRoot,
370
375
  assignableVariantIds: () => assignableVariantIds,
371
376
  authoredArgs: () => authoredArgs,
377
+ authoredAssetPaths: () => authoredAssetPaths,
372
378
  backfilledInstanceArgs: () => backfilledInstanceArgs,
373
379
  baseOutputName: () => baseOutputName,
374
380
  bindablePaths: () => bindablePaths,
@@ -399,6 +405,7 @@ __export(index_exports, {
399
405
  cacheMethodReads: () => cacheMethodReads,
400
406
  callArgBindingOptions: () => callArgBindingOptions,
401
407
  callArgBindingRead: () => callArgBindingRead,
408
+ callArgCoverage: () => callArgCoverage,
402
409
  callArgEventAllowed: () => callArgEventAllowed,
403
410
  callArgEventKey: () => callArgEventKey,
404
411
  callArgEventMismatch: () => callArgEventMismatch,
@@ -487,12 +494,16 @@ __export(index_exports, {
487
494
  collectTranslationAssets: () => collectTranslationAssets,
488
495
  collectTypedComponentInputs: () => collectTypedComponentInputs,
489
496
  columnNeedsId: () => columnNeedsId,
497
+ compactControlGroups: () => compactControlGroups,
498
+ compactControlMap: () => compactControlMap,
490
499
  comparisonSource: () => comparisonSource,
491
500
  componentInputShapeIds: () => componentInputShapeIds,
492
501
  componentInputTsType: () => componentInputTsType,
493
502
  composeLabelValue: () => composeLabelValue,
494
503
  computeError: () => computeError,
495
504
  computeId: () => computeId,
505
+ computeInputMemberError: () => computeInputMemberError,
506
+ computeInputPaths: () => computeInputPaths,
496
507
  computeIsRead: () => computeIsRead,
497
508
  computeMemberRead: () => computeMemberRead,
498
509
  computeNameTaken: () => computeNameTaken,
@@ -808,6 +819,7 @@ __export(index_exports, {
808
819
  isBaseVariantId: () => isBaseVariantId,
809
820
  isBindingInScope: () => isBindingInScope,
810
821
  isBooleanStateProperty: () => isBooleanStateProperty,
822
+ isBornNamed: () => isBornNamed,
811
823
  isBranchFamily: () => isBranchFamily,
812
824
  isBusyVariantId: () => isBusyVariantId,
813
825
  isCacheMethod: () => isCacheMethod,
@@ -1034,8 +1046,10 @@ __export(index_exports, {
1034
1046
  moveMenuGroup: () => moveMenuGroup,
1035
1047
  moveMenuItem: () => moveMenuItem,
1036
1048
  moveOutputArm: () => moveOutputArm,
1049
+ moveOutputBlock: () => moveOutputBlock,
1037
1050
  moveOutputCall: () => moveOutputCall,
1038
1051
  moveOutputCallRows: () => moveOutputCallRows,
1052
+ moveOutputCallTo: () => moveOutputCallTo,
1039
1053
  moveRuleNode: () => moveRuleNode,
1040
1054
  moveSpacingToStyleDirectives: () => moveSpacingToStyleDirectives,
1041
1055
  namedShapes: () => namedShapes,
@@ -1161,6 +1175,7 @@ __export(index_exports, {
1161
1175
  outputCallKey: () => outputCallKey,
1162
1176
  outputCallKeys: () => outputCallKeys,
1163
1177
  outputCallLabel: () => outputCallLabel,
1178
+ outputGroupHoldsBlocks: () => outputGroupHoldsBlocks,
1164
1179
  outputLinkBindingTargets: () => outputLinkBindingTargets,
1165
1180
  outputLinkMemberName: () => outputLinkMemberName,
1166
1181
  outputLinkParamType: () => outputLinkParamType,
@@ -1241,6 +1256,7 @@ __export(index_exports, {
1241
1256
  pruneFormEventReads: () => pruneFormEventReads,
1242
1257
  pruneMappings: () => pruneMappings,
1243
1258
  pruneMenuActions: () => pruneMenuActions,
1259
+ pruneOrphanMessageBindings: () => pruneOrphanMessageBindings,
1244
1260
  pruneOutputCalls: () => pruneOutputCalls,
1245
1261
  pruneOutputLinkArgs: () => pruneOutputLinkArgs,
1246
1262
  pruneUnknownShapeRefs: () => pruneUnknownShapeRefs,
@@ -1289,6 +1305,7 @@ __export(index_exports, {
1289
1305
  removeMenuGroup: () => removeMenuGroup,
1290
1306
  removeMenuItem: () => removeMenuItem,
1291
1307
  removeOutputArm: () => removeOutputArm,
1308
+ removeOutputArmKeepingBlocks: () => removeOutputArmKeepingBlocks,
1292
1309
  removeOutputCall: () => removeOutputCall,
1293
1310
  removeRuleNode: () => removeRuleNode,
1294
1311
  removeScreenOutputCall: () => removeScreenOutputCall,
@@ -1543,6 +1560,7 @@ __export(index_exports, {
1543
1560
  textSourcesFor: () => textSourcesFor,
1544
1561
  themeFileSource: () => themeFileSource,
1545
1562
  themeVarsStyle: () => themeVarsStyle,
1563
+ tidyOutputArms: () => tidyOutputArms,
1546
1564
  tierOf: () => tierOf,
1547
1565
  timerError: () => timerError,
1548
1566
  timerPropertyIds: () => timerPropertyIds,
@@ -1678,6 +1696,7 @@ var ControlType = /* @__PURE__ */ ((ControlType2) => {
1678
1696
  ControlType2["ICON"] = "icon";
1679
1697
  ControlType2["NAV_HEADER"] = "nav_header";
1680
1698
  ControlType2["LOGO"] = "logo";
1699
+ ControlType2["APP_LOGO"] = "app_logo";
1681
1700
  ControlType2["IMG"] = "img";
1682
1701
  ControlType2["DOC"] = "doc";
1683
1702
  ControlType2["USER"] = "user";
@@ -1885,16 +1904,21 @@ document \u2014 there is one source and two places it is read.
1885
1904
 
1886
1905
  ## Configure before your first release
1887
1906
 
1888
- Register the app in the Magmonium Store first \u2014 that is what mints its app id.
1907
+ Register the app in the Magmonium Store first \u2014 that is what mints its app id \u2014
1908
+ and link it in One UI, so every Push writes that id into \`.magmonium/index.json\`.
1909
+ CD reads the app id from \`appTarget.appId\` there, and the backend from
1910
+ \`appTarget.environment.prod.backendUrl\`.
1911
+
1889
1912
  Your deploy token is your own, not the app's: rotate it once from the Store
1890
- and reuse it for every app you own or collaborate on. Then, in **Settings \u2192 Secrets and variables \u2192 Actions**:
1913
+ and reuse it for every app you own or collaborate on. It is the one secret, in
1914
+ **Settings \u2192 Secrets and variables \u2192 Actions**:
1891
1915
 
1892
1916
  | Secret | Value |
1893
1917
  | --- | --- |
1894
- | \`MAG_ENDPOINT\` | Base URL of the Magmonium backend, no trailing slash |
1895
- | \`MAG_APP_ID\` | The Store's id for this app |
1896
1918
  | \`MAG_DEPLOY_TOKEN\` | Your personal deploy token |
1897
1919
 
1920
+ An app made by Extract Plugin has it set for you.
1921
+
1898
1922
  ## CI
1899
1923
 
1900
1924
  \`.github/workflows/ci.yml\`, on a pull request into \`main\` and nothing else.
@@ -1910,9 +1934,9 @@ without merging.
1910
1934
 
1911
1935
  It deploys **only when that merge changed \`version:\` in
1912
1936
  \`mag_assets/remote/<app>.yml\`**. Merging is not a release; bumping the version
1913
- is. That gate is also why an unconfigured scaffold is quiet rather than broken:
1914
- seeded at \`0.0.1\`, nothing fires until you have registered, set the three
1915
- secrets, and released.
1937
+ is. The first merge into \`main\` is a release all the same: \`main\` has no
1938
+ manifest yet, so \`version:\` goes from nothing to \`0.0.1\` and CD deploys it.
1939
+ Register, link and set \`MAG_DEPLOY_TOKEN\` before that merge.
1916
1940
 
1917
1941
  To release:
1918
1942
 
@@ -2935,6 +2959,7 @@ var SHARED_ICONS = [
2935
2959
  "wallet_shareholder",
2936
2960
  "wand",
2937
2961
  "wifi",
2962
+ "wrench",
2938
2963
  "x",
2939
2964
  "zap"
2940
2965
  ];
@@ -2942,6 +2967,68 @@ var SHARED_ICONS = [
2942
2967
  // libs/one/src/lib/shared/lib/app-identity/app-logo-icon.ts
2943
2968
  var APP_LOGO_ICON = "app_logo";
2944
2969
 
2970
+ // libs/one/src/lib/shared/lib/app-identity/logo-glyph.ts
2971
+ var LOGO_GLYPH_MAX_BYTES = 16 * 1024;
2972
+ var APP_COLOR = /^#[0-9a-fA-F]{6}$/;
2973
+ var normalizeAppColor = (value) => APP_COLOR.test(value.trim()) ? value.trim().toLowerCase() : void 0;
2974
+ var logoGlyphMaskUrl = (svg) => `url("data:image/svg+xml;utf8,${encodeURIComponent(svg)}")`;
2975
+
2976
+ // libs/one/src/lib/shared/lib/app-identity/splash.ts
2977
+ var SPLASH_ID = "m-splash";
2978
+ var escapeHtml = (value) => value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
2979
+ var splashHtml = ({ appColor, glyph, link }) => {
2980
+ const color = normalizeAppColor(appColor) ?? "#0f172a";
2981
+ const mark = glyph?.trim() ? `<div class="${SPLASH_ID}__glyph"></div>` : `<div class="${SPLASH_ID}__letter">${escapeHtml(link.trim().charAt(0).toUpperCase())}</div>`;
2982
+ const mask = glyph?.trim() ? `
2983
+ #${SPLASH_ID} .${SPLASH_ID}__glyph {
2984
+ width: 100%;
2985
+ height: 100%;
2986
+ background: #fff;
2987
+ -webkit-mask: ${logoGlyphMaskUrl(glyph.trim())} center / contain no-repeat;
2988
+ mask: ${logoGlyphMaskUrl(glyph.trim())} center / contain no-repeat;
2989
+ }` : "";
2990
+ return ` <div id="${SPLASH_ID}">
2991
+ <div class="${SPLASH_ID}__mark" aria-hidden="true">${mark}</div>
2992
+ <style>
2993
+ #${SPLASH_ID} {
2994
+ position: fixed;
2995
+ inset: 0;
2996
+ display: flex;
2997
+ align-items: center;
2998
+ justify-content: center;
2999
+ background: ${color};
3000
+ z-index: 99999;
3001
+ transition: opacity 0.35s ease, visibility 0.35s ease;
3002
+ }
3003
+ #${SPLASH_ID}.hidden {
3004
+ opacity: 0;
3005
+ visibility: hidden;
3006
+ pointer-events: none;
3007
+ }
3008
+ #${SPLASH_ID} .${SPLASH_ID}__mark {
3009
+ display: flex;
3010
+ align-items: center;
3011
+ justify-content: center;
3012
+ width: 72px;
3013
+ height: 72px;
3014
+ animation: m-splash-breathe 1.6s ease-in-out infinite;
3015
+ }${mask}
3016
+ #${SPLASH_ID} .${SPLASH_ID}__letter {
3017
+ color: #fff;
3018
+ font: 700 56px/1 system-ui, sans-serif;
3019
+ }
3020
+ @keyframes m-splash-breathe {
3021
+ 0%, 100% { opacity: 1; transform: scale(1); }
3022
+ 50% { opacity: 0.55; transform: scale(0.93); }
3023
+ }
3024
+ @media (prefers-reduced-motion: reduce) {
3025
+ #${SPLASH_ID} .${SPLASH_ID}__mark { animation: none; }
3026
+ }
3027
+ </style>
3028
+ </div>
3029
+ `;
3030
+ };
3031
+
2945
3032
  // libs/one/src/lib/shared/ui/doc/doc-style.ts
2946
3033
  var DEFAULT_DOC_VARIANT = "plain";
2947
3034
  var DEFAULT_DOC_DENSITY = "default";
@@ -3109,6 +3196,7 @@ var CONTROL_RELATIONSHIPS = {
3109
3196
  "text" /* TEXT_OUTPUT */,
3110
3197
  "icon" /* ICON */,
3111
3198
  "logo" /* LOGO */,
3199
+ "app_logo" /* APP_LOGO */,
3112
3200
  "img" /* IMG */,
3113
3201
  "doc" /* DOC */,
3114
3202
  "remote" /* REMOTE */,
@@ -3161,6 +3249,7 @@ var CONTROL_RELATIONSHIPS = {
3161
3249
  "text" /* TEXT_OUTPUT */,
3162
3250
  "icon" /* ICON */,
3163
3251
  "logo" /* LOGO */,
3252
+ "app_logo" /* APP_LOGO */,
3164
3253
  "img" /* IMG */,
3165
3254
  "user" /* USER */,
3166
3255
  "stat" /* STAT */,
@@ -3181,6 +3270,7 @@ var CONTROL_RELATIONSHIPS = {
3181
3270
  "text" /* TEXT_OUTPUT */,
3182
3271
  "icon" /* ICON */,
3183
3272
  "logo" /* LOGO */,
3273
+ "app_logo" /* APP_LOGO */,
3184
3274
  "img" /* IMG */,
3185
3275
  "doc" /* DOC */,
3186
3276
  "remote" /* REMOTE */,
@@ -3211,6 +3301,7 @@ var CONTROL_RELATIONSHIPS = {
3211
3301
  "text" /* TEXT_OUTPUT */,
3212
3302
  "icon" /* ICON */,
3213
3303
  "logo" /* LOGO */,
3304
+ "app_logo" /* APP_LOGO */,
3214
3305
  "img" /* IMG */,
3215
3306
  "doc" /* DOC */,
3216
3307
  "remote" /* REMOTE */,
@@ -3245,6 +3336,7 @@ var CONTROL_RELATIONSHIPS = {
3245
3336
  "text" /* TEXT_OUTPUT */,
3246
3337
  "icon" /* ICON */,
3247
3338
  "logo" /* LOGO */,
3339
+ "app_logo" /* APP_LOGO */,
3248
3340
  "img" /* IMG */,
3249
3341
  "doc" /* DOC */,
3250
3342
  "remote" /* REMOTE */,
@@ -3275,6 +3367,7 @@ var CONTROL_RELATIONSHIPS = {
3275
3367
  "text" /* TEXT_OUTPUT */,
3276
3368
  "icon" /* ICON */,
3277
3369
  "logo" /* LOGO */,
3370
+ "app_logo" /* APP_LOGO */,
3278
3371
  "img" /* IMG */,
3279
3372
  "doc" /* DOC */,
3280
3373
  "remote" /* REMOTE */,
@@ -3338,6 +3431,7 @@ var CONTROL_RELATIONSHIPS = {
3338
3431
  "text" /* TEXT_OUTPUT */,
3339
3432
  "icon" /* ICON */,
3340
3433
  "logo" /* LOGO */,
3434
+ "app_logo" /* APP_LOGO */,
3341
3435
  "img" /* IMG */,
3342
3436
  "doc" /* DOC */,
3343
3437
  "remote" /* REMOTE */,
@@ -3398,6 +3492,8 @@ var CONTROL_RELATIONSHIPS = {
3398
3492
  ["icon" /* ICON */]: [],
3399
3493
  // Same leaf rule as an Icon — a brand mark is content, not structure.
3400
3494
  ["logo" /* LOGO */]: [],
3495
+ // A leaf for the Logo's reason: an AppLogo is content, not structure.
3496
+ ["app_logo" /* APP_LOGO */]: [],
3401
3497
  ["doc" /* DOC */]: [],
3402
3498
  ["remote" /* REMOTE */]: [],
3403
3499
  ["plugin" /* PLUGIN */]: [],
@@ -3458,6 +3554,7 @@ var isSectionHeaderSlotFamily = (type) => type === "section_header_label" /* SEC
3458
3554
  var isSlotFamily = (type) => isStatSlotFamily(type) || isSectionHeaderSlotFamily(type);
3459
3555
  var isTaglessFamily = (type) => isBranchFamily(type) || isRepeatFamily(type);
3460
3556
  var isBaglessControl = (type) => type === "screen" /* SCREEN */ || type === "section_table_row" /* SECTION_TABLE_ROW */ || type === "section_table_cell" /* SECTION_TABLE_CELL */ || type === "router_outlet" /* ROUTER_OUTLET */ || type === "nav_header" /* NAV_HEADER */ || type === "content" /* CONTENT */ || type === "root" /* ROOT */;
3557
+ var isBornNamed = (type) => !isTaglessFamily(type) && !isSlotFamily(type) && type !== "section_table_row" /* SECTION_TABLE_ROW */ && type !== "section_table_cell" /* SECTION_TABLE_CELL */;
3461
3558
  var DEFAULT_ARM_KIND = "branch";
3462
3559
  var ARM_KINDS = ["branch", "default"];
3463
3560
  var armKind = (control) => control?.armKind ?? DEFAULT_ARM_KIND;
@@ -3639,6 +3736,7 @@ var OWN_DIRECTIVES = {
3639
3736
  ["text" /* TEXT_OUTPUT */]: ["routerLink"],
3640
3737
  ["icon" /* ICON */]: ["routerLink"],
3641
3738
  ["logo" /* LOGO */]: ["routerLink"],
3739
+ ["app_logo" /* APP_LOGO */]: ["routerLink"],
3642
3740
  // A document carries no directive: it is prose, not a link and not a target.
3643
3741
  ["doc" /* DOC */]: [],
3644
3742
  ["remote" /* REMOTE */]: [],
@@ -3798,6 +3896,8 @@ var CONTROL_LABEL = {
3798
3896
  ["text" /* TEXT_OUTPUT */]: "text",
3799
3897
  ["icon" /* ICON */]: "icon",
3800
3898
  ["logo" /* LOGO */]: "logo",
3899
+ // Not `app-logo`: a palette chip needs a key of its own.
3900
+ ["app_logo" /* APP_LOGO */]: "app-logo-control",
3801
3901
  ["img" /* IMG */]: "img",
3802
3902
  ["doc" /* DOC */]: "doc",
3803
3903
  ["remote" /* REMOTE */]: "remote-control",
@@ -3861,6 +3961,7 @@ var CONTROL_ICON = {
3861
3961
  ["text" /* TEXT_OUTPUT */]: "control_text",
3862
3962
  ["icon" /* ICON */]: "control_icon",
3863
3963
  ["logo" /* LOGO */]: "control_logo",
3964
+ ["app_logo" /* APP_LOGO */]: "control_logo",
3864
3965
  ["img" /* IMG */]: "control_img",
3865
3966
  // Reuse the code-file glyph until document artwork joins the shared set.
3866
3967
  ["doc" /* DOC */]: "control_text",
@@ -4068,6 +4169,12 @@ var CONTROL_CODEGEN = {
4068
4169
  // `fill`, `width`, `height`, `priority`, `sizes`, `ngSrcset`, `remote`,
4069
4170
  // `data` and `dataType` as individual inputs rather than a `config` bag, so
4070
4171
  // there is nothing a `name="<id>"` could resolve.
4172
+ // Folderless for the Logo's reason — AppLogoComponent takes `link`,
4173
+ // `variant`, `tone` and `size` as individual inputs.
4174
+ ["app_logo" /* APP_LOGO */]: {
4175
+ tag: "m-app-logo",
4176
+ component: "AppLogoComponent"
4177
+ },
4071
4178
  ["img" /* IMG */]: {
4072
4179
  tag: "m-img",
4073
4180
  component: "ImgComponent"
@@ -6473,6 +6580,7 @@ var FALLBACK_SLOTS = [
6473
6580
  ];
6474
6581
  var IMG_VALUE_SLOTS = [BINDING_SLOT.src];
6475
6582
  var REMOTE_VALUE_SLOTS = [BINDING_SLOT.link, BINDING_SLOT.path];
6583
+ var APP_LOGO_VALUE_SLOTS = [BINDING_SLOT.link];
6476
6584
  var AUDIENCE_PICKER_VALUE_SLOTS = [
6477
6585
  BINDING_SLOT.audience,
6478
6586
  BINDING_SLOT.source
@@ -6558,6 +6666,9 @@ var REMOTE_VALUE_ASSET = {
6558
6666
  [BINDING_SLOT.link]: "remote_link",
6559
6667
  [BINDING_SLOT.path]: "remote_path"
6560
6668
  };
6669
+ var APP_LOGO_VALUE_ASSET = {
6670
+ [BINDING_SLOT.link]: "app_logo_link"
6671
+ };
6561
6672
  var REMOTE_VALUE_LABEL = {
6562
6673
  [BINDING_SLOT.link]: "remote-link",
6563
6674
  [BINDING_SLOT.path]: "remote-path"
@@ -8527,6 +8638,16 @@ var rowComplete = (row, target, payload, fieldNames, constants, functions, scope
8527
8638
  }
8528
8639
  return void 0;
8529
8640
  };
8641
+ function callArgCoverage(args, rows) {
8642
+ const leaves = requiredCallArgLeaves(args);
8643
+ const mapped = rows.map((row) => targetKey(row.target));
8644
+ return {
8645
+ covered: leaves.filter(
8646
+ (leaf) => mapped.some((key2) => covers(key2, targetKey(leaf.path)))
8647
+ ).length,
8648
+ total: leaves.length
8649
+ };
8650
+ }
8530
8651
  function validateCallArgs(args, rows, payload, fieldNames = [], constants = {}, functions = {}, scope = {}) {
8531
8652
  const targets = callArgTargets(args);
8532
8653
  const keys = targets.map((t) => targetKey(t.target));
@@ -8938,6 +9059,20 @@ function moveOutputCall(control, key2, delta) {
8938
9059
  ])
8939
9060
  );
8940
9061
  }
9062
+ function moveOutputCallTo(control, key2, toGroup) {
9063
+ if (outputCallGroupKey(key2) === toGroup) return { control, key: key2 };
9064
+ const bag = callRowsAt(control, key2);
9065
+ const left = removeOutputCall(control, key2);
9066
+ const opensGroup = !isOutputCallBound(left, toGroup) && !Object.keys(callRowsAt(left, toGroup)).length && !outputCallIds(left, toGroup).length;
9067
+ if (opensGroup) {
9068
+ return { control: writeCallRows(left, [[toGroup, bag]]), key: toGroup };
9069
+ }
9070
+ const minted = mintOutputCall(left, toGroup);
9071
+ return {
9072
+ control: writeCallRows(minted.control, [[minted.key, bag]]),
9073
+ key: minted.key
9074
+ };
9075
+ }
8941
9076
  function moveOutputCallRows(control, from, to) {
8942
9077
  const ids = outputCallIds(control, from);
8943
9078
  if (!ids.length) return control;
@@ -10016,6 +10151,103 @@ function removeOutputArm(control, output, armId) {
10016
10151
  );
10017
10152
  return clearRows(dropped, outputArmKey(output, armId));
10018
10153
  }
10154
+ var BLOCK_LIST_MAPS = {
10155
+ "state-write": "outputWrites",
10156
+ "screen-write": "outputScreenWrites",
10157
+ emit: "outputEmits"
10158
+ };
10159
+ var BLOCK_ONE_MAPS = {
10160
+ open: "outputOpens",
10161
+ navigate: "outputNavs",
10162
+ "new-tab": "outputNewTabs"
10163
+ };
10164
+ var writeKey = (rows, key2, value) => {
10165
+ const { [key2]: _dropped, ...rest } = rows ?? {};
10166
+ const next = value === void 0 ? rest : { ...rest, [key2]: value };
10167
+ return Object.keys(next).length ? next : void 0;
10168
+ };
10169
+ function moveOutputBlock(control, from, block2, to) {
10170
+ if (from === to) return control;
10171
+ if (block2.kind === "call") {
10172
+ const key2 = outputCallKeys(control, from)[block2.index];
10173
+ if (!key2) return void 0;
10174
+ return moveOutputCallTo(control, key2, to).control;
10175
+ }
10176
+ if (block2.kind in BLOCK_LIST_MAPS) {
10177
+ const map2 = BLOCK_LIST_MAPS[block2.kind];
10178
+ const all2 = control[map2];
10179
+ const rows = all2?.[from] ?? [];
10180
+ const row2 = rows[block2.index];
10181
+ if (row2 === void 0) return void 0;
10182
+ const left = rows.filter((_, index) => index !== block2.index);
10183
+ const withLeft = writeKey(all2, from, left.length ? left : void 0);
10184
+ return {
10185
+ ...control,
10186
+ [map2]: writeKey(withLeft, to, [...all2?.[to] ?? [], row2])
10187
+ };
10188
+ }
10189
+ const map = BLOCK_ONE_MAPS[block2.kind];
10190
+ const all = control[map];
10191
+ const row = all?.[from];
10192
+ if (!row) return void 0;
10193
+ const destinations = block2.kind === "new-tab" ? [map] : ["outputOpens", "outputNavs"];
10194
+ if (destinations.some(
10195
+ (one) => control[one]?.[to]
10196
+ )) {
10197
+ return void 0;
10198
+ }
10199
+ return {
10200
+ ...control,
10201
+ [map]: writeKey(writeKey(all, from, void 0), to, row)
10202
+ };
10203
+ }
10204
+ var outputGroupHoldsBlocks = (control, key2) => Object.keys(rowsAt(control, key2)).length > 0 || (control.outputEmits?.[key2]?.length ?? 0) > 0 || outputCallIds(control, key2).length > 0;
10205
+ function tidyOutputArms(control, output) {
10206
+ let next = control;
10207
+ for (const arm of outputArms(next, output)) {
10208
+ const key2 = outputArmKey(output, arm.id);
10209
+ if (outputArmMode(arm) === "condition" && !outputGroupHoldsBlocks(next, key2)) {
10210
+ next = removeOutputArm(next, output, arm.id);
10211
+ }
10212
+ }
10213
+ const folds = outputArms(next, output).filter(
10214
+ (arm) => outputArmMode(arm) === "always" || outputArmMode(arm) === "default" && !scannedOutputArms(next, output).length
10215
+ );
10216
+ for (const arm of folds) {
10217
+ next = foldOutputGroup(next, outputArmKey(output, arm.id), output);
10218
+ if (!outputGroupHoldsBlocks(next, outputArmKey(output, arm.id))) {
10219
+ next = removeOutputArm(next, output, arm.id);
10220
+ }
10221
+ }
10222
+ return next;
10223
+ }
10224
+ var foldOutputGroup = (control, from, to) => {
10225
+ let next = control;
10226
+ const tryMove = (block2) => {
10227
+ const moved = moveOutputBlock(next, from, block2, to);
10228
+ if (!moved) return false;
10229
+ next = moved;
10230
+ return true;
10231
+ };
10232
+ const firstCallHeld = isOutputCallBound(next, from) || !!next.outputArgs?.[from] || !!next.outputOutcomes?.[from];
10233
+ let calls = outputCallIds(next, from).length + (firstCallHeld ? 1 : 0);
10234
+ while (calls-- > 0) tryMove({ kind: "call", index: 0 });
10235
+ Object.keys(BLOCK_LIST_MAPS).forEach(
10236
+ (kind) => {
10237
+ const lists = next[BLOCK_LIST_MAPS[kind]];
10238
+ let left = lists?.[from]?.length ?? 0;
10239
+ while (left-- > 0) tryMove({ kind, index: 0 });
10240
+ }
10241
+ );
10242
+ Object.keys(BLOCK_ONE_MAPS).forEach(
10243
+ (kind) => void tryMove({ kind, index: 0 })
10244
+ );
10245
+ return next;
10246
+ };
10247
+ function removeOutputArmKeepingBlocks(control, output, armId) {
10248
+ const folded = foldOutputGroup(control, outputArmKey(output, armId), output);
10249
+ return tidyOutputArms(removeOutputArm(folded, output, armId), output);
10250
+ }
10019
10251
  var newOutputArmCheck = (source = "event") => ({ id: genId(), source, operator: "==" });
10020
10252
  var outputArmReadsVariable = (control, variableId) => everyOutputArmCheck(control).some(
10021
10253
  (check) => check.source === "binding" && check.binding?.root.kind === "screen_variable" && check.binding.root.id === variableId
@@ -12422,7 +12654,9 @@ function loadAppTarget(storage) {
12422
12654
  appName: asString(stored.appName),
12423
12655
  appPath: asString(stored.appPath),
12424
12656
  environment: loadEnvironment(stored, legacySocketFromWc(storage)),
12425
- ...typeof stored.appId === "string" && stored.appId ? { appId: stored.appId } : {}
12657
+ ...typeof stored.appId === "string" && stored.appId ? { appId: stored.appId } : {},
12658
+ // A Plugin App reopens as one; any other word reads as an ordinary app.
12659
+ ...stored.kind === "plugin" ? { kind: "plugin" } : {}
12426
12660
  };
12427
12661
  }
12428
12662
  function saveAppTarget(storage, target) {
@@ -13135,6 +13369,45 @@ function computeTextPaths(computes, functions, shapes) {
13135
13369
  }
13136
13370
  return out;
13137
13371
  }
13372
+ function computeInputPaths(computes, functions, shapes) {
13373
+ const out = [];
13374
+ for (const compute of computes) {
13375
+ const fn = functions[compute.functionId];
13376
+ const name3 = compute.name.trim();
13377
+ if (!fn || !name3) continue;
13378
+ const walk = (member, label, dataType, cardinality, seen) => {
13379
+ out.push({ name: name3, member, label, dataType, cardinality });
13380
+ if (cardinality !== "one" || dataType?.type !== "shape") return;
13381
+ const shape = shapes[dataType.shapeId];
13382
+ if (!shape || seen.has(dataType.shapeId)) return;
13383
+ const next = new Set(seen).add(dataType.shapeId);
13384
+ for (const key2 of shape.keys) {
13385
+ walk(
13386
+ [...member, key2.id],
13387
+ `${label}.${key2.name}`,
13388
+ key2.dataType,
13389
+ key2.cardinality,
13390
+ next
13391
+ );
13392
+ }
13393
+ };
13394
+ walk([], name3, fn.returnType, fn.returnCardinality, /* @__PURE__ */ new Set());
13395
+ }
13396
+ return out;
13397
+ }
13398
+ function computeInputMemberError(method, functions, shapes) {
13399
+ for (const mapping of method.inputs) {
13400
+ if (mapping.source !== "compute" || !mapping.member?.length) continue;
13401
+ const compute = (method.computes ?? []).find(
13402
+ (c) => c.name === mapping.compute
13403
+ );
13404
+ const fn = compute && functions[compute.functionId];
13405
+ if (!fn || !computeMemberRead(fn, mapping.member, shapes)) {
13406
+ return "input-incomplete";
13407
+ }
13408
+ }
13409
+ return void 0;
13410
+ }
13138
13411
  function computeIsRead(method, name3) {
13139
13412
  const wanted = name3.trim();
13140
13413
  if (!wanted) return false;
@@ -13562,6 +13835,27 @@ function isUsableTranslation(sourceText, langText) {
13562
13835
  const repaired = repairTranslationMarkup(sourceText, langText);
13563
13836
  return !hasVariableDrift(variableDrift(sourceText, repaired)) && !hasLinkDrift(linkDrift(sourceText, repaired));
13564
13837
  }
13838
+ function pruneOrphanMessageBindings(control, translations) {
13839
+ const bindings = control.bindings;
13840
+ if (!bindings) return control;
13841
+ const named = /* @__PURE__ */ new Set();
13842
+ for (const configKey of TRANSLATION_CONFIG_KEYS) {
13843
+ const value = control.configs?.[configKey];
13844
+ const { key: key2 } = parseLabelValue(
13845
+ typeof value === "string" ? value : void 0
13846
+ );
13847
+ if (!key2) continue;
13848
+ const text2 = translations[key2]?.[SOURCE_LANG];
13849
+ if (text2 === void 0) return control;
13850
+ extractAllVariables(text2).forEach(({ name: name3 }) => named.add(name3));
13851
+ }
13852
+ const kept = Object.entries(bindings).filter(
13853
+ ([slot]) => !isMessageSlot(slot) || named.has(messageSlotName(slot))
13854
+ );
13855
+ if (kept.length === Object.keys(bindings).length) return control;
13856
+ const { bindings: _dropped, ...rest } = control;
13857
+ return kept.length ? { ...rest, bindings: Object.fromEntries(kept) } : rest;
13858
+ }
13565
13859
  function unfilledVariables(configValue, translations, samples, bound = []) {
13566
13860
  const { key: key2, params } = parseLabelValue(configValue);
13567
13861
  if (!key2) return [];
@@ -14164,11 +14458,24 @@ function modalConfigEntry(open, indent2) {
14164
14458
  ${keys.map((key2) => `${indent2} ${key2}`).join("\n")}
14165
14459
  ${indent2}},`;
14166
14460
  }
14167
- function mappingExpression(mapping, target, properties, shapes, functions, receiverOf = OWN_STORE) {
14461
+ function mappingExpression(mapping, target, properties, shapes, functions, computes, receiverOf = OWN_STORE) {
14168
14462
  let source;
14169
14463
  if (mapping.source === "args") source = `${mapping.arg}`;
14170
- else if (mapping.source === "compute") source = `compute.${mapping.compute}`;
14171
- else if (mapping.source === "fixed") {
14464
+ else if (mapping.source === "compute") {
14465
+ const compute = computes.find((c) => c.name === mapping.compute);
14466
+ const fn = compute && functions[compute.functionId];
14467
+ const absent = !!fn?.returnUndefined;
14468
+ const waits = absent && target.required;
14469
+ source = `compute.${mapping.compute}`;
14470
+ if (mapping.member?.length) {
14471
+ const member = fn ? computeMemberRead(fn, mapping.member, shapes) : void 0;
14472
+ if (!fn || !member) return void 0;
14473
+ const dot = absent && !waits ? "?." : ".";
14474
+ source += member.names.map((name3, at) => `${at === 0 && waits ? "!" : ""}${dot}${name3}`).join("");
14475
+ } else if (waits) {
14476
+ source += "!";
14477
+ }
14478
+ } else if (mapping.source === "fixed") {
14172
14479
  source = literalExpression(mapping.value ?? "", target.dataType);
14173
14480
  } else {
14174
14481
  source = statePathExpression(
@@ -14207,6 +14514,7 @@ function paramExpression(param, method, targets, properties, shapes, functions,
14207
14514
  properties,
14208
14515
  shapes,
14209
14516
  functions,
14517
+ method.computes ?? [],
14210
14518
  receiverOf
14211
14519
  );
14212
14520
  };
@@ -15282,6 +15590,24 @@ ${computeLines.map((line) => ` ${line}`).join("\n")}
15282
15590
  return { ${args.length ? `...${guardReceiver}, ` : ""}compute: { ${computes.map((compute) => compute.name).join(", ")} } };
15283
15591
  }),` : "";
15284
15592
  if (computes.length) emitsMap = true;
15593
+ const computeValueGuards = method.inputs.flatMap((mapping) => {
15594
+ if (mapping.source !== "compute" || !mapping.compute) return [];
15595
+ const target = targets.find(
15596
+ (t) => t.label === targetKey2(mapping.target) && t.required
15597
+ );
15598
+ if (!target) return [];
15599
+ const compute = computes.find((c) => c.name === mapping.compute);
15600
+ const fn = compute && functions[compute.functionId];
15601
+ if (!fn?.returnUndefined) return [];
15602
+ const read = `${COMPUTE_BAG}.${mapping.compute}`;
15603
+ return [
15604
+ target.cardinality === "many" ? `!!${read}?.length` : `${read} !== undefined`
15605
+ ];
15606
+ });
15607
+ const computeValueGuardBlock = computeValueGuards.length ? `
15608
+ filter(({ ${COMPUTE_BAG} }) => ${Array.from(
15609
+ new Set(computeValueGuards)
15610
+ ).join(" && ")}),` : "";
15285
15611
  const confirm = drawnConfirm(method);
15286
15612
  const confirmParams = {};
15287
15613
  for (const [slot, binding] of Object.entries(confirm?.params ?? {})) {
@@ -15360,7 +15686,7 @@ ${beforePersists.map((line) => ` ${line}`).join("\n")}
15360
15686
  version: op.version,
15361
15687
  segments: op.segments,
15362
15688
  args,
15363
- waits: guards.length > guardArgs.size || !!conditionBlock || !!computeGuardBlock || emitsOpen,
15689
+ waits: guards.length > guardArgs.size || !!conditionBlock || !!computeGuardBlock || !!computeValueGuardBlock || emitsOpen,
15364
15690
  ...debounceBlock && method.debounce ? { debounce: Math.round(method.debounce.seconds * 1e3) } : {},
15365
15691
  confirms: !!confirmBlock,
15366
15692
  ok: {
@@ -15392,7 +15718,7 @@ ${beforePersists.map((line) => ` ${line}`).join("\n")}
15392
15718
  // ends — `finalize` fires on success, on error and when a later call
15393
15719
  // replaces it, so the wait never outlives the request (ADR 0139).
15394
15720
  ` ${method.name}: rxMethod<${argType}>(
15395
- pipe(${debounceBlock}${guardBlock}${conditionBlock}${computeGuardBlock}${computeBlock}${confirmBlock}${beforeBlock}
15721
+ pipe(${debounceBlock}${guardBlock}${conditionBlock}${computeGuardBlock}${computeBlock}${computeValueGuardBlock}${confirmBlock}${beforeBlock}
15396
15722
  switchMap(${callArgName} => {${settleOnly ? `
15397
15723
  const { onSent, onSettled } = (input || {}) as { ${SETTLE_MEMBERS.join("; ")} };` : ""}
15398
15724
  onSent?.();
@@ -15403,7 +15729,7 @@ ${beforePersists.map((line) => ` ${line}`).join("\n")}
15403
15729
  )
15404
15730
  ),`
15405
15731
  ) : ` ${method.name}: rxMethod<${argType}>(
15406
- pipe(${debounceBlock}${guardBlock}${conditionBlock}${computeGuardBlock}${computeBlock}${confirmBlock}${beforeBlock}
15732
+ pipe(${debounceBlock}${guardBlock}${conditionBlock}${computeGuardBlock}${computeBlock}${computeValueGuardBlock}${confirmBlock}${beforeBlock}
15407
15733
  switchMap(${callArgName} =>
15408
15734
  ${apiCall}.pipe(${tapBlock}${catchBlock}
15409
15735
  )
@@ -17477,6 +17803,8 @@ var REMOTE_URL_SYNC_KEY = "urlSync";
17477
17803
  var REMOTE_URL_SLOT_KEY = "urlSlot";
17478
17804
  var REMOTE_MOUNT_KEY = "mount";
17479
17805
  var REMOTE_BETA_KEY = "beta";
17806
+ var REMOTE_GLYPH_KEY = "glyph";
17807
+ var REMOTE_APP_COLOR_KEY = "appColor";
17480
17808
  var remoteUrlModeOf = (configs) => {
17481
17809
  const sync = configs?.[REMOTE_URL_SYNC_KEY];
17482
17810
  if (sync === true) {
@@ -19065,6 +19393,10 @@ function bodyConfigs(node) {
19065
19393
  const path = String(configs["path"] ?? "").trim();
19066
19394
  const beta = configs[REMOTE_BETA_KEY] === true;
19067
19395
  const createMenu = configs["createMenu"] === true && urlMode !== "none";
19396
+ const glyph = String(configs[REMOTE_GLYPH_KEY] ?? "").trim();
19397
+ const appColor = normalizeAppColor(
19398
+ String(configs[REMOTE_APP_COLOR_KEY] ?? "")
19399
+ );
19068
19400
  for (const key2 of Object.keys(configs)) delete configs[key2];
19069
19401
  if (link) configs["link"] = link;
19070
19402
  if (mountName) configs["name"] = mountName;
@@ -19073,6 +19405,19 @@ function bodyConfigs(node) {
19073
19405
  if (urlMode === "none" && path) configs["path"] = path;
19074
19406
  if (beta) configs["beta"] = true;
19075
19407
  if (createMenu) configs["createMenu"] = true;
19408
+ if (glyph) configs[REMOTE_GLYPH_KEY] = escapeAttributeValue(glyph);
19409
+ if (appColor) configs[REMOTE_APP_COLOR_KEY] = appColor;
19410
+ }
19411
+ if (node.type === "app_logo" /* APP_LOGO */) {
19412
+ const link = String(configs["link"] ?? "").trim();
19413
+ const variant = configs["variant"] === "glow" ? "glow" : "tile";
19414
+ const tone = configs["tone"] === "light" ? "light" : "app";
19415
+ const size = String(configs["size"] ?? "").trim();
19416
+ for (const key2 of Object.keys(configs)) delete configs[key2];
19417
+ if (link) configs["link"] = link;
19418
+ if (variant === "glow") configs["variant"] = variant;
19419
+ if (variant === "glow" && tone === "light") configs["tone"] = tone;
19420
+ if (size) configs["size"] = size;
19076
19421
  }
19077
19422
  if (node.type === "plugin" /* PLUGIN */) {
19078
19423
  const link = String(configs[PLUGIN_LINK_KEY] ?? "").trim();
@@ -19121,6 +19466,7 @@ var numberOnlyValue = (value) => {
19121
19466
  const parsed2 = Number(value);
19122
19467
  return Number.isFinite(parsed2) ? parsed2 : void 0;
19123
19468
  };
19469
+ var escapeAttributeValue = (value) => value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
19124
19470
  function attrsFrom(configs, numberOnlyKeys = NUMBER_ONLY_KEYS) {
19125
19471
  return Object.entries(configs).map(([key2, value]) => {
19126
19472
  const figure = numberOnlyKeys.has(key2) ? numberOnlyValue(value) : void 0;
@@ -19586,6 +19932,7 @@ var attrBindingSlots = (type) => {
19586
19932
  if (type === "audience_picker" /* AUDIENCE_PICKER */) return AUDIENCE_PICKER_VALUE_SLOTS;
19587
19933
  if (type === "img" /* IMG */) return [BINDING_SLOT.src];
19588
19934
  if (type === "remote" /* REMOTE */) return REMOTE_VALUE_SLOTS;
19935
+ if (type === "app_logo" /* APP_LOGO */) return APP_LOGO_VALUE_SLOTS;
19589
19936
  if (type === "section_pagination" /* SECTION_PAGINATION */) return [BINDING_SLOT.total];
19590
19937
  return hasTextSource(type) ? [BINDING_SLOT.label] : [];
19591
19938
  };
@@ -19833,6 +20180,11 @@ function boundAttrs(node, ctx, storeProp) {
19833
20180
  }
19834
20181
  }
19835
20182
  }
20183
+ if (node.type === "app_logo" /* APP_LOGO */) {
20184
+ const binding = bindings?.[BINDING_SLOT.link];
20185
+ const expr = binding && textBindingExpression(binding, scope);
20186
+ if (expr) parts.push(` [link]="${expr}"`);
20187
+ }
19836
20188
  if (node.type === "user" /* USER */) {
19837
20189
  for (const slot of USER_VALUE_SLOTS) {
19838
20190
  const binding = bindings?.[slot];
@@ -19951,7 +20303,7 @@ function tagAttrs(node, ctx, storeProp) {
19951
20303
  const resultAttrs = results ? ` [element]="${results.elementMember}" resultInput="${results.resultInput}"` : "";
19952
20304
  return `${inlineAttrs(node)}${boundAttrs(node, ctx, storeProp)}${resultAttrs}`;
19953
20305
  }
19954
- if (node.type === "remote" /* REMOTE */ && ctx.controlMap?.[node.id]?.bindings?.[BINDING_SLOT.link]) {
20306
+ if ((node.type === "remote" /* REMOTE */ || node.type === "app_logo" /* APP_LOGO */) && ctx.controlMap?.[node.id]?.bindings?.[BINDING_SLOT.link]) {
19955
20307
  const configs2 = { ...node.configs ?? {} };
19956
20308
  delete configs2["link"];
19957
20309
  return `${inlineAttrs({ ...node, configs: configs2 })}${boundAttrs(node, ctx, storeProp)}`;
@@ -20178,7 +20530,7 @@ function outputAttrs(node, methods, operationOf, storeProp, ctx) {
20178
20530
  // with no handler attribute at all.
20179
20531
  ...Object.keys(node.outputEmits ?? {})
20180
20532
  ]);
20181
- const gated = /* @__PURE__ */ new Set([...gatedOutputs(node), ...dispatched]);
20533
+ const gated = new Set(dispatched);
20182
20534
  for (const key2 of [...outputs]) {
20183
20535
  if (outputCallGroupKey(key2) !== key2) {
20184
20536
  outputs.delete(key2);
@@ -22234,7 +22586,10 @@ function dispatchedOutputs(node, methods, operationOf, storeProp, ctx) {
22234
22586
  }
22235
22587
  function dispatcherFormRefs(node, output, methods, operationOf, storeProp, ctx) {
22236
22588
  const folded = output === FOLDED_OUTPUT ? foldedClickGroups(node, methods, operationOf, storeProp, ctx) : [];
22237
- const own = gatedOutputs(node).includes(output) ? outputArmFormRefs(node, output, ctx, storeProp) : folded.length ? directFormRefs(node, output, ctx) : [];
22589
+ const own = [
22590
+ ...directFormRefs(node, output, ctx),
22591
+ ...gatedOutputs(node).includes(output) ? outputArmFormRefs(node, output, ctx, storeProp) : []
22592
+ ];
22238
22593
  const seen = /* @__PURE__ */ new Map();
22239
22594
  [...own, ...folded.flatMap((group) => group.refs)].forEach(([id, ref]) => {
22240
22595
  if (!seen.has(id)) seen.set(id, ref);
@@ -22281,7 +22636,7 @@ ${format(
22281
22636
  )}
22282
22637
  }`
22283
22638
  );
22284
- const direct = gatedOutputs(node).includes(output) ? "" : format(groupOf(output), " ");
22639
+ const direct = format(groupOf(output), " ");
22285
22640
  const always = alwaysOutputArms(control, output).map((arm) => bodyOf(arm, " ")).filter(Boolean);
22286
22641
  const chain = wired.map(({ arm, expr }) => {
22287
22642
  const body2 = bodyOf(arm, " ");
@@ -24325,7 +24680,7 @@ __export(package_exports, {
24325
24680
  version: () => version
24326
24681
  });
24327
24682
  var name = "@magmonium/one";
24328
- var version = "0.4.42";
24683
+ var version = "0.4.51";
24329
24684
  var description = "Magmonium One \u2014 Angular design-system primitives for mm Apps";
24330
24685
  var author = "magmonium";
24331
24686
  var license = "MIT";
@@ -24393,7 +24748,7 @@ __export(package_exports2, {
24393
24748
  version: () => version2
24394
24749
  });
24395
24750
  var name2 = "@magmonium/cli";
24396
- var version2 = "0.8.16";
24751
+ var version2 = "0.8.18";
24397
24752
  var description2 = "A powerful and extensible asset compilation tool that can be shared across multiple projects";
24398
24753
  var bin = {
24399
24754
  "mag-cli": "bin/cli.js"
@@ -25956,7 +26311,7 @@ var caseEquals = (actual, expected) => {
25956
26311
  };
25957
26312
 
25958
26313
  // libs/codegen/src/lib/workspace-codec.ts
25959
- var WORKSPACE_SCHEMA_VERSION = 28;
26314
+ var WORKSPACE_SCHEMA_VERSION = 29;
25960
26315
  var MIGRATION_FLOOR = 18;
25961
26316
  var DEPLOY_TOKEN_METHOD_IDS = {
25962
26317
  "@UserStore.ensureDeployToken": "@AuthStore.ensureDeployToken",
@@ -26052,6 +26407,20 @@ var mapBlobControls = (blob, step) => {
26052
26407
  }
26053
26408
  return next;
26054
26409
  };
26410
+ var compactStoredControl = (control) => {
26411
+ const configs = control["configs"];
26412
+ if (!configs || typeof configs !== "object" || Array.isArray(configs)) {
26413
+ return control;
26414
+ }
26415
+ const idNamed = isBornNamed(control["type"]);
26416
+ const entries = Object.entries(configs);
26417
+ const written = entries.filter(
26418
+ ([key2, value]) => value !== "" && !(idNamed && key2 === "name" && value === control["id"])
26419
+ );
26420
+ return written.length === entries.length ? control : { ...control, configs: Object.fromEntries(written) };
26421
+ };
26422
+ var compactControlMap = (controlMap) => mapStoredControls(controlMap, compactStoredControl);
26423
+ var compactControlGroups = (groups) => mapBlobControls({ controlGroups: groups }, compactStoredControl)["controlGroups"];
26055
26424
  var moveBlobSpacing = (blob) => mapBlobControls(blob, moveSpacingToStyleDirectives);
26056
26425
  var dropOptionMultiple = (control) => {
26057
26426
  const configs = control["configs"];
@@ -26135,6 +26504,21 @@ var screenOnly = (step) => ({
26135
26504
  step
26136
26505
  });
26137
26506
  var MIGRATIONS = {
26507
+ // 28 → 29: a Control writes only what it says, in a Screen's ControlMap and
26508
+ // in every ControlGroup — and a `var:` binding on one carrying no message
26509
+ // goes. No translations reach a step, so a slot under a key is kept: it may
26510
+ // be one the key's text names.
26511
+ 28: everyKind(
26512
+ (blob) => mapBlobControls(
26513
+ blob,
26514
+ (control) => compactStoredControl(
26515
+ pruneOrphanMessageBindings(
26516
+ control,
26517
+ {}
26518
+ )
26519
+ )
26520
+ )
26521
+ ),
26138
26522
  // 27 → 28: a Button's `url`/`murl` move onto its LinkTarget, in a Screen's
26139
26523
  // ControlMap and in every ControlGroup.
26140
26524
  27: everyKind((blob) => mapBlobControls(blob, moveButtonNavTarget)),
@@ -26316,7 +26700,9 @@ function sanitizeAppTarget(value) {
26316
26700
  appName: typeof target.appName === "string" ? target.appName : "",
26317
26701
  appPath: typeof target.appPath === "string" ? target.appPath : "",
26318
26702
  environment: loadEnvironment(target),
26319
- ...typeof target.appId === "string" && target.appId ? { appId: target.appId } : {}
26703
+ ...typeof target.appId === "string" && target.appId ? { appId: target.appId } : {},
26704
+ // A Plugin App reopens as one; any other word reads as an ordinary app.
26705
+ ...target.kind === "plugin" ? { kind: "plugin" } : {}
26320
26706
  };
26321
26707
  }
26322
26708
  function sanitizeDataType(value, shapes) {
@@ -26719,7 +27105,11 @@ function sanitizeMethods(methods, properties, functions = {}) {
26719
27105
  }).map((param) => ({
26720
27106
  id: param.id,
26721
27107
  name: param.name.trim(),
26722
- dataType: { type: param.dataType.type }
27108
+ dataType: { type: param.dataType.type },
27109
+ // The one axis the User answers for a parameter nothing sends, so the
27110
+ // load is where it would otherwise be lost silently (GLOSSARY.md
27111
+ // MethodParam).
27112
+ ...param.required ? { required: true } : {}
26723
27113
  }));
26724
27114
  result[id] = {
26725
27115
  id,
@@ -27923,6 +28313,9 @@ function pruneUnknownTypes(controlMap) {
27923
28313
  control.childrens = (control.childrens || []).filter(
27924
28314
  (childId) => pruned[childId]
27925
28315
  );
28316
+ if (isBornNamed(control.type) && !("name" in (control.configs ?? {}))) {
28317
+ control.configs = { ...control.configs, name: control.id };
28318
+ }
27926
28319
  if (control.source && !CONFIG_SOURCES.includes(control.source)) {
27927
28320
  control.source = RAW_CONFIG_SOURCE;
27928
28321
  }
@@ -28128,7 +28521,8 @@ function buildDesignSource(ws, operations = drawnOperations(ws)) {
28128
28521
  ASSET_FILES.forEach(([file, key2]) => {
28129
28522
  files3[assetPath(file)] = json({
28130
28523
  v: WORKSPACE_SCHEMA_VERSION,
28131
- [file]: ws[key2]
28524
+ // A ControlGroup's Controls are written the way a Screen's are.
28525
+ [file]: key2 === "controlGroups" ? compactControlGroups(ws[key2]) : ws[key2]
28132
28526
  });
28133
28527
  });
28134
28528
  Object.entries(
@@ -28140,7 +28534,7 @@ function buildDesignSource(ws, operations = drawnOperations(ws)) {
28140
28534
  files3[`${DESIGN_SCREENS_DIR}/${meta.id}.json`] = json({
28141
28535
  v: WORKSPACE_SCHEMA_VERSION,
28142
28536
  meta,
28143
- state
28537
+ state: { ...state, controlMap: compactControlMap(state.controlMap) }
28144
28538
  });
28145
28539
  });
28146
28540
  files3[DESIGN_WRITE_ID_PATH] = `${designWriteId(files3)}
@@ -28498,7 +28892,7 @@ var exposedScreenBindings = (screens, prefix, features = []) => {
28498
28892
  ...required.length ? { required } : {},
28499
28893
  outputs: Object.values(screen.outputs ?? {}).map((o) => o.name).sort((a, b) => a.localeCompare(b))
28500
28894
  };
28501
- return { name: name3, className, importPath, contract };
28895
+ return { screenId: screen.id, name: name3, className, importPath, contract };
28502
28896
  }).sort((a, b) => a.name.localeCompare(b.name));
28503
28897
  };
28504
28898
  var pluginContracts = (screens, prefix, features = []) => exposedScreenBindings(screens, prefix, features).map((b) => b.contract);
@@ -29670,7 +30064,11 @@ var indexHtml = (appName, config) => `<!doctype html>
29670
30064
  <meta name="theme-color" content="${config.appColor || FALLBACK_APP_COLOR}" />
29671
30065
  </head>
29672
30066
  <body>
29673
- ${RUN_ASSET_CACHE_RESET} <m-one-root></m-one-root>
30067
+ ${splashHtml({
30068
+ appColor: config.appColor || FALLBACK_APP_COLOR,
30069
+ glyph: config.logoGlyph,
30070
+ link: appName
30071
+ })}${RUN_ASSET_CACHE_RESET} <m-one-root></m-one-root>
29674
30072
  ${RUN_FETCH_BRIDGE}${RUN_ROUTE_REPORTER} </body>
29675
30073
  </html>
29676
30074
  `;
@@ -29753,6 +30151,82 @@ export const appConfig: ApplicationConfig = provideMagWcConfig({
29753
30151
  providers: appProviders,
29754
30152
  });
29755
30153
  `;
30154
+ var PLUGIN_HARNESS_PATH = "src/harness/plugin-harness.ts";
30155
+ var pluginWcTs = (className, selector) => `import { ChangeDetectionStrategy, Component } from '@angular/core';
30156
+
30157
+ /**
30158
+ * A Plugin App has no frame: its Bundle defines its Exposed Screens and no
30159
+ * root element. The WC build names the Bundle after this class, so it stays.
30160
+ */
30161
+ @Component({
30162
+ selector: '${selector}',
30163
+ template: '',
30164
+ changeDetection: ChangeDetectionStrategy.OnPush,
30165
+ })
30166
+ export class ${className} {}
30167
+ `;
30168
+ var pluginWcConfigTs = () => `import { ApplicationConfig } from '@angular/core';
30169
+ import { provideMagWcConfig } from '@magmonium/one';
30170
+ import { environment } from '../environments/environment';
30171
+ import { appProviders } from './providers';
30172
+
30173
+ // Read by the WC build (\`appConfigPath\` in the manifest). A Plugin App routes
30174
+ // nothing and has no root frame: each Exposed Screen mounts as its own element
30175
+ // inside a host (libs/one ADR 0044). \`bootstrap.ts\` boots the Plugin Harness
30176
+ // instead, which this file never imports.
30177
+ export const appConfig: ApplicationConfig = provideMagWcConfig({
30178
+ backend: environment.url,
30179
+ authUrl: environment.authUrl,
30180
+ socketUrl: environment.socketUrl,
30181
+ routes: [],
30182
+ providers: appProviders,
30183
+ });
30184
+ `;
30185
+ var pluginBootstrapTs = () => `import '@angular/compiler';
30186
+ import { bootstrapMagApp } from '@magmonium/one';
30187
+ import { environment } from './environments/environment';
30188
+ import { appProviders } from './app/providers';
30189
+ import { PluginHarness, harnessRoutes } from './harness/plugin-harness';
30190
+
30191
+ // \`ng serve\` / Run boots the Plugin Harness: one address per Exposed Screen.
30192
+ // Never part of the WC build, which reads \`src/app/wc.config.ts\` alone.
30193
+ bootstrapMagApp({
30194
+ backend: environment.url,
30195
+ authUrl: environment.authUrl,
30196
+ socketUrl: environment.socketUrl,
30197
+ root: PluginHarness,
30198
+ children: harnessRoutes,
30199
+ providers: appProviders,
30200
+ });
30201
+ `;
30202
+ var pluginHarnessTs = (screens) => {
30203
+ const routes = screens.map(
30204
+ (screen) => ` {
30205
+ path: '${screen.name}',
30206
+ loadComponent: () =>
30207
+ import('../app/${screen.importPath.replace(/^\.\//, "")}').then((m) => m.${screen.className}),
30208
+ },`
30209
+ ).join("\n");
30210
+ const first = screens[0]?.name;
30211
+ return `import { ChangeDetectionStrategy, Component } from '@angular/core';
30212
+ import { Route, RouterOutlet } from '@angular/router';
30213
+
30214
+ /** Dev-only: what \`ng serve\` and Run render. The WC build never reaches it. */
30215
+ @Component({
30216
+ selector: 'plugin-harness',
30217
+ imports: [RouterOutlet],
30218
+ template: \`<router-outlet></router-outlet>\`,
30219
+ changeDetection: ChangeDetectionStrategy.OnPush,
30220
+ })
30221
+ export class PluginHarness {}
30222
+
30223
+ /** One address per Exposed Screen, its inputs from the query. */
30224
+ export const harnessRoutes: Route[] = [
30225
+ ${first ? ` { path: '', pathMatch: 'full', redirectTo: '${first}' },
30226
+ ` : ""}${routes}
30227
+ ];
30228
+ `;
30229
+ };
29756
30230
  var providersTs = (app) => `import { ApplicationConfig } from '@angular/core';
29757
30231
  import { navProvidersGenerated } from './${app}.provide';
29758
30232
 
@@ -29895,15 +30369,15 @@ var pwaYml = (appName, config) => {
29895
30369
  ""
29896
30370
  ].join("\n");
29897
30371
  };
29898
- var remoteManifest = (app, appName, config, className, selector, plugins) => `app: ${app}
30372
+ var remoteManifest = (app, appName, config, className, selector, plugins, isPlugin = false) => `app: ${app}
29899
30373
  version: ${config.version}
29900
30374
  componentPath: src/app
29901
30375
  componentName: wc
29902
30376
  className: ${className}
29903
30377
  appConfigPath: src/app/wc.config
29904
30378
  selector: ${selector}
29905
- ${config.theme ? `theme: ${config.theme}
29906
- ` : ""}${pwaYml(appName, config)}${pluginsYml(plugins)}`;
30379
+ ${isPlugin ? "kind: plugin\n" : ""}${config.theme ? `theme: ${config.theme}
30380
+ ` : ""}${isPlugin ? "" : pwaYml(appName, config)}${pluginsYml(plugins)}`;
29907
30381
  var envManifest = (app, className, selector) => `app: ${app}
29908
30382
  componentPath: src/app
29909
30383
  componentName: wc
@@ -30000,25 +30474,29 @@ ${setupNode}${generateStep} - name: Build assets and web component
30000
30474
  BUILD_CONFIG: prod
30001
30475
  - name: Package as bundle.zip
30002
30476
  run: cd dist/${app}-wc && zip -r ../../bundle.zip .
30003
- - name: Upload bundle to backend
30477
+ - name: Read app id and endpoint from the design source
30004
30478
  run: |
30005
- ENDPOINT="\${{ secrets.MAG_ENDPOINT }}"
30479
+ APP_ID=$(jq -r '.appTarget.appId // empty' ${DESIGN_SOURCE_ROOT}/index.json)
30480
+ ENDPOINT=$(jq -r '.appTarget.environment.prod.backendUrl // empty' ${DESIGN_SOURCE_ROOT}/index.json)
30006
30481
  ENDPOINT="\${ENDPOINT%/}"
30007
- APP_ID="\${{ secrets.MAG_APP_ID }}"
30008
- APP_ID="\${APP_ID//[$'\\t\\r\\n ']/}"
30482
+ ENDPOINT="\${ENDPOINT%/swagger.json}"
30483
+ if [ -z "$APP_ID" ] || [ -z "$ENDPOINT" ]; then
30484
+ echo "::error::${DESIGN_SOURCE_ROOT}/index.json names no appTarget.appId or prod backendUrl. Link the app to its Store App in One UI and Push."
30485
+ exit 1
30486
+ fi
30487
+ echo "MAG_APP_ID=$APP_ID" >> "$GITHUB_ENV"
30488
+ echo "MAG_ENDPOINT=$ENDPOINT" >> "$GITHUB_ENV"
30489
+ - name: Upload bundle to backend
30490
+ run: |
30009
30491
  curl --fail-with-body -X POST \\
30010
30492
  -H "Authorization: Bearer \${{ secrets.MAG_DEPLOY_TOKEN }}" \\
30011
30493
  -F "bundle=@bundle.zip" \\
30012
- "\${ENDPOINT}/store/v1/bundle/\${APP_ID}"
30494
+ "\${MAG_ENDPOINT}/store/v1/bundle/\${MAG_APP_ID}"
30013
30495
  - name: Trigger deployment
30014
30496
  run: |
30015
- ENDPOINT="\${{ secrets.MAG_ENDPOINT }}"
30016
- ENDPOINT="\${ENDPOINT%/}"
30017
- APP_ID="\${{ secrets.MAG_APP_ID }}"
30018
- APP_ID="\${APP_ID//[$'\\t\\r\\n ']/}"
30019
30497
  curl --fail-with-body -X POST \\
30020
30498
  -H "Authorization: Bearer \${{ secrets.MAG_DEPLOY_TOKEN }}" \\
30021
- "\${ENDPOINT}/store/v1/deploy/\${APP_ID}"
30499
+ "\${MAG_ENDPOINT}/store/v1/deploy/\${MAG_APP_ID}"
30022
30500
  `;
30023
30501
  var releaseSections = (app) => APP_RELEASE_DOC.slice(APP_RELEASE_DOC.indexOf("## ")).split("<app>").join(app);
30024
30502
  var readme = (app, config) => `# ${app}
@@ -30296,10 +30774,11 @@ end_of_line = lf
30296
30774
  [*.md]
30297
30775
  trim_trailing_whitespace = false
30298
30776
  `;
30299
- function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = []) {
30777
+ function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = [], shell = {}) {
30300
30778
  const app = appFileBase(appName);
30301
30779
  const className = wcClassName(appName);
30302
30780
  const selector = wcSelector(appName);
30781
+ const isPlugin = shell.kind === "plugin";
30303
30782
  return [
30304
30783
  {
30305
30784
  path: "package.json",
@@ -30329,7 +30808,10 @@ function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = [
30329
30808
  { path: ".github/workflows/cd.yml", contents: cdWorkflow(app) },
30330
30809
  { path: "src/index.html", contents: indexHtml(appName, config) },
30331
30810
  { path: "src/main.ts", contents: mainTs() },
30332
- { path: "src/bootstrap.ts", contents: bootstrapTs(className) },
30811
+ {
30812
+ path: "src/bootstrap.ts",
30813
+ contents: isPlugin ? pluginBootstrapTs() : bootstrapTs(className)
30814
+ },
30333
30815
  { path: "src/styles.sass", contents: stylesSass(selector) },
30334
30816
  {
30335
30817
  path: "src/environments/environment.ts",
@@ -30358,9 +30840,18 @@ function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = [
30358
30840
  `// Swapped in by \`ng build --configuration production\`.`
30359
30841
  )
30360
30842
  },
30361
- { path: "src/app/wc.ts", contents: wcTs(className, selector) },
30362
- { path: "src/app/wc.config.ts", contents: wcConfigTs(className) },
30363
- { path: "src/app/wc.routes.ts", contents: wcRoutesTs(app) },
30843
+ ...isPlugin ? [
30844
+ { path: "src/app/wc.ts", contents: pluginWcTs(className, selector) },
30845
+ { path: "src/app/wc.config.ts", contents: pluginWcConfigTs() },
30846
+ {
30847
+ path: PLUGIN_HARNESS_PATH,
30848
+ contents: pluginHarnessTs(shell.harness ?? [])
30849
+ }
30850
+ ] : [
30851
+ { path: "src/app/wc.ts", contents: wcTs(className, selector) },
30852
+ { path: "src/app/wc.config.ts", contents: wcConfigTs(className) },
30853
+ { path: "src/app/wc.routes.ts", contents: wcRoutesTs(app) }
30854
+ ],
30364
30855
  { path: "src/app/providers.ts", contents: providersTs(app) },
30365
30856
  { path: "src/test-providers.ts", contents: testProvidersTs() },
30366
30857
  { path: "src/test-setup.ts", contents: testSetupTs() },
@@ -30372,7 +30863,8 @@ function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = [
30372
30863
  config,
30373
30864
  className,
30374
30865
  selector,
30375
- plugins
30866
+ plugins,
30867
+ isPlugin
30376
30868
  )
30377
30869
  },
30378
30870
  // `mag_assets/navs/` is not here: the Nav tree is authored in the editor
@@ -31486,6 +31978,18 @@ var pluginContractsOf = (ws) => pluginContracts(
31486
31978
  prefixOf(ws),
31487
31979
  Object.values(ws.features ?? {})
31488
31980
  );
31981
+ var scaffoldShellOf = (ws) => ws.appTarget.kind === "plugin" ? {
31982
+ kind: "plugin",
31983
+ harness: exposedScreenBindings(
31984
+ ws.screens.map((screen) => screen.meta),
31985
+ prefixOf(ws),
31986
+ Object.values(ws.features ?? {})
31987
+ ).map(({ name: name3, className, importPath }) => ({
31988
+ name: name3,
31989
+ className,
31990
+ importPath
31991
+ }))
31992
+ } : {};
31489
31993
  var controlMapOf = (screens) => {
31490
31994
  const map = {};
31491
31995
  screens.forEach(({ state }) => {
@@ -31932,7 +32436,8 @@ var emitFullAppFiles = (authored, stringify) => {
31932
32436
  ws.wcConfig,
31933
32437
  ws.appTarget.environment,
31934
32438
  allowlistDeps(ws),
31935
- pluginContractsOf(ws)
32439
+ pluginContractsOf(ws),
32440
+ scaffoldShellOf(ws)
31936
32441
  );
31937
32442
  const files3 = scaffold.map((file) => ({
31938
32443
  path: file.path,
@@ -31956,6 +32461,7 @@ var emitFullAppFiles = (authored, stringify) => {
31956
32461
  files3.push(...emitAuthoredAssets(ws, stringify));
31957
32462
  return withGeneratedBanner(withEmittedTests(files3, isGeneratedPath));
31958
32463
  };
32464
+ var authoredAssetPaths = (authored) => emitAuthoredAssets(inReach(authored), () => "").map((file) => file.path);
31959
32465
  var allowlistDeps = (ws) => Object.fromEntries(
31960
32466
  Object.values(ws.npmAllowlist ?? {}).map((entry2) => [
31961
32467
  entry2.name,
@@ -31979,7 +32485,9 @@ var SHIPPED_SHELL_PATHS = [
31979
32485
  "src/app/wc.ts",
31980
32486
  "src/app/wc.config.ts",
31981
32487
  "src/app/wc.routes.ts",
31982
- "src/app/providers.ts"
32488
+ "src/app/providers.ts",
32489
+ // A Plugin App's: its addresses follow the Exposed Screens.
32490
+ PLUGIN_HARNESS_PATH
31983
32491
  ];
31984
32492
  var emitShippedShellFiles = (authored) => {
31985
32493
  const ws = inReach(authored);
@@ -31988,7 +32496,8 @@ var emitShippedShellFiles = (authored) => {
31988
32496
  ws.wcConfig,
31989
32497
  ws.appTarget.environment,
31990
32498
  allowlistDeps(ws),
31991
- pluginContractsOf(ws)
32499
+ pluginContractsOf(ws),
32500
+ scaffoldShellOf(ws)
31992
32501
  ).filter((file) => SHIPPED_SHELL_PATHS.includes(file.path)).map((file) => ({ path: file.path, contents: file.contents }));
31993
32502
  };
31994
32503
  var isRemoteManifestPath = (path) => /^mag_assets(_env\/[^/]+)?\/remote\/[^/]+\.yml$/.test(path);
@@ -31997,7 +32506,8 @@ var remoteManifestFiles = (ws) => scaffoldFiles(
31997
32506
  ws.wcConfig,
31998
32507
  ws.appTarget.environment,
31999
32508
  {},
32000
- pluginContractsOf(ws)
32509
+ pluginContractsOf(ws),
32510
+ scaffoldShellOf(ws)
32001
32511
  ).filter((file) => isRemoteManifestPath(file.path)).map((file) => ({ path: file.path, contents: file.contents }));
32002
32512
  var emitOverlayFiles = (authored, stringify) => {
32003
32513
  const ws = inReach(authored);
@@ -32087,7 +32597,13 @@ var HISTORY_LABELS = [
32087
32597
  "edit-nav",
32088
32598
  "edit-config",
32089
32599
  "edit-screen",
32090
- "edit-samples"
32600
+ "edit-samples",
32601
+ // A Fix applied on the Repair Register is one step under its own name, so
32602
+ // the Undo button reads the Fix it takes back (ADR 0192).
32603
+ "fix-cast",
32604
+ "fix-prune",
32605
+ "fix-retype-parameters",
32606
+ "fix-route-inputs"
32091
32607
  ];
32092
32608
  var HISTORY_AUTHORED_KEYS = [
32093
32609
  "controlMap",
@@ -32119,6 +32635,8 @@ var HISTORY_SELECTION_KEYS = [
32119
32635
  ALL_VARIANT,
32120
32636
  API_SEGMENT,
32121
32637
  APP_CONFIG_SOURCE,
32638
+ APP_LOGO_VALUE_ASSET,
32639
+ APP_LOGO_VALUE_SLOTS,
32122
32640
  APP_MODES,
32123
32641
  APP_RELEASE_DOC,
32124
32642
  APP_ROOT_IMPORTS,
@@ -32337,6 +32855,7 @@ var HISTORY_SELECTION_KEYS = [
32337
32855
  PATTERN_MESSAGE_CONFIG_KEY,
32338
32856
  PATTERN_NAME_MAX_LENGTH,
32339
32857
  PATTERN_NAME_PATTERN,
32858
+ PLUGIN_HARNESS_PATH,
32340
32859
  PLUGIN_INPUTS_KEY,
32341
32860
  PLUGIN_LINK_KEY,
32342
32861
  PLUGIN_OUTPUTS_KEY,
@@ -32346,7 +32865,9 @@ var HISTORY_SELECTION_KEYS = [
32346
32865
  QUANTIFIER_LABELS,
32347
32866
  RANGED_SURFACE_KEYS,
32348
32867
  RAW_CONFIG_SOURCE,
32868
+ REMOTE_APP_COLOR_KEY,
32349
32869
  REMOTE_BETA_KEY,
32870
+ REMOTE_GLYPH_KEY,
32350
32871
  REMOTE_MOUNT_KEY,
32351
32872
  REMOTE_MOUNT_NAME_KEY,
32352
32873
  REMOTE_URL_SLOT_KEY,
@@ -32465,6 +32986,7 @@ var HISTORY_SELECTION_KEYS = [
32465
32986
  assetRoot,
32466
32987
  assignableVariantIds,
32467
32988
  authoredArgs,
32989
+ authoredAssetPaths,
32468
32990
  backfilledInstanceArgs,
32469
32991
  baseOutputName,
32470
32992
  bindablePaths,
@@ -32495,6 +33017,7 @@ var HISTORY_SELECTION_KEYS = [
32495
33017
  cacheMethodReads,
32496
33018
  callArgBindingOptions,
32497
33019
  callArgBindingRead,
33020
+ callArgCoverage,
32498
33021
  callArgEventAllowed,
32499
33022
  callArgEventKey,
32500
33023
  callArgEventMismatch,
@@ -32583,12 +33106,16 @@ var HISTORY_SELECTION_KEYS = [
32583
33106
  collectTranslationAssets,
32584
33107
  collectTypedComponentInputs,
32585
33108
  columnNeedsId,
33109
+ compactControlGroups,
33110
+ compactControlMap,
32586
33111
  comparisonSource,
32587
33112
  componentInputShapeIds,
32588
33113
  componentInputTsType,
32589
33114
  composeLabelValue,
32590
33115
  computeError,
32591
33116
  computeId,
33117
+ computeInputMemberError,
33118
+ computeInputPaths,
32592
33119
  computeIsRead,
32593
33120
  computeMemberRead,
32594
33121
  computeNameTaken,
@@ -32904,6 +33431,7 @@ var HISTORY_SELECTION_KEYS = [
32904
33431
  isBaseVariantId,
32905
33432
  isBindingInScope,
32906
33433
  isBooleanStateProperty,
33434
+ isBornNamed,
32907
33435
  isBranchFamily,
32908
33436
  isBusyVariantId,
32909
33437
  isCacheMethod,
@@ -33130,8 +33658,10 @@ var HISTORY_SELECTION_KEYS = [
33130
33658
  moveMenuGroup,
33131
33659
  moveMenuItem,
33132
33660
  moveOutputArm,
33661
+ moveOutputBlock,
33133
33662
  moveOutputCall,
33134
33663
  moveOutputCallRows,
33664
+ moveOutputCallTo,
33135
33665
  moveRuleNode,
33136
33666
  moveSpacingToStyleDirectives,
33137
33667
  namedShapes,
@@ -33257,6 +33787,7 @@ var HISTORY_SELECTION_KEYS = [
33257
33787
  outputCallKey,
33258
33788
  outputCallKeys,
33259
33789
  outputCallLabel,
33790
+ outputGroupHoldsBlocks,
33260
33791
  outputLinkBindingTargets,
33261
33792
  outputLinkMemberName,
33262
33793
  outputLinkParamType,
@@ -33337,6 +33868,7 @@ var HISTORY_SELECTION_KEYS = [
33337
33868
  pruneFormEventReads,
33338
33869
  pruneMappings,
33339
33870
  pruneMenuActions,
33871
+ pruneOrphanMessageBindings,
33340
33872
  pruneOutputCalls,
33341
33873
  pruneOutputLinkArgs,
33342
33874
  pruneUnknownShapeRefs,
@@ -33385,6 +33917,7 @@ var HISTORY_SELECTION_KEYS = [
33385
33917
  removeMenuGroup,
33386
33918
  removeMenuItem,
33387
33919
  removeOutputArm,
33920
+ removeOutputArmKeepingBlocks,
33388
33921
  removeOutputCall,
33389
33922
  removeRuleNode,
33390
33923
  removeScreenOutputCall,
@@ -33639,6 +34172,7 @@ var HISTORY_SELECTION_KEYS = [
33639
34172
  textSourcesFor,
33640
34173
  themeFileSource,
33641
34174
  themeVarsStyle,
34175
+ tidyOutputArms,
33642
34176
  tierOf,
33643
34177
  timerError,
33644
34178
  timerPropertyIds,