@almadar/ui 6.3.0 → 6.5.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.
@@ -2038,6 +2038,8 @@ var en_default = {
2038
2038
  "orbInspector.tokenGroup.shadows": "Shadows",
2039
2039
  "orbInspector.tab.inspector": "Inspector",
2040
2040
  "orbInspector.tab.styles": "Styles",
2041
+ "orbInspector.tab.design": "Design",
2042
+ "orbInspector.tab.prototype": "Prototype",
2041
2043
  "orbInspector.tab.code": "Code",
2042
2044
  "canvas.goBackToOverview": "Go back to overview",
2043
2045
  "canvas.overview": "Overview",
@@ -2033,6 +2033,8 @@ var en_default = {
2033
2033
  "orbInspector.tokenGroup.shadows": "Shadows",
2034
2034
  "orbInspector.tab.inspector": "Inspector",
2035
2035
  "orbInspector.tab.styles": "Styles",
2036
+ "orbInspector.tab.design": "Design",
2037
+ "orbInspector.tab.prototype": "Prototype",
2036
2038
  "orbInspector.tab.code": "Code",
2037
2039
  "canvas.goBackToOverview": "Go back to overview",
2038
2040
  "canvas.overview": "Overview",
@@ -854,7 +854,7 @@ function proceduralShapes(view, pos, fade, progress) {
854
854
  }
855
855
  }
856
856
  }
857
- function expandFxItem(view, node, epochNowMs, dim, projector) {
857
+ function expandFxItem(view, node, epochNowMs, dim, projector, fontFamily) {
858
858
  if (view.space === "screen") return [];
859
859
  const tickMs = node.tickMs ?? DEFAULT_TICK_MS;
860
860
  const { ageMs, progress, fade } = fxLifecycle(view, epochNowMs, tickMs);
@@ -890,6 +890,7 @@ function expandFxItem(view, node, epochNowMs, dim, projector) {
890
890
  out.push(...proceduralShapes(view, pos, fade, progress));
891
891
  }
892
892
  if (view.message) {
893
+ const family = "system-ui, sans-serif";
893
894
  const text = {
894
895
  type: "draw-text",
895
896
  text: view.message,
@@ -897,13 +898,13 @@ function expandFxItem(view, node, epochNowMs, dim, projector) {
897
898
  offsetY: -(0.15 + 0.55 * progress),
898
899
  color: view.color ?? node.textColor ?? DEFAULT_TEXT_COLOR,
899
900
  opacity: fade,
900
- ...{}
901
+ font: `bold ${14}px ${family}`
901
902
  };
902
903
  out.push(text);
903
904
  }
904
905
  return out;
905
906
  }
906
- function expandFxLayer(node, epochNowMs, dim, projector) {
907
+ function expandFxLayer(node, epochNowMs, dim, projector, fontFamily) {
907
908
  if (!Array.isArray(node.items)) return [];
908
909
  const out = [];
909
910
  for (const item of node.items) {
@@ -830,7 +830,7 @@ function proceduralShapes(view, pos, fade, progress) {
830
830
  }
831
831
  }
832
832
  }
833
- function expandFxItem(view, node, epochNowMs, dim, projector) {
833
+ function expandFxItem(view, node, epochNowMs, dim, projector, fontFamily) {
834
834
  if (view.space === "screen") return [];
835
835
  const tickMs = node.tickMs ?? DEFAULT_TICK_MS;
836
836
  const { ageMs, progress, fade } = fxLifecycle(view, epochNowMs, tickMs);
@@ -866,6 +866,7 @@ function expandFxItem(view, node, epochNowMs, dim, projector) {
866
866
  out.push(...proceduralShapes(view, pos, fade, progress));
867
867
  }
868
868
  if (view.message) {
869
+ const family = "system-ui, sans-serif";
869
870
  const text = {
870
871
  type: "draw-text",
871
872
  text: view.message,
@@ -873,13 +874,13 @@ function expandFxItem(view, node, epochNowMs, dim, projector) {
873
874
  offsetY: -(0.15 + 0.55 * progress),
874
875
  color: view.color ?? node.textColor ?? DEFAULT_TEXT_COLOR,
875
876
  opacity: fade,
876
- ...{}
877
+ font: `bold ${14}px ${family}`
877
878
  };
878
879
  out.push(text);
879
880
  }
880
881
  return out;
881
882
  }
882
- function expandFxLayer(node, epochNowMs, dim, projector) {
883
+ function expandFxLayer(node, epochNowMs, dim, projector, fontFamily) {
883
884
  if (!Array.isArray(node.items)) return [];
884
885
  const out = [];
885
886
  for (const item of node.items) {
@@ -377,6 +377,8 @@ var en_default = {
377
377
  "orbInspector.tokenGroup.shadows": "Shadows",
378
378
  "orbInspector.tab.inspector": "Inspector",
379
379
  "orbInspector.tab.styles": "Styles",
380
+ "orbInspector.tab.design": "Design",
381
+ "orbInspector.tab.prototype": "Prototype",
380
382
  "orbInspector.tab.code": "Code",
381
383
  "canvas.goBackToOverview": "Go back to overview",
382
384
  "canvas.overview": "Overview",
@@ -930,6 +932,8 @@ var ar_default = {
930
932
  "orbInspector.tokenGroup.shadows": "\u0627\u0644\u0638\u0644\u0627\u0644",
931
933
  "orbInspector.tab.inspector": "\u0627\u0644\u0645\u064F\u0641\u062A\u0650\u0651\u0634",
932
934
  "orbInspector.tab.styles": "\u0627\u0644\u0623\u0646\u0645\u0627\u0637",
935
+ "orbInspector.tab.design": "\u0627\u0644\u062A\u0635\u0645\u064A\u0645",
936
+ "orbInspector.tab.prototype": "\u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0627\u0644\u0623\u0648\u0644\u064A",
933
937
  "orbInspector.tab.code": "\u0627\u0644\u0643\u0648\u062F",
934
938
  "canvas.goBackToOverview": "\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0646\u0638\u0631\u0629 \u0627\u0644\u0639\u0627\u0645\u0629",
935
939
  "canvas.overview": "\u0646\u0638\u0631\u0629 \u0639\u0627\u0645\u0629",
@@ -1487,6 +1491,8 @@ var sl_default = {
1487
1491
  "orbInspector.tokenGroup.shadows": "Sence",
1488
1492
  "orbInspector.tab.inspector": "Pregledovalnik",
1489
1493
  "orbInspector.tab.styles": "Slogi",
1494
+ "orbInspector.tab.design": "Oblikovanje",
1495
+ "orbInspector.tab.prototype": "Prototip",
1490
1496
  "orbInspector.tab.code": "Koda",
1491
1497
  "canvas.goBackToOverview": "Nazaj na pregled",
1492
1498
  "canvas.overview": "Pregled",
@@ -375,6 +375,8 @@ var en_default = {
375
375
  "orbInspector.tokenGroup.shadows": "Shadows",
376
376
  "orbInspector.tab.inspector": "Inspector",
377
377
  "orbInspector.tab.styles": "Styles",
378
+ "orbInspector.tab.design": "Design",
379
+ "orbInspector.tab.prototype": "Prototype",
378
380
  "orbInspector.tab.code": "Code",
379
381
  "canvas.goBackToOverview": "Go back to overview",
380
382
  "canvas.overview": "Overview",
@@ -928,6 +930,8 @@ var ar_default = {
928
930
  "orbInspector.tokenGroup.shadows": "\u0627\u0644\u0638\u0644\u0627\u0644",
929
931
  "orbInspector.tab.inspector": "\u0627\u0644\u0645\u064F\u0641\u062A\u0650\u0651\u0634",
930
932
  "orbInspector.tab.styles": "\u0627\u0644\u0623\u0646\u0645\u0627\u0637",
933
+ "orbInspector.tab.design": "\u0627\u0644\u062A\u0635\u0645\u064A\u0645",
934
+ "orbInspector.tab.prototype": "\u0627\u0644\u0646\u0645\u0648\u0630\u062C \u0627\u0644\u0623\u0648\u0644\u064A",
931
935
  "orbInspector.tab.code": "\u0627\u0644\u0643\u0648\u062F",
932
936
  "canvas.goBackToOverview": "\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0646\u0638\u0631\u0629 \u0627\u0644\u0639\u0627\u0645\u0629",
933
937
  "canvas.overview": "\u0646\u0638\u0631\u0629 \u0639\u0627\u0645\u0629",
@@ -1485,6 +1489,8 @@ var sl_default = {
1485
1489
  "orbInspector.tokenGroup.shadows": "Sence",
1486
1490
  "orbInspector.tab.inspector": "Pregledovalnik",
1487
1491
  "orbInspector.tab.styles": "Slogi",
1492
+ "orbInspector.tab.design": "Oblikovanje",
1493
+ "orbInspector.tab.prototype": "Prototip",
1488
1494
  "orbInspector.tab.code": "Koda",
1489
1495
  "canvas.goBackToOverview": "Nazaj na pregled",
1490
1496
  "canvas.overview": "Pregled",
@@ -2507,7 +2507,7 @@ function cn(...inputs) {
2507
2507
  }
2508
2508
  logger.createLogger("almadar:eventbus");
2509
2509
  logger.createLogger("almadar:eventbus:subscribe");
2510
- var EventBusContext = React12.createContext(null);
2510
+ var EventBusContext = globalThis.__almadarUiEventBusContext ?? (globalThis.__almadarUiEventBusContext = React12.createContext(null));
2511
2511
  var EMPTY_CHAIN = Object.freeze([]);
2512
2512
  var TraitScopeContext = React12.createContext(null);
2513
2513
  function useTraitScopeChain() {
@@ -2486,7 +2486,7 @@ function cn(...inputs) {
2486
2486
  }
2487
2487
  createLogger("almadar:eventbus");
2488
2488
  createLogger("almadar:eventbus:subscribe");
2489
- var EventBusContext = createContext(null);
2489
+ var EventBusContext = globalThis.__almadarUiEventBusContext ?? (globalThis.__almadarUiEventBusContext = createContext(null));
2490
2490
  var EMPTY_CHAIN = Object.freeze([]);
2491
2491
  var TraitScopeContext = createContext(null);
2492
2492
  function useTraitScopeChain() {