@session-services/web-elements 0.1.24 → 0.1.25

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 +1 @@
1
- import{p as e,b as t}from"./p-CNOpF6tk.js";export{s as setNonce}from"./p-CNOpF6tk.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((async e=>(await o(),t([["p-703444ed",[[769,"session-services-formatted-text",{text:[1],theme:[1],currentTheme:[32],segments:[32]},null,{text:["textChanged"],theme:["themeChanged"]}]]],["p-f40762bb",[[769,"session-services-ticketing",{tenantId:[1,"tenant-id"],eventId:[1,"event-id"],apiUrl:[1,"api-url"],locale:[1],returnUrl:[1,"return-url"],couponCode:[1,"coupon-code"],initialAdmissionPrices:[1,"initial-admission-prices"],initialPreviewQuote:[1,"initial-preview-quote"],passcode:[1],stickyCheckout:[4,"sticky-checkout"],theme:[1],enableAnalytics:[4,"enable-analytics"],debugAnalytics:[4,"debug-analytics"],event:[32],selectedItems:[32],quote:[32],previewQuote:[32],loading:[32],error:[32],quoteLoading:[32],previewLoading:[32],quoteError:[32],couponError:[32],couponInput:[32],appliedCouponCode:[32],passcodeInput:[32],activePasscode:[32],passcodeDenied:[32],selectionPrompt:[32],checkoutLoading:[32],currentTheme:[32],openModalAdmissionId:[32]},null,{tenantId:["propsChanged"],eventId:["propsChanged"],apiUrl:["propsChanged"],passcode:["propsChanged"],couponCode:["couponCodeChanged"],initialAdmissionPrices:["couponCodeChanged"],initialPreviewQuote:["couponCodeChanged"],theme:["themeChanged"]}]]]],e))));
1
+ import{p as e,b as t}from"./p-CNOpF6tk.js";export{s as setNonce}from"./p-CNOpF6tk.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((async e=>(await o(),t([["p-703444ed",[[769,"session-services-formatted-text",{text:[1],theme:[1],currentTheme:[32],segments:[32]},null,{text:["textChanged"],theme:["themeChanged"]}]]],["p-edf63ff2",[[769,"session-services-ticketing",{tenantId:[1,"tenant-id"],eventId:[1,"event-id"],apiUrl:[1,"api-url"],locale:[1],returnUrl:[1,"return-url"],couponCode:[1,"coupon-code"],initialAdmissionPrices:[1,"initial-admission-prices"],initialPreviewQuote:[1,"initial-preview-quote"],passcode:[1],stickyCheckout:[4,"sticky-checkout"],theme:[1],enableAnalytics:[4,"enable-analytics"],debugAnalytics:[4,"debug-analytics"],event:[32],selectedItems:[32],quote:[32],previewQuote:[32],loading:[32],error:[32],quoteLoading:[32],previewLoading:[32],quoteError:[32],couponError:[32],couponInput:[32],appliedCouponCode:[32],passcodeInput:[32],activePasscode:[32],passcodeDenied:[32],selectionPrompt:[32],checkoutLoading:[32],currentTheme:[32],openModalAdmissionId:[32]},null,{tenantId:["propsChanged"],eventId:["propsChanged"],apiUrl:["propsChanged"],passcode:["propsChanged"],couponCode:["couponCodeChanged"],initialAdmissionPrices:["couponCodeChanged"],initialPreviewQuote:["couponCodeChanged"],theme:["themeChanged"]}]]]],e))));
@@ -76,6 +76,7 @@ export declare class SessionsTicketing {
76
76
  private getLowestPrice;
77
77
  private getAdmissionListProducts;
78
78
  private loadEventData;
79
+ private pruneSelectedItems;
79
80
  private trackLoadedEvent;
80
81
  private setupAnalytics;
81
82
  private trackProductViewed;
@@ -114,6 +115,7 @@ export declare class SessionsTicketing {
114
115
  private submitPasscode;
115
116
  private initiateCheckout;
116
117
  private trackCheckoutStarted;
118
+ private trackExternalTicketClick;
117
119
  private getCheckoutItems;
118
120
  private handleCheckoutOrder;
119
121
  private handleCheckoutError;
@@ -36,6 +36,13 @@ export interface AdmissionPreviewPrice {
36
36
  total: number;
37
37
  }
38
38
  export type AdmissionPriceMap = Partial<Record<SelectionKey, AdmissionPreviewPrice>>;
39
+ export interface AdmissionStackingInput {
40
+ event?: DetailedEvent;
41
+ initialAdmissionPrices?: AdmissionPriceMap;
42
+ mode?: TicketingMode;
43
+ previewQuote?: OrderQuote | null;
44
+ quote?: OrderQuote | null;
45
+ }
39
46
  export interface TicketingState {
40
47
  externalTicketUrl?: string;
41
48
  isDoorOnly: boolean;
@@ -69,7 +76,7 @@ export declare function visibleAdmissions(event: DetailedEvent, mode: TicketingM
69
76
  booking: number;
70
77
  currency: "AUD" | "AED" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BZD" | "CAD" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HUF" | "IDR" | "ILS" | "INR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RWF" | "SAR" | "SBD" | "SCR" | "SEK" | "SGD" | "SHP" | "SLE" | "SRD" | "SVC" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "ZAR" | "ZMW" | "ZWL";
71
78
  };
72
- visibility: "ALWAYS" | "STACKED" | "HIDDEN";
79
+ visibility: "ALWAYS" | "HIDDEN";
73
80
  teamId: string;
74
81
  promoterId: string;
75
82
  eventId: string;
@@ -82,10 +89,9 @@ export declare function visibleAdmissions(event: DetailedEvent, mode: TicketingM
82
89
  reserved?: number;
83
90
  createdAt?: string;
84
91
  updatedAt?: string;
85
- passcode?: string;
86
92
  sectionId?: string;
87
93
  }[];
88
- export declare function topLevelTicketItems(sections: Section[], admissions: Admission[]): TopLevelItem[];
94
+ export declare function topLevelTicketItems(sections: Section[], admissions: Admission[], input?: AdmissionStackingInput): TopLevelItem[];
89
95
  export declare function getAdmissionDisplayState(input: {
90
96
  admission: Admission;
91
97
  event: DetailedEvent;
@@ -130,7 +136,7 @@ export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<str
130
136
  booking: number;
131
137
  currency: "AUD" | "AED" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BZD" | "CAD" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HUF" | "IDR" | "ILS" | "INR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RWF" | "SAR" | "SBD" | "SCR" | "SEK" | "SGD" | "SHP" | "SLE" | "SRD" | "SVC" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "ZAR" | "ZMW" | "ZWL";
132
138
  };
133
- visibility: "ALWAYS" | "STACKED" | "HIDDEN";
139
+ visibility: "ALWAYS" | "HIDDEN";
134
140
  teamId: string;
135
141
  promoterId: string;
136
142
  eventId: string;
@@ -143,7 +149,6 @@ export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<str
143
149
  reserved?: number;
144
150
  createdAt?: string;
145
151
  updatedAt?: string;
146
- passcode?: string;
147
152
  sectionId?: string;
148
153
  };
149
154
  section?: {
@@ -151,6 +156,7 @@ export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<str
151
156
  capacity: number;
152
157
  limit: number;
153
158
  order: number;
159
+ visibility: "ALWAYS" | "HIDDEN" | "STACKED";
154
160
  location: {
155
161
  createdAt: string;
156
162
  updatedAt: string;
@@ -185,7 +191,6 @@ export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<str
185
191
  available?: number;
186
192
  sold?: number;
187
193
  reserved?: number;
188
- passcode?: string;
189
194
  };
190
195
  }>;
191
196
  export declare function admissionPriceSavings(price: AdmissionPriceDisplay): number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@session-services/web-elements",
3
3
  "private": false,
4
- "version": "0.1.24",
4
+ "version": "0.1.25",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/types/components.d.ts",
@@ -80,7 +80,7 @@
80
80
  "rollup-plugin-esbuild": "^6.2.1",
81
81
  "typescript": "5.9.3",
82
82
  "vitest": "4.0.15",
83
- "@session-services/sdk": "0.1.24",
83
+ "@session-services/sdk": "0.1.25",
84
84
  "@session-services/utils": "0.1.18",
85
85
  "@session-services/tsconfig": "0.1.0"
86
86
  },