@veloceapps/sdk 4.0.9 → 4.0.11
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/bundles/veloce-sdk-cms.umd.js +8 -4
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +8 -11
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/types/configuration.types.d.ts +3 -0
- package/cms/vendor-map.d.ts +132 -124
- package/esm2015/cms/plugins/configuration.plugin.js +7 -3
- package/esm2015/cms/types/configuration.types.js +1 -1
- package/esm2015/cms/vendor-map.js +3 -3
- package/esm2015/src/components/header/cart-overlay/cart-preview.component.js +7 -10
- package/esm2015/src/components/header/header.component.js +2 -2
- package/fesm2015/veloce-sdk-cms.js +8 -4
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk.js +7 -10
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
@@ -64,7 +64,7 @@
|
|
64
64
|
type: exports.FlowAction.FLOW_CLOSE_DOC_GEN,
|
65
65
|
}); };
|
66
66
|
|
67
|
-
var
|
67
|
+
var cmsActions = /*#__PURE__*/Object.freeze({
|
68
68
|
__proto__: null,
|
69
69
|
get FlowAction () { return exports.FlowAction; },
|
70
70
|
ConfigureProductAction: ConfigureProductAction,
|
@@ -400,7 +400,7 @@
|
|
400
400
|
var ELEMENT_CONFIG = new i0.InjectionToken('ELEMENT_CONFIG_TOKEN');
|
401
401
|
var VENDOR_MAP = new i0.InjectionToken('VENDOR_MAP');
|
402
402
|
|
403
|
-
var
|
403
|
+
var cmsInjectionTokens = /*#__PURE__*/Object.freeze({
|
404
404
|
__proto__: null,
|
405
405
|
DEFAULT_PLUGINS_TOKEN: DEFAULT_PLUGINS_TOKEN,
|
406
406
|
UI_DEFINITION_METADATA: UI_DEFINITION_METADATA,
|
@@ -1321,6 +1321,9 @@
|
|
1321
1321
|
};
|
1322
1322
|
ConfigurationPlugin.prototype.registerPort = function (name) {
|
1323
1323
|
var _this = this;
|
1324
|
+
var model$ = this.host.model$;
|
1325
|
+
var portItems$ = model$.pipe(rxjs.map(function (model) { return model.lineItems.filter(function (li) { return li.port === _this.host.boundName; }); }));
|
1326
|
+
var portDomain$ = model$.pipe(rxjs.map(function (model) { return model.portDomains[_this.host.boundName]; }));
|
1324
1327
|
var add = function (type, attributes) {
|
1325
1328
|
if (attributes === void 0) { attributes = []; }
|
1326
1329
|
if (!_this.modelSnapshot) {
|
@@ -1333,15 +1336,16 @@
|
|
1333
1336
|
var generated = i2.generateLineItem(portDomain.name, type, _this.modelSnapshot.id, attributes);
|
1334
1337
|
_this.configurationService.patch(new i2.LineItemWorker(_this.modelSnapshot).insert(_this.modelSnapshot.id, generated).li);
|
1335
1338
|
};
|
1339
|
+
this.portHost.portItems$ = portItems$;
|
1340
|
+
this.portHost.portDomain$ = portDomain$;
|
1336
1341
|
this.portHost.addPortItem = add;
|
1337
1342
|
};
|
1338
1343
|
ConfigurationPlugin.prototype.registerAttribute = function (name) {
|
1339
1344
|
var _this = this;
|
1340
|
-
var _a;
|
1341
1345
|
if (!this.host.model$) {
|
1342
1346
|
return;
|
1343
1347
|
}
|
1344
|
-
var value$ =
|
1348
|
+
var value$ = this.host.model$.pipe(rxjs.map(function (model) { var _a; return i2.getAttributeValue((_a = model === null || model === void 0 ? void 0 : model.attributes) !== null && _a !== void 0 ? _a : [], name); }));
|
1345
1349
|
var patch = function (value) {
|
1346
1350
|
if (!_this.modelSnapshot) {
|
1347
1351
|
return;
|