@justeattakeaway/pie-toast-provider 0.7.21 → 0.7.22
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/custom-elements.json +5 -5
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"kind": "variable",
|
|
17
17
|
"name": "PRIORITY_ORDER",
|
|
18
18
|
"type": {
|
|
19
|
-
"text": "{\n 'error-actionable': 1,\n error: 2,\n 'warning-actionable': 3,\n 'success-actionable': 4,\n 'info-actionable': 5,\n 'neutral-actionable': 6,\n warning: 7,\n success: 8,\n info: 9,\n neutral: 10,\n}"
|
|
19
|
+
"text": "{\r\n 'error-actionable': 1,\r\n error: 2,\r\n 'warning-actionable': 3,\r\n 'success-actionable': 4,\r\n 'info-actionable': 5,\r\n 'neutral-actionable': 6,\r\n warning: 7,\r\n success: 8,\r\n info: 9,\r\n neutral: 10,\r\n}"
|
|
20
20
|
},
|
|
21
|
-
"default": "{\n 'error-actionable': 1,\n error: 2,\n 'warning-actionable': 3,\n 'success-actionable': 4,\n 'info-actionable': 5,\n 'neutral-actionable': 6,\n warning: 7,\n success: 8,\n info: 9,\n neutral: 10,\n}"
|
|
21
|
+
"default": "{\r\n 'error-actionable': 1,\r\n error: 2,\r\n 'warning-actionable': 3,\r\n 'success-actionable': 4,\r\n 'info-actionable': 5,\r\n 'neutral-actionable': 6,\r\n warning: 7,\r\n success: 8,\r\n info: 9,\r\n neutral: 10,\r\n}"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"kind": "variable",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type": {
|
|
35
35
|
"text": "DefaultProps"
|
|
36
36
|
},
|
|
37
|
-
"default": "{\n options: {},\n position: 'default',\n}"
|
|
37
|
+
"default": "{\r\n options: {},\r\n position: 'default',\r\n}"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"kind": "variable",
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"kind": "method",
|
|
189
189
|
"name": "clearToasts",
|
|
190
190
|
"privacy": "public",
|
|
191
|
-
"description": "\nClears all toasts from the queue and dismisses the currently visible toast."
|
|
191
|
+
"description": "\r\nClears all toasts from the queue and dismisses the currently visible toast."
|
|
192
192
|
}
|
|
193
193
|
],
|
|
194
194
|
"events": [
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
"type": {
|
|
246
246
|
"text": "object"
|
|
247
247
|
},
|
|
248
|
-
"default": "{\n _getToastProvider (): PieToastProvider | null {\n const toastProviders = document.querySelectorAll('pie-toast-provider');\n\n if (toastProviders.length === 0) {\n console.error('The pie-toast component requires a pie-toast-provider element present in the DOM.');\n return null;\n }\n\n if (toastProviders.length > 1) {\n console.error('Multiple pie-toast-provider are found in the DOM. Only one provider is supported currently and should be registered at the root of the app.');\n return null;\n }\n\n return toastProviders[0];\n },\n create (toast: ExtendedToastProps) {\n const toastProvider = this._getToastProvider();\n if (!toastProvider) return;\n\n toastProvider.createToast(toast);\n },\n clearAll () {\n const toastProvider = this._getToastProvider();\n if (!toastProvider) return;\n\n toastProvider.clearToasts();\n },\n}",
|
|
248
|
+
"default": "{\r\n _getToastProvider (): PieToastProvider | null {\r\n const toastProviders = document.querySelectorAll('pie-toast-provider');\r\n\r\n if (toastProviders.length === 0) {\r\n console.error('The pie-toast component requires a pie-toast-provider element present in the DOM.');\r\n return null;\r\n }\r\n\r\n if (toastProviders.length > 1) {\r\n console.error('Multiple pie-toast-provider are found in the DOM. Only one provider is supported currently and should be registered at the root of the app.');\r\n return null;\r\n }\r\n\r\n return toastProviders[0];\r\n },\r\n create (toast: ExtendedToastProps) {\r\n const toastProvider = this._getToastProvider();\r\n if (!toastProvider) return;\r\n\r\n toastProvider.createToast(toast);\r\n },\r\n clearAll () {\r\n const toastProvider = this._getToastProvider();\r\n if (!toastProvider) return;\r\n\r\n toastProvider.clearToasts();\r\n },\r\n}",
|
|
249
249
|
"description": "Singleton toaster interface for global access."
|
|
250
250
|
}
|
|
251
251
|
],
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const l = class l extends g {
|
|
|
9
9
|
this.getAttribute("v") || this.setAttribute("v", l.v);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
l.v = "0.7.
|
|
12
|
+
l.v = "0.7.22";
|
|
13
13
|
let d = l;
|
|
14
14
|
const A = "*,*:after,*:before{box-sizing:inherit}:root{--pie-animation-slide-translate-start: -100%}.pie-animation--slide-in{animation:pie-animation-slide-in var(--dt-motion-timing-200) var(--dt-motion-easing-out)}.pie-animation--slide-out{animation:pie-animation-slide-out var(--dt-motion-timing-100) var(--dt-motion-easing-in)}@keyframes pie-animation-slide-in{0%{transform:translate(var(--pie-animation-slide-translate-start))}to{transform:translate(0)}}@keyframes pie-animation-slide-out{0%{transform:translate(0)}to{transform:translate(var(--pie-animation-slide-translate-start))}}:host{--toast-provider-z-index: var(--dt-z-index-toast);--toast-provider-offset: var(--dt-spacing-d)}@media (min-width: 769px){:host{--toast-provider-offset: var(--dt-spacing-e)}}.c-toast-provider{position:fixed;z-index:var(--toast-provider-z-index)}.c-toast-provider.c-toast-provider--default{inset-inline-start:var(--toast-provider-offset);inset-block-end:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--default:dir(rtl){--pie-animation-slide-translate-start: 100%}.c-toast-provider.c-toast-provider--bottom-left{--pie-animation-slide-translate-start: -100%;left:var(--toast-provider-offset);bottom:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--bottom-right{--pie-animation-slide-translate-start: 100%;right:var(--toast-provider-offset);bottom:var(--toast-provider-offset)}.c-toast-provider.c-toast-provider--bottom-center{--pie-animation-slide-translate-start: 0, 100%;left:50%;bottom:var(--toast-provider-offset);transform:translate(-50%)}", O = {
|
|
15
15
|
"error-actionable": 1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-toast-provider",
|
|
3
3
|
"description": "PIE Design System Toast Provider built using Web Components",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.22",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@justeattakeaway/pie-toast": "0.12.
|
|
51
|
+
"@justeattakeaway/pie-toast": "0.12.21",
|
|
52
52
|
"@justeattakeaway/pie-webc-core": "6.0.1"
|
|
53
53
|
},
|
|
54
54
|
"volta": {
|