@almadar/ui 6.29.0 → 6.30.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.
- package/dist/{EntityBindingContext-UyeCfEBS.d.cts → EntityBindingContext-ChCONv2W.d.cts} +1 -50
- package/dist/{EntityBindingContext-UyeCfEBS.d.ts → EntityBindingContext-ChCONv2W.d.ts} +1 -50
- package/dist/avl/index.cjs +5 -6
- package/dist/avl/index.js +5 -6
- package/dist/components/index.cjs +4 -5
- package/dist/components/index.js +4 -5
- package/dist/context/index.cjs +135 -105
- package/dist/context/index.d.cts +2 -60
- package/dist/context/index.d.ts +2 -60
- package/dist/context/index.js +135 -105
- package/dist/lib/index.cjs +455 -0
- package/dist/lib/index.d.cts +42 -1
- package/dist/lib/index.d.ts +42 -1
- package/dist/lib/index.js +438 -1
- package/dist/marketing/index.cjs +4 -5
- package/dist/marketing/index.js +4 -5
- package/dist/providers/index.cjs +143 -116
- package/dist/providers/index.d.cts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +143 -116
- package/dist/runtime/index.cjs +5 -6
- package/dist/runtime/index.d.cts +2 -2
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +5 -6
- package/dist/themeTokens-DVRwufw8.d.cts +112 -0
- package/dist/themeTokens-DVRwufw8.d.ts +112 -0
- package/package.json +6 -5
- package/scripts/audit-tailwind-safelist.ts +4 -0
- package/tailwind-preset.cjs +155 -28
- package/themes/almadar-website.css +37 -107
- package/themes/almadar.css +37 -108
- package/themes/atelier.css +145 -240
- package/themes/bloomberg-dense.css +145 -252
- package/themes/clay.css +39 -137
- package/themes/comic.css +39 -145
- package/themes/corporate.css +39 -131
- package/themes/game-adventure.css +22 -87
- package/themes/game-rpg.css +22 -84
- package/themes/game-sci-fi.css +22 -88
- package/themes/game-ui-pack.css +22 -85
- package/themes/gazette.css +43 -135
- package/themes/glass.css +39 -148
- package/themes/kiosk.css +51 -146
- package/themes/linear-clean.css +145 -215
- package/themes/minimalist.css +39 -125
- package/themes/neon.css +39 -132
- package/themes/notion-editorial.css +145 -215
- package/themes/prism.css +37 -100
- package/themes/retro.css +39 -130
- package/themes/terminal.css +61 -152
- package/themes/trait-wars.css +121 -285
- package/themes/wireframe.css +41 -128
package/dist/providers/index.cjs
CHANGED
|
@@ -13863,11 +13863,10 @@ var init_HeroSection = __esm({
|
|
|
13863
13863
|
};
|
|
13864
13864
|
backgroundStyles = {
|
|
13865
13865
|
dark: "bg-foreground text-background",
|
|
13866
|
-
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
].join(" "),
|
|
13866
|
+
// A single bracket value: joining this as two array entries put a space
|
|
13867
|
+
// inside the class (Tailwind splits utilities on whitespace), so neither
|
|
13868
|
+
// half was a valid utility and the gradient rendered as nothing.
|
|
13869
|
+
gradient: "bg-[radial-gradient(ellipse_at_top,var(--color-primary)/0.08,transparent_60%),radial-gradient(ellipse_at_bottom_right,var(--color-accent)/0.06,transparent_50%)] bg-background",
|
|
13871
13870
|
subtle: "bg-muted/30"
|
|
13872
13871
|
};
|
|
13873
13872
|
MarketingImage = ({ src, alt, className }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -54197,17 +54196,127 @@ function OrbitalProvider({
|
|
|
54197
54196
|
OrbitalProvider.displayName = "OrbitalProvider";
|
|
54198
54197
|
|
|
54199
54198
|
// lib/themeTokens.ts
|
|
54199
|
+
function applyFlat(obj, table, vars) {
|
|
54200
|
+
if (!obj) return;
|
|
54201
|
+
for (const { cssVar, key } of table) {
|
|
54202
|
+
const value = obj[key];
|
|
54203
|
+
if (value !== void 0) vars[cssVar] = value;
|
|
54204
|
+
}
|
|
54205
|
+
}
|
|
54206
|
+
var DENSITY_SPACING_VARS = [
|
|
54207
|
+
{ cssVar: "--space-0", key: "space0" },
|
|
54208
|
+
{ cssVar: "--space-1", key: "space1" },
|
|
54209
|
+
{ cssVar: "--space-2", key: "space2" },
|
|
54210
|
+
{ cssVar: "--space-3", key: "space3" },
|
|
54211
|
+
{ cssVar: "--space-4", key: "space4" },
|
|
54212
|
+
{ cssVar: "--space-5", key: "space5" },
|
|
54213
|
+
{ cssVar: "--space-6", key: "space6" },
|
|
54214
|
+
{ cssVar: "--space-7", key: "space7" },
|
|
54215
|
+
{ cssVar: "--space-8", key: "space8" },
|
|
54216
|
+
{ cssVar: "--space-9", key: "space9" },
|
|
54217
|
+
{ cssVar: "--space-10", key: "space10" },
|
|
54218
|
+
{ cssVar: "--space-11", key: "space11" },
|
|
54219
|
+
{ cssVar: "--space-12", key: "space12" }
|
|
54220
|
+
];
|
|
54221
|
+
var DENSITY_ELEMENT_VARS = [
|
|
54222
|
+
{ cssVar: "--button-height-sm", key: "buttonHeightSm" },
|
|
54223
|
+
{ cssVar: "--button-height-md", key: "buttonHeightMd" },
|
|
54224
|
+
{ cssVar: "--button-height-lg", key: "buttonHeightLg" },
|
|
54225
|
+
{ cssVar: "--input-height-sm", key: "inputHeightSm" },
|
|
54226
|
+
{ cssVar: "--input-height-md", key: "inputHeightMd" },
|
|
54227
|
+
{ cssVar: "--input-height-lg", key: "inputHeightLg" },
|
|
54228
|
+
{ cssVar: "--row-height-compact", key: "rowHeightCompact" },
|
|
54229
|
+
{ cssVar: "--row-height-normal", key: "rowHeightNormal" },
|
|
54230
|
+
{ cssVar: "--row-height-spacious", key: "rowHeightSpacious" },
|
|
54231
|
+
{ cssVar: "--card-padding-sm", key: "cardPaddingSm" },
|
|
54232
|
+
{ cssVar: "--card-padding-md", key: "cardPaddingMd" },
|
|
54233
|
+
{ cssVar: "--card-padding-lg", key: "cardPaddingLg" },
|
|
54234
|
+
{ cssVar: "--dialog-padding", key: "dialogPadding" },
|
|
54235
|
+
{ cssVar: "--section-gap", key: "sectionGap" }
|
|
54236
|
+
];
|
|
54237
|
+
var TYPE_FAMILY_VARS = [
|
|
54238
|
+
{ cssVar: "--font-family-display", key: "displayFamily" },
|
|
54239
|
+
{ cssVar: "--font-family-body", key: "bodyFamily" },
|
|
54240
|
+
{ cssVar: "--font-family-mono", key: "monoFamily" }
|
|
54241
|
+
];
|
|
54242
|
+
var TYPE_SIZE_KEYS = [
|
|
54243
|
+
"xs",
|
|
54244
|
+
"sm",
|
|
54245
|
+
"base",
|
|
54246
|
+
"lg",
|
|
54247
|
+
"xl",
|
|
54248
|
+
"2xl",
|
|
54249
|
+
"3xl",
|
|
54250
|
+
"4xl",
|
|
54251
|
+
"display-1",
|
|
54252
|
+
"display-2"
|
|
54253
|
+
];
|
|
54254
|
+
var TYPE_INTENT_VARS = [
|
|
54255
|
+
{ key: "headingMajor", cssName: "heading-major" },
|
|
54256
|
+
{ key: "headingMinor", cssName: "heading-minor" },
|
|
54257
|
+
{ key: "bodyEmphasis", cssName: "body-emphasis" },
|
|
54258
|
+
{ key: "bodyDefault", cssName: "body-default" },
|
|
54259
|
+
{ key: "bodyQuiet", cssName: "body-quiet" },
|
|
54260
|
+
{ key: "caption", cssName: "caption" },
|
|
54261
|
+
{ key: "numeric", cssName: "numeric" }
|
|
54262
|
+
];
|
|
54263
|
+
var MOTION_DURATION_KEYS = [
|
|
54264
|
+
"instant",
|
|
54265
|
+
"fast",
|
|
54266
|
+
"normal",
|
|
54267
|
+
"slow",
|
|
54268
|
+
"dramatic"
|
|
54269
|
+
];
|
|
54270
|
+
var MOTION_EASING_KEYS = [
|
|
54271
|
+
"linear",
|
|
54272
|
+
"standard",
|
|
54273
|
+
"emphasized",
|
|
54274
|
+
"spring"
|
|
54275
|
+
];
|
|
54276
|
+
var MOTION_INTENT_VARS = [
|
|
54277
|
+
{ key: "enter", cssName: "enter" },
|
|
54278
|
+
{ key: "exit", cssName: "exit" },
|
|
54279
|
+
{ key: "hover", cssName: "hover" },
|
|
54280
|
+
{ key: "press", cssName: "press" },
|
|
54281
|
+
{ key: "expand", cssName: "expand" },
|
|
54282
|
+
{ key: "transition", cssName: "transition" }
|
|
54283
|
+
];
|
|
54284
|
+
var ICONOGRAPHY_VARS = [
|
|
54285
|
+
{ cssVar: "--icon-family", key: "family" },
|
|
54286
|
+
{ cssVar: "--icon-stroke-width", key: "strokeWidth" },
|
|
54287
|
+
{ cssVar: "--icon-default-size", key: "defaultSize" }
|
|
54288
|
+
];
|
|
54289
|
+
var ELEVATION_VARS = [
|
|
54290
|
+
{ cssVar: "--elevation-card", key: "cardElevation" },
|
|
54291
|
+
{ cssVar: "--elevation-popover", key: "popoverElevation" },
|
|
54292
|
+
{ cssVar: "--elevation-dialog", key: "dialogElevation" },
|
|
54293
|
+
{ cssVar: "--elevation-toast", key: "toastElevation" }
|
|
54294
|
+
];
|
|
54295
|
+
var GEOMETRY_VARS = [
|
|
54296
|
+
{ cssVar: "--radius-container", key: "radiusContainer" },
|
|
54297
|
+
{ cssVar: "--radius-interactive", key: "radiusInteractive" },
|
|
54298
|
+
{ cssVar: "--radius-pill", key: "radiusPill" },
|
|
54299
|
+
{ cssVar: "--border-hairline", key: "borderHairline" },
|
|
54300
|
+
{ cssVar: "--border-standard", key: "borderStandard" },
|
|
54301
|
+
{ cssVar: "--border-heavy", key: "borderHeavy" }
|
|
54302
|
+
];
|
|
54303
|
+
var LEGACY_PREFIXES = {
|
|
54304
|
+
colors: "--color-",
|
|
54305
|
+
radii: "--radius-",
|
|
54306
|
+
spacing: "--space-",
|
|
54307
|
+
shadows: "--shadow-"
|
|
54308
|
+
};
|
|
54200
54309
|
function themeTokensToCssVars(tokens, mode = "light", darkVariant) {
|
|
54201
54310
|
const vars = {};
|
|
54202
54311
|
const isDark = mode === "dark";
|
|
54203
54312
|
const pickColors = isDark && darkVariant?.colors ? darkVariant.colors : tokens.colors;
|
|
54204
54313
|
if (pickColors) {
|
|
54205
54314
|
for (const [key, value] of Object.entries(pickColors)) {
|
|
54206
|
-
vars[
|
|
54315
|
+
vars[`${LEGACY_PREFIXES.colors}${key}`] = value;
|
|
54207
54316
|
}
|
|
54208
54317
|
if (isDark && darkVariant?.colors && tokens.colors) {
|
|
54209
54318
|
for (const [key, value] of Object.entries(tokens.colors)) {
|
|
54210
|
-
const varName =
|
|
54319
|
+
const varName = `${LEGACY_PREFIXES.colors}${key}`;
|
|
54211
54320
|
if (!(varName in vars)) vars[varName] = value;
|
|
54212
54321
|
}
|
|
54213
54322
|
}
|
|
@@ -54215,13 +54324,13 @@ function themeTokensToCssVars(tokens, mode = "light", darkVariant) {
|
|
|
54215
54324
|
const pickRadii = isDark && darkVariant?.radii ? darkVariant.radii : tokens.radii;
|
|
54216
54325
|
if (pickRadii) {
|
|
54217
54326
|
for (const [key, value] of Object.entries(pickRadii)) {
|
|
54218
|
-
vars[
|
|
54327
|
+
vars[`${LEGACY_PREFIXES.radii}${key}`] = value;
|
|
54219
54328
|
}
|
|
54220
54329
|
}
|
|
54221
54330
|
const pickSpacing = isDark && darkVariant?.spacing ? darkVariant.spacing : tokens.spacing;
|
|
54222
54331
|
if (pickSpacing) {
|
|
54223
54332
|
for (const [key, value] of Object.entries(pickSpacing)) {
|
|
54224
|
-
vars[
|
|
54333
|
+
vars[`${LEGACY_PREFIXES.spacing}${key}`] = value;
|
|
54225
54334
|
}
|
|
54226
54335
|
}
|
|
54227
54336
|
const pickTypography = isDark && darkVariant?.typography ? darkVariant.typography : tokens.typography;
|
|
@@ -54233,7 +54342,7 @@ function themeTokensToCssVars(tokens, mode = "light", darkVariant) {
|
|
|
54233
54342
|
const pickShadows = isDark && darkVariant?.shadows ? darkVariant.shadows : tokens.shadows;
|
|
54234
54343
|
if (pickShadows) {
|
|
54235
54344
|
for (const [key, value] of Object.entries(pickShadows)) {
|
|
54236
|
-
vars[
|
|
54345
|
+
vars[`${LEGACY_PREFIXES.shadows}${key}`] = value;
|
|
54237
54346
|
}
|
|
54238
54347
|
}
|
|
54239
54348
|
const pickDensity = isDark && darkVariant?.density ? darkVariant.density : tokens.density;
|
|
@@ -54252,46 +54361,8 @@ function themeTokensToCssVars(tokens, mode = "light", darkVariant) {
|
|
|
54252
54361
|
}
|
|
54253
54362
|
function emitDensity(density, vars) {
|
|
54254
54363
|
if (!density) return;
|
|
54255
|
-
|
|
54256
|
-
|
|
54257
|
-
const pairs2 = [
|
|
54258
|
-
["0", s.space0],
|
|
54259
|
-
["1", s.space1],
|
|
54260
|
-
["2", s.space2],
|
|
54261
|
-
["3", s.space3],
|
|
54262
|
-
["4", s.space4],
|
|
54263
|
-
["5", s.space5],
|
|
54264
|
-
["6", s.space6],
|
|
54265
|
-
["7", s.space7],
|
|
54266
|
-
["8", s.space8],
|
|
54267
|
-
["9", s.space9],
|
|
54268
|
-
["10", s.space10],
|
|
54269
|
-
["11", s.space11],
|
|
54270
|
-
["12", s.space12]
|
|
54271
|
-
];
|
|
54272
|
-
for (const [k, v] of pairs2) {
|
|
54273
|
-
if (v !== void 0) vars[`--space-${k}`] = v;
|
|
54274
|
-
}
|
|
54275
|
-
}
|
|
54276
|
-
const pairs = [
|
|
54277
|
-
["button-height-sm", density.buttonHeightSm],
|
|
54278
|
-
["button-height-md", density.buttonHeightMd],
|
|
54279
|
-
["button-height-lg", density.buttonHeightLg],
|
|
54280
|
-
["input-height-sm", density.inputHeightSm],
|
|
54281
|
-
["input-height-md", density.inputHeightMd],
|
|
54282
|
-
["input-height-lg", density.inputHeightLg],
|
|
54283
|
-
["row-height-compact", density.rowHeightCompact],
|
|
54284
|
-
["row-height-normal", density.rowHeightNormal],
|
|
54285
|
-
["row-height-spacious", density.rowHeightSpacious],
|
|
54286
|
-
["card-padding-sm", density.cardPaddingSm],
|
|
54287
|
-
["card-padding-md", density.cardPaddingMd],
|
|
54288
|
-
["card-padding-lg", density.cardPaddingLg],
|
|
54289
|
-
["dialog-padding", density.dialogPadding],
|
|
54290
|
-
["section-gap", density.sectionGap]
|
|
54291
|
-
];
|
|
54292
|
-
for (const [k, v] of pairs) {
|
|
54293
|
-
if (v !== void 0) vars[`--${k}`] = v;
|
|
54294
|
-
}
|
|
54364
|
+
applyFlat(density.spacing, DENSITY_SPACING_VARS, vars);
|
|
54365
|
+
applyFlat(density, DENSITY_ELEMENT_VARS, vars);
|
|
54295
54366
|
}
|
|
54296
54367
|
function typeSizeKeyStr(k) {
|
|
54297
54368
|
return k;
|
|
@@ -54308,24 +54379,11 @@ function emitTypeIntent(name, intent, vars) {
|
|
|
54308
54379
|
}
|
|
54309
54380
|
function emitTypeScale(ts, vars) {
|
|
54310
54381
|
if (!ts) return;
|
|
54311
|
-
|
|
54312
|
-
if (ts.bodyFamily !== void 0) vars["--font-family-body"] = ts.bodyFamily;
|
|
54313
|
-
if (ts.monoFamily !== void 0) vars["--font-family-mono"] = ts.monoFamily;
|
|
54382
|
+
applyFlat(ts, TYPE_FAMILY_VARS, vars);
|
|
54314
54383
|
if (ts.scale) {
|
|
54315
54384
|
const s = ts.scale;
|
|
54316
|
-
const
|
|
54317
|
-
|
|
54318
|
-
["sm", s.sm],
|
|
54319
|
-
["base", s.base],
|
|
54320
|
-
["lg", s.lg],
|
|
54321
|
-
["xl", s.xl],
|
|
54322
|
-
["2xl", s["2xl"]],
|
|
54323
|
-
["3xl", s["3xl"]],
|
|
54324
|
-
["4xl", s["4xl"]],
|
|
54325
|
-
["display-1", s["display-1"]],
|
|
54326
|
-
["display-2", s["display-2"]]
|
|
54327
|
-
];
|
|
54328
|
-
for (const [k, entry] of pairs) {
|
|
54385
|
+
for (const k of TYPE_SIZE_KEYS) {
|
|
54386
|
+
const entry = s[k];
|
|
54329
54387
|
if (entry !== void 0) {
|
|
54330
54388
|
vars[`--text-${k}`] = entry.size;
|
|
54331
54389
|
vars[`--leading-${k}`] = entry.lineHeight;
|
|
@@ -54334,13 +54392,10 @@ function emitTypeScale(ts, vars) {
|
|
|
54334
54392
|
}
|
|
54335
54393
|
if (ts.intents) {
|
|
54336
54394
|
const i = ts.intents;
|
|
54337
|
-
|
|
54338
|
-
|
|
54339
|
-
|
|
54340
|
-
|
|
54341
|
-
if (i.bodyQuiet) emitTypeIntent("body-quiet", i.bodyQuiet, vars);
|
|
54342
|
-
if (i.caption) emitTypeIntent("caption", i.caption, vars);
|
|
54343
|
-
if (i.numeric) emitTypeIntent("numeric", i.numeric, vars);
|
|
54395
|
+
for (const { key, cssName } of TYPE_INTENT_VARS) {
|
|
54396
|
+
const intent = i[key];
|
|
54397
|
+
if (intent) emitTypeIntent(cssName, intent, vars);
|
|
54398
|
+
}
|
|
54344
54399
|
}
|
|
54345
54400
|
}
|
|
54346
54401
|
function emitMotionIntent(name, intent, vars) {
|
|
@@ -54351,60 +54406,34 @@ function emitMotion(m, vars) {
|
|
|
54351
54406
|
if (!m) return;
|
|
54352
54407
|
if (m.durations) {
|
|
54353
54408
|
const d = m.durations;
|
|
54354
|
-
const
|
|
54355
|
-
|
|
54356
|
-
["fast", d.fast],
|
|
54357
|
-
["normal", d.normal],
|
|
54358
|
-
["slow", d.slow],
|
|
54359
|
-
["dramatic", d.dramatic]
|
|
54360
|
-
];
|
|
54361
|
-
for (const [k, v] of pairs) {
|
|
54409
|
+
for (const k of MOTION_DURATION_KEYS) {
|
|
54410
|
+
const v = d[k];
|
|
54362
54411
|
if (v !== void 0) vars[`--duration-${k}`] = v;
|
|
54363
54412
|
}
|
|
54364
54413
|
}
|
|
54365
54414
|
if (m.easings) {
|
|
54366
54415
|
const e = m.easings;
|
|
54367
|
-
const
|
|
54368
|
-
|
|
54369
|
-
["standard", e.standard],
|
|
54370
|
-
["emphasized", e.emphasized],
|
|
54371
|
-
["spring", e.spring]
|
|
54372
|
-
];
|
|
54373
|
-
for (const [k, v] of pairs) {
|
|
54416
|
+
for (const k of MOTION_EASING_KEYS) {
|
|
54417
|
+
const v = e[k];
|
|
54374
54418
|
if (v !== void 0) vars[`--easing-${k}`] = v;
|
|
54375
54419
|
}
|
|
54376
54420
|
}
|
|
54377
54421
|
if (m.intents) {
|
|
54378
54422
|
const i = m.intents;
|
|
54379
|
-
|
|
54380
|
-
|
|
54381
|
-
|
|
54382
|
-
|
|
54383
|
-
if (i.expand) emitMotionIntent("expand", i.expand, vars);
|
|
54384
|
-
if (i.transition) emitMotionIntent("transition", i.transition, vars);
|
|
54423
|
+
for (const { key, cssName } of MOTION_INTENT_VARS) {
|
|
54424
|
+
const intent = i[key];
|
|
54425
|
+
if (intent) emitMotionIntent(cssName, intent, vars);
|
|
54426
|
+
}
|
|
54385
54427
|
}
|
|
54386
54428
|
}
|
|
54387
54429
|
function emitIconography(i, vars) {
|
|
54388
|
-
|
|
54389
|
-
if (i.family !== void 0) vars["--icon-family"] = i.family;
|
|
54390
|
-
if (i.strokeWidth !== void 0) vars["--icon-stroke-width"] = i.strokeWidth;
|
|
54391
|
-
if (i.defaultSize !== void 0) vars["--icon-default-size"] = i.defaultSize;
|
|
54430
|
+
applyFlat(i, ICONOGRAPHY_VARS, vars);
|
|
54392
54431
|
}
|
|
54393
54432
|
function emitElevation(e, vars) {
|
|
54394
|
-
|
|
54395
|
-
if (e.cardElevation !== void 0) vars["--elevation-card"] = e.cardElevation;
|
|
54396
|
-
if (e.popoverElevation !== void 0) vars["--elevation-popover"] = e.popoverElevation;
|
|
54397
|
-
if (e.dialogElevation !== void 0) vars["--elevation-dialog"] = e.dialogElevation;
|
|
54398
|
-
if (e.toastElevation !== void 0) vars["--elevation-toast"] = e.toastElevation;
|
|
54433
|
+
applyFlat(e, ELEVATION_VARS, vars);
|
|
54399
54434
|
}
|
|
54400
54435
|
function emitGeometry(g, vars) {
|
|
54401
|
-
|
|
54402
|
-
if (g.radiusContainer !== void 0) vars["--radius-container"] = g.radiusContainer;
|
|
54403
|
-
if (g.radiusInteractive !== void 0) vars["--radius-interactive"] = g.radiusInteractive;
|
|
54404
|
-
if (g.radiusPill !== void 0) vars["--radius-pill"] = g.radiusPill;
|
|
54405
|
-
if (g.borderHairline !== void 0) vars["--border-hairline"] = g.borderHairline;
|
|
54406
|
-
if (g.borderStandard !== void 0) vars["--border-standard"] = g.borderStandard;
|
|
54407
|
-
if (g.borderHeavy !== void 0) vars["--border-heavy"] = g.borderHeavy;
|
|
54436
|
+
applyFlat(g, GEOMETRY_VARS, vars);
|
|
54408
54437
|
}
|
|
54409
54438
|
function resolveThemeForRuntime(theme) {
|
|
54410
54439
|
if (theme === void 0) return void 0;
|
|
@@ -55008,8 +55037,8 @@ function ServerBridgeProvider({
|
|
|
55008
55037
|
dataEntities,
|
|
55009
55038
|
data: responseData,
|
|
55010
55039
|
entityByTrait: result.entityByTrait,
|
|
55011
|
-
emittedEvents: result.emittedEvents
|
|
55012
|
-
emitted: result.emittedEvents
|
|
55040
|
+
emittedEvents: result.emittedEvents.map((e) => e.event),
|
|
55041
|
+
emitted: result.emittedEvents.map((e) => ({ event: e.event, ...e.payload !== void 0 && { payload: e.payload } })),
|
|
55013
55042
|
effectResults: result.effectResults,
|
|
55014
55043
|
error: result.error
|
|
55015
55044
|
};
|
|
@@ -55044,10 +55073,8 @@ function ServerBridgeProvider({
|
|
|
55044
55073
|
effects.push({ type: "navigate-back", traitName });
|
|
55045
55074
|
}
|
|
55046
55075
|
}
|
|
55047
|
-
|
|
55048
|
-
|
|
55049
|
-
reEmitServerEvent(eventBus, emitted, orbitalName);
|
|
55050
|
-
}
|
|
55076
|
+
for (const emitted of stampLocallyDeliveredEchoes(event, result.emittedEvents, locallyEmitted ?? [])) {
|
|
55077
|
+
reEmitServerEvent(eventBus, emitted, orbitalName);
|
|
55051
55078
|
}
|
|
55052
55079
|
} else if (result.error) {
|
|
55053
55080
|
xOrbitalLog.warn("response:fail", {
|
|
@@ -6,7 +6,7 @@ export { a as CurrentPagePathContext, b as CurrentPagePathProvider, c as Current
|
|
|
6
6
|
import { b as UserData } from '../UserContext-D566nfWA.cjs';
|
|
7
7
|
export { U as UserContext, a as UserContextValue, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-D566nfWA.cjs';
|
|
8
8
|
import { E as EventBusContextType } from '../event-bus-types-Bl78kokd.cjs';
|
|
9
|
-
export { A as AccessTokenProvider, E as EntityBindingContext, a as EntityBindingSource, b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, S as SendEventResult, e as ServerBridgeContextValue, f as ServerBridgeProvider, g as ServerBridgeProviderProps, h as ServerBridgeTransport, i as ServerClientEffect, j as ServerResponseMeta, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, u as useEntityBindingSnapshot, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-
|
|
9
|
+
export { A as AccessTokenProvider, E as EntityBindingContext, a as EntityBindingSource, b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, S as SendEventResult, e as ServerBridgeContextValue, f as ServerBridgeProvider, g as ServerBridgeProviderProps, h as ServerBridgeTransport, i as ServerClientEffect, j as ServerResponseMeta, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, u as useEntityBindingSnapshot, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-ChCONv2W.cjs';
|
|
10
10
|
import { i as UseOfflineExecutorResult, U as UseOfflineExecutorOptions } from '../offline-executor-DdV2o0Zu.cjs';
|
|
11
11
|
export { N as NavigationContextValue, c as NavigationProvider, d as NavigationProviderProps, e as NavigationState, j as comparePathSpecificity, l as extractRouteParams, m as findPageByName, n as findPageByPath, o as getAllPages, p as getDefaultPage, q as matchPath, r as matchPathAmong, s as pathMatches, u as useActivePage, t as useInitPayload, v as useNavigateTo, w as useNavigation, x as useNavigationId, y as useNavigationState } from '../offline-executor-DdV2o0Zu.cjs';
|
|
12
12
|
import '../verificationRegistry-DTrKDRoa.cjs';
|
|
@@ -6,7 +6,7 @@ export { a as CurrentPagePathContext, b as CurrentPagePathProvider, c as Current
|
|
|
6
6
|
import { b as UserData } from '../UserContext-D566nfWA.js';
|
|
7
7
|
export { U as UserContext, a as UserContextValue, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-D566nfWA.js';
|
|
8
8
|
import { E as EventBusContextType } from '../event-bus-types-Bl78kokd.js';
|
|
9
|
-
export { A as AccessTokenProvider, E as EntityBindingContext, a as EntityBindingSource, b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, S as SendEventResult, e as ServerBridgeContextValue, f as ServerBridgeProvider, g as ServerBridgeProviderProps, h as ServerBridgeTransport, i as ServerClientEffect, j as ServerResponseMeta, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, u as useEntityBindingSnapshot, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-
|
|
9
|
+
export { A as AccessTokenProvider, E as EntityBindingContext, a as EntityBindingSource, b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, S as SendEventResult, e as ServerBridgeContextValue, f as ServerBridgeProvider, g as ServerBridgeProviderProps, h as ServerBridgeTransport, i as ServerClientEffect, j as ServerResponseMeta, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, u as useEntityBindingSnapshot, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-ChCONv2W.js';
|
|
10
10
|
import { i as UseOfflineExecutorResult, U as UseOfflineExecutorOptions } from '../offline-executor-DdV2o0Zu.js';
|
|
11
11
|
export { N as NavigationContextValue, c as NavigationProvider, d as NavigationProviderProps, e as NavigationState, j as comparePathSpecificity, l as extractRouteParams, m as findPageByName, n as findPageByPath, o as getAllPages, p as getDefaultPage, q as matchPath, r as matchPathAmong, s as pathMatches, u as useActivePage, t as useInitPayload, v as useNavigateTo, w as useNavigation, x as useNavigationId, y as useNavigationState } from '../offline-executor-DdV2o0Zu.js';
|
|
12
12
|
import '../verificationRegistry-Cwa52VyK.js';
|