@vio-live/web-sdk 0.23.1 → 0.24.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.
@@ -36,6 +36,17 @@ interface VioConfig {
36
36
  contentId?: string | number;
37
37
  /** Human-readable title of that content (`content_title`); see `contentId`. */
38
38
  contentTitle?: string;
39
+ /**
40
+ * The campaign this PAGE belongs to (ADR-0034, amendment 3) — an editorial
41
+ * page (a Vev article, a Replit article) that is part of one campaign. Its
42
+ * slots are declared with it (the micro assigns them unless the dashboard
43
+ * already did) and, until that round-trips, the elements already resolve to
44
+ * it: assignment → page campaign → default. DOM alternative, inheritable:
45
+ * `data-vio-campaign` on any ancestor, or `vio-campaign` on the element.
46
+ */
47
+ campaignId?: number;
48
+ /** Log the SDK's slot/attribution decisions at `console.debug` (manifest assignments per slot). */
49
+ debug?: boolean;
39
50
  /** Override REST API base. Defaults are env-aware. */
40
51
  apiBase?: string;
41
52
  /** Override GraphQL base. Defaults are env-aware. */
@@ -71,6 +82,8 @@ interface ResolvedConfig {
71
82
  platform: VioPlatform;
72
83
  contentId?: string | number;
73
84
  contentTitle?: string;
85
+ campaignId?: number;
86
+ debug: boolean;
74
87
  apiBase: string;
75
88
  graphQLBase: string;
76
89
  eventsBase: string;
@@ -194,6 +207,8 @@ interface BootstrapSlot {
194
207
  platform?: string | null;
195
208
  startDate?: string | null;
196
209
  endDate?: string | null;
210
+ /** Who assigned it: the dashboard (always wins) or a page's own campaign (campaigns micro PR #16). */
211
+ source?: 'dashboard' | 'page' | null;
197
212
  }
198
213
  /**
199
214
  * One entry of `campaigns[]`: every active campaign of the surface, with its
@@ -240,6 +255,8 @@ interface BootstrapResponse {
240
255
  interface ManifestLocation {
241
256
  id: string;
242
257
  displayName?: string;
258
+ /** The campaign this location belongs to when it differs from the page's (`ManifestRequest.campaignId`). */
259
+ campaignId?: number;
243
260
  }
244
261
  /**
245
262
  * Where something happened, as `Vio.attribution(slot)` answers it — the ONE
@@ -265,6 +282,12 @@ interface ManifestRequest {
265
282
  */
266
283
  mode: 'merge' | 'replace';
267
284
  locations: ManifestLocation[];
285
+ /**
286
+ * The campaign the PAGE belongs to (`Vio.init({ campaignId })`): the micro
287
+ * assigns every declared location to it (`source: 'page'`) unless the
288
+ * dashboard already assigned that slot.
289
+ */
290
+ campaignId?: number;
268
291
  }
269
292
  /** Response of `POST /v2/mobile/components/manifest`. */
270
293
  interface ManifestResult {
@@ -275,6 +298,12 @@ interface ManifestResult {
275
298
  id: number | string;
276
299
  locationId: string;
277
300
  displayName?: string | null;
301
+ /**
302
+ * What the micro did with the page's campaign for this slot: `created` /
303
+ * `kept` / `replaced` a page assignment, `dashboard` (the dashboard's
304
+ * assignment stands — the page's campaign is ignored there), `none`.
305
+ */
306
+ assignment?: 'created' | 'kept' | 'replaced' | 'dashboard' | 'none';
278
307
  }>;
279
308
  deprecatedCount: number;
280
309
  warnings: Array<{
@@ -1921,6 +1950,96 @@ declare class CheckoutManager extends EventTarget {
1921
1950
  private emit;
1922
1951
  }
1923
1952
 
1953
+ /**
1954
+ * Slots — the pure half of ADR-0027 / ADR-0034 on the web.
1955
+ *
1956
+ * A slot is a NAME for a place on a page. The page declares its slots to the
1957
+ * campaigns service (`Vio.declareSlots()` / `Vio.registerSlot()` in client.ts),
1958
+ * the dashboard assigns a campaign to each one, optionally with a date window,
1959
+ * and `GET /v2/mobile/config` answers with `campaigns[].slots[]` — only the
1960
+ * assignments whose window is open NOW. Whatever no slot names shows the
1961
+ * surface's default campaign (`campaign`).
1962
+ *
1963
+ * Everything here is side-effect free and never throws on a malformed
1964
+ * bootstrap: a broken `campaigns[]` must never blank a product block or break
1965
+ * `track()`.
1966
+ */
1967
+
1968
+ /** What `Vio.declareSlots()` accepts per slot. */
1969
+ type SlotInput = string | {
1970
+ id: string;
1971
+ displayName?: string;
1972
+ campaignId?: number;
1973
+ };
1974
+ type BootLike = Pick<BootstrapResponse, 'campaign' | 'campaigns' | 'primarySponsor' | 'secondarySponsors'>;
1975
+ /**
1976
+ * The campaign a slot shows right now. Among the `status === 'active'`
1977
+ * entries of `campaigns[]`, the one with an assignment named `slot` for this
1978
+ * platform (`platform` null on the assignment, or equal to `platform`) whose
1979
+ * window contains `now` (`startDate <= now < endDate`, null = open). When
1980
+ * several qualify, the surface's default campaign wins, else the first the
1981
+ * backend lists.
1982
+ *
1983
+ * No assignment → the PAGE's campaign (`pageCampaignId`: the element's own
1984
+ * `vio-campaign`, an ancestor's `data-vio-campaign`, or `Vio.init({ campaignId })`)
1985
+ * when `campaigns[]` lists it as active — an editorial page resolves to its
1986
+ * campaign before (and regardless of) the manifest round-trip. Else the
1987
+ * default campaign: the `campaigns[]` entry whose id is `campaign.id`, or a
1988
+ * minimal entry built from `campaign` (+ the top-level sponsors) when the
1989
+ * list does not carry it. No bootstrap → null.
1990
+ */
1991
+ declare function resolveSlotCampaign(boot: BootLike | null | undefined, slot: string | null | undefined, now?: number, platform?: string | null, pageCampaignId?: CampaignHint, sponsorId?: number | null): BootstrapCampaignEntry | null;
1992
+ /**
1993
+ * The sponsor rule: the active campaign of `campaigns[]` the sponsor takes
1994
+ * part in, as its primary or one of its secondaries — when it is in several,
1995
+ * the surface's default campaign if it is one of them, else the first one
1996
+ * the backend lists. Null when none (or on a malformed list).
1997
+ */
1998
+ declare function sponsorCampaignEntry(boot: BootLike | null | undefined, sponsorId: number | null | undefined): BootstrapCampaignEntry | null;
1999
+ /**
2000
+ * A page campaign as the callers give it: one id, or the candidates in
2001
+ * precedence order (the element's `vio-campaign`, an ancestor's
2002
+ * `data-vio-campaign`, `Vio.init`'s). An unusable level (invalid, paused,
2003
+ * unknown) falls through to the next one; `0`, `null`, `''` mean unset.
2004
+ */
2005
+ type CampaignHint = number | string | null | undefined | ReadonlyArray<number | string | null | undefined>;
2006
+ /**
2007
+ * A campaign id as the SDK accepts it: a positive safe integer, given as a
2008
+ * number or as a string of decimal digits (an attribute). Anything else —
2009
+ * `true`, `'0x10'`, `'1e3'`, an array, a float — is "absent".
2010
+ */
2011
+ declare function toCampaignId(value: unknown): number | undefined;
2012
+ /** The usable ids of a hint, in order, without duplicates. */
2013
+ declare function campaignCandidates(hint: CampaignHint): number[];
2014
+ /**
2015
+ * The first candidate of `hint` that `campaigns[]` lists as ACTIVE (and, when
2016
+ * `sponsorId` is given, that the sponsor takes part in — primary or
2017
+ * secondary); null when none — a paused, ended or unknown page campaign is
2018
+ * ignored and the resolution moves on.
2019
+ */
2020
+ declare function activeCampaignEntry(boot: BootLike | null | undefined, hint: CampaignHint, sponsorId?: number): BootstrapCampaignEntry | null;
2021
+ /** The kinds of Vio element that register themselves. */
2022
+ type SlotKind = 'card' | 'carousel' | 'detail';
2023
+ /**
2024
+ * The id an element gets when the host set no `vio-slot`:
2025
+ * `${scope ? scope + '-' : ''}${kind}-${ordinal + 1}` (`carousel-1`, `card-3`,
2026
+ * `article-123-carousel-1`), `ordinal` being the element's index among the
2027
+ * same-kind Vio elements WITH THE SAME SCOPE, in document order at connect
2028
+ * time. The scope is inherited from the DOM (`vio-scope` on the element, else
2029
+ * the nearest `data-vio-scope` ancestor): a Vev page or a Replit article
2030
+ * (`<body data-vio-scope="article-123">`) gets per-page slots with one line
2031
+ * and no per-element naming; a template that wants slots shared across
2032
+ * articles simply sets no scope. On purpose there is NO page path in the id:
2033
+ * the article goes to analytics as `content_id`, not into the slot. Stable
2034
+ * across reloads while the layout is; a layout change leaves a stale entry,
2035
+ * which ADR-0034 accepts.
2036
+ */
2037
+ declare function autoSlotId(kind: SlotKind, ordinal: number, scope?: string | null): string;
2038
+ /** `"Carousel 1"`, `"Card 3"` — with ` · ${scopeName}` when the scope has a human label. */
2039
+ declare function autoSlotDisplayName(kind: SlotKind, ordinal: number, scopeName?: string | null): string;
2040
+ /** A scope value fit for an id: trimmed, inner whitespace → `-`. */
2041
+ declare function normalizeScope(scope: string | null | undefined): string;
2042
+
1924
2043
  /**
1925
2044
  * Vio.analytics — the web SDK's half of the Vio Analytics pipeline.
1926
2045
  *
@@ -2140,6 +2259,8 @@ declare class AnalyticsManager extends EventTarget {
2140
2259
  * The `campaign_id` of an event. In order: the context's explicit id; the
2141
2260
  * campaign assigned to the context's `slot` right now (ADR-0027 — only an
2142
2261
  * open assignment for the init platform counts, see `findSlotAssignment`);
2262
+ * the PAGE's campaign (`opts.pageCampaignId`, else `Vio.init({ campaignId })`)
2263
+ * when `campaigns[]` lists it as active (ADR-0034, amendment 3);
2143
2264
  * the active campaign of `campaigns[]` the event's sponsor takes part in, as
2144
2265
  * its primary or one of its secondaries — when it is in several, the
2145
2266
  * surface's default campaign if it is one of them, else the first one the
@@ -2150,7 +2271,9 @@ declare class AnalyticsManager extends EventTarget {
2150
2271
  * A malformed `campaigns[]` (not an array, a null entry) never breaks
2151
2272
  * `track()`: it falls back to `campaign.id`.
2152
2273
  */
2153
- declare function resolveCampaignId(ctx: Pick<AnalyticsContext, 'campaignId' | 'sponsorId' | 'slot'>, boot: Pick<BootstrapResponse, 'campaign' | 'campaigns'> | null | undefined): number | undefined;
2274
+ declare function resolveCampaignId(ctx: Pick<AnalyticsContext, 'campaignId' | 'sponsorId' | 'slot'>, boot: Pick<BootstrapResponse, 'campaign' | 'campaigns'> | null | undefined, opts?: {
2275
+ pageCampaignId?: CampaignHint;
2276
+ }): number | undefined;
2154
2277
  /**
2155
2278
  * `detail` of `vio:payment-success` as the checkout emits it. Four paths,
2156
2279
  * three shapes: a redirect return (`orderId` = Vio's checkout id), the
@@ -2235,62 +2358,6 @@ declare function resolveContent(init?: ContentInit | null, doc?: Document | null
2235
2358
  search?: string;
2236
2359
  } | null | undefined): ContentRef;
2237
2360
 
2238
- /**
2239
- * Slots — the pure half of ADR-0027 / ADR-0034 on the web.
2240
- *
2241
- * A slot is a NAME for a place on a page. The page declares its slots to the
2242
- * campaigns service (`Vio.declareSlots()` / `Vio.registerSlot()` in client.ts),
2243
- * the dashboard assigns a campaign to each one, optionally with a date window,
2244
- * and `GET /v2/mobile/config` answers with `campaigns[].slots[]` — only the
2245
- * assignments whose window is open NOW. Whatever no slot names shows the
2246
- * surface's default campaign (`campaign`).
2247
- *
2248
- * Everything here is side-effect free and never throws on a malformed
2249
- * bootstrap: a broken `campaigns[]` must never blank a product block or break
2250
- * `track()`.
2251
- */
2252
-
2253
- /** What `Vio.declareSlots()` accepts per slot. */
2254
- type SlotInput = string | {
2255
- id: string;
2256
- displayName?: string;
2257
- };
2258
- type BootLike = Pick<BootstrapResponse, 'campaign' | 'campaigns' | 'primarySponsor' | 'secondarySponsors'>;
2259
- /**
2260
- * The campaign a slot shows right now. Among the `status === 'active'`
2261
- * entries of `campaigns[]`, the one with an assignment named `slot` for this
2262
- * platform (`platform` null on the assignment, or equal to `platform`) whose
2263
- * window contains `now` (`startDate <= now < endDate`, null = open). When
2264
- * several qualify, the surface's default campaign wins, else the first the
2265
- * backend lists.
2266
- *
2267
- * No slot, or no assignment → the default campaign: the `campaigns[]` entry
2268
- * whose id is `campaign.id`, or a minimal entry built from `campaign` (+ the
2269
- * top-level sponsors) when the list does not carry it. No bootstrap → null.
2270
- */
2271
- declare function resolveSlotCampaign(boot: BootLike | null | undefined, slot: string | null | undefined, now?: number, platform?: string | null): BootstrapCampaignEntry | null;
2272
- /** The kinds of Vio element that register themselves. */
2273
- type SlotKind = 'card' | 'carousel' | 'detail';
2274
- /**
2275
- * The id an element gets when the host set no `vio-slot`:
2276
- * `${scope ? scope + '-' : ''}${kind}-${ordinal + 1}` (`carousel-1`, `card-3`,
2277
- * `article-123-carousel-1`), `ordinal` being the element's index among the
2278
- * same-kind Vio elements WITH THE SAME SCOPE, in document order at connect
2279
- * time. The scope is inherited from the DOM (`vio-scope` on the element, else
2280
- * the nearest `data-vio-scope` ancestor): a Vev page or a Replit article
2281
- * (`<body data-vio-scope="article-123">`) gets per-page slots with one line
2282
- * and no per-element naming; a template that wants slots shared across
2283
- * articles simply sets no scope. On purpose there is NO page path in the id:
2284
- * the article goes to analytics as `content_id`, not into the slot. Stable
2285
- * across reloads while the layout is; a layout change leaves a stale entry,
2286
- * which ADR-0034 accepts.
2287
- */
2288
- declare function autoSlotId(kind: SlotKind, ordinal: number, scope?: string | null): string;
2289
- /** `"Carousel 1"`, `"Card 3"` — with ` · ${scopeName}` when the scope has a human label. */
2290
- declare function autoSlotDisplayName(kind: SlotKind, ordinal: number, scopeName?: string | null): string;
2291
- /** A scope value fit for an id: trimmed, inner whitespace → `-`. */
2292
- declare function normalizeScope(scope: string | null | undefined): string;
2293
-
2294
2361
  /**
2295
2362
  * The cart split per campaign (ADR-0034) — ONE rule, shared by the SDK's own
2296
2363
  * `begin_checkout` / `purchase` events, by `Vio.cartSlices()` and so by any
@@ -2336,8 +2403,11 @@ declare class VioFacade {
2336
2403
  * (another key or environment) is still in flight after a re-init; its answer
2337
2404
  * belongs to that configuration and must not land in this one. */
2338
2405
  private generation;
2339
- /** Slot ids present on the page (`Vio.registerSlot`): how many elements hold each + its display name. */
2406
+ /** Slot ids present on the page (`Vio.registerSlot`): how many elements hold each, its display name and its own campaign. */
2340
2407
  private slotRegistry;
2408
+ /** Slots already warned about (`dashboard`: the dashboard's assignment stands; `replaced`: this page moved it). */
2409
+ private warnedDashboardSlots;
2410
+ private warnedReplacedSlots;
2341
2411
  /** Pending debounced declaration of the registry. */
2342
2412
  private slotDeclareTimer;
2343
2413
  /** A name appeared (or the key changed) since the registry was last declared. */
@@ -2406,19 +2476,32 @@ declare class VioFacade {
2406
2476
  /**
2407
2477
  * Register a slot present on the page (the `<vio-*>` elements call it with
2408
2478
  * their effective id — the host's `vio-slot` or the auto-generated one —
2409
- * and the optional display name). The registry is declared ONCE, debounced,
2410
- * after the first successful bootstrap — and again whenever a new id or a
2411
- * new display name appears. A `displayName` given later for an id already
2412
- * registered replaces the one kept; `undefined` leaves it alone. The
2413
- * returned function unregisters; removal never re-declares.
2479
+ * the optional display name, and the element's own campaign when it has
2480
+ * one: `vio-campaign` or an ancestor's `data-vio-campaign`). The registry is
2481
+ * declared ONCE, debounced, after the first successful bootstrap — and again
2482
+ * whenever a new id, display name or campaign appears. A `displayName` /
2483
+ * `campaignId` given later for an id already registered replaces the one
2484
+ * kept; `undefined` leaves it alone. The returned function unregisters;
2485
+ * removal never re-declares.
2414
2486
  */
2415
- registerSlot(name: string, displayName?: string): () => void;
2487
+ registerSlot(name: string, displayName?: string, campaignId?: number | string | null): () => void;
2416
2488
  /**
2417
2489
  * The campaign a slot shows now, from the last bootstrap: its assigned and
2418
2490
  * open campaign for the init platform, else the surface's default. With no
2419
2491
  * slot, the default. `null` before the bootstrap. See `resolveSlotCampaign`.
2420
2492
  */
2421
- campaignForSlot(slot?: string | null): BootstrapCampaignEntry | null;
2493
+ campaignForSlot(slot?: string | null, hint?: {
2494
+ campaignId?: CampaignHint;
2495
+ sponsorId?: number | string | null;
2496
+ }): BootstrapCampaignEntry | null;
2497
+ /** The page-campaign candidates in precedence order: the element's (own, ancestor), then `Vio.init`'s. */
2498
+ private pageCampaignCandidates;
2499
+ /**
2500
+ * The campaign the PAGE belongs to (`Vio.init({ campaignId })`, ADR-0034
2501
+ * amendment 3), as the last bootstrap lists it — only when it is there and
2502
+ * active; `null` otherwise (no page campaign, paused, unknown, no bootstrap).
2503
+ */
2504
+ pageCampaign(): BootstrapCampaignEntry | null;
2422
2505
  /**
2423
2506
  * THE attribution helper — the SDK elements, Vev and Replit all use this
2424
2507
  * one. For a place (`slot`): the campaign it shows right now
@@ -2429,11 +2512,16 @@ declare class VioFacade {
2429
2512
  *
2430
2513
  * `hint.sponsorId` — when the caller already knows the sponsor (a card with
2431
2514
  * `sponsor-id`) it is kept as `sponsorId`, and the campaign follows the same
2432
- * cascade analytics uses (slot assignment → the sponsor's active campaign →
2433
- * default), so what the cart remembers matches what the events say.
2515
+ * cascade analytics uses (slot assignment → page campaign → the sponsor's
2516
+ * active campaign → default), so what the cart remembers matches what the
2517
+ * events say — the page campaign applies there only when that sponsor takes
2518
+ * part in it. `hint.campaignId` — the element's own page campaign
2519
+ * candidates (`vio-campaign`, an ancestor's `data-vio-campaign`), ahead of
2520
+ * `Vio.init`'s; an unusable one falls through to the next; `0` = unset.
2434
2521
  */
2435
2522
  attribution(slot?: string | null, hint?: {
2436
2523
  sponsorId?: number | string;
2524
+ campaignId?: CampaignHint;
2437
2525
  }): Attribution;
2438
2526
  /**
2439
2527
  * The cart split per campaign — the SAME rule `begin_checkout` / `purchase`
@@ -2448,6 +2536,21 @@ declare class VioFacade {
2448
2536
  cartSlices(sponsorId?: number, opts?: {
2449
2537
  items?: CartLineItem[];
2450
2538
  }): CartSlice[];
2539
+ /**
2540
+ * What the micro did with the page's campaign per slot (`assignment`):
2541
+ * `console.debug` when `Vio.init({ debug: true })`; a warning once per
2542
+ * slot when the dashboard's own assignment stands (only for a slot this
2543
+ * page actually sent a campaign for) and once per slot when this page moved
2544
+ * it from an earlier page assignment (`replaced`).
2545
+ */
2546
+ private reportAssignments;
2547
+ /**
2548
+ * The memory keys of the sent locations whose campaign the micro did not
2549
+ * take up: every location when a campaign was sent and no answer carries
2550
+ * `assignment` (an older micro), or the ones answered `none` for a campaign
2551
+ * the bootstrap lists as active. They are remembered with the 1 h TTL.
2552
+ */
2553
+ private campaignNotTakenUp;
2451
2554
  private scheduleSlotDeclaration;
2452
2555
  private findSponsor;
2453
2556
  }
@@ -2460,7 +2563,7 @@ declare const Vio: VioFacade;
2460
2563
  *
2461
2564
  * RELEASE CHECKLIST: bump together with package.json (see CONTRIBUTING).
2462
2565
  */
2463
- declare const SDK_VERSION = "0.23.1";
2566
+ declare const SDK_VERSION = "0.24.0";
2464
2567
 
2465
2568
  /**
2466
2569
  * Vipps MobilePay's own button, the way the design guidelines ask for it.
@@ -2489,4 +2592,4 @@ declare function vippsButtonAttributes(verb?: 'buy' | 'pay' | 'express' | 'conti
2489
2592
  language?: string;
2490
2593
  }): Record<string, string>;
2491
2594
 
2492
- export { ADD_ITEM_MUTATION, type AddManualOptions, type AddProductOptions, type AnalyticsCommerce, type AnalyticsContext, type AnalyticsEventName, type AnalyticsItemInput, AnalyticsManager, type AnalyticsStartOptions, type ApplePayConfig, type ApplePayResult, type Attribution, type BootstrapCampaign, type BootstrapCampaignEntry, type BootstrapCampaignStatus, type BootstrapResponse, type BootstrapSlot, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, type CartChangeDetail, type CartLineItem, type CartLineOrigin, CartManager, type CartOrigin, type CartQueryOptions, type CartSlice, type CheckoutAddress, type CheckoutChangeDetail, CheckoutManager, type CheckoutState, CommerceClient, Configuration, type ContentRef, type CreatePaymentVippsResponse, type CreatePaymentVippsVariables, DELETE_ITEM_MUTATION, type Environment, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, type GetVippsStatusVariables, type ImageSize, type ManifestLocation, type ManifestRequest, type ManifestResult, type PaymentCompleteDetail, type PaymentMethod, type PaymentSelectDetail, type PaymentSuccessDetail, type PaymentSuccessResult, type PlacementComponent, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductPrice, type ProductVariant, type ResolvedConfig, SDK_VERSION, type SlotInput, type SlotKind, type Sponsor, type SponsorCartState, type SponsorCommerceBlock, type TrackOptions, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, type VioConfig, type VioItem, type VioPlatform, type VippsPaymentState, type VippsStatusResult, addItem, autoSlotDisplayName, autoSlotId, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes };
2595
+ export { ADD_ITEM_MUTATION, type AddManualOptions, type AddProductOptions, type AnalyticsCommerce, type AnalyticsContext, type AnalyticsEventName, type AnalyticsItemInput, AnalyticsManager, type AnalyticsStartOptions, type ApplePayConfig, type ApplePayResult, type Attribution, type BootstrapCampaign, type BootstrapCampaignEntry, type BootstrapCampaignStatus, type BootstrapResponse, type BootstrapSlot, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, type CampaignHint, type CartChangeDetail, type CartLineItem, type CartLineOrigin, CartManager, type CartOrigin, type CartQueryOptions, type CartSlice, type CheckoutAddress, type CheckoutChangeDetail, CheckoutManager, type CheckoutState, CommerceClient, Configuration, type ContentRef, type CreatePaymentVippsResponse, type CreatePaymentVippsVariables, DELETE_ITEM_MUTATION, type Environment, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, type GetVippsStatusVariables, type ImageSize, type ManifestLocation, type ManifestRequest, type ManifestResult, type PaymentCompleteDetail, type PaymentMethod, type PaymentSelectDetail, type PaymentSuccessDetail, type PaymentSuccessResult, type PlacementComponent, type Product, type ProductCategory, type ProductImage, type ProductOption, type ProductPrice, type ProductVariant, type ResolvedConfig, SDK_VERSION, type SlotInput, type SlotKind, type Sponsor, type SponsorCartState, type SponsorCommerceBlock, type TrackOptions, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, type VioConfig, type VioItem, type VioPlatform, type VippsPaymentState, type VippsStatusResult, activeCampaignEntry, addItem, autoSlotDisplayName, autoSlotId, campaignCandidates, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes };
@@ -1,4 +1,4 @@
1
1
  import '../chunk-45YKS5UG.js';
2
- export { ADD_ITEM_MUTATION, AnalyticsManager, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, addItem, autoSlotDisplayName, autoSlotId, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from '../chunk-BRJMT7P4.js';
2
+ export { ADD_ITEM_MUTATION, AnalyticsManager, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, activeCampaignEntry, addItem, autoSlotDisplayName, autoSlotId, campaignCandidates, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from '../chunk-AXJKB2CW.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { ADD_ITEM_MUTATION, AddManualOptions, AddProductOptions, AnalyticsCommerce, AnalyticsContext, AnalyticsEventName, AnalyticsItemInput, AnalyticsManager, AnalyticsStartOptions, ApplePayConfig, ApplePayResult, Attribution, BootstrapCampaign, BootstrapCampaignEntry, BootstrapCampaignStatus, BootstrapResponse, BootstrapSlot, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartChangeDetail, CartLineItem, CartLineOrigin, CartManager, CartOrigin, CartQueryOptions, CartSlice, CheckoutAddress, CheckoutChangeDetail, CheckoutManager, CheckoutState, CommerceClient, Configuration, ContentRef, CreatePaymentVippsResponse, CreatePaymentVippsVariables, DELETE_ITEM_MUTATION, Environment, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, GetVippsStatusVariables, ImageSize, ManifestLocation, ManifestRequest, ManifestResult, PaymentCompleteDetail, PaymentMethod, PaymentSelectDetail, PaymentSuccessDetail, PaymentSuccessResult, PlacementComponent, Product, ProductCategory, ProductImage, ProductOption, ProductPrice, ProductVariant, ResolvedConfig, SDK_VERSION, SlotInput, SlotKind, Sponsor, SponsorCartState, SponsorCommerceBlock, TrackOptions, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, VioConfig, VioItem, VioPlatform, VippsPaymentState, VippsStatusResult, addItem, autoSlotDisplayName, autoSlotId, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from './core/index.js';
1
+ export { ADD_ITEM_MUTATION, AddManualOptions, AddProductOptions, AnalyticsCommerce, AnalyticsContext, AnalyticsEventName, AnalyticsItemInput, AnalyticsManager, AnalyticsStartOptions, ApplePayConfig, ApplePayResult, Attribution, BootstrapCampaign, BootstrapCampaignEntry, BootstrapCampaignStatus, BootstrapResponse, BootstrapSlot, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CampaignHint, CartChangeDetail, CartLineItem, CartLineOrigin, CartManager, CartOrigin, CartQueryOptions, CartSlice, CheckoutAddress, CheckoutChangeDetail, CheckoutManager, CheckoutState, CommerceClient, Configuration, ContentRef, CreatePaymentVippsResponse, CreatePaymentVippsVariables, DELETE_ITEM_MUTATION, Environment, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, GetVippsStatusVariables, ImageSize, ManifestLocation, ManifestRequest, ManifestResult, PaymentCompleteDetail, PaymentMethod, PaymentSelectDetail, PaymentSuccessDetail, PaymentSuccessResult, PlacementComponent, Product, ProductCategory, ProductImage, ProductOption, ProductPrice, ProductVariant, ResolvedConfig, SDK_VERSION, SlotInput, SlotKind, Sponsor, SponsorCartState, SponsorCommerceBlock, TrackOptions, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, VioConfig, VioItem, VioPlatform, VippsPaymentState, VippsStatusResult, activeCampaignEntry, addItem, autoSlotDisplayName, autoSlotId, campaignCandidates, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from './core/index.js';
2
2
  import 'graphql-request';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import './chunk-45YKS5UG.js';
2
- export { ADD_ITEM_MUTATION, AnalyticsManager, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, addItem, autoSlotDisplayName, autoSlotId, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from './chunk-BRJMT7P4.js';
2
+ export { ADD_ITEM_MUTATION, AnalyticsManager, CREATE_CART_MUTATION, CREATE_CHECKOUT_MUTATION, CREATE_PAYMENT_STRIPE_MUTATION, CREATE_PAYMENT_VIPPS_MUTATION, CartManager, CheckoutManager, CommerceClient, Configuration, DELETE_ITEM_MUTATION, GET_AVAILABLE_PAYMENT_METHODS_QUERY, GET_CART_QUERY, GET_CHECKOUT_QUERY, GET_LINE_ITEMS_BY_SUPPLIER_QUERY, GET_VIPPS_STATUS_QUERY, SDK_VERSION, UPDATE_CHECKOUT_MUTATION, UPDATE_ITEM_MUTATION, UPDATE_SHIPPINGS_BY_SUPPLIER_MUTATION, VIPPS_BUTTON_SCRIPT, VIPPS_BUTTON_TAG, Vio, VioApi, VioApiError, activeCampaignEntry, addItem, autoSlotDisplayName, autoSlotId, campaignCandidates, cartSlicesFrom, checkApplePayAvailability, createCart, createCheckout, createCommerceClient, createPaymentStripe, createPaymentVipps, createVioApi, deleteItem, displayPrice, ensureVippsButton, executeCartGraphQL, formatPrice, getAvailablePaymentMethods, getCart, getCartGraphQLOptions, getCheckout, getCustomerSessionId, getGlobalCurrency, getLineItemsBySupplier, getVippsStatus, lineOrigins, normalizeOrigin, normalizeScope, primaryImageUrl, purchaseFromPaymentSuccess, resolveCampaignId, resolveContent, resolveSlotCampaign, sameOrigin, showApplePaySheet, sponsorCampaignEntry, toCampaignId, updateCheckout, updateItem, updateShippingsBySupplier, vippsButtonAttributes } from './chunk-AXJKB2CW.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -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-DDfZuHF6.js';
3
- export { e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-DDfZuHF6.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-C3qiGvLV.js';
3
+ export { e as VioThemeOverrides, f as VioTokens, g as applyVioTheme } from '../tokens-C3qiGvLV.js';
4
4
  import 'lit-html';
5
5
  import 'lit';
6
6
 
@@ -1,6 +1,6 @@
1
- import { registerVioElements, VioProduct, VioProductCarousel, VioProductDetail, VioCart, VioCheckout } from '../chunk-UVDOKFGD.js';
2
- export { VioTokens, applyVioTheme } from '../chunk-UVDOKFGD.js';
3
- import '../chunk-BRJMT7P4.js';
1
+ import { registerVioElements, VioProduct, VioProductCarousel, VioProductDetail, VioCart, VioCheckout } from '../chunk-N6U65DWG.js';
2
+ export { VioTokens, applyVioTheme } from '../chunk-N6U65DWG.js';
3
+ import '../chunk-AXJKB2CW.js';
4
4
  import * as React from 'react';
5
5
 
6
6
  // node_modules/@lit/react/node/create-component.js
@@ -36,6 +36,13 @@ declare class VioProduct extends LitElement {
36
36
  vioScope: string;
37
37
  /** Human label of the scope (` · Title` in the slot name); inherited from `data-vio-scope-name`. */
38
38
  vioScopeName: string;
39
+ /**
40
+ * The campaign this element's PAGE belongs to (ADR-0034, amendment 3).
41
+ * Inherited: this attribute, else the nearest ancestor's `data-vio-campaign`,
42
+ * else `Vio.init({ campaignId })`. A dashboard assignment of the slot wins
43
+ * over it. Optional.
44
+ */
45
+ vioCampaign: string;
39
46
  /** Per-element override of the content (article) id the events carry; see `Vio.content()`. */
40
47
  vioContentId: string;
41
48
  /** Per-element override of the content title. */
@@ -43,6 +50,8 @@ declare class VioProduct extends LitElement {
43
50
  private readonly slotRegistration;
44
51
  /** The slot id in effect: `vio-slot`, else the auto id (`card-N`). Read-only. */
45
52
  get effectiveSlot(): string;
53
+ /** The element's own page campaign (`vio-campaign` / ancestor), if any; `Vio.init`'s applies otherwise. */
54
+ get effectiveCampaignId(): number | undefined;
46
55
  /** The slot campaign's sponsor as the string the attributes use ('' when unknown). */
47
56
  private sponsorFromAttribution;
48
57
  private slotAttributes;
@@ -139,6 +148,13 @@ declare class VioProductCarousel extends LitElement {
139
148
  vioScope: string;
140
149
  /** Human label of the scope (` · Title` in the slot name); inherited from `data-vio-scope-name`. */
141
150
  vioScopeName: string;
151
+ /**
152
+ * The campaign this element's PAGE belongs to (ADR-0034, amendment 3).
153
+ * Inherited: this attribute, else the nearest ancestor's `data-vio-campaign`,
154
+ * else `Vio.init({ campaignId })`. A dashboard assignment of the slot wins
155
+ * over it. Optional.
156
+ */
157
+ vioCampaign: string;
142
158
  /** Per-element override of the content (article) id the events carry; see `Vio.content()`. */
143
159
  vioContentId: string;
144
160
  /** Per-element override of the content title. */
@@ -146,6 +162,8 @@ declare class VioProductCarousel extends LitElement {
146
162
  private readonly slotRegistration;
147
163
  /** The slot id in effect: `vio-slot`, else the auto id (`carousel-N`). Read-only. */
148
164
  get effectiveSlot(): string;
165
+ /** The element's own page campaign (`vio-campaign` / ancestor), if any; `Vio.init`'s applies otherwise. */
166
+ get effectiveCampaignId(): number | undefined;
149
167
  private slotAttributes;
150
168
  /** Attribution every analytics event of this carousel carries (`Vio.attribution` + the content overrides). */
151
169
  private attribution;
@@ -207,6 +225,13 @@ declare class VioProductDetail extends LitElement {
207
225
  vioScope: string;
208
226
  /** Human label of the scope (` · Title` in the slot name); inherited from `data-vio-scope-name`. */
209
227
  vioScopeName: string;
228
+ /**
229
+ * The campaign this element's PAGE belongs to (ADR-0034, amendment 3).
230
+ * Inherited: this attribute, else the nearest ancestor's `data-vio-campaign`,
231
+ * else `Vio.init({ campaignId })`. A dashboard assignment of the slot wins
232
+ * over it. Optional.
233
+ */
234
+ vioCampaign: string;
210
235
  /** Per-element override of the content (article) id the events carry; see `Vio.content()`. */
211
236
  vioContentId: string;
212
237
  /** Per-element override of the content title. */
@@ -216,13 +241,18 @@ declare class VioProductDetail extends LitElement {
216
241
  private eventSlot;
217
242
  private eventContentId;
218
243
  private eventContentTitle;
244
+ private eventCampaignId;
219
245
  private eventProductId;
220
246
  /** The card's context applies to the product it opened — not to one the host opened by hand later. */
221
247
  private get fromCard();
222
248
  /** The slot id in effect for this element: `vio-slot`, else the auto id (`detail-N`). Read-only. */
223
249
  get effectiveSlot(): string;
250
+ /** The element's own page campaign (`vio-campaign` / ancestor), if any; `Vio.init`'s applies otherwise. */
251
+ get effectiveCampaignId(): number | undefined;
224
252
  /** The slot the open product is attributed to: the opening card's, else this element's. */
225
253
  private get activeSlot();
254
+ /** The page-campaign candidates of the open product: the opening card's, then this element's own and its ancestor's. */
255
+ private get activeCampaignHint();
226
256
  private slotAttributes;
227
257
  /** Attribution every event of the open product carries (`Vio.attribution` of the opening card's slot, else this element's). */
228
258
  private attribution;
@@ -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-DDfZuHF6.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-C3qiGvLV.js';
2
2
  import 'lit-html';
3
3
  import 'lit';
4
4
 
package/dist/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { registerVioElements } from '../chunk-UVDOKFGD.js';
2
- export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements } from '../chunk-UVDOKFGD.js';
3
- import '../chunk-BRJMT7P4.js';
1
+ import { registerVioElements } from '../chunk-N6U65DWG.js';
2
+ export { VioCart, VioCheckout, VioProduct, VioProductCarousel, VioProductDetail, VioTokens, applyVioTheme, registerVioElements } from '../chunk-N6U65DWG.js';
3
+ import '../chunk-AXJKB2CW.js';
4
4
 
5
5
  // src/ui/index.ts
6
6
  registerVioElements();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vio-live/web-sdk",
3
- "version": "0.23.1",
3
+ "version": "0.24.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",