@gomusdev/web-components 2.1.1 → 3.0.0-next.2
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 +942 -12
- package/dist-js/components/cart/components/CartCoupons.svelte.d.ts +1 -0
- package/dist-js/components/cart/components/CartDiscountedAmount.svelte.d.ts +1 -0
- package/dist-js/components/cart/components/CartItems.svelte.d.ts +1 -0
- package/dist-js/components/cart/components/CartSubtotalAmount.svelte.d.ts +1 -0
- package/dist-js/components/cart/components/CartTotalAmount.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.css +52 -15
- package/dist-js/gomus-webcomponents.iife.js +407 -277
- package/dist-js/gomus-webcomponents.js +407 -277
- package/dist-js/gomus-webcomponents.min.css +1 -1
- package/dist-js/gomus-webcomponents.min.iife.js +12 -12
- package/dist-js/gomus-webcomponents.min.js +7130 -7028
- package/dist-js/src/components/cart/components/CartCounter.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartCoupons.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartDetails.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartDetails.svelte.d.ts +15 -0
- package/dist-js/src/components/cart/components/CartDiscountedAmount.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartItems.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartSubtotalAmount.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/CartTotalAmount.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/Item.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/itemTitles/Event.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/itemTitles/Ticket.spec.d.ts +1 -0
- package/dist-js/src/components/cart/components/utils.spec.d.ts +1 -0
- package/dist-js/src/factories/CartItemFactories.d.ts +173 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +0 -1
- package/dist-js/src/test-helpers/resetShop.d.ts +1 -0
- package/package.json +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Cart } from '../../../../lib/models/cart/cart.svelte.ts';
|
|
2
|
+
export declare class CartDetails {
|
|
3
|
+
displayCart: Cart | undefined;
|
|
4
|
+
appliedCoupons: Set<string>;
|
|
5
|
+
preview: boolean;
|
|
6
|
+
get totalPriceCents(): number;
|
|
7
|
+
get subtotalPriceCents(): number;
|
|
8
|
+
get discountedAmountCents(): number;
|
|
9
|
+
get isDiscounted(): boolean;
|
|
10
|
+
calculateDisplayCart(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare const setCartDetails: (host: HTMLElement, details: CartDetails) => void;
|
|
13
|
+
export declare const getCartDetails: (host: HTMLElement, options?: {
|
|
14
|
+
pollDuration: number;
|
|
15
|
+
}) => import('../../../../lib/helpers/context.svelte.ts').DetailsWrapper<CartDetails>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { EventTicketFactories } from './EventTicketFactories.ts';
|
|
2
|
+
import { TicketFactories } from './TicketFactories.ts';
|
|
3
|
+
interface TicketCartItemOptions {
|
|
4
|
+
quantity?: number;
|
|
5
|
+
time?: string;
|
|
6
|
+
ticket?: Partial<ReturnType<typeof TicketFactories.timeslot>>;
|
|
7
|
+
}
|
|
8
|
+
interface EventCartItemOptions {
|
|
9
|
+
quantity?: number;
|
|
10
|
+
time?: string;
|
|
11
|
+
dateId?: number;
|
|
12
|
+
event_title?: string;
|
|
13
|
+
eventTicket?: Partial<ReturnType<typeof EventTicketFactories.scaled>>;
|
|
14
|
+
}
|
|
15
|
+
export declare const CartItemFactories: {
|
|
16
|
+
timeslot({ quantity, time, ticket }?: TicketCartItemOptions): {
|
|
17
|
+
type: "Ticket" | "Event";
|
|
18
|
+
product: import('../lib/models/cart/types.ts').Product;
|
|
19
|
+
orderAttributes(): {
|
|
20
|
+
time: string | undefined;
|
|
21
|
+
quantity: number | undefined;
|
|
22
|
+
shipped_with_merchandise_id: null;
|
|
23
|
+
shipping_mode: string;
|
|
24
|
+
id: number;
|
|
25
|
+
} | {
|
|
26
|
+
quantity: number | undefined;
|
|
27
|
+
shipped_with_merchandise_id: null;
|
|
28
|
+
shipping_mode: string;
|
|
29
|
+
id: number;
|
|
30
|
+
} | {
|
|
31
|
+
quantities: {
|
|
32
|
+
[x: number]: number | undefined;
|
|
33
|
+
};
|
|
34
|
+
shipped_with_merchandise_id: null;
|
|
35
|
+
shipping_mode: string;
|
|
36
|
+
id: number;
|
|
37
|
+
};
|
|
38
|
+
uuid: string;
|
|
39
|
+
subUId: string;
|
|
40
|
+
toString(): string;
|
|
41
|
+
price_cents: number;
|
|
42
|
+
price_formatted: string;
|
|
43
|
+
final_price_cents: number;
|
|
44
|
+
final_price_formatted: string;
|
|
45
|
+
total_price_cents: number;
|
|
46
|
+
total_price_formatted: string;
|
|
47
|
+
quantity?: number | undefined;
|
|
48
|
+
time?: string | undefined;
|
|
49
|
+
display?: {
|
|
50
|
+
discounted: boolean;
|
|
51
|
+
reference_uuid: string;
|
|
52
|
+
originalPrice: number;
|
|
53
|
+
} | undefined;
|
|
54
|
+
};
|
|
55
|
+
day({ quantity, time, ticket }?: TicketCartItemOptions): {
|
|
56
|
+
type: "Ticket" | "Event";
|
|
57
|
+
product: import('../lib/models/cart/types.ts').Product;
|
|
58
|
+
orderAttributes(): {
|
|
59
|
+
time: string | undefined;
|
|
60
|
+
quantity: number | undefined;
|
|
61
|
+
shipped_with_merchandise_id: null;
|
|
62
|
+
shipping_mode: string;
|
|
63
|
+
id: number;
|
|
64
|
+
} | {
|
|
65
|
+
quantity: number | undefined;
|
|
66
|
+
shipped_with_merchandise_id: null;
|
|
67
|
+
shipping_mode: string;
|
|
68
|
+
id: number;
|
|
69
|
+
} | {
|
|
70
|
+
quantities: {
|
|
71
|
+
[x: number]: number | undefined;
|
|
72
|
+
};
|
|
73
|
+
shipped_with_merchandise_id: null;
|
|
74
|
+
shipping_mode: string;
|
|
75
|
+
id: number;
|
|
76
|
+
};
|
|
77
|
+
uuid: string;
|
|
78
|
+
subUId: string;
|
|
79
|
+
toString(): string;
|
|
80
|
+
price_cents: number;
|
|
81
|
+
price_formatted: string;
|
|
82
|
+
final_price_cents: number;
|
|
83
|
+
final_price_formatted: string;
|
|
84
|
+
total_price_cents: number;
|
|
85
|
+
total_price_formatted: string;
|
|
86
|
+
quantity?: number | undefined;
|
|
87
|
+
time?: string | undefined;
|
|
88
|
+
display?: {
|
|
89
|
+
discounted: boolean;
|
|
90
|
+
reference_uuid: string;
|
|
91
|
+
originalPrice: number;
|
|
92
|
+
} | undefined;
|
|
93
|
+
};
|
|
94
|
+
scaledEvent({ quantity, time, dateId, event_title, eventTicket, }?: EventCartItemOptions): {
|
|
95
|
+
type: "Ticket" | "Event";
|
|
96
|
+
product: import('../lib/models/cart/types.ts').Product;
|
|
97
|
+
orderAttributes(): {
|
|
98
|
+
time: string | undefined;
|
|
99
|
+
quantity: number | undefined;
|
|
100
|
+
shipped_with_merchandise_id: null;
|
|
101
|
+
shipping_mode: string;
|
|
102
|
+
id: number;
|
|
103
|
+
} | {
|
|
104
|
+
quantity: number | undefined;
|
|
105
|
+
shipped_with_merchandise_id: null;
|
|
106
|
+
shipping_mode: string;
|
|
107
|
+
id: number;
|
|
108
|
+
} | {
|
|
109
|
+
quantities: {
|
|
110
|
+
[x: number]: number | undefined;
|
|
111
|
+
};
|
|
112
|
+
shipped_with_merchandise_id: null;
|
|
113
|
+
shipping_mode: string;
|
|
114
|
+
id: number;
|
|
115
|
+
};
|
|
116
|
+
uuid: string;
|
|
117
|
+
subUId: string;
|
|
118
|
+
toString(): string;
|
|
119
|
+
price_cents: number;
|
|
120
|
+
price_formatted: string;
|
|
121
|
+
final_price_cents: number;
|
|
122
|
+
final_price_formatted: string;
|
|
123
|
+
total_price_cents: number;
|
|
124
|
+
total_price_formatted: string;
|
|
125
|
+
quantity?: number | undefined;
|
|
126
|
+
time?: string | undefined;
|
|
127
|
+
display?: {
|
|
128
|
+
discounted: boolean;
|
|
129
|
+
reference_uuid: string;
|
|
130
|
+
originalPrice: number;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
flatEvent({ quantity, time, dateId, event_title, eventTicket, }?: EventCartItemOptions): {
|
|
134
|
+
type: "Ticket" | "Event";
|
|
135
|
+
product: import('../lib/models/cart/types.ts').Product;
|
|
136
|
+
orderAttributes(): {
|
|
137
|
+
time: string | undefined;
|
|
138
|
+
quantity: number | undefined;
|
|
139
|
+
shipped_with_merchandise_id: null;
|
|
140
|
+
shipping_mode: string;
|
|
141
|
+
id: number;
|
|
142
|
+
} | {
|
|
143
|
+
quantity: number | undefined;
|
|
144
|
+
shipped_with_merchandise_id: null;
|
|
145
|
+
shipping_mode: string;
|
|
146
|
+
id: number;
|
|
147
|
+
} | {
|
|
148
|
+
quantities: {
|
|
149
|
+
[x: number]: number | undefined;
|
|
150
|
+
};
|
|
151
|
+
shipped_with_merchandise_id: null;
|
|
152
|
+
shipping_mode: string;
|
|
153
|
+
id: number;
|
|
154
|
+
};
|
|
155
|
+
uuid: string;
|
|
156
|
+
subUId: string;
|
|
157
|
+
toString(): string;
|
|
158
|
+
price_cents: number;
|
|
159
|
+
price_formatted: string;
|
|
160
|
+
final_price_cents: number;
|
|
161
|
+
final_price_formatted: string;
|
|
162
|
+
total_price_cents: number;
|
|
163
|
+
total_price_formatted: string;
|
|
164
|
+
quantity?: number | undefined;
|
|
165
|
+
time?: string | undefined;
|
|
166
|
+
display?: {
|
|
167
|
+
discounted: boolean;
|
|
168
|
+
reference_uuid: string;
|
|
169
|
+
originalPrice: number;
|
|
170
|
+
} | undefined;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resetShop(): void;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Giantmonkey GmbH"
|
|
5
5
|
},
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "3.0.0-next.2",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist-js/gomus-webcomponents.iife.js",
|
|
10
10
|
"module": "./dist-js/gomus-webcomponents.iife.js",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@paypal/paypal-js": "^9.2.0",
|
|
61
61
|
"@playwright/test": "^1.58.0",
|
|
62
62
|
"@semantic-release/changelog": "^6.0.3",
|
|
63
|
+
"@semantic-release/exec": "^7.1.0",
|
|
63
64
|
"@semantic-release/git": "^10.0.1",
|
|
64
65
|
"@semantic-release/gitlab": "^13.2.9",
|
|
65
66
|
"@semantic-release/npm": "^13.1.3",
|
|
@@ -76,6 +77,7 @@
|
|
|
76
77
|
"@types/applepayjs": "^14.0.9",
|
|
77
78
|
"@types/googlepay": "^0.7.10",
|
|
78
79
|
"@types/jest": "^30.0.0",
|
|
80
|
+
"@types/js-beautify": "^1.14.3",
|
|
79
81
|
"@types/js-cookie": "^3.0.6",
|
|
80
82
|
"autoprefixer": "^10.4.23",
|
|
81
83
|
"bits-ui": "^2.15.4",
|
|
@@ -85,13 +87,13 @@
|
|
|
85
87
|
"dompurify": "^3.3.1",
|
|
86
88
|
"eslint-plugin-storybook": "10.2.1",
|
|
87
89
|
"http-server": "^14.1.1",
|
|
90
|
+
"js-beautify": "^1.15.4",
|
|
88
91
|
"js-cookie": "^3.0.5",
|
|
89
92
|
"liquidjs": "^10.24.0",
|
|
90
93
|
"msw": "2.12.7",
|
|
91
94
|
"openapi-fetch": "^0.15.0",
|
|
92
95
|
"postcss": "^8.5.6",
|
|
93
96
|
"postcss-preset-env": "^11.1.2",
|
|
94
|
-
"pretty": "^2.0.0",
|
|
95
97
|
"radash": "^12.1.1",
|
|
96
98
|
"remark-gfm": "^4.0.1",
|
|
97
99
|
"rollup-plugin-visualizer": "^7.0.1",
|