@justeattakeaway/pie-toast-provider 0.7.42 → 0.7.43

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.
@@ -18,7 +18,7 @@
18
18
  "type": {
19
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}"
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": "{ 'error-actionable': 1, error: 2, 'warning-actionable': 3, 'success-actionable': 4, 'info-actionable': 5, 'neutral-actionable': 6, warning: 7, success: 8, info: 9, neutral: 10, }"
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": "{ options: {}, position: 'default', }"
38
38
  },
39
39
  {
40
40
  "kind": "variable",
@@ -93,12 +93,14 @@
93
93
  {
94
94
  "kind": "field",
95
95
  "name": "options",
96
- "privacy": "public"
96
+ "privacy": "public",
97
+ "attribute": "options"
97
98
  },
98
99
  {
99
100
  "kind": "field",
100
101
  "name": "position",
101
- "privacy": "public"
102
+ "privacy": "public",
103
+ "attribute": "position"
102
104
  },
103
105
  {
104
106
  "kind": "field",
@@ -200,6 +202,16 @@
200
202
  "name": "pie-toast-provider-queue-update"
201
203
  }
202
204
  ],
205
+ "attributes": [
206
+ {
207
+ "name": "options",
208
+ "fieldName": "options"
209
+ },
210
+ {
211
+ "name": "position",
212
+ "fieldName": "position"
213
+ }
214
+ ],
203
215
  "superclass": {
204
216
  "name": "PieElement",
205
217
  "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
@@ -214,7 +226,7 @@
214
226
  "name": "*",
215
227
  "declaration": {
216
228
  "name": "*",
217
- "package": "./defs"
229
+ "module": "src/defs"
218
230
  }
219
231
  },
220
232
  {
@@ -245,7 +257,7 @@
245
257
  "type": {
246
258
  "text": "object"
247
259
  },
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}",
260
+ "default": "{ _getToastProvider (): PieToastProvider | null { const toastProviders = document.querySelectorAll('pie-toast-provider'); if (toastProviders.length === 0) { console.error('The pie-toast component requires a pie-toast-provider element present in the DOM.'); return null; } if (toastProviders.length > 1) { 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.'); return null; } return toastProviders[0]; }, create (toast: ExtendedToastProps) { const toastProvider = this._getToastProvider(); if (!toastProvider) return; toastProvider.createToast(toast); }, clearAll () { const toastProvider = this._getToastProvider(); if (!toastProvider) return; toastProvider.clearToasts(); }, }",
249
261
  "description": "Singleton toaster interface for global access."
250
262
  }
251
263
  ],
package/dist/index.d.ts CHANGED
File without changes
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.42";
12
+ l.v = "0.7.43";
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/dist/react.d.ts CHANGED
File without changes
package/dist/react.js CHANGED
File without changes
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.42",
4
+ "version": "0.7.43",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -41,12 +41,12 @@
41
41
  "author": "Just Eat Takeaway.com - Design System Team",
42
42
  "license": "Apache-2.0",
43
43
  "devDependencies": {
44
- "@justeattakeaway/pie-components-config": "0.21.1",
44
+ "@justeattakeaway/pie-components-config": "0.21.2",
45
45
  "@justeattakeaway/pie-css": "1.1.1",
46
46
  "@justeattakeaway/pie-monorepo-utils": "0.9.1"
47
47
  },
48
48
  "dependencies": {
49
- "@justeattakeaway/pie-toast": "0.12.41",
49
+ "@justeattakeaway/pie-toast": "0.12.42",
50
50
  "@justeattakeaway/pie-webc-core": "14.0.1"
51
51
  },
52
52
  "volta": {