@builder.io/plugin-sfcc-commerce-api 0.0.11 → 0.0.13-0
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 -10
- package/dist/plugin.system.js.map +1 -1
- package/package.json +2 -2
package/dist/plugin.system.js
CHANGED
|
@@ -144474,7 +144474,6 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144474
144474
|
return (jsx("div", { css: { display: 'flex', flexDirection: 'column', padding: '10px 0' } },
|
|
144475
144475
|
store.loading && (jsx(CircularProgress, { size: 20, disableShrink: true, css: { margin: '30px auto' } })),
|
|
144476
144476
|
store.resourceInfo && (jsx(Paper, { css: {
|
|
144477
|
-
marginBottom: 15,
|
|
144478
144477
|
position: 'relative',
|
|
144479
144478
|
} },
|
|
144480
144479
|
jsx(ResourcePreviewCell, { button: true, css: { paddingRight: 30 }, resource: store.resourceInfo }),
|
|
@@ -144856,9 +144855,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144856
144855
|
};
|
|
144857
144856
|
function PickResourceList(props) {
|
|
144858
144857
|
const store = useLocalStore(() => ({
|
|
144859
|
-
|
|
144860
|
-
return props.value || [];
|
|
144861
|
-
},
|
|
144858
|
+
value: props.value || [],
|
|
144862
144859
|
}));
|
|
144863
144860
|
return useObserver(() => {
|
|
144864
144861
|
var _a;
|
|
@@ -144882,9 +144879,10 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144882
144879
|
alignSelf: 'center',
|
|
144883
144880
|
}, onClick: () => {
|
|
144884
144881
|
const res = [
|
|
144885
|
-
...
|
|
144886
|
-
...
|
|
144882
|
+
...store.value.slice(0, store.value.indexOf(item)),
|
|
144883
|
+
...store.value.slice(store.value.indexOf(item) + 1),
|
|
144887
144884
|
];
|
|
144885
|
+
store.value = res;
|
|
144888
144886
|
props.onChange(res);
|
|
144889
144887
|
} },
|
|
144890
144888
|
jsx(Close$1, null))))))),
|
|
@@ -144893,7 +144891,11 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
144893
144891
|
const PickerCompnent = resourcePicker || ResourcePicker;
|
|
144894
144892
|
const close = appState.globalState.openDialog(jsx(PickerCompnent, Object.assign({}, rest, { context: appState, omitIds: store.value, onChange: action(resource => {
|
|
144895
144893
|
if (resource) {
|
|
144896
|
-
|
|
144894
|
+
if (!Array.isArray(store.value)) {
|
|
144895
|
+
store.value = [];
|
|
144896
|
+
}
|
|
144897
|
+
store.value.push(String(resource.id));
|
|
144898
|
+
props.onChange(store.value);
|
|
144897
144899
|
}
|
|
144898
144900
|
close();
|
|
144899
144901
|
}) })), false, {
|
|
@@ -146817,7 +146819,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146817
146819
|
const contextProps = {
|
|
146818
146820
|
resourceName,
|
|
146819
146821
|
pluginId: config.id,
|
|
146820
|
-
|
|
146822
|
+
pluginName: config.name,
|
|
146821
146823
|
api: apiOperations,
|
|
146822
146824
|
};
|
|
146823
146825
|
Builder.register('editor.onLoad', onEditorLoad(config, apiOperations, resourceName));
|
|
@@ -146875,7 +146877,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146875
146877
|
});
|
|
146876
146878
|
|
|
146877
146879
|
var name = "@builder.io/plugin-sfcc-commerce-api";
|
|
146878
|
-
var version = "0.0.
|
|
146880
|
+
var version = "0.0.12";
|
|
146879
146881
|
var description = "";
|
|
146880
146882
|
var keywords = [
|
|
146881
146883
|
];
|
|
@@ -146928,7 +146930,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146928
146930
|
typescript: "^3.0.3"
|
|
146929
146931
|
};
|
|
146930
146932
|
var dependencies = {
|
|
146931
|
-
"@builder.io/plugin-tools": "
|
|
146933
|
+
"@builder.io/plugin-tools": "0.0.5-0",
|
|
146932
146934
|
"commerce-sdk-isomorphic": "2.1.0"
|
|
146933
146935
|
};
|
|
146934
146936
|
var pkg = {
|