@gomusdev/web-components 3.1.1 → 3.3.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.
- package/README.md +17 -0
- package/dist-js/components/mainnav/components/ConnectedMainNav.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/Devider.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/DropDown.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/Home.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/Link.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/MainNav.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/NavLink.svelte.d.ts +1 -0
- package/dist-js/components/mainnav/components/SingleNavEntry.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-method-component/PaymentMethod.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/applepay/ApplePay.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/bancontact/Bancontact.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/blik/Blik.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/card/Card.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/eps/Eps.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/googlepay/GooglePay.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/ideal/Ideal.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/multibanco/Multibanco.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/mybank/MyBank.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/p24/P24.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/paylater/PayLater.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/paypal/Paypal.svelte.d.ts +1 -0
- package/dist-js/components/paypal/payment-methods/trustly/Trustly.svelte.d.ts +1 -0
- package/dist-js/components/withdrawal/Withdrawal.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +7478 -508
- package/dist-js/gomus-webcomponents.js +7478 -508
- package/dist-js/gomus-webcomponents.min.iife.js +80 -12
- package/dist-js/gomus-webcomponents.min.js +13250 -8862
- package/dist-js/lib/Log.svelte.d.ts +1 -0
- package/dist-js/src/components/cart/mocks/gomusTicketMocks.d.ts +27 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/Item.spec.d.ts +1 -0
- package/dist-js/src/components/withdrawal/entry.d.ts +0 -0
- package/dist-js/src/components/withdrawal/specs/Withdrawal.spec.d.ts +1 -0
- package/dist-js/src/lib/models/ticket/UITicket.svelte.d.ts +27 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +15 -1
- package/dist-js/src/lib/stores/shop.withdrawal.spec.d.ts +1 -0
- package/dist-js/src/mocks/ShopMocks.d.ts +18 -0
- package/package.json +7 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -37,6 +37,15 @@ export declare function createMockUITicket(): {
|
|
|
37
37
|
description?: string | null;
|
|
38
38
|
};
|
|
39
39
|
} | null;
|
|
40
|
+
optional_subordinates: {
|
|
41
|
+
accounting_article_id: number;
|
|
42
|
+
accounting_article_type: string;
|
|
43
|
+
number: string;
|
|
44
|
+
name: string;
|
|
45
|
+
price_cents: number;
|
|
46
|
+
vat_pct: number;
|
|
47
|
+
default_included: boolean;
|
|
48
|
+
}[];
|
|
40
49
|
is_sub_ticket: boolean;
|
|
41
50
|
created_at: string;
|
|
42
51
|
updated_at: string;
|
|
@@ -93,6 +102,15 @@ export declare function createMockUITicket(): {
|
|
|
93
102
|
description?: string | null;
|
|
94
103
|
};
|
|
95
104
|
} | null;
|
|
105
|
+
optional_subordinates: {
|
|
106
|
+
accounting_article_id: number;
|
|
107
|
+
accounting_article_type: string;
|
|
108
|
+
number: string;
|
|
109
|
+
name: string;
|
|
110
|
+
price_cents: number;
|
|
111
|
+
vat_pct: number;
|
|
112
|
+
default_included: boolean;
|
|
113
|
+
}[];
|
|
96
114
|
is_sub_ticket: boolean;
|
|
97
115
|
created_at: string;
|
|
98
116
|
updated_at: string;
|
|
@@ -139,6 +157,15 @@ export declare function createMockUITicket(): {
|
|
|
139
157
|
description?: string | null;
|
|
140
158
|
};
|
|
141
159
|
} | null;
|
|
160
|
+
optional_subordinates: {
|
|
161
|
+
accounting_article_id: number;
|
|
162
|
+
accounting_article_type: string;
|
|
163
|
+
number: string;
|
|
164
|
+
name: string;
|
|
165
|
+
price_cents: number;
|
|
166
|
+
vat_pct: number;
|
|
167
|
+
default_included: boolean;
|
|
168
|
+
}[];
|
|
142
169
|
is_sub_ticket: boolean;
|
|
143
170
|
created_at: string;
|
|
144
171
|
updated_at: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -45,6 +45,15 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
|
|
|
45
45
|
description?: string | null;
|
|
46
46
|
};
|
|
47
47
|
} | null;
|
|
48
|
+
optional_subordinates: {
|
|
49
|
+
accounting_article_id: number;
|
|
50
|
+
accounting_article_type: string;
|
|
51
|
+
number: string;
|
|
52
|
+
name: string;
|
|
53
|
+
price_cents: number;
|
|
54
|
+
vat_pct: number;
|
|
55
|
+
default_included: boolean;
|
|
56
|
+
}[];
|
|
48
57
|
is_sub_ticket: boolean;
|
|
49
58
|
created_at: string;
|
|
50
59
|
updated_at: string;
|
|
@@ -101,6 +110,15 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
|
|
|
101
110
|
description?: string | null;
|
|
102
111
|
};
|
|
103
112
|
} | null;
|
|
113
|
+
optional_subordinates: {
|
|
114
|
+
accounting_article_id: number;
|
|
115
|
+
accounting_article_type: string;
|
|
116
|
+
number: string;
|
|
117
|
+
name: string;
|
|
118
|
+
price_cents: number;
|
|
119
|
+
vat_pct: number;
|
|
120
|
+
default_included: boolean;
|
|
121
|
+
}[];
|
|
104
122
|
is_sub_ticket: boolean;
|
|
105
123
|
created_at: string;
|
|
106
124
|
updated_at: string;
|
|
@@ -147,6 +165,15 @@ export declare function createUITicket(apiTicket: Ticket | AnnualTicket | Normal
|
|
|
147
165
|
description?: string | null;
|
|
148
166
|
};
|
|
149
167
|
} | null;
|
|
168
|
+
optional_subordinates: {
|
|
169
|
+
accounting_article_id: number;
|
|
170
|
+
accounting_article_type: string;
|
|
171
|
+
number: string;
|
|
172
|
+
name: string;
|
|
173
|
+
price_cents: number;
|
|
174
|
+
vat_pct: number;
|
|
175
|
+
default_included: boolean;
|
|
176
|
+
}[];
|
|
150
177
|
is_sub_ticket: boolean;
|
|
151
178
|
created_at: string;
|
|
152
179
|
updated_at: string;
|
|
@@ -6,8 +6,9 @@ import { Auth } from '../../../lib/stores/auth.svelte.ts';
|
|
|
6
6
|
import { User } from '../../../lib/stores/user.svelte.ts';
|
|
7
7
|
import { OpenApiClient } from '@gomus/api';
|
|
8
8
|
import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
|
|
9
|
-
import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, Merchandise, Museum, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, Tour, UploadPersonalizationPhotoResponse, ValidateTokenResponse } from '@gomus/types';
|
|
9
|
+
import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, Merchandise, Museum, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, Tour, UploadPersonalizationPhotoResponse, ValidateTokenResponse, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
|
|
10
10
|
export type ShopKind = 'angular' | 'jmb';
|
|
11
|
+
type ParseAs = 'json' | 'text' | 'blob' | 'arrayBuffer' | 'stream';
|
|
11
12
|
export declare class Shop {
|
|
12
13
|
#private;
|
|
13
14
|
type: ShopKind;
|
|
@@ -354,6 +355,15 @@ export declare class Shop {
|
|
|
354
355
|
description?: string | null;
|
|
355
356
|
};
|
|
356
357
|
} | null;
|
|
358
|
+
optional_subordinates: {
|
|
359
|
+
accounting_article_id: number;
|
|
360
|
+
accounting_article_type: string;
|
|
361
|
+
number: string;
|
|
362
|
+
name: string;
|
|
363
|
+
price_cents: number;
|
|
364
|
+
vat_pct: number;
|
|
365
|
+
default_included: boolean;
|
|
366
|
+
}[];
|
|
357
367
|
is_sub_ticket: boolean;
|
|
358
368
|
created_at: string;
|
|
359
369
|
updated_at: string;
|
|
@@ -369,6 +379,7 @@ export declare class Shop {
|
|
|
369
379
|
}[];
|
|
370
380
|
signIn(params: SignInParams): Promise<SignInResponse>;
|
|
371
381
|
signUp(params: SignUpParams, asGuest?: boolean): Promise<SignUpResponse>;
|
|
382
|
+
withdrawal(params: WithdrawalParams): Promise<WithdrawalResponse>;
|
|
372
383
|
getDates(query: {
|
|
373
384
|
q?: string;
|
|
374
385
|
by_bookable?: boolean;
|
|
@@ -791,6 +802,7 @@ export declare class Shop {
|
|
|
791
802
|
body: Record<string, any>;
|
|
792
803
|
params?: Record<string, unknown>;
|
|
793
804
|
requiredFields?: string[];
|
|
805
|
+
parseAs?: ParseAs;
|
|
794
806
|
}): Promise<T>;
|
|
795
807
|
apiPut<T>(path: string, options: {
|
|
796
808
|
body: Record<string, any>;
|
|
@@ -811,6 +823,7 @@ export declare class Shop {
|
|
|
811
823
|
body: Record<string, any>;
|
|
812
824
|
params?: Record<string, unknown>;
|
|
813
825
|
requiredFields?: string[];
|
|
826
|
+
parseAs?: ParseAs;
|
|
814
827
|
}): Promise<T>;
|
|
815
828
|
/**
|
|
816
829
|
* Executes the provided method asynchronously, waits for all dependent fetch operations to complete,
|
|
@@ -821,3 +834,4 @@ export declare class Shop {
|
|
|
821
834
|
apiGet(path: `/api${string}`, query?: Record<string, unknown>, pathOptions?: Record<string, unknown>): Promise<{}>;
|
|
822
835
|
}
|
|
823
836
|
export declare const shop: Shop;
|
|
837
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -36,6 +36,15 @@ export declare const mockedTicketsAndQuotas: {
|
|
|
36
36
|
description?: string | null;
|
|
37
37
|
};
|
|
38
38
|
} | null;
|
|
39
|
+
optional_subordinates: {
|
|
40
|
+
accounting_article_id: number;
|
|
41
|
+
accounting_article_type: string;
|
|
42
|
+
number: string;
|
|
43
|
+
name: string;
|
|
44
|
+
price_cents: number;
|
|
45
|
+
vat_pct: number;
|
|
46
|
+
default_included: boolean;
|
|
47
|
+
}[];
|
|
39
48
|
is_sub_ticket: boolean;
|
|
40
49
|
created_at: string;
|
|
41
50
|
updated_at: string;
|
|
@@ -89,6 +98,15 @@ export declare const mockedTicketsAndQuotas: {
|
|
|
89
98
|
description?: string | null;
|
|
90
99
|
};
|
|
91
100
|
} | null;
|
|
101
|
+
optional_subordinates: {
|
|
102
|
+
accounting_article_id: number;
|
|
103
|
+
accounting_article_type: string;
|
|
104
|
+
number: string;
|
|
105
|
+
name: string;
|
|
106
|
+
price_cents: number;
|
|
107
|
+
vat_pct: number;
|
|
108
|
+
default_included: boolean;
|
|
109
|
+
}[];
|
|
92
110
|
is_sub_ticket: boolean;
|
|
93
111
|
created_at: string;
|
|
94
112
|
updated_at: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "Giantmonkey GmbH"
|
|
5
5
|
},
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"version": "3.
|
|
7
|
+
"version": "3.3.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist-js/gomus-webcomponents.iife.js",
|
|
10
10
|
"module": "./dist-js/gomus-webcomponents.iife.js",
|
|
@@ -37,14 +37,15 @@
|
|
|
37
37
|
"e2e:storybook:ui": "npx playwright test --ui --config=playwright-storybook.config.ts",
|
|
38
38
|
"e2e:storybook:headed": "npx playwright test --headed --config=playwright-storybook.config.ts",
|
|
39
39
|
"=== S T O R Y B O O K ===": "",
|
|
40
|
+
"build:interactive-editor": "pnpm --filter @gomusdev/interactive-editor build",
|
|
40
41
|
"chromatic": "npx chromatic --project-token=chpt_36bb239517e3c45 --allow-console-errors",
|
|
41
|
-
"storybook": "storybook dev",
|
|
42
|
-
"storybook:build": "storybook build -o ./.storybook/deploy/build",
|
|
42
|
+
"storybook": "pnpm build:interactive-editor && storybook dev",
|
|
43
|
+
"storybook:build": "pnpm build:interactive-editor && storybook build -o ./.storybook/deploy/build",
|
|
43
44
|
"storybook:build-and-deploy": "pnpm storybook:build && cd ./.storybook/deploy && fly deploy",
|
|
44
45
|
"storybook:docker:build-and-run": "docker build -t storybook-caddy-auth ./.storybook/deploy && docker run --env-file .env -p 8080:8080 storybook-caddy-auth",
|
|
45
46
|
"=== D O C U M E N T A T I O N ===": "",
|
|
46
|
-
"storybook:docs": "storybook dev -c .storybook-docs",
|
|
47
|
-
"storybook:docs:build": "storybook build -o ./.storybook-docs/deploy/build -c ./.storybook-docs",
|
|
47
|
+
"storybook:docs": "pnpm build:interactive-editor && storybook dev -c .storybook-docs",
|
|
48
|
+
"storybook:docs:build": "pnpm build:interactive-editor && storybook build -o ./.storybook-docs/deploy/build -c ./.storybook-docs",
|
|
48
49
|
"storybook:docs:build-and-deploy": "pnpm storybook:docs:build && cd ./.storybook-docs/deploy && fly deploy",
|
|
49
50
|
"storybook:docs:docker:build-and-run": "docker build -t storybook-caddy-auth ./.storybook-docs/deploy && docker run --env-file .env -p 8080:8080 storybook-caddy-auth"
|
|
50
51
|
},
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"@flydotio/dockerfile": "^0.7.10",
|
|
56
57
|
"@gomus/api": "workspace:*",
|
|
57
58
|
"@gomus/types": "workspace:*",
|
|
59
|
+
"@gomusdev/interactive-editor": "workspace:*",
|
|
58
60
|
"@melt-ui/pp": "^0.3.2",
|
|
59
61
|
"@melt-ui/svelte": "^0.86.6",
|
|
60
62
|
"@paypal/paypal-js": "^9.2.0",
|