@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shopify/shop-minis-platform",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "description": "Shared type definitions for Shop Minis Platform",
6
6
  "main": "src/index.ts",
7
7
  "exports": {
@@ -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
  }
@@ -637,3 +637,6 @@ export interface GenerateUserTokenResponse {
637
637
  data: GeneratedTokenData
638
638
  userErrors?: UserTokenGenerateUserErrors[]
639
639
  }
640
+ export interface TranslateContentUpParams {
641
+ inputYPosition: number
642
+ }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @shopify/typescript/prefer-pascal-case-enums */
2
- export interface Image {
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 {Image} from './content'
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?: Image | null
23
- featuredImages: Image[]
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?: Image | null
48
+ logoImage?: ImageType | null
49
49
  }
50
50
 
51
51
  export interface HeaderTheme {
52
52
  id: string
53
- coverImage?: Image | null
54
- thumbnailImage?: Image | null
55
- wordmark?: Image | null
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