@gem-sdk/core 2.0.0-dev.575 → 2.0.0-dev.584
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
|
|
@@ -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
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36129,7 +36129,7 @@ type Option$4<T> = {
|
|
|
36129
36129
|
maxOption?: number;
|
|
36130
36130
|
subTitle?: string;
|
|
36131
36131
|
};
|
|
36132
|
-
type
|
|
36132
|
+
type BaseSelect<K> = {
|
|
36133
36133
|
id: K;
|
|
36134
36134
|
label?: string;
|
|
36135
36135
|
info?: string;
|
|
@@ -36147,35 +36147,34 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
36147
36147
|
active?: boolean;
|
|
36148
36148
|
};
|
|
36149
36149
|
placeholder?: string;
|
|
36150
|
+
controlOption?: string;
|
|
36151
|
+
};
|
|
36152
|
+
type ResponsiveSelect<K, T, U> = BaseSelect<K> & {
|
|
36150
36153
|
type: 'select';
|
|
36151
36154
|
options: Option$4<T>[];
|
|
36152
36155
|
devices?: ResponsiveConfig<U>;
|
|
36153
|
-
}
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
|
|
36157
|
-
|
|
36158
|
-
|
|
36159
|
-
|
|
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>[];
|
|
36156
|
+
};
|
|
36157
|
+
type ResponsiveSelectCustom<K, T, U> = BaseSelect<K> & {
|
|
36158
|
+
type: 'select-custom-options';
|
|
36159
|
+
options?: Option$4<T>[];
|
|
36160
|
+
devices?: ResponsiveConfig<U>;
|
|
36161
|
+
};
|
|
36162
|
+
type SimpleSelectBase<K, T> = BaseSelect<K> & {
|
|
36172
36163
|
default?: T;
|
|
36173
|
-
isFullWidth?: boolean;
|
|
36174
36164
|
showSelectedIcon?: boolean;
|
|
36175
36165
|
showSelectedSvg?: boolean;
|
|
36176
36166
|
fixWidth?: boolean;
|
|
36177
36167
|
disableSelectedText?: boolean;
|
|
36178
36168
|
};
|
|
36169
|
+
type SimpleSelect<K, T> = SimpleSelectBase<K, T> & {
|
|
36170
|
+
type: 'select';
|
|
36171
|
+
options: Option$4<T>[];
|
|
36172
|
+
};
|
|
36173
|
+
type SimpleSelectCustom<K, T> = SimpleSelectBase<K, T> & {
|
|
36174
|
+
type: 'select-custom-options';
|
|
36175
|
+
options?: Option$4<T>[];
|
|
36176
|
+
};
|
|
36177
|
+
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
36178
|
type SelectControlType<T> = {
|
|
36180
36179
|
[K in keyof T]-?: Mapped$5<K, T[K]>;
|
|
36181
36180
|
}[keyof T];
|