@justeattakeaway/pie-thumbnail 0.8.19 → 0.8.20
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 +9 -9
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"kind": "variable",
|
|
17
17
|
"name": "variants",
|
|
18
18
|
"type": {
|
|
19
|
-
"text": "[\n 'default', 'outline',\n]"
|
|
19
|
+
"text": "[\r\n 'default', 'outline',\r\n]"
|
|
20
20
|
},
|
|
21
|
-
"default": "[\n 'default', 'outline',\n]"
|
|
21
|
+
"default": "[\r\n 'default', 'outline',\r\n]"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"kind": "variable",
|
|
25
25
|
"name": "backgroundColors",
|
|
26
26
|
"type": {
|
|
27
|
-
"text": "[\n 'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative'\n]"
|
|
27
|
+
"text": "[\r\n 'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative'\r\n]"
|
|
28
28
|
},
|
|
29
|
-
"default": "[\n 'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative'\n]"
|
|
29
|
+
"default": "[\r\n 'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative'\r\n]"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"kind": "variable",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type": {
|
|
35
35
|
"text": "Record<typeof backgroundColors[number], string>"
|
|
36
36
|
},
|
|
37
|
-
"default": "{\n default: 'c-thumbnail--backgroundDefault',\n subtle: 'c-thumbnail--backgroundSubtle',\n strong: 'c-thumbnail--backgroundStrong',\n dark: 'c-thumbnail--backgroundDark',\n inverse: 'c-thumbnail--backgroundInverse',\n 'inverse-alternative': 'c-thumbnail--backgroundInverseAlternative',\n}"
|
|
37
|
+
"default": "{\r\n default: 'c-thumbnail--backgroundDefault',\r\n subtle: 'c-thumbnail--backgroundSubtle',\r\n strong: 'c-thumbnail--backgroundStrong',\r\n dark: 'c-thumbnail--backgroundDark',\r\n inverse: 'c-thumbnail--backgroundInverse',\r\n 'inverse-alternative': 'c-thumbnail--backgroundInverseAlternative',\r\n}"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"kind": "variable",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{
|
|
48
48
|
"kind": "variable",
|
|
49
49
|
"name": "sizes",
|
|
50
|
-
"default": "Object.freeze(Array.from(\n { length: (SIZE_MAX - SIZE_MIN) / SIZE_INCREMENT_BY + 1 },\n (_, i) => SIZE_MIN + i * SIZE_INCREMENT_BY,\n))"
|
|
50
|
+
"default": "Object.freeze(Array.from(\r\n { length: (SIZE_MAX - SIZE_MIN) / SIZE_INCREMENT_BY + 1 },\r\n (_, i) => SIZE_MIN + i * SIZE_INCREMENT_BY,\r\n))"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"kind": "variable",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"type": {
|
|
56
56
|
"text": "DefaultProps"
|
|
57
57
|
},
|
|
58
|
-
"default": "{\n variant: 'default',\n size: 48,\n src: '',\n alt: '',\n disabled: false,\n hasPadding: false,\n hideDefaultPlaceholder: false,\n backgroundColor: 'default',\n aspectRatio: '1by1',\n placeholder: {\n src: '',\n alt: '',\n },\n}"
|
|
58
|
+
"default": "{\r\n variant: 'default',\r\n size: 48,\r\n src: '',\r\n alt: '',\r\n disabled: false,\r\n hasPadding: false,\r\n hideDefaultPlaceholder: false,\r\n backgroundColor: 'default',\r\n aspectRatio: '1by1',\r\n placeholder: {\r\n src: '',\r\n alt: '',\r\n },\r\n}"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
"exports": [
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"text": "string"
|
|
206
206
|
},
|
|
207
207
|
"privacy": "private",
|
|
208
|
-
"description": "Returns the appropriate image props based on the following order:\n1. If there is no error, return the provided image props.\n2. If there is an error and a custom placeholder is provided, return the placeholder props.\n3. If there is an error and no custom placeholder is provided, return the component default placeholder.\n4. Otherwise, fall back to the provided src (resulting in a broken image).",
|
|
208
|
+
"description": "Returns the appropriate image props based on the following order:\r\n1. If there is no error, return the provided image props.\r\n2. If there is an error and a custom placeholder is provided, return the placeholder props.\r\n3. If there is an error and no custom placeholder is provided, return the component default placeholder.\r\n4. Otherwise, fall back to the provided src (resulting in a broken image).",
|
|
209
209
|
"readonly": true
|
|
210
210
|
},
|
|
211
211
|
{
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"kind": "method",
|
|
244
244
|
"name": "_checkImageError",
|
|
245
245
|
"privacy": "private",
|
|
246
|
-
"description": "Checks the image load status and triggers error handling if needed.\nThis is needed as the `onerror` event is not triggered in SSR."
|
|
246
|
+
"description": "Checks the image load status and triggers error handling if needed.\r\nThis is needed as the `onerror` event is not triggered in SSR."
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
"superclass": {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-thumbnail",
|
|
3
3
|
"description": "PIE Design System Thumbnail built using Web Components",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.20",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
45
45
|
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
46
|
-
"@justeattakeaway/pie-css": "0.
|
|
46
|
+
"@justeattakeaway/pie-css": "0.31.0",
|
|
47
47
|
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
48
48
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@justeattakeaway/pie-webc-core": "
|
|
51
|
+
"@justeattakeaway/pie-webc-core": "11.0.0"
|
|
52
52
|
},
|
|
53
53
|
"volta": {
|
|
54
54
|
"extends": "../../../package.json"
|