@fluid-app/portal-sdk 0.1.263 → 0.1.264
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.
- package/dist/{FluidProvider-CAtUtrHk.mjs → FluidProvider-CjBaajXT.mjs} +143 -22
- package/dist/FluidProvider-CjBaajXT.mjs.map +1 -0
- package/dist/{FluidProvider-CZan7yJ3.cjs → FluidProvider-lgII8Oel.cjs} +143 -22
- package/dist/FluidProvider-lgII8Oel.cjs.map +1 -0
- package/dist/{MessagingScreen-QDJm0Pyl.cjs → MessagingScreen-B1RaTiK3.cjs} +3 -3
- package/dist/MessagingScreen-B1RaTiK3.cjs.map +1 -0
- package/dist/{MessagingScreen-XB3cov5J.cjs → MessagingScreen-BvNefjAW.cjs} +2 -2
- package/dist/{MessagingScreen-CgT-5OV9.mjs → MessagingScreen-I6KNH5mG.mjs} +3 -3
- package/dist/MessagingScreen-I6KNH5mG.mjs.map +1 -0
- package/dist/{MessagingScreen-Cez2xufk.mjs → MessagingScreen-ulyB4v7S.mjs} +2 -3
- package/dist/{MySiteScreen-CFnu_zYS.cjs → MySiteScreen-BGE15I3O.cjs} +1 -1
- package/dist/{MySiteScreen-BgbNtw0X.cjs → MySiteScreen-CjxVYCy3.cjs} +2 -2
- package/dist/MySiteScreen-CjxVYCy3.cjs.map +1 -0
- package/dist/{MySiteScreen-D1dfEszo.mjs → MySiteScreen-UnihGvkl.mjs} +2 -2
- package/dist/MySiteScreen-UnihGvkl.mjs.map +1 -0
- package/dist/{OrdersScreen-BhYkPQXn.cjs → OrdersScreen-Bkvv2kD8.cjs} +6 -6
- package/dist/OrdersScreen-Bkvv2kD8.cjs.map +1 -0
- package/dist/{OrdersScreen-B-Gb3TB-.cjs → OrdersScreen-CiqE8fWy.cjs} +1 -1
- package/dist/{OrdersScreen-BQ_YwexM.mjs → OrdersScreen-D97Q-_Aj.mjs} +6 -6
- package/dist/OrdersScreen-D97Q-_Aj.mjs.map +1 -0
- package/dist/{ProfileScreen-IJRZfp5T.cjs → ProfileScreen-B7QchKri.cjs} +2 -2
- package/dist/{ProfileScreen-BMbRpzpb.mjs → ProfileScreen-CAyyvXRF.mjs} +2 -2
- package/dist/{ProfileScreen-BMbRpzpb.mjs.map → ProfileScreen-CAyyvXRF.mjs.map} +1 -1
- package/dist/{ProfileScreen-BHgZHUVb.mjs → ProfileScreen-CLs7I118.mjs} +2 -3
- package/dist/{ProfileScreen-DZd0iacf.cjs → ProfileScreen-I7c6sZTN.cjs} +2 -2
- package/dist/{ProfileScreen-DZd0iacf.cjs.map → ProfileScreen-I7c6sZTN.cjs.map} +1 -1
- package/dist/{ShareablesScreen-DN7qFaOj.mjs → ShareablesScreen-CpMBwPc7.mjs} +0 -2
- package/dist/{ShopScreen-nGPQtrue.cjs → ShopScreen-CyQu9_l4.cjs} +2 -2
- package/dist/{ShopScreen-DSN_Krki.mjs → ShopScreen-Dxwt-CT6.mjs} +2 -4
- package/dist/{ShopScreen-DwOTNR_g.cjs → ShopScreen-bybdzvHB.cjs} +2 -2
- package/dist/{ShopScreen-DwOTNR_g.cjs.map → ShopScreen-bybdzvHB.cjs.map} +1 -1
- package/dist/{ShopScreen-BVx_M-iK.mjs → ShopScreen-zGLod99Z.mjs} +2 -2
- package/dist/{ShopScreen-BVx_M-iK.mjs.map → ShopScreen-zGLod99Z.mjs.map} +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +18 -18
- package/package.json +16 -16
- package/styles/globals.css +2 -1
- package/dist/FluidProvider-CAtUtrHk.mjs.map +0 -1
- package/dist/FluidProvider-CZan7yJ3.cjs.map +0 -1
- package/dist/MessagingScreen-CgT-5OV9.mjs.map +0 -1
- package/dist/MessagingScreen-QDJm0Pyl.cjs.map +0 -1
- package/dist/MySiteScreen-BgbNtw0X.cjs.map +0 -1
- package/dist/MySiteScreen-D1dfEszo.mjs.map +0 -1
- package/dist/OrdersScreen-BQ_YwexM.mjs.map +0 -1
- package/dist/OrdersScreen-BhYkPQXn.cjs.map +0 -1
|
@@ -16490,6 +16490,61 @@ function resolveTheme(def) {
|
|
|
16490
16490
|
};
|
|
16491
16491
|
}
|
|
16492
16492
|
//#endregion
|
|
16493
|
+
//#region ../../platform/ui-primitives/src/tokens/manifest.ts
|
|
16494
|
+
const TOKEN_MANIFEST = {
|
|
16495
|
+
colors: [
|
|
16496
|
+
"background",
|
|
16497
|
+
"foreground",
|
|
16498
|
+
"card",
|
|
16499
|
+
"card-foreground",
|
|
16500
|
+
"popover",
|
|
16501
|
+
"popover-foreground",
|
|
16502
|
+
"primary",
|
|
16503
|
+
"primary-foreground",
|
|
16504
|
+
"secondary",
|
|
16505
|
+
"secondary-foreground",
|
|
16506
|
+
"muted",
|
|
16507
|
+
"muted-foreground",
|
|
16508
|
+
"accent",
|
|
16509
|
+
"accent-foreground",
|
|
16510
|
+
"destructive",
|
|
16511
|
+
"destructive-foreground",
|
|
16512
|
+
"border",
|
|
16513
|
+
"input",
|
|
16514
|
+
"ring",
|
|
16515
|
+
"chart-1",
|
|
16516
|
+
"chart-2",
|
|
16517
|
+
"chart-3",
|
|
16518
|
+
"chart-4",
|
|
16519
|
+
"chart-5",
|
|
16520
|
+
"sidebar",
|
|
16521
|
+
"sidebar-foreground",
|
|
16522
|
+
"sidebar-primary",
|
|
16523
|
+
"sidebar-primary-foreground",
|
|
16524
|
+
"sidebar-accent",
|
|
16525
|
+
"sidebar-accent-foreground",
|
|
16526
|
+
"sidebar-border",
|
|
16527
|
+
"sidebar-ring",
|
|
16528
|
+
"contrast"
|
|
16529
|
+
],
|
|
16530
|
+
radii: [
|
|
16531
|
+
"",
|
|
16532
|
+
"sm",
|
|
16533
|
+
"md",
|
|
16534
|
+
"lg",
|
|
16535
|
+
"xl"
|
|
16536
|
+
],
|
|
16537
|
+
merchantCustomizable: [
|
|
16538
|
+
"background",
|
|
16539
|
+
"foreground",
|
|
16540
|
+
"primary",
|
|
16541
|
+
"secondary",
|
|
16542
|
+
"accent",
|
|
16543
|
+
"muted",
|
|
16544
|
+
"destructive"
|
|
16545
|
+
]
|
|
16546
|
+
};
|
|
16547
|
+
//#endregion
|
|
16493
16548
|
//#region ../../platform/theme-engine/src/tailwind-overrides.ts
|
|
16494
16549
|
const OVERRIDES = {
|
|
16495
16550
|
"--color-gray-50": "var(--color-muted)",
|
|
@@ -16583,30 +16638,96 @@ function emitNonColorVars(theme) {
|
|
|
16583
16638
|
for (const key of RADIUS_KEYS) lines.push(`--radius-${camelToKebab(key)}: ${theme.radii[key]};`);
|
|
16584
16639
|
return lines;
|
|
16585
16640
|
}
|
|
16641
|
+
const MERCHANT_CUSTOMIZABLE = new Set(TOKEN_MANIFEST.merchantCustomizable);
|
|
16642
|
+
/**
|
|
16643
|
+
* Names that theme-engine emits via emitColorVars (the merchant-customizable
|
|
16644
|
+
* base set) and their derived `-foreground` siblings. Used to skip duplicate
|
|
16645
|
+
* emission of `--color-{name}` from the manifest derivation pass.
|
|
16646
|
+
*
|
|
16647
|
+
* Typed as `Set<string>` because the synthesized `${name}-foreground` strings
|
|
16648
|
+
* include `"background-foreground"` / `"foreground-foreground"`, which are not
|
|
16649
|
+
* members of `SemanticTokenName`. Membership checks against the manifest still
|
|
16650
|
+
* work because `Set.has(string)` accepts the wider type.
|
|
16651
|
+
*/
|
|
16652
|
+
const EMITTED_BY_COLOR_VARS = new Set([...SEMANTIC_COLOR_NAMES, ...SEMANTIC_COLOR_NAMES.map((n) => `${n}-foreground`)]);
|
|
16653
|
+
/**
|
|
16654
|
+
* Resolve the alias expression for a non-merchant-customizable token.
|
|
16655
|
+
*
|
|
16656
|
+
* Returns `null` for tokens that should fall through to the canonical default
|
|
16657
|
+
* defined in `ui-primitives.css` (chart palette is intentionally not merchant-themed).
|
|
16658
|
+
*
|
|
16659
|
+
* The exhaustive switch is the fail-fast guarantee: TypeScript rejects this
|
|
16660
|
+
* file if a non-customizable token in the manifest is missing a case here.
|
|
16661
|
+
*/
|
|
16662
|
+
function aliasFor(token) {
|
|
16663
|
+
switch (token) {
|
|
16664
|
+
case "card": return "var(--color-muted)";
|
|
16665
|
+
case "card-foreground": return "var(--color-muted-foreground)";
|
|
16666
|
+
case "popover": return "var(--color-background)";
|
|
16667
|
+
case "popover-foreground": return "var(--color-foreground)";
|
|
16668
|
+
case "border": return "color-mix(in oklch, var(--color-background), var(--color-foreground) 15%)";
|
|
16669
|
+
case "input": return "var(--color-border)";
|
|
16670
|
+
case "ring": return "var(--color-primary)";
|
|
16671
|
+
case "chart-1":
|
|
16672
|
+
case "chart-2":
|
|
16673
|
+
case "chart-3":
|
|
16674
|
+
case "chart-4":
|
|
16675
|
+
case "chart-5": return null;
|
|
16676
|
+
case "sidebar": return "var(--color-muted)";
|
|
16677
|
+
case "sidebar-foreground": return "var(--color-muted-foreground)";
|
|
16678
|
+
case "sidebar-primary": return "var(--color-primary)";
|
|
16679
|
+
case "sidebar-primary-foreground": return "var(--color-primary-foreground)";
|
|
16680
|
+
case "sidebar-accent": return "var(--color-accent)";
|
|
16681
|
+
case "sidebar-accent-foreground": return "var(--color-accent-foreground)";
|
|
16682
|
+
case "sidebar-border": return "var(--color-border)";
|
|
16683
|
+
case "sidebar-ring": return "var(--color-primary)";
|
|
16684
|
+
case "contrast": return "var(--color-foreground)";
|
|
16685
|
+
}
|
|
16686
|
+
}
|
|
16687
|
+
/**
|
|
16688
|
+
* Build the alias block emitted at the top of every `[data-theme]` rule.
|
|
16689
|
+
*
|
|
16690
|
+
* For each canonical token in `TOKEN_MANIFEST.colors`:
|
|
16691
|
+
* - merchant-customizable tokens: `--color-{name}` is emitted by `emitColorVars`
|
|
16692
|
+
* from the resolved theme; this function only emits the short-name alias
|
|
16693
|
+
* (`--{name}: var(--color-{name})`) for compatibility with consumers that
|
|
16694
|
+
* reference short names.
|
|
16695
|
+
* - non-customizable tokens: emit both `--color-{name}: <alias>` and the
|
|
16696
|
+
* short-name alias, unless `aliasFor` returns null. Returning null is the
|
|
16697
|
+
* intentional pass-through signal: ui-primitives.css already maps `--color-{name}`
|
|
16698
|
+
* to `var(--{name})` via `@theme inline`, so emitting `--{name}: var(--color-{name})`
|
|
16699
|
+
* inside `[data-theme]` would create a circular var() reference and resolve
|
|
16700
|
+
* to an invalid value (chart-1..5 would render transparent under any theme).
|
|
16701
|
+
*
|
|
16702
|
+
* Two static aliases (`--color-background-foreground`, `--color-foreground-foreground`)
|
|
16703
|
+
* are not regular `-foreground` siblings; they are emitted explicitly because
|
|
16704
|
+
* they swap the bg/fg pair rather than reading from a paired field.
|
|
16705
|
+
*/
|
|
16706
|
+
function buildAliasBlock() {
|
|
16707
|
+
const lines = ["--color-background-foreground: var(--color-foreground);", "--color-foreground-foreground: var(--color-background);"];
|
|
16708
|
+
for (const token of TOKEN_MANIFEST.colors) {
|
|
16709
|
+
if (MERCHANT_CUSTOMIZABLE.has(token)) {
|
|
16710
|
+
lines.push(`--${token}: var(--color-${token});`);
|
|
16711
|
+
continue;
|
|
16712
|
+
}
|
|
16713
|
+
if (EMITTED_BY_COLOR_VARS.has(token)) {
|
|
16714
|
+
lines.push(`--${token}: var(--color-${token});`);
|
|
16715
|
+
continue;
|
|
16716
|
+
}
|
|
16717
|
+
const alias = aliasFor(token);
|
|
16718
|
+
if (alias === null) continue;
|
|
16719
|
+
lines.push(`--color-${token}: ${alias};`);
|
|
16720
|
+
lines.push(`--${token}: var(--color-${token});`);
|
|
16721
|
+
}
|
|
16722
|
+
return lines;
|
|
16723
|
+
}
|
|
16586
16724
|
/**
|
|
16587
|
-
* Static
|
|
16588
|
-
*
|
|
16725
|
+
* Static alias variables emitted at the top of every theme rule.
|
|
16726
|
+
* Derived from the canonical token manifest so new canonical tokens reach
|
|
16727
|
+
* merchant theming automatically.
|
|
16589
16728
|
*/
|
|
16590
16729
|
const globalCSSOverride = [
|
|
16591
|
-
|
|
16592
|
-
"--color-foreground-foreground: var(--color-background);",
|
|
16593
|
-
"--color-contrast: var(--color-foreground);",
|
|
16594
|
-
...SEMANTIC_COLOR_NAMES.map((value) => `--${value}: var(--color-${value});`),
|
|
16595
|
-
...SEMANTIC_COLOR_NAMES.map((value) => `--${value}-foreground: var(--color-${value}-foreground);`),
|
|
16596
|
-
"--sidebar-ring: var(--color-primary);",
|
|
16597
|
-
"--sidebar-border: var(--color-border);",
|
|
16598
|
-
"--sidebar-accent-foreground: var(--color-accent-foreground);",
|
|
16599
|
-
"--sidebar-accent: var(--color-accent);",
|
|
16600
|
-
"--sidebar-primary-foreground: var(--color-primary-foreground);",
|
|
16601
|
-
"--sidebar-primary: var(--color-primary);",
|
|
16602
|
-
"--sidebar-foreground: var(--color-muted-foreground);",
|
|
16603
|
-
"--sidebar: var(--color-muted);",
|
|
16604
|
-
"--border: color-mix(in oklch, var(--color-background), var(--color-foreground) 15%);",
|
|
16605
|
-
"--ring: var(--color-primary);",
|
|
16606
|
-
"--popover: var(--color-background);",
|
|
16607
|
-
"--popover-foreground: var(--color-foreground);",
|
|
16608
|
-
"--card: var(--color-muted);",
|
|
16609
|
-
"--card-foreground: var(--color-muted-foreground);",
|
|
16730
|
+
...buildAliasBlock(),
|
|
16610
16731
|
"--radius-sm: var(--radius-small);",
|
|
16611
16732
|
"--radius-md: var(--radius-medium);",
|
|
16612
16733
|
"--radius-lg: var(--radius-large);",
|
|
@@ -18114,4 +18235,4 @@ Object.defineProperty(exports, "widgetPropertySchemas", {
|
|
|
18114
18235
|
}
|
|
18115
18236
|
});
|
|
18116
18237
|
|
|
18117
|
-
//# sourceMappingURL=FluidProvider-
|
|
18238
|
+
//# sourceMappingURL=FluidProvider-lgII8Oel.cjs.map
|