@floegence/floe-webapp-core 0.86.37 → 0.86.39

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.
@@ -1,6 +1,6 @@
1
- import { createProgressTokens as b } from "./progressTokens.js";
2
- import { DARK_WINDOW_TOKENS as B, LIGHT_WINDOW_TOKENS as E } from "./windowTokens.js";
3
- import { CLASSIC_LIGHT_SEMANTIC_TOKENS as d, CLASSIC_DARK_SEMANTIC_TOKENS as F } from "./classicSemanticTokens.js";
1
+ import { createProgressTokens as E } from "./progressTokens.js";
2
+ import { DARK_WINDOW_TOKENS as B, LIGHT_WINDOW_TOKENS as k } from "./windowTokens.js";
3
+ import { CLASSIC_LIGHT_SEMANTIC_TOKENS as t, CLASSIC_DARK_SEMANTIC_TOKENS as F } from "./classicSemanticTokens.js";
4
4
  const T = [
5
5
  "--floe-window-background",
6
6
  "--floe-window-foreground",
@@ -10,6 +10,8 @@ const T = [
10
10
  "--floe-window-shadow",
11
11
  "--background",
12
12
  "--foreground",
13
+ "--inline-code-foreground",
14
+ "--inline-code-background",
13
15
  "--primary",
14
16
  "--primary-foreground",
15
17
  "--secondary",
@@ -71,7 +73,7 @@ const T = [
71
73
  "--selection-code-bg",
72
74
  "--selection-code-fg",
73
75
  "--glow"
74
- ], k = {
76
+ ], p = {
75
77
  success: "#287A4B",
76
78
  successForeground: "#FFFFFF",
77
79
  warning: "#835800",
@@ -95,21 +97,23 @@ const T = [
95
97
  tip: "#71C8C0"
96
98
  };
97
99
  function o(r) {
98
- const e = r.mode === "light" ? k : A, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
100
+ const e = r.mode === "light" ? p : A, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
99
101
  background: r.background,
100
102
  foreground: r.foreground
101
- }, [t, c, u, i, s] = r.chart, a = r.syntax ?? {
103
+ }, [d, c, u, i, s] = r.chart, a = r.syntax ?? {
102
104
  comment: r.mutedForeground,
103
- keyword: t,
105
+ keyword: d,
104
106
  string: c,
105
107
  number: i,
106
108
  type: u,
107
109
  function: s,
108
110
  constant: i
109
111
  }, g = {
110
- ...r.mode === "dark" ? B : E,
112
+ ...r.mode === "dark" ? B : k,
111
113
  "--background": r.background,
112
114
  "--foreground": r.foreground,
115
+ "--inline-code-foreground": r.inlineCode?.foreground ?? r.foreground,
116
+ "--inline-code-background": r.inlineCode?.background ?? r.muted,
113
117
  "--primary": r.primary,
114
118
  "--primary-foreground": r.primaryForeground,
115
119
  "--secondary": r.muted,
@@ -159,7 +163,7 @@ function o(r) {
159
163
  "--activity-bar-badge-foreground": r.primaryForeground,
160
164
  "--terminal-background": r.terminalBackground,
161
165
  "--terminal-foreground": r.terminalForeground,
162
- "--chart-1": t,
166
+ "--chart-1": d,
163
167
  "--chart-2": c,
164
168
  "--chart-3": u,
165
169
  "--chart-4": i,
@@ -174,9 +178,9 @@ function o(r) {
174
178
  // selectionBackground so we don't inherit a near-white primary as glow source.
175
179
  "--glow": r.glow ?? (r.mode === "light" ? r.primary : r.selectionBackground)
176
180
  };
177
- Object.assign(g, b(r.mode, g));
178
- for (const [l, p] of Object.entries(r.fileIconColors ?? {}))
179
- g[`--floe-file-icon-${l}`] = p;
181
+ Object.assign(g, E(r.mode, g));
182
+ for (const [l, b] of Object.entries(r.fileIconColors ?? {}))
183
+ g[`--floe-file-icon-${l}`] = b;
180
184
  return {
181
185
  name: r.name,
182
186
  displayName: r.displayName,
@@ -253,22 +257,22 @@ function o(r) {
253
257
  tokens: r.mode === "light" ? { light: g } : { dark: g }
254
258
  };
255
259
  }
256
- const y = {
260
+ const C = {
257
261
  ...o({
258
262
  name: "classic-light",
259
263
  displayName: "Classic Light",
260
264
  description: "Warm paper and quiet sage accents.",
261
265
  mode: "light",
262
- background: d["--background"],
263
- foreground: d["--foreground"],
264
- card: d["--card"],
265
- muted: d["--muted"],
266
- mutedForeground: d["--muted-foreground"],
267
- primary: d["--primary"],
268
- primaryForeground: d["--primary-foreground"],
269
- border: d["--border"],
270
- input: d["--input"],
271
- sidebar: d["--sidebar"],
266
+ background: t["--background"],
267
+ foreground: t["--foreground"],
268
+ card: t["--card"],
269
+ muted: t["--muted"],
270
+ mutedForeground: t["--muted-foreground"],
271
+ primary: t["--primary"],
272
+ primaryForeground: t["--primary-foreground"],
273
+ border: t["--border"],
274
+ input: t["--input"],
275
+ sidebar: t["--sidebar"],
272
276
  terminalBackground: "#202A37",
273
277
  terminalForeground: "#EBEBEB",
274
278
  selectionBackground: "#2671D9",
@@ -285,9 +289,9 @@ const y = {
285
289
  }
286
290
  }),
287
291
  inheritsBaseTokens: !0,
288
- semanticTokens: d,
292
+ semanticTokens: t,
289
293
  tokens: void 0
290
- }, h = {
294
+ }, y = {
291
295
  ...o({
292
296
  name: "classic-dark",
293
297
  displayName: "Classic Dark",
@@ -321,9 +325,10 @@ const y = {
321
325
  inheritsBaseTokens: !0,
322
326
  semanticTokens: F,
323
327
  tokens: void 0
324
- }, C = [
328
+ }, D = [
325
329
  o({
326
330
  name: "porcelain-light",
331
+ inlineCode: { foreground: "#795C40", background: "#EAE5DF" },
327
332
  displayName: "Porcelain Light",
328
333
  description: "Original Redeven warm ivory and blue-gray ink, with quiet modern surfaces.",
329
334
  fileIconColors: {
@@ -360,9 +365,10 @@ const y = {
360
365
  constant: "#9C225E"
361
366
  }
362
367
  }),
363
- y,
368
+ C,
364
369
  o({
365
370
  name: "paper",
371
+ inlineCode: { foreground: "#775D3F", background: "#EBE5DA" },
366
372
  displayName: "Paper",
367
373
  description: "Warm paper and deep ink for focused reading.",
368
374
  mode: "light",
@@ -384,6 +390,7 @@ const y = {
384
390
  }),
385
391
  o({
386
392
  name: "mist",
393
+ inlineCode: { foreground: "#3B607C", background: "#E0E7ED" },
387
394
  displayName: "Mist",
388
395
  description: "Cool, quiet layers for monitoring and dense data.",
389
396
  mode: "light",
@@ -405,6 +412,7 @@ const y = {
405
412
  }),
406
413
  o({
407
414
  name: "meadow",
415
+ inlineCode: { foreground: "#3C684C", background: "#E0E9DF" },
408
416
  displayName: "Meadow",
409
417
  description: "Natural greens for collaborative daily work.",
410
418
  mode: "light",
@@ -426,6 +434,7 @@ const y = {
426
434
  }),
427
435
  o({
428
436
  name: "citrus",
437
+ inlineCode: { foreground: "#865622", background: "#F5E8D2" },
429
438
  displayName: "Citrus",
430
439
  description: "Warm cream and amber for lively commercial work.",
431
440
  mode: "light",
@@ -447,6 +456,7 @@ const y = {
447
456
  }),
448
457
  o({
449
458
  name: "lilac",
459
+ inlineCode: { foreground: "#71548B", background: "#EAE4F1" },
450
460
  displayName: "Lilac",
451
461
  description: "Soft violet structure for creative and client work.",
452
462
  mode: "light",
@@ -468,6 +478,7 @@ const y = {
468
478
  }),
469
479
  o({
470
480
  name: "light-plus",
481
+ inlineCode: { foreground: "#355F8B", background: "#EFF2F6" },
471
482
  displayName: "Light+",
472
483
  description: "VS Code clarity with crisp blue actions and neutral chrome.",
473
484
  mode: "light",
@@ -498,6 +509,7 @@ const y = {
498
509
  }),
499
510
  o({
500
511
  name: "quiet-light",
512
+ inlineCode: { foreground: "#625987", background: "#E9E9EC" },
501
513
  displayName: "Quiet Light",
502
514
  description: "Soft gray surfaces and calm indigo for long coding sessions.",
503
515
  mode: "light",
@@ -528,6 +540,7 @@ const y = {
528
540
  }),
529
541
  o({
530
542
  name: "solarized-light",
543
+ inlineCode: { foreground: "#426C70", background: "#EEEBDA" },
531
544
  displayName: "Solarized Light",
532
545
  description: "Solarized warmth with measured cyan, green, and amber syntax.",
533
546
  mode: "light",
@@ -558,6 +571,7 @@ const y = {
558
571
  }),
559
572
  o({
560
573
  name: "github-light",
574
+ inlineCode: { foreground: "#3E6085", background: "#E7ECF1" },
561
575
  displayName: "GitHub Light",
562
576
  description: "Clean repository neutrals with familiar blue and green accents.",
563
577
  mode: "light",
@@ -588,6 +602,7 @@ const y = {
588
602
  }),
589
603
  o({
590
604
  name: "hc-light",
605
+ inlineCode: { foreground: "#000078", background: "#EBEBF4" },
591
606
  displayName: "High Contrast Light",
592
607
  description: "Maximum edge definition for bright environments and low vision.",
593
608
  mode: "light",
@@ -618,6 +633,7 @@ const y = {
618
633
  }),
619
634
  o({
620
635
  name: "porcelain-dark",
636
+ inlineCode: { foreground: "#AAC7BD", background: "#1A1D1D" },
621
637
  displayName: "Porcelain Dark",
622
638
  description: "Warm white text and neutral controls on a near-black canvas with quiet charcoal surfaces.",
623
639
  mode: "dark",
@@ -648,9 +664,10 @@ const y = {
648
664
  constant: "#E9A4A0"
649
665
  }
650
666
  }),
651
- h,
667
+ y,
652
668
  o({
653
669
  name: "ink",
670
+ inlineCode: { foreground: "#A5B9D7", background: "#192330" },
654
671
  displayName: "Ink",
655
672
  description: "Blue-black focus with a restrained engineering blue.",
656
673
  mode: "dark",
@@ -672,6 +689,7 @@ const y = {
672
689
  }),
673
690
  o({
674
691
  name: "slate",
692
+ inlineCode: { foreground: "#B1C0D1", background: "#252A32" },
675
693
  displayName: "Slate",
676
694
  description: "Neutral graphite layers for enterprise operations.",
677
695
  mode: "dark",
@@ -693,6 +711,7 @@ const y = {
693
711
  }),
694
712
  o({
695
713
  name: "forest",
714
+ inlineCode: { foreground: "#9DCDB7", background: "#182A25" },
696
715
  displayName: "Forest",
697
716
  description: "Deep greens and copper for calm live monitoring.",
698
717
  mode: "dark",
@@ -714,6 +733,7 @@ const y = {
714
733
  }),
715
734
  o({
716
735
  name: "ember",
736
+ inlineCode: { foreground: "#D9B09D", background: "#2E1F21" },
717
737
  displayName: "Ember",
718
738
  description: "Charcoal warmth for releases and high-attention work.",
719
739
  mode: "dark",
@@ -735,6 +755,7 @@ const y = {
735
755
  }),
736
756
  o({
737
757
  name: "ocean",
758
+ inlineCode: { foreground: "#9BCDDC", background: "#142A35" },
738
759
  displayName: "Ocean",
739
760
  description: "High-clarity cyan for streams, terminals, and tools.",
740
761
  mode: "dark",
@@ -756,6 +777,7 @@ const y = {
756
777
  }),
757
778
  o({
758
779
  name: "dark-plus",
780
+ inlineCode: { foreground: "#A8C3DC", background: "#2A2D2F" },
759
781
  displayName: "Dark+",
760
782
  description: "The familiar VS Code dark workbench with balanced syntax color.",
761
783
  mode: "dark",
@@ -786,6 +808,7 @@ const y = {
786
808
  }),
787
809
  o({
788
810
  name: "monokai",
811
+ inlineCode: { foreground: "#CDD3A4", background: "#36372E" },
789
812
  displayName: "Monokai",
790
813
  description: "Warm charcoal with vivid pink, green, cyan, and yellow code.",
791
814
  mode: "dark",
@@ -816,6 +839,7 @@ const y = {
816
839
  }),
817
840
  o({
818
841
  name: "nord",
842
+ inlineCode: { foreground: "#AFC8D1", background: "#3A414D" },
819
843
  displayName: "Nord",
820
844
  description: "Arctic blue-gray surfaces with restrained frost accents.",
821
845
  mode: "dark",
@@ -846,6 +870,7 @@ const y = {
846
870
  }),
847
871
  o({
848
872
  name: "dracula",
873
+ inlineCode: { foreground: "#CAB5E2", background: "#373745" },
849
874
  displayName: "Dracula",
850
875
  description: "Deep violet charcoal with bright pink, green, and cyan syntax.",
851
876
  mode: "dark",
@@ -876,6 +901,7 @@ const y = {
876
901
  }),
877
902
  o({
878
903
  name: "abyss",
904
+ inlineCode: { foreground: "#95C4DA", background: "#0D1D29" },
879
905
  displayName: "Abyss",
880
906
  description: "Near-black ocean depth with electric cyan tool highlights.",
881
907
  mode: "dark",
@@ -906,6 +932,7 @@ const y = {
906
932
  }),
907
933
  o({
908
934
  name: "studio",
935
+ inlineCode: { foreground: "#BCB8CE", background: "#29282C" },
909
936
  displayName: "Studio",
910
937
  description: "Neutral near-black workspace: clean dark surfaces with zero color cast.",
911
938
  mode: "dark",
@@ -936,6 +963,7 @@ const y = {
936
963
  }),
937
964
  o({
938
965
  name: "graphite",
966
+ inlineCode: { foreground: "#A9C5C6", background: "#292B2D" },
939
967
  displayName: "Graphite",
940
968
  description: "macOS system dark: neutral warm surfaces, system-blue active state, teal and amber chart palette.",
941
969
  mode: "dark",
@@ -969,12 +997,12 @@ const y = {
969
997
  light: "porcelain-light",
970
998
  dark: "porcelain-dark"
971
999
  };
972
- function D(r, e) {
1000
+ function h(r, e) {
973
1001
  const n = r.mode ?? "both";
974
1002
  return n === "both" || n === e;
975
1003
  }
976
1004
  function f(r, e) {
977
- return r.filter((n) => D(n, e));
1005
+ return r.filter((n) => h(n, e));
978
1006
  }
979
1007
  function w(r) {
980
1008
  const e = /* @__PURE__ */ new Set();
@@ -984,27 +1012,27 @@ function w(r) {
984
1012
  e.add(n.name);
985
1013
  }
986
1014
  }
987
- function m(r, e, n, t) {
1015
+ function m(r, e, n, d) {
988
1016
  const c = f(r, e);
989
- return n && c.some((u) => u.name === n) ? n : t && c.some((u) => u.name === t) ? t : c[0]?.name;
1017
+ return n && c.some((u) => u.name === n) ? n : d && c.some((u) => u.name === d) ? d : c[0]?.name;
990
1018
  }
991
1019
  function L(r, e, n = {}) {
992
- const t = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0, c = t?.version === 1, u = c && typeof t.light == "string" ? t.light : void 0, i = c && typeof t.dark == "string" ? t.dark : void 0;
1020
+ const d = typeof r == "object" && r !== null && !Array.isArray(r) ? r : void 0, c = d?.version === 1, u = c && typeof d.light == "string" ? d.light : void 0, i = c && typeof d.dark == "string" ? d.dark : void 0;
993
1021
  return {
994
1022
  version: 1,
995
1023
  light: m(e, "light", u, n.light),
996
1024
  dark: m(e, "dark", i, n.dark)
997
1025
  };
998
1026
  }
999
- w(C);
1027
+ w(D);
1000
1028
  export {
1001
1029
  x as BUILT_IN_SHELL_THEME_DEFAULTS,
1002
1030
  T as REQUIRED_SHELL_THEME_TOKENS,
1003
1031
  w as assertUniqueThemePresetNames,
1004
- C as builtInShellThemePresets,
1032
+ D as builtInShellThemePresets,
1005
1033
  o as createShellThemePreset,
1006
1034
  f as getShellThemePresetsForMode,
1007
1035
  L as normalizeShellThemeSelection,
1008
- D as presetSupportsMode,
1036
+ h as presetSupportsMode,
1009
1037
  m as resolveShellThemePresetName
1010
1038
  };