@vio-live/web-sdk 0.7.0 → 0.8.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.
@@ -1,6 +1,6 @@
1
1
  import * as _lit_react from '@lit/react';
2
- import { V as VioCart$1, a as VioCheckout$1, b as VioProduct$1, c as VioProductCarousel$1, d as VioProductDetail$1 } from '../tokens-CCZuuTN6.js';
3
- export { e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-CCZuuTN6.js';
2
+ import { V as VioCart$1, a as VioCheckout$1, b as VioProduct$1, c as VioProductCarousel$1, d as VioProductDetail$1 } from '../tokens-DtqqmAiG.js';
3
+ export { e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-DtqqmAiG.js';
4
4
  import 'lit-html';
5
5
  import 'lit';
6
6
 
@@ -1,5 +1,5 @@
1
- import { registerVioElements, VioProduct, VioProductCarousel, VioProductDetail, VioCart, VioCheckout } from '../chunk-GPMDZSC2.js';
2
- export { VioTokens, applyVioTheme } from '../chunk-GPMDZSC2.js';
1
+ import { registerVioElements, VioProduct, VioProductCarousel, VioProductDetail, VioCart, VioCheckout } from '../chunk-YNKOGPTE.js';
2
+ export { VioTokens, applyVioTheme } from '../chunk-YNKOGPTE.js';
3
3
  import '../chunk-4ZEN4J7I.js';
4
4
  import * as React from 'react';
5
5
 
@@ -521,6 +521,8 @@ declare const VioTokens: {
521
521
  readonly sm: "2px";
522
522
  readonly md: "4px";
523
523
  readonly lg: "8px";
524
+ /** Sheet/drawer corners — the largest surface radius in the checkout. */
525
+ readonly xl: "16px";
524
526
  readonly full: "9999px";
525
527
  };
526
528
  };
@@ -535,10 +537,16 @@ declare const VioTokens: {
535
537
  * `injectTokens` installs above, regardless of import/injection order — no
536
538
  * specificity fights, no reaching for `!important`.
537
539
  *
538
- * A curated subset on purpose: colors + fonts are what a merchant/publisher
539
- * actually wants a "brand settings" panel for. Spacing/radius/sizes stay
540
- * internal — expose them here later if a real need shows up, don't
541
- * speculatively surface the whole token set as public API.
540
+ * A curated subset on purpose — colors, fonts, corner radius and the spacing
541
+ * steps the checkout actually uses. Radius and spacing were added once the
542
+ * need was real (brand panels in Vev/Replit): corner shape is the strongest
543
+ * identity lever after colour, and the spacing steps drive comfortable-vs-
544
+ * compact density. The rest of the token set (sizes, tracking, line heights)
545
+ * stays internal — don't speculatively surface it as public API.
546
+ *
547
+ * Panels are expected to present these as a few opinionated choices (e.g.
548
+ * "Sharp / Default / Rounded") rather than four raw pixel inputs; the API
549
+ * stays per-token so a panel can compose whatever presets it wants.
542
550
  *
543
551
  * Host integrations (the Vio Config panel in Vev, a future Replit CMS
544
552
  * panel, anything else) should call this ONE function — never set
@@ -558,6 +566,18 @@ interface VioThemeOverrides {
558
566
  colorBorderDefault?: string;
559
567
  fontSerif?: string;
560
568
  fontSans?: string;
569
+ /** Corner radius. `sm` = drag handles, `lg` = controls (chips, notices,
570
+ * shipping options), `xl` = the sheet/drawer itself. Set all three to `0`
571
+ * for a square look, or raise `xl` for a softer one. */
572
+ radiusSm?: string;
573
+ radiusMd?: string;
574
+ radiusLg?: string;
575
+ radiusXl?: string;
576
+ /** Spacing steps — drive checkout density (compact vs comfortable). */
577
+ spaceSm?: string;
578
+ spaceMd?: string;
579
+ spaceLg?: string;
580
+ spaceXl?: string;
561
581
  }
562
582
  /**
563
583
  * Apply (or clear) theme overrides. Pass `null`/`undefined` for a key to
@@ -1,4 +1,4 @@
1
- export { V as VioCart, a as VioCheckout, b as VioProduct, c as VioProductCarousel, d as VioProductDetail, e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-CCZuuTN6.js';
1
+ export { V as VioCart, a as VioCheckout, b as VioProduct, c as VioProductCarousel, d as VioProductDetail, e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-DtqqmAiG.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
 
package/dist/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { registerVioElements } from '../chunk-GPMDZSC2.js';
2
- export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements } from '../chunk-GPMDZSC2.js';
1
+ import { registerVioElements } from '../chunk-YNKOGPTE.js';
2
+ export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements } from '../chunk-YNKOGPTE.js';
3
3
  import '../chunk-4ZEN4J7I.js';
4
4
 
5
5
  // src/ui/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vio-live/web-sdk",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Vio Web SDK — in-site shoppable + native checkout, designed for editorial commerce sites",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",