@shopify/shop-minis-platform 0.0.10 → 0.0.12
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/package.json +1 -1
- package/src/actions/actions.ts +3 -0
- package/src/actions/params.ts +3 -0
- package/src/types/content.ts +3 -1
- package/src/types/shop.ts +7 -7
package/package.json
CHANGED
package/src/actions/actions.ts
CHANGED
|
@@ -87,6 +87,7 @@ import {
|
|
|
87
87
|
GetContentParams,
|
|
88
88
|
GetContentResponse,
|
|
89
89
|
GenerateUserTokenResponse,
|
|
90
|
+
TranslateContentUpParams,
|
|
90
91
|
} from './params'
|
|
91
92
|
import {ShopAction, SnakeToCamelCase} from './shared'
|
|
92
93
|
|
|
@@ -216,4 +217,6 @@ export interface ShopActionEvents {
|
|
|
216
217
|
CREATE_CONTENT: ShopAction<CreateContentParams, CreateContentResponse>
|
|
217
218
|
GET_CONTENT: ShopAction<GetContentParams, GetContentResponse>
|
|
218
219
|
GENERATE_USER_TOKEN: ShopAction<void, GenerateUserTokenResponse>
|
|
220
|
+
TRANSLATE_CONTENT_UP: ShopAction<TranslateContentUpParams, void>
|
|
221
|
+
TRANSLATE_CONTENT_DOWN: ShopAction<void, void>
|
|
219
222
|
}
|
package/src/actions/params.ts
CHANGED
package/src/types/content.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @shopify/typescript/prefer-pascal-case-enums */
|
|
2
|
-
export interface
|
|
2
|
+
export interface ImageType {
|
|
3
3
|
url: string
|
|
4
4
|
altText?: string | null
|
|
5
5
|
height?: number | null
|
|
@@ -16,6 +16,8 @@ export interface ContentImage {
|
|
|
16
16
|
url: string
|
|
17
17
|
width?: number | null
|
|
18
18
|
height?: number | null
|
|
19
|
+
thumbhash?: string | null
|
|
20
|
+
altText?: string | null
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export interface ContentProduct {
|
package/src/types/shop.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {ImageType} from './content'
|
|
2
2
|
import type {ProductImage} from './product'
|
|
3
3
|
|
|
4
4
|
export interface Shop {
|
|
@@ -19,8 +19,8 @@ export interface Shop {
|
|
|
19
19
|
|
|
20
20
|
export interface VisualTheme {
|
|
21
21
|
id: string
|
|
22
|
-
logoImage?:
|
|
23
|
-
featuredImages:
|
|
22
|
+
logoImage?: ImageType | null
|
|
23
|
+
featuredImages: ImageType[]
|
|
24
24
|
description?: string | null
|
|
25
25
|
brandSettings?: BrandSettings | null
|
|
26
26
|
}
|
|
@@ -45,14 +45,14 @@ export interface ColorTheme {
|
|
|
45
45
|
|
|
46
46
|
export interface LogoTheme {
|
|
47
47
|
id: string
|
|
48
|
-
logoImage?:
|
|
48
|
+
logoImage?: ImageType | null
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export interface HeaderTheme {
|
|
52
52
|
id: string
|
|
53
|
-
coverImage?:
|
|
54
|
-
thumbnailImage?:
|
|
55
|
-
wordmark?:
|
|
53
|
+
coverImage?: ImageType | null
|
|
54
|
+
thumbnailImage?: ImageType | null
|
|
55
|
+
wordmark?: ImageType | null
|
|
56
56
|
videoUrl?: string | null
|
|
57
57
|
startingScrimColor?: string | null
|
|
58
58
|
endingScrimColor?: string | null
|