@reqvire-org/ads 0.5.1 → 0.5.3

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 (136) hide show
  1. package/dist/ads-errors.mjs +143 -51
  2. package/dist/analysis/composition-axes.mjs +48 -0
  3. package/dist/analysis/construction-memo.mjs +38 -0
  4. package/dist/analysis/context.mjs +19 -0
  5. package/dist/analysis/design-reads.mjs +177 -0
  6. package/dist/analysis/design-usage.mjs +4 -20
  7. package/dist/analysis/factored-classes.mjs +90 -0
  8. package/dist/analysis/helpers.mjs +5 -7
  9. package/dist/analysis/mock-check.mjs +4 -5
  10. package/dist/analysis/native-project.mjs +12 -0
  11. package/dist/analysis/owner-accessibility.mjs +4 -4
  12. package/dist/analysis/owner-analysis-cache.mjs +86 -23
  13. package/dist/analysis/owner-analysis-key.mjs +42 -10
  14. package/dist/analysis/owner-choices.mjs +56 -7
  15. package/dist/analysis/owner-composition.mjs +179 -45
  16. package/dist/analysis/owner-reuse.mjs +8 -6
  17. package/dist/analysis/owner-source.mjs +304 -110
  18. package/dist/analysis/scenario-keys.mjs +10 -7
  19. package/dist/analysis/service.mjs +50 -3
  20. package/dist/analysis/standalone.mjs +7 -4
  21. package/dist/analysis/syntax.mjs +59 -1
  22. package/dist/analysis/worker-protocol.mjs +14 -2
  23. package/dist/analysis/worker.mjs +32 -10
  24. package/dist/architecture-report.mjs +26 -0
  25. package/dist/asset-view-facts.mjs +16 -2
  26. package/dist/boundaries.mjs +26 -10
  27. package/dist/bun-compiler.mjs +2 -2
  28. package/dist/check-service.mjs +29 -17
  29. package/dist/check.mjs +13 -6
  30. package/dist/cli.mjs +1 -1
  31. package/dist/composed-contrast.mjs +143 -62
  32. package/dist/composed-keyline.mjs +2 -2
  33. package/dist/config.mjs +2 -1
  34. package/dist/construction-output.mjs +9 -3
  35. package/dist/construction-spec.d.mts +145 -31
  36. package/dist/construction-spec.mjs +204 -74
  37. package/dist/corner-overpaint.mjs +20 -7
  38. package/dist/derived-states.mjs +182 -0
  39. package/dist/design-foundation.mjs +16 -0
  40. package/dist/design-inputs.mjs +18 -3
  41. package/dist/design-system-closure.mjs +12 -7
  42. package/dist/design-usage.mjs +2 -8
  43. package/dist/emit/contract.mjs +24 -5
  44. package/dist/emit/emission.mjs +6 -9
  45. package/dist/emit/integrity.mjs +8 -2
  46. package/dist/emit/output-watch.mjs +120 -0
  47. package/dist/emit/owner-emission-cache.mjs +4 -4
  48. package/dist/emit/preview-emitter.mjs +4 -2
  49. package/dist/emit/preview-tree.mjs +1 -1
  50. package/dist/emit/service.mjs +8 -2
  51. package/dist/finding-rules.mjs +3 -0
  52. package/dist/form-states.mjs +8 -0
  53. package/dist/frame-regions.mjs +29 -9
  54. package/dist/grid-lowering.mjs +3 -1
  55. package/dist/hover-geometry.mjs +15 -0
  56. package/dist/input-digests.mjs +17 -10
  57. package/dist/linaria/delivery.mjs +2 -0
  58. package/dist/lowering-enter.mjs +6 -6
  59. package/dist/lowering-properties.mjs +5 -0
  60. package/dist/lowering-region-layout.mjs +7 -2
  61. package/dist/lowering-session.mjs +10 -0
  62. package/dist/mcp/build-status.mjs +9 -1
  63. package/dist/mcp/compiler-channel.mjs +11 -4
  64. package/dist/mcp/mutations.mjs +1 -0
  65. package/dist/mcp/preview-http.bundle.js +1 -1
  66. package/dist/mcp/preview-watch.mjs +2 -1
  67. package/dist/mcp/preview-widget.bundle.js +1 -1
  68. package/dist/mcp/server-observation.mjs +6 -4
  69. package/dist/mcp/server-project.mjs +4 -1
  70. package/dist/motion-model.mjs +1 -1
  71. package/dist/owner-analysis-check.mjs +23 -6
  72. package/dist/owner-errors.mjs +6 -3
  73. package/dist/owner-lowering.mjs +78 -13
  74. package/dist/owner-scenarios.mjs +6 -23
  75. package/dist/ownership-model.mjs +24 -8
  76. package/dist/paint-contrast.mjs +6 -0
  77. package/dist/placeholder-contrast.mjs +17 -1
  78. package/dist/platform-features.mjs +10 -1
  79. package/dist/profile-macro.d.mts +7 -0
  80. package/dist/profile-view-facts.mjs +1 -1
  81. package/dist/recipe-macro.d.mts +103 -40
  82. package/dist/recipe-model.mjs +18 -13
  83. package/dist/region-lowering.mjs +266 -123
  84. package/dist/render-audit/layout-shift.page.mjs +24 -0
  85. package/dist/render-audit/render-states.mjs +122 -1
  86. package/dist/render-audit/render-states.page.mjs +140 -0
  87. package/dist/render-audit/worker.mjs +18 -3
  88. package/dist/render-audit.mjs +114 -1
  89. package/dist/role-vocabulary.d.mts +9 -0
  90. package/dist/role-vocabulary.mjs +16 -1
  91. package/dist/runtime-paint-contrast.mjs +5 -2
  92. package/dist/scenarios-compiler.mjs +20 -6
  93. package/dist/showcase/assets-view.mjs +29 -13
  94. package/dist/showcase/client.bundle.js +50 -50
  95. package/dist/showcase/http-client.bundle.js +15 -15
  96. package/dist/showcase/ui/ui.css +1 -1
  97. package/dist/showcase/ui/ui.js +5 -5
  98. package/dist/skills/ads-designer/references/accessibility.md +10 -4
  99. package/dist/skills/ads-designer/references/branding.md +13 -3
  100. package/dist/skills/ads-designer/references/contracts.md +5 -2
  101. package/dist/skills/ads-designer/references/design-data.md +13 -7
  102. package/dist/skills/ads-designer/references/layout.md +12 -4
  103. package/dist/skills/ads-designer/references/motion.md +11 -2
  104. package/dist/skills/ads-designer/references/recipes.md +49 -15
  105. package/dist/skills/ads-import/references/contracts.md +5 -2
  106. package/dist/skills/ads-import/references/design-data.md +13 -7
  107. package/dist/skills/ads-import/references/layout.md +12 -4
  108. package/dist/skills/ads-import/references/recipes.md +49 -15
  109. package/dist/skills/ads-migrate/SKILL.md +2 -0
  110. package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -0
  111. package/dist/skills/ads-migrate/references/0.5.2-to-0.5.3.md +71 -0
  112. package/dist/skills/ads-port/references/contracts.md +5 -2
  113. package/dist/skills/ads-port/references/design-data.md +13 -7
  114. package/dist/skills/ads-port/references/layout.md +12 -4
  115. package/dist/skills/ads-port/references/recipes.md +49 -15
  116. package/dist/spatial-model.mjs +2 -2
  117. package/dist/surface-contrast.mjs +7 -2
  118. package/dist/surface-effects.mjs +5 -3
  119. package/dist/target-size.mjs +21 -3
  120. package/dist/task-cache.mjs +8 -18
  121. package/dist/validation-checks.mjs +1 -1
  122. package/docs/ADS.md +9 -3
  123. package/docs/ARCHITECTURE.md +96 -30
  124. package/docs/CACHING.md +152 -24
  125. package/docs/CHANGELOG.md +307 -23
  126. package/docs/GUIDE.md +109 -20
  127. package/docs/LANGUAGE.md +262 -117
  128. package/docs/MCP.md +5 -1
  129. package/docs/MOTION.md +15 -4
  130. package/docs/PROFILE-KINDS.md +54 -4
  131. package/docs/RULES.md +34 -25
  132. package/docs/TOKEN-ROLES.md +7 -1
  133. package/package.json +1 -1
  134. package/dist/analysis/prose-owners.mjs +0 -57
  135. package/dist/prose-model.d.mts +0 -81
  136. package/dist/prose-model.mjs +0 -101
@@ -90,7 +90,7 @@ function isCompilerEntry(entry, options) {
90
90
  return isString(id) && /^(?:brand|pictograms|tokens|components|patterns|mocks)\/[\w./-]+$/.test(id) && path.posix.normalize(id) === id && isString(file) && isInside(options.dsRoot, path.resolve(options.root, file)) && entry.artifact === `.ds/scenarios/${id}/index.html` && (paintBindings === void 0 || Array.isArray(paintBindings));
91
91
  }
92
92
  export function createPreviewCache(options, compilerFiles = []) {
93
- const { root } = options, launchEnvironment = architectureExternalInputs(root).environment, key = (file) => isInside(import.meta.dirname, file) ? `ads-tool/${path.relative(import.meta.dirname, file)}` : isInside(root, file) ? `project/${path.relative(root, file)}` : file, adapterFiles = [
93
+ const { root } = options, launchEnvironment = Object.freeze(architectureExternalInputs(root).environment), key = (file) => isInside(import.meta.dirname, file) ? `ads-tool/${path.relative(import.meta.dirname, file)}` : isInside(root, file) ? `project/${path.relative(root, file)}` : file, adapterFiles = [
94
94
  import.meta.filename,
95
95
  ...[
96
96
  "runtime-requirements.mjs",
@@ -245,6 +245,7 @@ export function createPreviewCache(options, compilerFiles = []) {
245
245
  return recordCurrent(current, () => graph(revision, entries, current));
246
246
  }
247
247
  return {
248
+ environment: launchEnvironment,
248
249
  inputs,
249
250
  reusable,
250
251
  reusableEntries,
@@ -481,7 +482,9 @@ export async function runScenarioCompiler(directory, setup) {
481
482
  schedule = scheduler ? scheduler("project") : direct
482
483
  } = context;
483
484
  let options = previewOptions(root, buildSession);
484
- const previewEmitter = process.env.ADS_PREVIEW_EMITTER === "1", cache = createPreviewCache(options, compilerFiles), withViews = (scenarios) => [...scenarios, ...adsViews(options)];
485
+ const previewEmitter = process.env.ADS_PREVIEW_EMITTER === "1";
486
+ let checkedEmission;
487
+ const cache = createPreviewCache(options, compilerFiles), withViews = (scenarios) => [...scenarios, ...adsViews(options)];
485
488
  async function registry() {
486
489
  options = previewOptions(root, buildSession);
487
490
  const reply = await analyze(root, "registry");
@@ -579,7 +582,10 @@ export async function runScenarioCompiler(directory, setup) {
579
582
  return Promise.resolve();
580
583
  if (cache.validated(stamp))
581
584
  return Promise.resolve();
582
- return validation ??= Promise.resolve().then(() => validate === void 0 ? void 0 : timing.timeStage("preview-gate-check", validate)).then(async (valid) => {
585
+ return validation ??= Promise.resolve().then(() => {
586
+ const source = previewEmitter ? previewSource(options) : void 0, checked = source?.kind === "ok" && checkedEmission?.revision === source.value.revision ? checkedEmission : void 0;
587
+ return validate === void 0 ? void 0 : timing.timeStage("preview-gate-check", () => validate(checked, previewEmitter ? cache.environment : void 0));
588
+ }).then(async (valid) => {
583
589
  if (stamp !== await cache.inputs())
584
590
  throw Error("Sources changed during preview validation. Waiting for the current build.");
585
591
  if (valid !== !1)
@@ -652,6 +658,8 @@ export async function runScenarioCompiler(directory, setup) {
652
658
  default:
653
659
  return assertNever(outcome, "graph outcome");
654
660
  }
661
+ if (stopped)
662
+ return;
655
663
  for (const entry of entries) {
656
664
  pending.delete(entry.id);
657
665
  finish(entry, (revision) => reporter.ready(entry.id, revision));
@@ -667,7 +675,7 @@ export async function runScenarioCompiler(directory, setup) {
667
675
  reporter.progress("idle");
668
676
  return !0;
669
677
  } catch (error) {
670
- if (started !== generation)
678
+ if (started !== generation || stopped)
671
679
  return;
672
680
  for (const entry of entries) {
673
681
  pending.delete(entry.id);
@@ -841,6 +849,8 @@ export async function runScenarioCompiler(directory, setup) {
841
849
  liveCandidate = void 0;
842
850
  continue;
843
851
  }
852
+ if (stopped)
853
+ return;
844
854
  await reporter.batch(() => {
845
855
  for (const entry of candidate.entries) {
846
856
  const revision = candidate.revisions.get(entry.id);
@@ -853,6 +863,8 @@ export async function runScenarioCompiler(directory, setup) {
853
863
  publishedStamp = candidate.stamp;
854
864
  publishedEntries = new Set(candidate.entries.map((entry) => entry.id));
855
865
  } catch (error) {
866
+ if (stopped)
867
+ return;
856
868
  if (!candidate.failed)
857
869
  await rejectLive(candidate, error);
858
870
  }
@@ -1170,7 +1182,8 @@ export async function runScenarioCompiler(directory, setup) {
1170
1182
  }
1171
1183
  return `sha256:${digest(content)}` === recorded;
1172
1184
  }
1173
- async function emitted(tree, revision, files, sources, capturedAt) {
1185
+ async function emitted(tree, revision, files, sources, capturedAt, checked) {
1186
+ checkedEmission = tree === previewTreeDirectory(root) && checked?.revision === revision ? checked : void 0;
1174
1187
  adoptedRevision = revision;
1175
1188
  treeSources = sources;
1176
1189
  if (awaitingEmission.size) {
@@ -1198,6 +1211,7 @@ export async function runScenarioCompiler(directory, setup) {
1198
1211
  drain();
1199
1212
  }
1200
1213
  function emissionFailed(capturedAt) {
1214
+ checkedEmission = void 0;
1201
1215
  const failed = [...awaitingEmission].filter(([, seenAt]) => capturedAt === void 0 || seenAt <= capturedAt).map(([file]) => file);
1202
1216
  if (failed.length < awaitingEmission.size)
1203
1217
  holding();
@@ -1338,7 +1352,7 @@ export async function runScenarioCompiler(directory, setup) {
1338
1352
  channel.on("emitted", (message) => {
1339
1353
  if (message.session !== buildSession)
1340
1354
  return;
1341
- emitted(message.tree, message.revision, [...message.written, ...message.removed], message.sources, message.capturedAt).catch(failure);
1355
+ emitted(message.tree, message.revision, [...message.written, ...message.removed], message.sources, message.capturedAt, message.checked).catch(failure);
1342
1356
  }),
1343
1357
  channel.on("emit-failed", (message) => {
1344
1358
  if (message.session !== buildSession)
@@ -1,6 +1,6 @@
1
1
  import { sanitizeInspectedSvg } from "../inspected-svg.mjs";
2
2
  import { createPreviewRoot } from "./preview-frame.mjs";
3
- import { renderArtworkSample, renderCardPage, renderIconCatalogue, unmount } from "./ui/ui.js";
3
+ import { renderArtworkSample, renderCardPage, renderArtworkCatalogue, unmount } from "./ui/ui.js";
4
4
  const navigateEvent = "ads-preview-navigate", focusEvent = "ads-preview-focus", SETS = "sets", SUMMARY = "summary", groupChoice = (group) => `group:${group ?? ""}`, groupTitle = (group) => group ?? "Top level", list = (names) => names.join(", ");
5
5
  export const paintMeaning = {
6
6
  foreground: "takes the text colour",
@@ -23,15 +23,27 @@ export function variantSummary(asset) {
23
23
  ].filter(([, values]) => values.length > 1);
24
24
  return stated.length ? stated.map(([label, values]) => `${label}: ${list(values)}`).join("; ") : "One drawing";
25
25
  }
26
- export function assetNote(asset) {
26
+ export function assetUses(asset, px = () => Number.NaN) {
27
+ const bySize = new Map;
28
+ for (const { owner, size } of asset.usedBy ?? []) {
29
+ const length = size === null ? Number.NaN : px(size), label = size === null ? "" : Number.isFinite(length) && length > 0 ? `${Math.round(length * 100) / 100}px` : size;
30
+ bySize.set(label, [...bySize.get(label) ?? [], owner.split("/").at(-1) ?? owner]);
31
+ }
32
+ const named = [...bySize].filter(([label]) => label !== "").map(([label, owners]) => `${label} by ${list([...new Set(owners)])}`), unsized = bySize.get("");
33
+ if (named.length === 0)
34
+ return unsized === void 0 ? "" : `drawn by ${list([...new Set(unsized)])}`;
35
+ return `drawn at ${named.join("; ")}${unsized === void 0 ? "" : `; by ${list([...new Set(unsized)])}`}`;
36
+ }
37
+ export function assetNote(asset, px) {
27
38
  return [
28
39
  asset.title,
40
+ assetUses(asset, px),
29
41
  asset.sets.length ? `${asset.sets.length} ${asset.sets.length === 1 ? "set" : "sets"}: ${list(asset.sets)}` : "",
30
42
  asset.aliases.length ? `alias: ${list(asset.aliases)}` : "",
31
43
  opticalCentre(asset) === "Middle" ? "" : `centre ${opticalCentre(asset)}`
32
44
  ].filter(Boolean).join(" \xB7 ");
33
45
  }
34
- const VIEW = "View", SIZE = "Size", GUIDES = "Guides", COMPACT = "compact", ALL_SIZES = "all sizes", NO_GUIDES = "none", GRID = "grid", GRID_CENTRE = "grid + centre", TILE_INLINE = 150;
46
+ const VIEW = "View", SIZE = "Size", GUIDES = "Guides", PLACE = "Place", COMPACT = "compact", ALL_SIZES = "all sizes", NO_GUIDES = "none", GRID = "grid", GRID_CENTRE = "grid + centre", ALONE = "alone", BESIDE_TEXT = "beside text", TILE_INLINE = 150;
35
47
  export function assetSummary(facts) {
36
48
  const counted = (group) => ["foreground", "slots", "intrinsic"].map((paint) => [facts.assets.filter((asset) => asset.group === group && asset.paint === paint).length, paint]).filter(([count]) => count > 0).map(([count, paint]) => `${count} ${paint}`).join(", ");
37
49
  return [
@@ -57,7 +69,7 @@ export function assetSummary(facts) {
57
69
  ] : []
58
70
  ];
59
71
  }
60
- export function assetSections(facts, choice) {
72
+ export function assetSections(facts, choice, px) {
61
73
  if (choice === SUMMARY)
62
74
  return assetSummary(facts);
63
75
  const byName = new Map(facts.assets.map((asset) => [asset.name, asset]));
@@ -87,7 +99,7 @@ export function assetSections(facts, choice) {
87
99
  key: paint,
88
100
  title: `${members.length} ${members.length === 1 ? "asset" : "assets"}`,
89
101
  size: "small",
90
- cards: members.map((asset) => ({ key: asset.name, code: !0, name: asset.name, note: assetNote(asset) }))
102
+ cards: members.map((asset) => ({ key: asset.name, code: !0, name: asset.name, note: assetNote(asset, px) }))
91
103
  }
92
104
  ]
93
105
  }));
@@ -109,7 +121,7 @@ export function mountAssets(container, facts) {
109
121
  ...(facts?.groups ?? []).map((group) => ({ id: groupChoice(group.group), label: `${groupTitle(group.group)} ${group.count}` })),
110
122
  ...facts?.sets.length ? [{ id: SETS, label: `Glyph sets ${facts.sets.length}` }] : []
111
123
  ], listed = html.dataset.adsChoices === "host";
112
- let choice = listed ? SUMMARY : choices[0]?.id ?? "", hosted = listed, mode = COMPACT, chosenSize = null, guides = NO_GUIDES;
124
+ let choice = listed ? SUMMARY : choices[0]?.id ?? "", hosted = listed, mode = COMPACT, chosenSize = null, guides = NO_GUIDES, place = ALONE;
113
125
  const render = () => {
114
126
  const theme = html.dataset.theme, scheme = view?.getComputedStyle(html).colorScheme.includes("dark") ? "dark" : "light", members = choice === SETS || choice === SUMMARY ? [] : assets.filter((asset) => groupChoice(asset.group) === choice), folder = choice.startsWith("group:") ? groupTitle(choice.slice(6) || null) : null, sizes = [...new Map((facts?.sizes ?? []).map((token) => [Math.round(pixels(token) * 100) / 100, token]))].filter(([px]) => px > 0 && px <= 64).sort(([a], [b]) => a - b).map(([px, token]) => ({ token, px })), size = sizes.find((item) => String(item.px) === chosenSize) ?? sizes[Math.floor(sizes.length / 2)], everySize = folder !== null && mode === ALL_SIZES;
115
127
  renderCardPage(page, {
@@ -131,7 +143,8 @@ export function mountAssets(container, facts) {
131
143
  controls: [
132
144
  { prop: VIEW, options: [COMPACT, ALL_SIZES], chosen: mode, as: "buttons" },
133
145
  ...everySize || size === void 0 ? [] : [{ prop: SIZE, options: sizes.map((item) => String(item.px)), chosen: String(size.px), as: "buttons" }],
134
- ...everySize ? [] : [{ prop: GUIDES, options: [NO_GUIDES, GRID, GRID_CENTRE], chosen: guides, as: "buttons" }]
146
+ ...everySize ? [] : [{ prop: GUIDES, options: [NO_GUIDES, GRID, GRID_CENTRE], chosen: guides, as: "buttons" }],
147
+ ...everySize ? [] : [{ prop: PLACE, options: [ALONE, BESIDE_TEXT], chosen: place, as: "buttons" }]
135
148
  ],
136
149
  onControl: (prop, option) => {
137
150
  if (prop === VIEW)
@@ -140,11 +153,13 @@ export function mountAssets(container, facts) {
140
153
  chosenSize = option;
141
154
  else if (prop === GUIDES)
142
155
  guides = option;
156
+ else if (prop === PLACE)
157
+ place = option;
143
158
  render();
144
159
  }
145
160
  }
146
161
  } : {},
147
- sections: facts === null || facts === void 0 || everySize ? [] : assetSections(facts, choice)
162
+ sections: facts === null || facts === void 0 || everySize ? [] : assetSections(facts, choice, pixels)
148
163
  });
149
164
  const element = (asset, drawing, height) => {
150
165
  const drawn = drawing === void 0 ? void 0 : sanitizeInspectedSvg(doc, drawing.svg, height);
@@ -160,7 +175,7 @@ export function mountAssets(container, facts) {
160
175
  embedded: !0,
161
176
  title: `${folder ?? ""} artwork`,
162
177
  source: `assets/${choice.slice(6)}`,
163
- glyphs: members.map((asset) => {
178
+ items: members.map((asset) => {
164
179
  const drawing = drawingFor(asset, theme, scheme);
165
180
  return {
166
181
  name: asset.name,
@@ -176,8 +191,8 @@ export function mountAssets(container, facts) {
176
191
  aliasCount: members.reduce((count, asset) => count + asset.aliases.length, 0),
177
192
  findings: []
178
193
  };
179
- renderIconCatalogue(catalogue, { data });
180
- for (const set of catalogue.querySelectorAll(".icons-set"))
194
+ renderArtworkCatalogue(catalogue, { data });
195
+ for (const set of catalogue.querySelectorAll(".catalogue-set"))
181
196
  set.dataset.adsStageInset = "8";
182
197
  } else
183
198
  unmount(catalogue);
@@ -200,7 +215,8 @@ export function mountAssets(container, facts) {
200
215
  const guided = folder !== null && guides !== NO_GUIDES;
201
216
  unmount(slot);
202
217
  slot.replaceChildren();
203
- renderArtworkSample(slot, guided ? { grid: { x: drawing.box[0], y: drawing.box[1], width: drawing.box[2], height: drawing.box[3] }, ...guides === GRID_CENTRE ? { centre: asset.center ?? [0, 0] } : {} } : {});
218
+ const text = folder !== null && place === BESIDE_TEXT ? { text: asset.title || asset.name } : {};
219
+ renderArtworkSample(slot, guided ? { grid: { x: drawing.box[0], y: drawing.box[1], width: drawing.box[2], height: drawing.box[3] }, ...guides === GRID_CENTRE ? { centre: asset.center ?? [0, 0] } : {}, ...text } : text);
204
220
  const frame = slot.querySelector('[data-slot="frame"]');
205
221
  frame?.style.setProperty("inline-size", `${inline}px`);
206
222
  frame?.style.setProperty("block-size", `${block}px`);
@@ -213,7 +229,7 @@ export function mountAssets(container, facts) {
213
229
  delete slot.dataset.adsOwnDrawing;
214
230
  const fitted = slot.closest(".ux-sample-card")?.querySelector(".ux-sample-card-note") ?? null;
215
231
  if (fitted !== null && folder !== null) {
216
- const said = " \xB7 drawn at ", text = fitted.firstChild, plain = (text?.nodeValue ?? "").split(said)[0] ?? "";
232
+ const said = " \xB7 shown at ", text = fitted.firstChild, plain = (text?.nodeValue ?? "").split(said)[0] ?? "";
217
233
  if (text !== null)
218
234
  text.nodeValue = scale < 1 ? `${plain}${said}${Math.round(block)}px to fit, not ${wanted}px` : plain;
219
235
  }