@klauswuestefeld/jux-web 0.0.1 → 2023.8.28

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/jux-web.js CHANGED
@@ -169,7 +169,10 @@ var juxWeb = (function (exports) {
169
169
  return token;
170
170
  };
171
171
 
172
- var kebabCaseProvider = function () { var _a; return ((_a = localStorage.getItem('provider')) === null || _a === void 0 ? void 0 : _a.replace(/\./g, '-')) || ''; };
172
+ var kebabCaseProvider = function () {
173
+ var provider = localStorage.getItem('override-provider') || localStorage.getItem('provider');
174
+ return (provider === null || provider === void 0 ? void 0 : provider.replace(/\./g, '-')) || '';
175
+ };
173
176
  //@ts-ignore
174
177
  var getDynamicBackendUrl = function () { return process.env.DYNAMIC_BACKEND_URL ? process.env.DYNAMIC_BACKEND_URL.replace('%provider', kebabCaseProvider()) : false; };
175
178
  //@ts-ignore
@@ -14071,7 +14074,7 @@ var juxWeb = (function (exports) {
14071
14074
  (_a = document.querySelector('#contact-us-modal')) === null || _a === void 0 ? void 0 : _a.remove();
14072
14075
  }, function () { } // TODO: change it to be an error handling fn provided by the client
14073
14076
  );
14074
- // checkMixpanel(() => mixpanel.track("Sent Contact Inquiry", {}));
14077
+ // checkMixpanel(() => mixpanel.track('Sent Contact Inquiry', {}));
14075
14078
  };
14076
14079
  var contactUsModal = function (subject) {
14077
14080
  var _a, _b, _c, _d, _e;
package/dist/main.esm.js CHANGED
@@ -168,7 +168,10 @@ var extractTokenFromWindowLocation = function (tokenParam, additionalParam) {
168
168
  return token;
169
169
  };
170
170
 
171
- var kebabCaseProvider = function () { var _a; return ((_a = localStorage.getItem('provider')) === null || _a === void 0 ? void 0 : _a.replace(/\./g, '-')) || ''; };
171
+ var kebabCaseProvider = function () {
172
+ var provider = localStorage.getItem('override-provider') || localStorage.getItem('provider');
173
+ return (provider === null || provider === void 0 ? void 0 : provider.replace(/\./g, '-')) || '';
174
+ };
172
175
  //@ts-ignore
173
176
  var getDynamicBackendUrl = function () { return process.env.DYNAMIC_BACKEND_URL ? process.env.DYNAMIC_BACKEND_URL.replace('%provider', kebabCaseProvider()) : false; };
174
177
  //@ts-ignore
@@ -751,7 +754,7 @@ var sendInquiry = function (name, email, msg, whatsapp, subject, token) {
751
754
  (_a = document.querySelector('#contact-us-modal')) === null || _a === void 0 ? void 0 : _a.remove();
752
755
  }, function () { } // TODO: change it to be an error handling fn provided by the client
753
756
  );
754
- // checkMixpanel(() => mixpanel.track("Sent Contact Inquiry", {}));
757
+ // checkMixpanel(() => mixpanel.track('Sent Contact Inquiry', {}));
755
758
  };
756
759
  var contactUsModal = function (subject) {
757
760
  var _a, _b, _c, _d, _e;
package/dist/main.js CHANGED
@@ -192,7 +192,10 @@ var extractTokenFromWindowLocation = function (tokenParam, additionalParam) {
192
192
  return token;
193
193
  };
194
194
 
195
- var kebabCaseProvider = function () { var _a; return ((_a = localStorage.getItem('provider')) === null || _a === void 0 ? void 0 : _a.replace(/\./g, '-')) || ''; };
195
+ var kebabCaseProvider = function () {
196
+ var provider = localStorage.getItem('override-provider') || localStorage.getItem('provider');
197
+ return (provider === null || provider === void 0 ? void 0 : provider.replace(/\./g, '-')) || '';
198
+ };
196
199
  //@ts-ignore
197
200
  var getDynamicBackendUrl = function () { return process.env.DYNAMIC_BACKEND_URL ? process.env.DYNAMIC_BACKEND_URL.replace('%provider', kebabCaseProvider()) : false; };
198
201
  //@ts-ignore
@@ -775,7 +778,7 @@ var sendInquiry = function (name, email, msg, whatsapp, subject, token) {
775
778
  (_a = document.querySelector('#contact-us-modal')) === null || _a === void 0 ? void 0 : _a.remove();
776
779
  }, function () { } // TODO: change it to be an error handling fn provided by the client
777
780
  );
778
- // checkMixpanel(() => mixpanel.track("Sent Contact Inquiry", {}));
781
+ // checkMixpanel(() => mixpanel.track('Sent Contact Inquiry', {}));
779
782
  };
780
783
  var contactUsModal = function (subject) {
781
784
  var _a, _b, _c, _d, _e;
package/package.json CHANGED
@@ -1,7 +1,20 @@
1
1
  {
2
2
  "name": "@klauswuestefeld/jux-web",
3
- "version": "0.0.1",
3
+ "version": "2023.08.28",
4
+ "author": "Jux.House",
5
+ "license": "Copyrighted",
4
6
  "description": "",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/klauswuestefeld/jux-web.git"
10
+ },
11
+ "homepage": "https://github.com/klauswuestefeld/jux-web#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/klauswuestefeld/jux-web/issues"
14
+ },
15
+ "dependencies": {
16
+ "@azure/msal-browser": "2.21.0"
17
+ },
5
18
  "main": "dist/main.esm.js",
6
19
  "types": "dist/main.d.ts",
7
20
  "files": [
@@ -12,19 +25,6 @@
12
25
  "test": "echo \"Error: no test specified\" && exit 1",
13
26
  "build": "rollup -c"
14
27
  },
15
- "dependencies": {
16
- "@azure/msal-browser": "2.21.0"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/klauswuestefeld/jux-web.git"
21
- },
22
- "author": "",
23
- "license": "ISC",
24
- "bugs": {
25
- "url": "https://github.com/klauswuestefeld/jux-web/issues"
26
- },
27
- "homepage": "https://github.com/klauswuestefeld/jux-web#readme",
28
28
  "devDependencies": {
29
29
  "rollup": "^2.79.1",
30
30
  "rollup-plugin-commonjs": "^10.1.0",
@@ -1,4 +0,0 @@
1
- export declare class JuxStore {
2
- backendToken: string;
3
- currentUser: any;
4
- }
package/dist/i18n.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const getTranslation: (k: string) => string;
2
- export declare const translateTexts: (element?: HTMLElement) => void;