@axinom/mosaic-fe-samples-host 0.32.0-rc.9 → 0.33.0-rc.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/Profiles/ProfileURLs.d.ts.map +1 -1
- package/dist/Profiles/Profiles.d.ts.map +1 -1
- package/dist/common/types/profile-config.d.ts +0 -4
- package/dist/common/types/profile-config.d.ts.map +1 -1
- package/dist/common/utils/storage-utils.d.ts.map +1 -1
- package/dist/index.es.js +17 -39
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +17 -39
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/Profiles/ProfileURLs.tsx +0 -28
- package/src/Profiles/Profiles.tsx +0 -13
- package/src/common/types/profile-config.ts +0 -4
- package/src/common/utils/storage-utils.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileURLs.d.ts","sourceRoot":"","sources":["../../src/Profiles/ProfileURLs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,iBAAiB,EAAO,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,eAAe;IACvB,eAAe,EAAE,aAAa,CAAC;IAC/B,iBAAiB,EAAE,CACjB,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,IAAI,EAAE,iBAAiB,KACpB,IAAI,CAAC;CACX;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"ProfileURLs.d.ts","sourceRoot":"","sources":["../../src/Profiles/ProfileURLs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiB,iBAAiB,EAAO,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,UAAU,eAAe;IACvB,eAAe,EAAE,aAAa,CAAC;IAC/B,iBAAiB,EAAE,CACjB,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,IAAI,EAAE,iBAAiB,KACpB,IAAI,CAAC;CACX;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6FjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Profiles.d.ts","sourceRoot":"","sources":["../../src/Profiles/Profiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAGL,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAqB1B,UAAU,WAAW;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,YAAa,SAAQ,mBAAmB,CAAC,WAAW,CAAC;CAAG;AAElE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Profiles.d.ts","sourceRoot":"","sources":["../../src/Profiles/Profiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAGL,mBAAmB,EAGpB,MAAM,kBAAkB,CAAC;AAqB1B,UAAU,WAAW;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,YAAa,SAAQ,mBAAmB,CAAC,WAAW,CAAC;CAAG;AAElE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2a3C,CAAC"}
|
|
@@ -4,14 +4,10 @@ export interface ProfileConfig {
|
|
|
4
4
|
userAuthBaseURL: string;
|
|
5
5
|
userServiceBaseURL: string;
|
|
6
6
|
imageServiceBaseURL: string;
|
|
7
|
-
billingServiceBaseURL: string;
|
|
8
|
-
subscriptionMonetizationServiceBaseURL: string;
|
|
9
|
-
monetizationGrantsServiceBaseURL: string;
|
|
10
7
|
personalizationServiceBaseURL: string;
|
|
11
8
|
mediaServiceBaseURL: string;
|
|
12
9
|
catalogServiceBaseURL: string;
|
|
13
10
|
entitlementServiceBaseURL: string;
|
|
14
|
-
stripePaymentConnectorBaseURL: string;
|
|
15
11
|
tenantId: string;
|
|
16
12
|
environmentId: string;
|
|
17
13
|
applicationId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-config.d.ts","sourceRoot":"","sources":["../../../src/common/types/profile-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,
|
|
1
|
+
{"version":3,"file":"profile-config.d.ts","sourceRoot":"","sources":["../../../src/common/types/profile-config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAEb,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6BAA6B,EAAE,MAAM,CAAC;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAElC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/storage-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"storage-utils.d.ts","sourceRoot":"","sources":["../../../src/common/utils/storage-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,YA6C3C,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,aAAa,EAE9C,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,aAAa,EAAE,KAAG,IAO3D,CAAC;AAEF,eAAO,MAAM,WAAW,kBAAmB,aAAa,KAAG,IAe1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,eACpB,aAAa,OACjB,MAAM,MAGZ,CAAC;AAEF,eAAO,MAAM,mBAAmB,YACrB,aAAa,KACrB,eAAe,EAEjB,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,aAAa,OACjB,MAAM,SACJ,OAAO,WACL,MAAM,KACd,IAYF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,YAYhD,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,YAMlC,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,YAAY,KAAG,IAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAAY,MAAM,WAKnD,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -22,18 +22,14 @@ var build = createCommonjsModule(function (module, exports) {
|
|
|
22
22
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
function _setPrototypeOf(
|
|
26
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
return _setPrototypeOf(o, p);
|
|
25
|
+
function _setPrototypeOf(t, e) {
|
|
26
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
27
|
+
return t.__proto__ = e, t;
|
|
28
|
+
}, _setPrototypeOf(t, e);
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
function _inheritsLoose(
|
|
34
|
-
|
|
35
|
-
subClass.prototype.constructor = subClass;
|
|
36
|
-
_setPrototypeOf(subClass, superClass);
|
|
31
|
+
function _inheritsLoose(t, o) {
|
|
32
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
var changedArray = function changedArray(a, b) {
|
|
@@ -159,33 +155,29 @@ const KEY_USER_SETTINGS = 'AX_USER_SETTINGS';
|
|
|
159
155
|
const migrateProfileStructuralChanges = () => {
|
|
160
156
|
const existingProfileConfigs = getAllProfiles();
|
|
161
157
|
const migratedProfileConfigs = existingProfileConfigs.map((profile) => {
|
|
162
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
158
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
163
159
|
return {
|
|
164
160
|
id: (_a = profile.id) !== null && _a !== void 0 ? _a : generateShortUniqueId(),
|
|
165
161
|
name: (_b = profile.name) !== null && _b !== void 0 ? _b : 'Unknown Profile',
|
|
166
162
|
userAuthBaseURL: (_c = profile.userAuthBaseURL) !== null && _c !== void 0 ? _c : 'http://localhost:11101',
|
|
167
163
|
userServiceBaseURL: (_d = profile.userServiceBaseURL) !== null && _d !== void 0 ? _d : 'http://localhost:11100',
|
|
168
164
|
imageServiceBaseURL: (_e = profile.imageServiceBaseURL) !== null && _e !== void 0 ? _e : 'http://localhost:10400',
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
environmentId: (_q = profile.environmentId) !== null && _q !== void 0 ? _q : '00000000-0000-0000-0000-000000000000',
|
|
179
|
-
applicationId: (_r = profile.applicationId) !== null && _r !== void 0 ? _r : '00000000-0000-0000-0000-000000000000',
|
|
180
|
-
applicationKey: (_s = profile.applicationKey) !== null && _s !== void 0 ? _s : 'key',
|
|
181
|
-
variables: (_u = (_t = profile.variables) === null || _t === void 0 ? void 0 : _t.map((variable) => {
|
|
165
|
+
personalizationServiceBaseURL: (_f = profile.personalizationServiceBaseURL) !== null && _f !== void 0 ? _f : 'http://localhost:11200',
|
|
166
|
+
mediaServiceBaseURL: (_g = profile.mediaServiceBaseURL) !== null && _g !== void 0 ? _g : 'http://localhost:10200',
|
|
167
|
+
catalogServiceBaseURL: (_h = profile.catalogServiceBaseURL) !== null && _h !== void 0 ? _h : 'http://localhost:10300',
|
|
168
|
+
entitlementServiceBaseURL: (_j = profile.entitlementServiceBaseURL) !== null && _j !== void 0 ? _j : 'http://localhost:11600',
|
|
169
|
+
tenantId: (_k = profile.tenantId) !== null && _k !== void 0 ? _k : '00000000-0000-0000-0000-000000000000',
|
|
170
|
+
environmentId: (_l = profile.environmentId) !== null && _l !== void 0 ? _l : '00000000-0000-0000-0000-000000000000',
|
|
171
|
+
applicationId: (_m = profile.applicationId) !== null && _m !== void 0 ? _m : '00000000-0000-0000-0000-000000000000',
|
|
172
|
+
applicationKey: (_o = profile.applicationKey) !== null && _o !== void 0 ? _o : 'key',
|
|
173
|
+
variables: (_q = (_p = profile.variables) === null || _p === void 0 ? void 0 : _p.map((variable) => {
|
|
182
174
|
var _a, _b, _c;
|
|
183
175
|
return {
|
|
184
176
|
key: (_a = variable.key) !== null && _a !== void 0 ? _a : `AUTO_GENERATED_KEY_${generateShortUniqueId()}`,
|
|
185
177
|
value: (_b = variable.value) !== null && _b !== void 0 ? _b : '',
|
|
186
178
|
comment: (_c = variable.comment) !== null && _c !== void 0 ? _c : '',
|
|
187
179
|
};
|
|
188
|
-
})) !== null &&
|
|
180
|
+
})) !== null && _q !== void 0 ? _q : [],
|
|
189
181
|
};
|
|
190
182
|
});
|
|
191
183
|
saveAllProfiles(migratedProfileConfigs);
|
|
@@ -477,15 +469,11 @@ const ProfileURLs = ({ selectedProfile, handleInputChange, }) => {
|
|
|
477
469
|
React__default.createElement(Form.Input, { width: 6, label: "User Auth Base URL", name: "userAuthBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.userAuthBaseURL, onChange: handleInputChange }),
|
|
478
470
|
React__default.createElement(Form.Input, { width: 6, label: "User Service Base URL", name: "userServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.userServiceBaseURL, onChange: handleInputChange }),
|
|
479
471
|
React__default.createElement(Form.Input, { width: 6, label: "Image Service Base URL", name: "imageServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.imageServiceBaseURL, onChange: handleInputChange }),
|
|
480
|
-
React__default.createElement(Form.Input, { width: 6, label: "Billing Service Base URL", name: "billingServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.billingServiceBaseURL, onChange: handleInputChange }),
|
|
481
|
-
React__default.createElement(Form.Input, { width: 6, label: "Subscription Monetization Service Base URL", name: 'subscriptionMonetizationServiceBaseURL', value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.subscriptionMonetizationServiceBaseURL, onChange: handleInputChange }),
|
|
482
|
-
React__default.createElement(Form.Input, { width: 6, label: "Monetization Grants Service Base URL", name: 'monetizationGrantsServiceBaseURL', value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.monetizationGrantsServiceBaseURL, onChange: handleInputChange }),
|
|
483
472
|
React__default.createElement(Form.Input, { width: 6, label: "Personalization Service Base URL", name: "personalizationServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.personalizationServiceBaseURL, onChange: handleInputChange }),
|
|
484
473
|
React__default.createElement(Divider, null),
|
|
485
474
|
React__default.createElement(Form.Input, { width: 6, label: "Media Service Base URL", name: "mediaServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.mediaServiceBaseURL, onChange: handleInputChange }),
|
|
486
475
|
React__default.createElement(Form.Input, { width: 6, label: "Catalog Service Base URL", name: "catalogServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.catalogServiceBaseURL, onChange: handleInputChange }),
|
|
487
476
|
React__default.createElement(Form.Input, { width: 6, label: "Entitlement Service Base URL", name: "entitlementServiceBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.entitlementServiceBaseURL, onChange: handleInputChange }),
|
|
488
|
-
React__default.createElement(Form.Input, { width: 6, label: "Stripe Payment Connector Base URL", name: "stripePaymentConnectorBaseURL", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.stripePaymentConnectorBaseURL, onChange: handleInputChange }),
|
|
489
477
|
React__default.createElement(Divider, null),
|
|
490
478
|
React__default.createElement(Form.Input, { width: 4, label: "Tenant ID", name: "tenantId", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.tenantId, onChange: handleInputChange }),
|
|
491
479
|
React__default.createElement(Form.Input, { width: 4, label: "Environment ID", name: "environmentId", value: selectedProfile === null || selectedProfile === void 0 ? void 0 : selectedProfile.environmentId, onChange: handleInputChange }),
|
|
@@ -544,22 +532,12 @@ const Profiles = ({ match }) => {
|
|
|
544
532
|
imageServiceBaseURL: type === 'local'
|
|
545
533
|
? 'http://localhost:10400'
|
|
546
534
|
: 'https://image.service.eu.axinom.net',
|
|
547
|
-
billingServiceBaseURL: type === 'local'
|
|
548
|
-
? 'http://localhost:11500'
|
|
549
|
-
: 'https://billing.service.eu.axinom.net',
|
|
550
|
-
subscriptionMonetizationServiceBaseURL: type === 'local'
|
|
551
|
-
? 'http://localhost:11400'
|
|
552
|
-
: 'https://subscription-monetization.service.eu.axinom.net',
|
|
553
|
-
monetizationGrantsServiceBaseURL: type === 'local'
|
|
554
|
-
? 'http://localhost:11401'
|
|
555
|
-
: 'https://monetization-grants.service.eu.axinom.net',
|
|
556
535
|
personalizationServiceBaseURL: type === 'local'
|
|
557
536
|
? 'http://localhost:11200'
|
|
558
537
|
: 'https://personalization.service.eu.axinom.net',
|
|
559
538
|
mediaServiceBaseURL: 'http://localhost:10200',
|
|
560
539
|
catalogServiceBaseURL: 'http://localhost:10300',
|
|
561
540
|
entitlementServiceBaseURL: 'http://localhost:11600',
|
|
562
|
-
stripePaymentConnectorBaseURL: 'http://localhost:20001',
|
|
563
541
|
tenantId: '00000000-0000-0000-0000-000000000000',
|
|
564
542
|
environmentId: '00000000-0000-0000-0000-000000000000',
|
|
565
543
|
applicationId: '00000000-0000-0000-0000-000000000000',
|