@almadar/ui 6.54.0 → 6.55.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.
Files changed (113) hide show
  1. package/dist/{AwaitingSkeletonContext-Bh399p1x.d.ts → AwaitingSkeletonContext-DPgW__WV.d.ts} +3 -1
  2. package/dist/{Canvas3DHost-B-y2TNij.d.ts → Canvas3DHost-DfAhg6EH.d.ts} +2 -0
  3. package/dist/Typography-7PDT62PG.js +5 -0
  4. package/dist/{UISlotRenderer-QUEG6WFM.js → UISlotRenderer-QTHFT6Z4.js} +6 -6
  5. package/dist/avl/index.cjs +3385 -1883
  6. package/dist/avl/index.js +45 -737
  7. package/dist/{chunk-ERXIHZW3.js → chunk-D2E44ODB.js} +29 -15
  8. package/dist/{chunk-FJDS4SVD.js → chunk-F4ZTPKZL.js} +3 -3
  9. package/dist/{chunk-U3CGKPOK.js → chunk-FQM37C56.js} +136 -107
  10. package/dist/{chunk-4UP6BZ4R.js → chunk-HCSJHRC4.js} +1 -1
  11. package/dist/{chunk-N2V4LHFQ.js → chunk-HRCR53OW.js} +10 -1
  12. package/dist/{chunk-O7OLVVBR.js → chunk-Q47ZN2DW.js} +24 -22
  13. package/dist/{chunk-4HC5HRHB.js → chunk-QGH4NAQO.js} +2 -2
  14. package/dist/{chunk-MCKFWPT2.js → chunk-RNY5LJXJ.js} +1 -1
  15. package/dist/{chunk-Z7JWXIRE.js → chunk-SGJHVPHC.js} +2 -2
  16. package/dist/{chunk-6O37FCX4.js → chunk-V3FGTQUE.js} +37 -2
  17. package/dist/{chunk-U2FGMHQP.js → chunk-XZKGRSIO.js} +3334 -1796
  18. package/dist/{chunk-Z5IYJU44.js → chunk-Y53Q55H5.js} +521 -24
  19. package/dist/components/index.cjs +5194 -3008
  20. package/dist/components/index.d.ts +117 -52
  21. package/dist/components/index.js +12 -12
  22. package/dist/context/index.cjs +36 -1
  23. package/dist/context/index.d.ts +1 -1
  24. package/dist/context/index.js +1 -1
  25. package/dist/design-classes/index.cjs +29 -15
  26. package/dist/design-classes/index.d.cts +1 -0
  27. package/dist/design-classes/index.d.ts +1 -0
  28. package/dist/design-classes/index.js +29 -15
  29. package/dist/hooks/index.cjs +10 -1
  30. package/dist/hooks/index.js +3 -3
  31. package/dist/lib/drawable/three/index.cjs +442 -82
  32. package/dist/lib/drawable/three/index.d.ts +2 -2
  33. package/dist/lib/drawable/three/index.js +28 -24
  34. package/dist/lib/index.cjs +52 -3
  35. package/dist/lib/index.d.ts +1 -1
  36. package/dist/lib/index.js +4 -4
  37. package/dist/locales/index.cjs +30 -3
  38. package/dist/locales/index.js +21 -3
  39. package/dist/providers/index.cjs +5330 -3091
  40. package/dist/providers/index.d.ts +1 -1
  41. package/dist/providers/index.js +12 -9
  42. package/dist/runtime/index.cjs +5400 -3182
  43. package/dist/runtime/index.d.ts +7 -3
  44. package/dist/runtime/index.js +8 -8
  45. package/dist/ssr/index.cjs +24 -8
  46. package/dist/ssr/index.js +24 -8
  47. package/dist/{themeTokens-Ccu7EmGY.d.ts → themeTokens-D6MFwKrC.d.ts} +6 -2
  48. package/locales/ar.json +10 -1
  49. package/locales/en.json +10 -1
  50. package/locales/sl.json +10 -1
  51. package/package.json +6 -6
  52. package/scripts/theme-contrast-audit.mjs +20 -1
  53. package/themes/_base.css +61 -0
  54. package/themes/_contract.md +37 -0
  55. package/themes/almadar-heritage.css +82 -0
  56. package/themes/almadar-website.css +82 -0
  57. package/themes/almadar.css +82 -0
  58. package/themes/aqua.css +82 -0
  59. package/themes/arabesque.css +82 -0
  60. package/themes/art-deco.css +82 -0
  61. package/themes/art-nouveau.css +82 -0
  62. package/themes/atelier.css +82 -0
  63. package/themes/bauhaus.css +82 -0
  64. package/themes/bloomberg-dense.css +83 -1
  65. package/themes/blueprint.css +84 -0
  66. package/themes/clay.css +82 -0
  67. package/themes/comic.css +82 -0
  68. package/themes/constructivist.css +82 -0
  69. package/themes/corporate.css +82 -0
  70. package/themes/cyberpunk.css +82 -0
  71. package/themes/frutiger-aero.css +83 -0
  72. package/themes/game-adventure.css +15 -0
  73. package/themes/game-rpg.css +16 -0
  74. package/themes/game-sci-fi.css +15 -0
  75. package/themes/game-ui-pack.css +15 -0
  76. package/themes/gazette.css +82 -0
  77. package/themes/glass.css +82 -0
  78. package/themes/gothic.css +82 -0
  79. package/themes/ink-wash.css +82 -0
  80. package/themes/kawaii.css +82 -0
  81. package/themes/kiosk.css +82 -0
  82. package/themes/linear-clean.css +82 -0
  83. package/themes/luxury.css +82 -0
  84. package/themes/mac-classic.css +90 -8
  85. package/themes/material.css +82 -0
  86. package/themes/memphis.css +82 -0
  87. package/themes/mid-century.css +82 -0
  88. package/themes/minimalist.css +82 -0
  89. package/themes/mudcloth.css +82 -0
  90. package/themes/neon.css +83 -0
  91. package/themes/neumorphic.css +82 -0
  92. package/themes/newsprint.css +82 -0
  93. package/themes/notion-editorial.css +82 -0
  94. package/themes/orb.css +82 -0
  95. package/themes/pixel.css +82 -0
  96. package/themes/prism.css +82 -0
  97. package/themes/retro.css +83 -0
  98. package/themes/risograph.css +82 -0
  99. package/themes/scandi.css +82 -0
  100. package/themes/sketch.css +82 -0
  101. package/themes/solarpunk.css +82 -0
  102. package/themes/steampunk.css +82 -0
  103. package/themes/swiss.css +82 -0
  104. package/themes/terminal.css +84 -1
  105. package/themes/trait-wars.css +82 -0
  106. package/themes/ukiyo-e.css +82 -0
  107. package/themes/vaporwave.css +82 -0
  108. package/themes/victorian.css +82 -0
  109. package/themes/wabi-sabi.css +82 -0
  110. package/themes/win95.css +84 -0
  111. package/themes/wireframe.css +82 -0
  112. package/themes/zine.css +82 -0
  113. package/dist/Typography-CFI7JUVE.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import { useUISlotManager } from '../chunk-VHTJRS2N.js';
2
- export { resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-6O37FCX4.js';
2
+ export { resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-V3FGTQUE.js';
3
3
  import '../chunk-PEST66PN.js';
4
4
  import '../chunk-QPXIAUJD.js';
5
5
  import { createContext, useMemo, useContext, useState, useEffect, useCallback } from 'react';
@@ -362,23 +362,37 @@ function tokenOfDesignClass(className) {
362
362
  function isArbitraryClass(className) {
363
363
  return /^[a-z0-9:@/-]*-\[[^\]\s]+\]$/i.test(className);
364
364
  }
365
- function arbitraryClassesOf(schema) {
366
- const found = /* @__PURE__ */ new Set();
367
- const visit = (value) => {
368
- if (Array.isArray(value)) {
369
- value.forEach(visit);
370
- return;
365
+ function collectClasses(value, found) {
366
+ if (Array.isArray(value)) {
367
+ for (const item of value) collectClasses(item, found);
368
+ return;
369
+ }
370
+ if (value === null || typeof value !== "object") return;
371
+ for (const [key, child] of Object.entries(value)) {
372
+ if (key === "className" && typeof child === "string") {
373
+ for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
374
+ } else {
375
+ collectClasses(child, found);
371
376
  }
372
- if (value === null || typeof value !== "object") return;
373
- for (const [key, child] of Object.entries(value)) {
374
- if (key === "className" && typeof child === "string") {
375
- for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
376
- } else {
377
- visit(child);
378
- }
377
+ }
378
+ }
379
+ function classesOfPart(part) {
380
+ const found = /* @__PURE__ */ new Set();
381
+ collectClasses(JSON.parse(JSON.stringify(part)), found);
382
+ return [...found];
383
+ }
384
+ var classesByOrbital = /* @__PURE__ */ new WeakMap();
385
+ function arbitraryClassesOf(schema) {
386
+ const { orbitals, _metadata: _provenance, ledger: _identities, ...rest } = schema;
387
+ const found = new Set(classesOfPart(rest));
388
+ for (const orbital of orbitals ?? []) {
389
+ let classes = classesByOrbital.get(orbital);
390
+ if (!classes) {
391
+ classes = classesOfPart(orbital);
392
+ classesByOrbital.set(orbital, classes);
379
393
  }
380
- };
381
- visit(JSON.parse(JSON.stringify(schema)));
394
+ for (const cls of classes) found.add(cls);
395
+ }
382
396
  return [...found].sort();
383
397
  }
384
398
 
@@ -157,6 +157,7 @@ declare function isArbitraryClass(className: string): boolean;
157
157
  * sorted. Tailwind only compiles classes it saw at build time, so a runtime
158
158
  * that renders a schema compiles these on demand (the scale and token classes
159
159
  * are safelisted by the preset). Bound (expression) classNames are skipped.
160
+ * `_metadata` and `ledger` are provenance and identity records, never render trees.
160
161
  */
161
162
  declare function arbitraryClassesOf(schema: OrbitalSchema): string[];
162
163
 
@@ -157,6 +157,7 @@ declare function isArbitraryClass(className: string): boolean;
157
157
  * sorted. Tailwind only compiles classes it saw at build time, so a runtime
158
158
  * that renders a schema compiles these on demand (the scale and token classes
159
159
  * are safelisted by the preset). Bound (expression) classNames are skipped.
160
+ * `_metadata` and `ledger` are provenance and identity records, never render trees.
160
161
  */
161
162
  declare function arbitraryClassesOf(schema: OrbitalSchema): string[];
162
163
 
@@ -360,23 +360,37 @@ function tokenOfDesignClass(className) {
360
360
  function isArbitraryClass(className) {
361
361
  return /^[a-z0-9:@/-]*-\[[^\]\s]+\]$/i.test(className);
362
362
  }
363
- function arbitraryClassesOf(schema) {
364
- const found = /* @__PURE__ */ new Set();
365
- const visit = (value) => {
366
- if (Array.isArray(value)) {
367
- value.forEach(visit);
368
- return;
363
+ function collectClasses(value, found) {
364
+ if (Array.isArray(value)) {
365
+ for (const item of value) collectClasses(item, found);
366
+ return;
367
+ }
368
+ if (value === null || typeof value !== "object") return;
369
+ for (const [key, child] of Object.entries(value)) {
370
+ if (key === "className" && typeof child === "string") {
371
+ for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
372
+ } else {
373
+ collectClasses(child, found);
369
374
  }
370
- if (value === null || typeof value !== "object") return;
371
- for (const [key, child] of Object.entries(value)) {
372
- if (key === "className" && typeof child === "string") {
373
- for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
374
- } else {
375
- visit(child);
376
- }
375
+ }
376
+ }
377
+ function classesOfPart(part) {
378
+ const found = /* @__PURE__ */ new Set();
379
+ collectClasses(JSON.parse(JSON.stringify(part)), found);
380
+ return [...found];
381
+ }
382
+ var classesByOrbital = /* @__PURE__ */ new WeakMap();
383
+ function arbitraryClassesOf(schema) {
384
+ const { orbitals, _metadata: _provenance, ledger: _identities, ...rest } = schema;
385
+ const found = new Set(classesOfPart(rest));
386
+ for (const orbital of orbitals ?? []) {
387
+ let classes = classesByOrbital.get(orbital);
388
+ if (!classes) {
389
+ classes = classesOfPart(orbital);
390
+ classesByOrbital.set(orbital, classes);
377
391
  }
378
- };
379
- visit(JSON.parse(JSON.stringify(schema)));
392
+ for (const cls of classes) found.add(cls);
393
+ }
380
394
  return [...found].sort();
381
395
  }
382
396
 
@@ -1922,6 +1922,7 @@ var en_default = {
1922
1922
  "template.ourTeam": "Our Team",
1923
1923
  "template.caseStudies": "Case Studies",
1924
1924
  "versionDiff.compare": "Compare",
1925
+ "versionDiff.changes": "Changes",
1925
1926
  "versionDiff.to": "to",
1926
1927
  "versionDiff.beforeRevision": "Before revision",
1927
1928
  "versionDiff.afterRevision": "After revision",
@@ -2648,6 +2649,7 @@ var en_default = {
2648
2649
  "gridPicker.moreRefine": "+{{count}} more \u2014 refine your search",
2649
2650
  "graphCanvas.noNodes": "No nodes to display.",
2650
2651
  "codeBlock.noCode": "No code to display.",
2652
+ "codeBlock.region": "Code",
2651
2653
  "fab.action": "Action",
2652
2654
  "fab.closeActions": "Close actions",
2653
2655
  "fab.openActions": "Open actions",
@@ -2964,7 +2966,14 @@ var en_default = {
2964
2966
  "agentActivity.earlierConversations": "Earlier conversations ({{count}})",
2965
2967
  "agentActivity.earlierActivity": "Earlier activity",
2966
2968
  "tabs.scrollStart": "Scroll tabs back",
2967
- "tabs.scrollEnd": "Scroll tabs forward"
2969
+ "tabs.scrollEnd": "Scroll tabs forward",
2970
+ "agentChat.workedThrough": "Worked through {{count}} steps",
2971
+ "agentChat.newMessages": "New messages",
2972
+ "agentChat.copy": "Copy reply",
2973
+ "agentChat.copied": "Copied",
2974
+ "agentChat.today": "Today",
2975
+ "agentChat.yesterday": "Yesterday",
2976
+ "agentChat.emptyDescription": "Ask in your own words \u2014 the assistant can look things up and make changes for you."
2968
2977
  };
2969
2978
 
2970
2979
  // lib/format.ts
@@ -1,10 +1,10 @@
1
1
  export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-2LFBQ4IS.js';
2
- export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-4HC5HRHB.js';
2
+ export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-QGH4NAQO.js';
3
3
  export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-VHTJRS2N.js';
4
4
  export { ALMADAR_DND_MIME, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useDraggable, useDropZone, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-JRW33U35.js';
5
5
  export { useTapReveal } from '../chunk-XJTHMW4G.js';
6
6
  export { useEmitEvent, useEventBus, useEventListener } from '../chunk-6EV3OEBQ.js';
7
- import '../chunk-MCKFWPT2.js';
8
- import '../chunk-N2V4LHFQ.js';
7
+ import '../chunk-RNY5LJXJ.js';
8
+ import '../chunk-HRCR53OW.js';
9
9
  import '../chunk-PEST66PN.js';
10
10
  import '../chunk-QPXIAUJD.js';