apirocket 0.8.2 → 0.9.1
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/dist/components/notifications/notifications.service.d.ts +1 -1
- package/dist/components/notifications/notifications.types.d.ts +3 -0
- package/dist/ecommerce.css +15 -2
- package/dist/ecommerce.js +2 -2
- package/dist/lib/api-models.d.ts +2 -2
- package/dist/lib/api.d.ts +5 -5
- package/dist/lib/graphql.d.ts +6 -4
- package/dist/lib/utils.d.ts +4 -2
- package/dist/models/checkout-address.model.d.ts +1 -1
- package/dist/services/checkout.service.d.ts +2 -2
- package/dist/types/ecommerce.type.d.ts +0 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/constants.d.ts +0 -1
|
@@ -2,7 +2,7 @@ import type { NotificationInstance, NotificationItem, NotificationsService } fro
|
|
|
2
2
|
declare class NotificationsServiceClass implements NotificationsService {
|
|
3
3
|
#private;
|
|
4
4
|
constructor();
|
|
5
|
-
add(notification: NotificationItem): NotificationInstance;
|
|
5
|
+
add(notification: NotificationItem, cb?: () => void): NotificationInstance;
|
|
6
6
|
delete(index: number): void;
|
|
7
7
|
}
|
|
8
8
|
export declare const notificationsService: Readonly<NotificationsServiceClass>;
|
|
@@ -3,15 +3,18 @@ export type NotificationItem = {
|
|
|
3
3
|
text: string;
|
|
4
4
|
position?: NotificationPosition;
|
|
5
5
|
time?: number;
|
|
6
|
+
type?: NotificationType;
|
|
6
7
|
};
|
|
7
8
|
export type NotificationInstance = {
|
|
8
9
|
index: number;
|
|
9
10
|
text: string;
|
|
10
11
|
position: NotificationPosition;
|
|
11
12
|
timer?: NodeJS.Timeout;
|
|
13
|
+
type: NotificationType;
|
|
12
14
|
};
|
|
13
15
|
export type NotificationsMap = Map<number, NotificationInstance>;
|
|
14
16
|
export type NotificationPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
17
|
+
export type NotificationType = 'error' | 'success' | 'warning';
|
|
15
18
|
export interface NotificationsService {
|
|
16
19
|
add: (notification: NotificationItem) => void;
|
|
17
20
|
delete: (index: number) => void;
|
package/dist/ecommerce.css
CHANGED
|
@@ -762,6 +762,7 @@
|
|
|
762
762
|
|
|
763
763
|
.apirocket-checkout-actions {
|
|
764
764
|
display: flex;
|
|
765
|
+
gap: 24px;
|
|
765
766
|
margin-top: 64px;
|
|
766
767
|
align-items: center;
|
|
767
768
|
max-width: 100%;
|
|
@@ -1361,6 +1362,16 @@
|
|
|
1361
1362
|
.apirocket-modal-header {
|
|
1362
1363
|
position: relative;
|
|
1363
1364
|
padding-bottom: 32px;
|
|
1365
|
+
text-align: center;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
.apirocket-modal-logo {
|
|
1369
|
+
margin-bottom: 16px;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.apirocket-modal-logo img {
|
|
1373
|
+
display: inline-block;
|
|
1374
|
+
max-height: 80px;
|
|
1364
1375
|
}
|
|
1365
1376
|
|
|
1366
1377
|
.apirocket-modal-title {
|
|
@@ -2403,7 +2414,7 @@ button.apirocket-button-discount {
|
|
|
2403
2414
|
}
|
|
2404
2415
|
}
|
|
2405
2416
|
.apirocket-lock-screen {
|
|
2406
|
-
position:
|
|
2417
|
+
position: fixed;
|
|
2407
2418
|
display: flex;
|
|
2408
2419
|
justify-content: center;
|
|
2409
2420
|
align-items: center;
|
|
@@ -2412,7 +2423,7 @@ button.apirocket-button-discount {
|
|
|
2412
2423
|
z-index: 50000;
|
|
2413
2424
|
background-color: rgba(0,0,0,0.75);
|
|
2414
2425
|
width: 100%;
|
|
2415
|
-
height:
|
|
2426
|
+
height: 100dvh;
|
|
2416
2427
|
text-align: center;
|
|
2417
2428
|
}
|
|
2418
2429
|
|
|
@@ -2424,3 +2435,5 @@ button.apirocket-button-discount {
|
|
|
2424
2435
|
}
|
|
2425
2436
|
.spinner.svelte-1x7rr7h.svelte-1x7rr7h{display:inline-block;animation:svelte-1x7rr7h-rotate 2s linear infinite;z-index:2;width:50px;height:50px}.spinner.svelte-1x7rr7h .path.svelte-1x7rr7h{stroke:#cecece;stroke-linecap:round;animation:svelte-1x7rr7h-dash 1.5s ease-in-out infinite}@keyframes svelte-1x7rr7h-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-1x7rr7h-dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}
|
|
2426
2437
|
.spinner.svelte-15qwtf3.svelte-15qwtf3{animation:svelte-15qwtf3-rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner.svelte-15qwtf3 .path.svelte-15qwtf3{stroke:rgb(161, 161, 170);stroke-linecap:round;animation:svelte-15qwtf3-dash 1.5s ease-in-out infinite}@keyframes svelte-15qwtf3-rotate{100%{transform:rotate(360deg)}}@keyframes svelte-15qwtf3-dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}
|
|
2438
|
+
.default-notification-style.svelte-3h6slj.svelte-3h6slj{position:relative;display:flex;align-items:stretch;justify-content:space-between;margin:12px;background:#fff;color:#000;border-radius:6px;box-shadow:0 4px 10px rgba(0, 0, 0, 0.08);min-height:0;min-width:200px;overflow:hidden}.default-notification-style-content.svelte-3h6slj.svelte-3h6slj{width:210px;padding:12px 6px 12px 12px;box-sizing:border-box;word-wrap:break-word}.default-notification-style-button.svelte-3h6slj.svelte-3h6slj{display:block;width:40px;padding:0;margin:0;border:none;border-left:1px solid #eee;outline:none;background:none;cursor:pointer;font-size:20px;color:#000;box-sizing:border-box}.default-notification-style-button.svelte-3h6slj.svelte-3h6slj:hover{background:rgba(0, 0, 0, 0.01)}.default-notification-error.svelte-3h6slj.svelte-3h6slj{background:#f3555a;color:#fff}.default-notification-error.svelte-3h6slj .default-notification-style-button.svelte-3h6slj{border-left:1px solid rgba(255, 255, 255, 0.4);color:#fff}.default-notification-warning.svelte-3h6slj.svelte-3h6slj{background:#ffb900;color:#000}.default-notification-warning.svelte-3h6slj .default-notification-style-button.svelte-3h6slj{border-left:1px solid rgba(0, 0, 0, 0.2);color:#000}.default-notification-success.svelte-3h6slj.svelte-3h6slj{background:#22ce6c;color:#fff}.default-notification-success.svelte-3h6slj .default-notification-style-button.svelte-3h6slj{border-left:1px solid rgba(255, 255, 255, 0.4);color:#fff}
|
|
2439
|
+
.default-position-style-top-left.svelte-tdfdcj,.default-position-style-top-center.svelte-tdfdcj,.default-position-style-top-right.svelte-tdfdcj,.default-position-style-bottom-left.svelte-tdfdcj,.default-position-style-bottom-center.svelte-tdfdcj,.default-position-style-bottom-right.svelte-tdfdcj{position:fixed;max-width:400px}.default-position-style-top-left.svelte-tdfdcj{top:0;left:0}.default-position-style-top-center.svelte-tdfdcj{top:0;left:50%;transform:translateX(-50%)}.default-position-style-top-right.svelte-tdfdcj{top:0;right:0}.default-position-style-bottom-left.svelte-tdfdcj{bottom:0;left:0}.default-position-style-bottom-center.svelte-tdfdcj{bottom:0;left:50%;transform:translateX(-50%)}.default-position-style-bottom-right.svelte-tdfdcj{bottom:0;right:0}
|