@session-services/web-elements 0.1.33 → 0.1.35
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/README.md +4 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/session-services-elements.cjs.js +1 -1
- package/dist/cjs/session-services-ticketing.cjs.entry.js +374 -335
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.js +82 -15
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.js +14 -375
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.logic.test.js +5 -4
- package/dist/collection/components/session-services-ticketing/session-services-ticketing.test.js +23 -0
- package/dist/components/session-services-ticketing.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/session-services-elements.js +1 -1
- package/dist/esm/session-services-ticketing.entry.js +374 -335
- package/dist/session-services-elements/p-2fa235a5.entry.js +1 -0
- package/dist/session-services-elements/session-services-elements.esm.js +1 -1
- package/dist/types/components/session-services-ticketing/session-services-ticketing.d.ts +10 -0
- package/dist/types/components/session-services-ticketing/session-services-ticketing.logic.d.ts +22 -190
- package/dist/types/components.d.ts +13 -0
- package/exports/components/formatted-text.js +1 -1
- package/exports/components/index.d.ts +4 -4
- package/exports/components/ticketing.js +1 -1
- package/exports/formatted-text.d.ts +3 -3
- package/exports/formatted-text.js +1 -1
- package/exports/ticketing.d.ts +5 -4
- package/exports/ticketing.js +1 -1
- package/package.json +15 -7
- package/dist/session-services-elements/p-7a1b9685.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-DhbVMqIT.js";export{s as setNonce}from"./p-DhbVMqIT.js";import{g as
|
|
1
|
+
import{p as e,b as o}from"./p-DhbVMqIT.js";export{s as setNonce}from"./p-DhbVMqIT.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-8483ca88",[[513,"session-services-formatted-text",{text:[1],theme:[1],currentTheme:[32],segments:[32]},null,{text:[{textChanged:0}],theme:[{themeChanged:0}]}]]],["p-2fa235a5",[[513,"session-services-ticketing",{tenantId:[1,"tenant-id"],eventId:[1,"event-id"],apiUrl:[1,"api-url"],locale:[1],returnUrl:[1,"return-url"],returnDestinationKey:[1,"return-destination-key"],createOrder:[16],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],initialLoading:[32],eventLoading:[32],retryLoading:[32],passcodeLoading:[32],error:[32],errorKind:[32],refreshError:[32],quoteLoading:[32],previewLoading:[32],quoteError:[32],couponError:[32],couponInput:[32],appliedCouponCode:[32],passcodeInput:[32],activePasscode:[32],passcodeDenied:[32],selectionPrompt:[32],checkoutLoading:[32],checkoutError:[32],currentTheme:[32],openModalAdmissionId:[32],verificationRequired:[32]},null,{tenantId:[{propsChanged:0}],eventId:[{propsChanged:0}],apiUrl:[{propsChanged:0}],passcode:[{propsChanged:0}],couponCode:[{couponCodeChanged:0}],initialAdmissionPrices:[{couponCodeChanged:0}],initialPreviewQuote:[{couponCodeChanged:0}],theme:[{themeChanged:0}]}]]]],e))));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AppClient } from "@session-services/sdk";
|
|
1
2
|
import type { DetailedEvent, OrderQuote } from "@session-services/sdk/schemas";
|
|
2
3
|
import { type EventEmitter } from "../../stencil-public-runtime";
|
|
3
4
|
import { type SelectionKey } from "./session-services-ticketing.logic";
|
|
@@ -17,6 +18,15 @@ export declare class SessionsTicketing {
|
|
|
17
18
|
apiUrl: string;
|
|
18
19
|
locale: string;
|
|
19
20
|
returnUrl?: string;
|
|
21
|
+
returnDestinationKey?: string;
|
|
22
|
+
createOrder?: (input: Parameters<AppClient["order"]["create"]>[0], options: {
|
|
23
|
+
signal: AbortSignal;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
order: {
|
|
26
|
+
id?: string;
|
|
27
|
+
checkoutUrl?: string;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
20
30
|
couponCode?: string;
|
|
21
31
|
initialAdmissionPrices?: Record<string, {
|
|
22
32
|
discount: number;
|
package/dist/types/components/session-services-ticketing/session-services-ticketing.logic.d.ts
CHANGED
|
@@ -1,100 +1,27 @@
|
|
|
1
1
|
import type { Admission, DetailedEvent, OrderQuote, Section } from "@session-services/sdk/schemas";
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type TopLevelItem = TopLevelAdmissionItem | TopLevelSectionItem;
|
|
14
|
-
export interface AdmissionDisplayState {
|
|
15
|
-
disabled: boolean;
|
|
16
|
-
label: {
|
|
17
|
-
text: string;
|
|
18
|
-
tone: "muted" | "success";
|
|
19
|
-
} | null;
|
|
20
|
-
maxQuantity: number;
|
|
21
|
-
postSale: boolean;
|
|
22
|
-
showScarcity: boolean;
|
|
23
|
-
soldOut: boolean;
|
|
24
|
-
statusLabel: string | null;
|
|
25
|
-
statusTone: "destructive" | "success" | null;
|
|
26
|
-
}
|
|
27
|
-
export interface AdmissionPriceDisplay {
|
|
28
|
-
base: number;
|
|
29
|
-
discounted: boolean;
|
|
30
|
-
fees: number;
|
|
31
|
-
gross?: number;
|
|
32
|
-
}
|
|
33
|
-
export interface AdmissionPreviewPrice {
|
|
34
|
-
discount: number;
|
|
35
|
-
gross: number;
|
|
36
|
-
total: number;
|
|
37
|
-
}
|
|
38
|
-
export type AdmissionPriceMap = Partial<Record<SelectionKey, AdmissionPreviewPrice>>;
|
|
39
|
-
export interface AdmissionStackingInput {
|
|
2
|
+
import { discountCouponFromSearch, getTicketPreviewItems, getTicketSelectorState, parseTicketSelectionKey, type TopLevelAdmissionItem as SharedTopLevelAdmissionItem, type TopLevelSectionItem as SharedTopLevelSectionItem, type TicketAdmissionDisplayState, type TicketAdmissionPreviewPrice, type TicketAdmissionPriceDisplay, type TicketAdmissionPriceMap, type TicketAdmissionStackingInput, type TicketSelectionKey, type TicketSelectorMode, type TicketSelectorState, type TopLevelTicketItem, ticketAdmissionPriceSavings, ticketEventTimeZone, ticketPriceTotal, ticketSelectionKey } from "@session-services/utils/ticket-selector";
|
|
3
|
+
export type SelectionKey = TicketSelectionKey;
|
|
4
|
+
export type TicketingMode = TicketSelectorMode;
|
|
5
|
+
export type TopLevelAdmissionItem = SharedTopLevelAdmissionItem<Admission>;
|
|
6
|
+
export type TopLevelSectionItem = SharedTopLevelSectionItem<Admission, Section>;
|
|
7
|
+
export type TopLevelItem = TopLevelTicketItem<Admission, Section>;
|
|
8
|
+
export type AdmissionDisplayState = TicketAdmissionDisplayState;
|
|
9
|
+
export type AdmissionPriceDisplay = TicketAdmissionPriceDisplay;
|
|
10
|
+
export type AdmissionPreviewPrice = TicketAdmissionPreviewPrice;
|
|
11
|
+
export type AdmissionPriceMap = TicketAdmissionPriceMap;
|
|
12
|
+
export type AdmissionStackingInput = TicketAdmissionStackingInput<Admission, Section> & {
|
|
40
13
|
event?: DetailedEvent;
|
|
41
|
-
initialAdmissionPrices?: AdmissionPriceMap;
|
|
42
|
-
mode?: TicketingMode;
|
|
43
14
|
previewQuote?: OrderQuote | null;
|
|
44
15
|
quote?: OrderQuote | null;
|
|
45
|
-
}
|
|
46
|
-
export interface TicketingState {
|
|
47
|
-
externalTicketUrl?: string;
|
|
48
|
-
isDoorOnly: boolean;
|
|
49
|
-
isEnded: boolean;
|
|
50
|
-
isUnavailableForSale: boolean;
|
|
51
|
-
showExternalTicketing: boolean;
|
|
52
|
-
showTicketing: boolean;
|
|
53
|
-
ticketHeading: string;
|
|
54
|
-
}
|
|
55
|
-
export declare function selectionKey(admissionId: string, sectionId: string | null): SelectionKey;
|
|
56
|
-
export declare function parseSelectionKey(key: SelectionKey): {
|
|
57
|
-
admissionId: string;
|
|
58
|
-
sectionId: string;
|
|
59
16
|
};
|
|
60
|
-
export
|
|
61
|
-
export declare
|
|
62
|
-
export declare
|
|
63
|
-
export declare
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
order: number;
|
|
69
|
-
entryStartsAt: string;
|
|
70
|
-
entryEndsAt: string;
|
|
71
|
-
saleStartsAt: string;
|
|
72
|
-
saleEndsAt: string;
|
|
73
|
-
saleEndsBehavior: "SALE_ENDED" | "SOLD_OUT" | "DOOR";
|
|
74
|
-
price: {
|
|
75
|
-
base: number;
|
|
76
|
-
booking: number;
|
|
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";
|
|
78
|
-
override?: {
|
|
79
|
-
booking: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
visibility: "ALWAYS" | "HIDDEN" | "AFTER_ADMISSION";
|
|
83
|
-
teamId: string;
|
|
84
|
-
promoterId: string;
|
|
85
|
-
eventId: string;
|
|
86
|
-
eventSlug: string;
|
|
87
|
-
id?: string;
|
|
88
|
-
subtitle?: string;
|
|
89
|
-
description?: string;
|
|
90
|
-
available?: number;
|
|
91
|
-
sold?: number;
|
|
92
|
-
reserved?: number;
|
|
93
|
-
createdAt?: string;
|
|
94
|
-
updatedAt?: string;
|
|
95
|
-
visibleAfterAdmissionId?: string;
|
|
96
|
-
sectionId?: string;
|
|
97
|
-
}[];
|
|
17
|
+
export type TicketingState = TicketSelectorState;
|
|
18
|
+
export declare const selectionKey: typeof ticketSelectionKey;
|
|
19
|
+
export declare const parseSelectionKey: typeof parseTicketSelectionKey;
|
|
20
|
+
export declare const priceTotal: typeof ticketPriceTotal;
|
|
21
|
+
export { discountCouponFromSearch };
|
|
22
|
+
export declare const eventTimeZone: typeof ticketEventTimeZone;
|
|
23
|
+
export declare const getTicketingState: typeof getTicketSelectorState;
|
|
24
|
+
export declare function visibleAdmissions(event: DetailedEvent, mode: TicketingMode): Admission[];
|
|
98
25
|
export declare function topLevelTicketItems(sections: Section[], admissions: Admission[], input?: AdmissionStackingInput): TopLevelItem[];
|
|
99
26
|
export declare function getAdmissionDisplayState(input: {
|
|
100
27
|
admission: Admission;
|
|
@@ -110,101 +37,6 @@ export declare function getAdmissionPriceDisplay(input: {
|
|
|
110
37
|
quoteItem?: OrderQuote["items"][number];
|
|
111
38
|
previewItem?: OrderQuote["items"][number];
|
|
112
39
|
}): AdmissionPriceDisplay;
|
|
113
|
-
export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<string,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
quantity: number;
|
|
117
|
-
price: {
|
|
118
|
-
net: number;
|
|
119
|
-
total: number;
|
|
120
|
-
gross: number;
|
|
121
|
-
base: number;
|
|
122
|
-
booking: number;
|
|
123
|
-
refunded: number;
|
|
124
|
-
discount: number;
|
|
125
|
-
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";
|
|
126
|
-
};
|
|
127
|
-
admissionId?: string;
|
|
128
|
-
sectionId?: string;
|
|
129
|
-
admission?: {
|
|
130
|
-
name: string;
|
|
131
|
-
capacity: number;
|
|
132
|
-
limit: number;
|
|
133
|
-
order: number;
|
|
134
|
-
entryStartsAt: string;
|
|
135
|
-
entryEndsAt: string;
|
|
136
|
-
saleStartsAt: string;
|
|
137
|
-
saleEndsAt: string;
|
|
138
|
-
saleEndsBehavior: "SALE_ENDED" | "SOLD_OUT" | "DOOR";
|
|
139
|
-
price: {
|
|
140
|
-
base: number;
|
|
141
|
-
booking: number;
|
|
142
|
-
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";
|
|
143
|
-
override?: {
|
|
144
|
-
booking: number;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
visibility: "ALWAYS" | "HIDDEN" | "AFTER_ADMISSION";
|
|
148
|
-
teamId: string;
|
|
149
|
-
promoterId: string;
|
|
150
|
-
eventId: string;
|
|
151
|
-
eventSlug: string;
|
|
152
|
-
id?: string;
|
|
153
|
-
subtitle?: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
available?: number;
|
|
156
|
-
sold?: number;
|
|
157
|
-
reserved?: number;
|
|
158
|
-
createdAt?: string;
|
|
159
|
-
updatedAt?: string;
|
|
160
|
-
visibleAfterAdmissionId?: string;
|
|
161
|
-
sectionId?: string;
|
|
162
|
-
};
|
|
163
|
-
section?: {
|
|
164
|
-
name: string;
|
|
165
|
-
capacity: number;
|
|
166
|
-
limit: number;
|
|
167
|
-
order: number;
|
|
168
|
-
visibility: "ALWAYS" | "HIDDEN" | "STACKED";
|
|
169
|
-
location: {
|
|
170
|
-
createdAt: string;
|
|
171
|
-
updatedAt: string;
|
|
172
|
-
name: string;
|
|
173
|
-
address: string;
|
|
174
|
-
country: string;
|
|
175
|
-
latitude: number;
|
|
176
|
-
longitude: number;
|
|
177
|
-
timeZone: string;
|
|
178
|
-
id?: string;
|
|
179
|
-
googlePlaceId?: string;
|
|
180
|
-
city?: string;
|
|
181
|
-
state?: string;
|
|
182
|
-
postcode?: string;
|
|
183
|
-
types?: string[];
|
|
184
|
-
description?: string;
|
|
185
|
-
image?: {
|
|
186
|
-
src: string;
|
|
187
|
-
alt: string;
|
|
188
|
-
width: number;
|
|
189
|
-
height: number;
|
|
190
|
-
};
|
|
191
|
-
venueId?: string;
|
|
192
|
-
};
|
|
193
|
-
teamId: string;
|
|
194
|
-
promoterId: string;
|
|
195
|
-
eventId: string;
|
|
196
|
-
eventSlug: string;
|
|
197
|
-
id?: string;
|
|
198
|
-
createdAt?: string;
|
|
199
|
-
updatedAt?: string;
|
|
200
|
-
available?: number;
|
|
201
|
-
sold?: number;
|
|
202
|
-
reserved?: number;
|
|
203
|
-
};
|
|
204
|
-
}>;
|
|
205
|
-
export declare function admissionPriceSavings(price: AdmissionPriceDisplay): number;
|
|
206
|
-
export declare function previewQuoteItems(event: DetailedEvent): {
|
|
207
|
-
admissionId: string;
|
|
208
|
-
quantity: number;
|
|
209
|
-
sectionId: string;
|
|
210
|
-
}[];
|
|
40
|
+
export declare function quoteItemsBySelection(quote: OrderQuote | null): Map<string, OrderQuote["items"][number]>;
|
|
41
|
+
export declare const admissionPriceSavings: typeof ticketAdmissionPriceSavings;
|
|
42
|
+
export declare const previewQuoteItems: typeof getTicketPreviewItems;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { AppClient } from "@session-services/sdk";
|
|
8
9
|
import { OrderQuote } from "@session-services/sdk/schemas";
|
|
9
10
|
import { AnalyticsEventSkipped } from "./components/session-services-ticketing/session-services-ticketing";
|
|
11
|
+
export { AppClient } from "@session-services/sdk";
|
|
10
12
|
export { OrderQuote } from "@session-services/sdk/schemas";
|
|
11
13
|
export { AnalyticsEventSkipped } from "./components/session-services-ticketing/session-services-ticketing";
|
|
12
14
|
export namespace Components {
|
|
@@ -26,6 +28,10 @@ export namespace Components {
|
|
|
26
28
|
*/
|
|
27
29
|
"apiUrl": string;
|
|
28
30
|
"couponCode"?: string;
|
|
31
|
+
"createOrder"?: (
|
|
32
|
+
input: Parameters<AppClient["order"]["create"]>[0],
|
|
33
|
+
options: { signal: AbortSignal },
|
|
34
|
+
) => Promise<{ order: { id?: string; checkoutUrl?: string } }>;
|
|
29
35
|
/**
|
|
30
36
|
* @default false
|
|
31
37
|
*/
|
|
@@ -43,6 +49,7 @@ export namespace Components {
|
|
|
43
49
|
*/
|
|
44
50
|
"locale": string;
|
|
45
51
|
"passcode"?: string;
|
|
52
|
+
"returnDestinationKey"?: string;
|
|
46
53
|
"returnUrl"?: string;
|
|
47
54
|
/**
|
|
48
55
|
* @default false
|
|
@@ -113,6 +120,10 @@ declare namespace LocalJSX {
|
|
|
113
120
|
*/
|
|
114
121
|
"apiUrl"?: string;
|
|
115
122
|
"couponCode"?: string;
|
|
123
|
+
"createOrder"?: (
|
|
124
|
+
input: Parameters<AppClient["order"]["create"]>[0],
|
|
125
|
+
options: { signal: AbortSignal },
|
|
126
|
+
) => Promise<{ order: { id?: string; checkoutUrl?: string } }>;
|
|
116
127
|
/**
|
|
117
128
|
* @default false
|
|
118
129
|
*/
|
|
@@ -137,6 +148,7 @@ declare namespace LocalJSX {
|
|
|
137
148
|
}>) => void;
|
|
138
149
|
"onErrorOccurred"?: (event: SessionServicesTicketingCustomEvent<{ error: string }>) => void;
|
|
139
150
|
"passcode"?: string;
|
|
151
|
+
"returnDestinationKey"?: string;
|
|
140
152
|
"returnUrl"?: string;
|
|
141
153
|
/**
|
|
142
154
|
* @default false
|
|
@@ -159,6 +171,7 @@ declare namespace LocalJSX {
|
|
|
159
171
|
"apiUrl": string;
|
|
160
172
|
"locale": string;
|
|
161
173
|
"returnUrl": string;
|
|
174
|
+
"returnDestinationKey": string;
|
|
162
175
|
"couponCode": string;
|
|
163
176
|
"initialAdmissionPrices": | Record<string, { discount: number; gross: number; total: number }>
|
|
164
177
|
| string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * from "../../dist/components/index";
|
|
2
|
+
/** @deprecated Use `FormattedText` instead. */
|
|
2
3
|
export {
|
|
3
4
|
FormattedText,
|
|
4
5
|
type SessionServicesFormattedText,
|
|
6
|
+
SessionServicesFormattedText,
|
|
5
7
|
} from "./formatted-text";
|
|
6
|
-
/** @deprecated Use `
|
|
7
|
-
export { SessionServicesFormattedText } from "./formatted-text";
|
|
8
|
+
/** @deprecated Use `Ticketing` instead. */
|
|
8
9
|
export {
|
|
9
10
|
type SessionServicesTicketing,
|
|
11
|
+
SessionServicesTicketing,
|
|
10
12
|
Ticketing,
|
|
11
13
|
} from "./ticketing";
|
|
12
|
-
/** @deprecated Use `Ticketing` instead. */
|
|
13
|
-
export { SessionServicesTicketing } from "./ticketing";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/** @deprecated Use `FormattedText` instead. */
|
|
1
2
|
export {
|
|
3
|
+
defineCustomElement,
|
|
2
4
|
FormattedText,
|
|
3
5
|
type SessionServicesFormattedText,
|
|
4
|
-
|
|
6
|
+
SessionServicesFormattedText,
|
|
5
7
|
} from "./components/formatted-text";
|
|
6
|
-
/** @deprecated Use `FormattedText` instead. */
|
|
7
|
-
export { SessionServicesFormattedText } from "./components/formatted-text";
|
package/exports/ticketing.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** biome-ignore-all assist/source/organizeImports: Keep the deprecation annotation scoped to the legacy exports. */
|
|
2
|
+
export { defineCustomElement, Ticketing } from "./components/ticketing";
|
|
3
|
+
|
|
4
|
+
/** @deprecated Use `Ticketing` instead. */
|
|
1
5
|
export {
|
|
2
6
|
type SessionServicesTicketing,
|
|
3
|
-
|
|
4
|
-
defineCustomElement,
|
|
7
|
+
SessionServicesTicketing,
|
|
5
8
|
} from "./components/ticketing";
|
|
6
|
-
/** @deprecated Use `Ticketing` instead. */
|
|
7
|
-
export { SessionServicesTicketing } from "./components/ticketing";
|
package/exports/ticketing.js
CHANGED
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.
|
|
4
|
+
"version": "0.1.35",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/types/components.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"import": "./dist/session-services-elements/session-services-elements.esm.js",
|
|
14
|
-
"require": "./dist/
|
|
14
|
+
"require": "./dist/index.cjs.js",
|
|
15
15
|
"types": "./dist/types/components.d.ts"
|
|
16
16
|
},
|
|
17
17
|
"./dist/components": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"./loader": {
|
|
81
81
|
"import": "./loader/index.js",
|
|
82
|
-
"require": "./loader/index.cjs",
|
|
82
|
+
"require": "./loader/index.cjs.js",
|
|
83
83
|
"types": "./loader/index.d.ts"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
@@ -157,11 +157,19 @@
|
|
|
157
157
|
"rollup": "^4.61.1",
|
|
158
158
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
159
159
|
"typescript": "~6.0.3",
|
|
160
|
-
"vitest": "4.1.
|
|
161
|
-
"@session-services/sdk": "0.1.
|
|
160
|
+
"vitest": "4.1.11",
|
|
161
|
+
"@session-services/sdk": "0.1.35",
|
|
162
162
|
"@session-services/tsconfig": "0.1.0",
|
|
163
163
|
"@session-services/utils": "0.1.18"
|
|
164
164
|
},
|
|
165
|
+
"repository": {
|
|
166
|
+
"type": "git",
|
|
167
|
+
"url": "git+https://github.com/session-services/platform.git",
|
|
168
|
+
"directory": "packages/elements/web"
|
|
169
|
+
},
|
|
170
|
+
"bugs": {
|
|
171
|
+
"url": "https://github.com/session-services/platform/issues"
|
|
172
|
+
},
|
|
165
173
|
"scripts": {
|
|
166
174
|
"build": "stencil build",
|
|
167
175
|
"dev": "pnpm --filter @session-services/sdk build && stencil build --dev --watch --serve",
|
|
@@ -176,8 +184,8 @@
|
|
|
176
184
|
"typecheck": "tsc --noEmit",
|
|
177
185
|
"test": "vitest run",
|
|
178
186
|
"test:watch": "vitest",
|
|
179
|
-
"test:e2e": "stencil test --e2e",
|
|
180
|
-
"test:e2e:watch": "stencil test --e2e --watchAll",
|
|
187
|
+
"test:e2e": "stencil test --e2e --passWithNoTests",
|
|
188
|
+
"test:e2e:watch": "stencil test --e2e --watchAll --passWithNoTests",
|
|
181
189
|
"knip": "knip --no-exit-code"
|
|
182
190
|
}
|
|
183
191
|
}
|