@builder.io/plugin-sfcc-commerce-api 0.0.11-1 → 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/dist/plugin.system.js +12 -9
- package/dist/plugin.system.js.map +1 -1
- package/package.json +2 -2
package/dist/plugin.system.js
CHANGED
|
@@ -144856,9 +144856,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144856
144856
|
};
|
|
144857
144857
|
function PickResourceList(props) {
|
|
144858
144858
|
const store = useLocalStore(() => ({
|
|
144859
|
-
|
|
144860
|
-
return props.value || [];
|
|
144861
|
-
},
|
|
144859
|
+
value: props.value || [],
|
|
144862
144860
|
}));
|
|
144863
144861
|
return useObserver(() => {
|
|
144864
144862
|
var _a;
|
|
@@ -144882,9 +144880,10 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144882
144880
|
alignSelf: 'center',
|
|
144883
144881
|
}, onClick: () => {
|
|
144884
144882
|
const res = [
|
|
144885
|
-
...
|
|
144886
|
-
...
|
|
144883
|
+
...store.value.slice(0, store.value.indexOf(item)),
|
|
144884
|
+
...store.value.slice(store.value.indexOf(item) + 1),
|
|
144887
144885
|
];
|
|
144886
|
+
store.value = res;
|
|
144888
144887
|
props.onChange(res);
|
|
144889
144888
|
} },
|
|
144890
144889
|
jsx(Close$1, null))))))),
|
|
@@ -144893,7 +144892,11 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144893
144892
|
const PickerCompnent = resourcePicker || ResourcePicker;
|
|
144894
144893
|
const close = appState.globalState.openDialog(jsx(PickerCompnent, Object.assign({}, rest, { context: appState, omitIds: store.value, onChange: action(resource => {
|
|
144895
144894
|
if (resource) {
|
|
144896
|
-
|
|
144895
|
+
if (!Array.isArray(store.value)) {
|
|
144896
|
+
store.value = [];
|
|
144897
|
+
}
|
|
144898
|
+
store.value.push(String(resource.id));
|
|
144899
|
+
props.onChange(store.value);
|
|
144897
144900
|
}
|
|
144898
144901
|
close();
|
|
144899
144902
|
}) })), false, {
|
|
@@ -146817,7 +146820,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146817
146820
|
const contextProps = {
|
|
146818
146821
|
resourceName,
|
|
146819
146822
|
pluginId: config.id,
|
|
146820
|
-
|
|
146823
|
+
pluginName: config.name,
|
|
146821
146824
|
api: apiOperations,
|
|
146822
146825
|
};
|
|
146823
146826
|
Builder.register('editor.onLoad', onEditorLoad(config, apiOperations, resourceName));
|
|
@@ -146875,7 +146878,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146875
146878
|
});
|
|
146876
146879
|
|
|
146877
146880
|
var name = "@builder.io/plugin-sfcc-commerce-api";
|
|
146878
|
-
var version = "0.0.
|
|
146881
|
+
var version = "0.0.12-0";
|
|
146879
146882
|
var description = "";
|
|
146880
146883
|
var keywords = [
|
|
146881
146884
|
];
|
|
@@ -146928,7 +146931,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146928
146931
|
typescript: "^3.0.3"
|
|
146929
146932
|
};
|
|
146930
146933
|
var dependencies = {
|
|
146931
|
-
"@builder.io/plugin-tools": "^0.0.
|
|
146934
|
+
"@builder.io/plugin-tools": "^0.0.4",
|
|
146932
146935
|
"commerce-sdk-isomorphic": "2.1.0"
|
|
146933
146936
|
};
|
|
146934
146937
|
var pkg = {
|