@justeattakeaway/pie-thumbnail 0.8.0 → 0.8.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/custom-elements.json +9 -9
- package/dist/index.js +1 -1
- package/package.json +2 -2
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": [
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"text": "string"
|
|
216
216
|
},
|
|
217
217
|
"privacy": "private",
|
|
218
|
-
"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).",
|
|
218
|
+
"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).",
|
|
219
219
|
"readonly": true
|
|
220
220
|
},
|
|
221
221
|
{
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"kind": "method",
|
|
254
254
|
"name": "_checkImageError",
|
|
255
255
|
"privacy": "private",
|
|
256
|
-
"description": "Checks the image load status and triggers error handling if needed.\nThis is needed as the `onerror` event is not triggered in SSR."
|
|
256
|
+
"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."
|
|
257
257
|
}
|
|
258
258
|
],
|
|
259
259
|
"attributes": [
|
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.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
48
|
+
"@justeattakeaway/pie-webc-core": "1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"volta": {
|
|
51
51
|
"extends": "../../../package.json"
|