@gem-sdk/core 2.0.0-dev.575 → 2.0.0-dev.595

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.
@@ -138,7 +138,7 @@ const ComponentToolbarPreview = (props)=>{
138
138
  productId
139
139
  ]);
140
140
  const linkEditArticle = react.useMemo(()=>{
141
- return articleUid ? `${linkShopDefault}/articles/${articleUid}` : '';
141
+ return articleUid ? `${linkShopDefault}/articles/${articleUid.replace('gid://shopify/Article/', '')}` : '';
142
142
  }, [
143
143
  articleUid,
144
144
  linkShopDefault
@@ -54,6 +54,7 @@ const Render = ({ uid, ...passProps })=>{
54
54
  setting: item.settings,
55
55
  ...passProps,
56
56
  children: item.childrens.map((id)=>/*#__PURE__*/ jsxRuntime.jsx(RenderMemo, {
57
+ parentStyle: passProps?.['parentStyle'],
57
58
  uid: id
58
59
  }, id))
59
60
  }) : /*#__PURE__*/ jsxRuntime.jsx(Component, {
@@ -46,6 +46,7 @@ const RenderPreview = ({ uid, ...passProps })=>{
46
46
  setting: item.settings,
47
47
  ...passProps,
48
48
  children: item.childrens.map((id)=>/*#__PURE__*/ jsxRuntime.jsx(RenderPreviewMemo, {
49
+ parentStyle: passProps?.['parentStyle'],
49
50
  "bundle-item": passProps?.['bundle-item'],
50
51
  uid: id
51
52
  }, id))
@@ -134,7 +134,7 @@ const ComponentToolbarPreview = (props)=>{
134
134
  productId
135
135
  ]);
136
136
  const linkEditArticle = useMemo(()=>{
137
- return articleUid ? `${linkShopDefault}/articles/${articleUid}` : '';
137
+ return articleUid ? `${linkShopDefault}/articles/${articleUid.replace('gid://shopify/Article/', '')}` : '';
138
138
  }, [
139
139
  articleUid,
140
140
  linkShopDefault
@@ -50,6 +50,7 @@ const Render = ({ uid, ...passProps })=>{
50
50
  setting: item.settings,
51
51
  ...passProps,
52
52
  children: item.childrens.map((id)=>/*#__PURE__*/ jsx(RenderMemo, {
53
+ parentStyle: passProps?.['parentStyle'],
53
54
  uid: id
54
55
  }, id))
55
56
  }) : /*#__PURE__*/ jsx(Component, {
@@ -42,6 +42,7 @@ const RenderPreview = ({ uid, ...passProps })=>{
42
42
  setting: item.settings,
43
43
  ...passProps,
44
44
  children: item.childrens.map((id)=>/*#__PURE__*/ jsx(RenderPreviewMemo, {
45
+ parentStyle: passProps?.['parentStyle'],
45
46
  "bundle-item": passProps?.['bundle-item'],
46
47
  uid: id
47
48
  }, id))
@@ -36128,8 +36128,9 @@ type Option$4<T> = {
36128
36128
  note?: string;
36129
36129
  maxOption?: number;
36130
36130
  subTitle?: string;
36131
+ disableHoverIcon?: boolean;
36131
36132
  };
36132
- type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
36133
+ type BaseSelect<K> = {
36133
36134
  id: K;
36134
36135
  label?: string;
36135
36136
  info?: string;
@@ -36147,35 +36148,34 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
36147
36148
  active?: boolean;
36148
36149
  };
36149
36150
  placeholder?: string;
36151
+ controlOption?: string;
36152
+ };
36153
+ type ResponsiveSelect<K, T, U> = BaseSelect<K> & {
36150
36154
  type: 'select';
36151
36155
  options: Option$4<T>[];
36152
36156
  devices?: ResponsiveConfig<U>;
36153
- } : {
36154
- id: K;
36155
- label?: string;
36156
- info?: string;
36157
- hyperlinkInfo?: HyperlinkInfo;
36158
- hideOnMode?: {
36159
- responsive?: boolean;
36160
- mobileOnly?: boolean;
36161
- };
36162
- hide?: boolean;
36163
- state?: {
36164
- normal?: boolean;
36165
- hover?: boolean;
36166
- focus?: boolean;
36167
- active?: boolean;
36168
- };
36169
- placeholder?: string;
36170
- type: 'select';
36171
- options: Option$4<T>[];
36157
+ };
36158
+ type ResponsiveSelectCustom<K, T, U> = BaseSelect<K> & {
36159
+ type: 'select-custom-options';
36160
+ options?: Option$4<T>[];
36161
+ devices?: ResponsiveConfig<U>;
36162
+ };
36163
+ type SimpleSelectBase<K, T> = BaseSelect<K> & {
36172
36164
  default?: T;
36173
- isFullWidth?: boolean;
36174
36165
  showSelectedIcon?: boolean;
36175
36166
  showSelectedSvg?: boolean;
36176
36167
  fixWidth?: boolean;
36177
36168
  disableSelectedText?: boolean;
36178
36169
  };
36170
+ type SimpleSelect<K, T> = SimpleSelectBase<K, T> & {
36171
+ type: 'select';
36172
+ options: Option$4<T>[];
36173
+ };
36174
+ type SimpleSelectCustom<K, T> = SimpleSelectBase<K, T> & {
36175
+ type: 'select-custom-options';
36176
+ options?: Option$4<T>[];
36177
+ };
36178
+ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? ResponsiveSelect<K, T, U> | ResponsiveSelectCustom<K, T, U> : SimpleSelect<K, T> | SimpleSelectCustom<K, T>;
36179
36179
  type SelectControlType<T> = {
36180
36180
  [K in keyof T]-?: Mapped$5<K, T[K]>;
36181
36181
  }[keyof T];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.575",
3
+ "version": "2.0.0-dev.595",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",