@axinom/mosaic-fe-samples-host 0.32.0 → 0.33.0-rc.1

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/index.js CHANGED
@@ -48,18 +48,14 @@ var build = createCommonjsModule(function (module, exports) {
48
48
 
49
49
  });
50
50
 
51
- function _setPrototypeOf(o, p) {
52
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
53
- o.__proto__ = p;
54
- return o;
55
- };
56
- return _setPrototypeOf(o, p);
51
+ function _setPrototypeOf(t, e) {
52
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
53
+ return t.__proto__ = e, t;
54
+ }, _setPrototypeOf(t, e);
57
55
  }
58
56
 
59
- function _inheritsLoose(subClass, superClass) {
60
- subClass.prototype = Object.create(superClass.prototype);
61
- subClass.prototype.constructor = subClass;
62
- _setPrototypeOf(subClass, superClass);
57
+ function _inheritsLoose(t, o) {
58
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
63
59
  }
64
60
 
65
61
  var changedArray = function changedArray(a, b) {
@@ -185,33 +181,29 @@ const KEY_USER_SETTINGS = 'AX_USER_SETTINGS';
185
181
  const migrateProfileStructuralChanges = () => {
186
182
  const existingProfileConfigs = getAllProfiles();
187
183
  const migratedProfileConfigs = existingProfileConfigs.map((profile) => {
188
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
184
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
189
185
  return {
190
186
  id: (_a = profile.id) !== null && _a !== void 0 ? _a : generateShortUniqueId(),
191
187
  name: (_b = profile.name) !== null && _b !== void 0 ? _b : 'Unknown Profile',
192
188
  userAuthBaseURL: (_c = profile.userAuthBaseURL) !== null && _c !== void 0 ? _c : 'http://localhost:11101',
193
189
  userServiceBaseURL: (_d = profile.userServiceBaseURL) !== null && _d !== void 0 ? _d : 'http://localhost:11100',
194
190
  imageServiceBaseURL: (_e = profile.imageServiceBaseURL) !== null && _e !== void 0 ? _e : 'http://localhost:10400',
195
- billingServiceBaseURL: (_f = profile.billingServiceBaseURL) !== null && _f !== void 0 ? _f : 'http://localhost:11500',
196
- subscriptionMonetizationServiceBaseURL: (_g = profile.subscriptionMonetizationServiceBaseURL) !== null && _g !== void 0 ? _g : 'http://localhost:11400',
197
- monetizationGrantsServiceBaseURL: (_h = profile.monetizationGrantsServiceBaseURL) !== null && _h !== void 0 ? _h : 'http://localhost:11401',
198
- personalizationServiceBaseURL: (_j = profile.personalizationServiceBaseURL) !== null && _j !== void 0 ? _j : 'http://localhost:11200',
199
- mediaServiceBaseURL: (_k = profile.mediaServiceBaseURL) !== null && _k !== void 0 ? _k : 'http://localhost:10200',
200
- catalogServiceBaseURL: (_l = profile.catalogServiceBaseURL) !== null && _l !== void 0 ? _l : 'http://localhost:10300',
201
- entitlementServiceBaseURL: (_m = profile.entitlementServiceBaseURL) !== null && _m !== void 0 ? _m : 'http://localhost:11600',
202
- stripePaymentConnectorBaseURL: (_o = profile.stripePaymentConnectorBaseURL) !== null && _o !== void 0 ? _o : 'http://localhost:20001',
203
- tenantId: (_p = profile.tenantId) !== null && _p !== void 0 ? _p : '00000000-0000-0000-0000-000000000000',
204
- environmentId: (_q = profile.environmentId) !== null && _q !== void 0 ? _q : '00000000-0000-0000-0000-000000000000',
205
- applicationId: (_r = profile.applicationId) !== null && _r !== void 0 ? _r : '00000000-0000-0000-0000-000000000000',
206
- applicationKey: (_s = profile.applicationKey) !== null && _s !== void 0 ? _s : 'key',
207
- variables: (_u = (_t = profile.variables) === null || _t === void 0 ? void 0 : _t.map((variable) => {
191
+ personalizationServiceBaseURL: (_f = profile.personalizationServiceBaseURL) !== null && _f !== void 0 ? _f : 'http://localhost:11200',
192
+ mediaServiceBaseURL: (_g = profile.mediaServiceBaseURL) !== null && _g !== void 0 ? _g : 'http://localhost:10200',
193
+ catalogServiceBaseURL: (_h = profile.catalogServiceBaseURL) !== null && _h !== void 0 ? _h : 'http://localhost:10300',
194
+ entitlementServiceBaseURL: (_j = profile.entitlementServiceBaseURL) !== null && _j !== void 0 ? _j : 'http://localhost:11600',
195
+ tenantId: (_k = profile.tenantId) !== null && _k !== void 0 ? _k : '00000000-0000-0000-0000-000000000000',
196
+ environmentId: (_l = profile.environmentId) !== null && _l !== void 0 ? _l : '00000000-0000-0000-0000-000000000000',
197
+ applicationId: (_m = profile.applicationId) !== null && _m !== void 0 ? _m : '00000000-0000-0000-0000-000000000000',
198
+ applicationKey: (_o = profile.applicationKey) !== null && _o !== void 0 ? _o : 'key',
199
+ variables: (_q = (_p = profile.variables) === null || _p === void 0 ? void 0 : _p.map((variable) => {
208
200
  var _a, _b, _c;
209
201
  return {
210
202
  key: (_a = variable.key) !== null && _a !== void 0 ? _a : `AUTO_GENERATED_KEY_${generateShortUniqueId()}`,
211
203
  value: (_b = variable.value) !== null && _b !== void 0 ? _b : '',
212
204
  comment: (_c = variable.comment) !== null && _c !== void 0 ? _c : '',
213
205
  };
214
- })) !== null && _u !== void 0 ? _u : [],
206
+ })) !== null && _q !== void 0 ? _q : [],
215
207
  };
216
208
  });
217
209
  saveAllProfiles(migratedProfileConfigs);
@@ -503,15 +495,11 @@ const ProfileURLs = ({ selectedProfile, handleInputChange, }) => {
503
495
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "User Auth Base URL", name: "userAuthBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.userAuthBaseURL, onChange: handleInputChange }),
504
496
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "User Service Base URL", name: "userServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.userServiceBaseURL, onChange: handleInputChange }),
505
497
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Image Service Base URL", name: "imageServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.imageServiceBaseURL, onChange: handleInputChange }),
506
- React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Billing Service Base URL", name: "billingServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.billingServiceBaseURL, onChange: handleInputChange }),
507
- React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Subscription Monetization Service Base URL", name: 'subscriptionMonetizationServiceBaseURL', value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.subscriptionMonetizationServiceBaseURL, onChange: handleInputChange }),
508
- React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Monetization Grants Service Base URL", name: 'monetizationGrantsServiceBaseURL', value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.monetizationGrantsServiceBaseURL, onChange: handleInputChange }),
509
498
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Personalization Service Base URL", name: "personalizationServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.personalizationServiceBaseURL, onChange: handleInputChange }),
510
499
  React__default["default"].createElement(semanticUiReact.Divider, null),
511
500
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Media Service Base URL", name: "mediaServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.mediaServiceBaseURL, onChange: handleInputChange }),
512
501
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Catalog Service Base URL", name: "catalogServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.catalogServiceBaseURL, onChange: handleInputChange }),
513
502
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Entitlement Service Base URL", name: "entitlementServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.entitlementServiceBaseURL, onChange: handleInputChange }),
514
- React__default["default"].createElement(semanticUiReact.Form.Input, { width: 6, label: "Stripe Payment Connector Base URL", name: "stripePaymentConnectorBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.stripePaymentConnectorBaseURL, onChange: handleInputChange }),
515
503
  React__default["default"].createElement(semanticUiReact.Divider, null),
516
504
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 4, label: "Tenant ID", name: "tenantId", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.tenantId, onChange: handleInputChange }),
517
505
  React__default["default"].createElement(semanticUiReact.Form.Input, { width: 4, label: "Environment ID", name: "environmentId", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.environmentId, onChange: handleInputChange }),
@@ -570,22 +558,12 @@ const Profiles = ({ match }) => {
570
558
  imageServiceBaseURL: type === 'local'
571
559
  ? 'http://localhost:10400'
572
560
  : 'https://image.service.eu.axinom.net',
573
- billingServiceBaseURL: type === 'local'
574
- ? 'http://localhost:11500'
575
- : 'https://billing.service.eu.axinom.net',
576
- subscriptionMonetizationServiceBaseURL: type === 'local'
577
- ? 'http://localhost:11400'
578
- : 'https://subscription-monetization.service.eu.axinom.net',
579
- monetizationGrantsServiceBaseURL: type === 'local'
580
- ? 'http://localhost:11401'
581
- : 'https://monetization-grants.service.eu.axinom.net',
582
561
  personalizationServiceBaseURL: type === 'local'
583
562
  ? 'http://localhost:11200'
584
563
  : 'https://personalization.service.eu.axinom.net',
585
564
  mediaServiceBaseURL: 'http://localhost:10200',
586
565
  catalogServiceBaseURL: 'http://localhost:10300',
587
566
  entitlementServiceBaseURL: 'http://localhost:11600',
588
- stripePaymentConnectorBaseURL: 'http://localhost:20001',
589
567
  tenantId: '00000000-0000-0000-0000-000000000000',
590
568
  environmentId: '00000000-0000-0000-0000-000000000000',
591
569
  applicationId: '00000000-0000-0000-0000-000000000000',