@entur-partner/micro-frontend 2.4.2 → 2.4.4
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/Payload.d.ts +1 -1
- package/dist/events.d.ts +4 -4
- package/dist/micro-frontend.cjs.development.js +41 -136
- package/dist/micro-frontend.cjs.development.js.map +1 -1
- package/dist/micro-frontend.cjs.production.min.js.map +1 -1
- package/dist/micro-frontend.esm.js +41 -136
- package/dist/micro-frontend.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/Payload.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface MenuItem {
|
|
|
20
20
|
all?: BusinessCapability[] | BusinessCapability;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type NavigationFunction = (to: string) => void;
|
|
24
24
|
export interface MicroFrontendPayload {
|
|
25
25
|
/** Logged in auth0 user */
|
|
26
26
|
user: User;
|
package/dist/events.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MicroFrontendPayload } from './Payload';
|
|
2
|
-
|
|
2
|
+
type MountEventDetail = {
|
|
3
3
|
id: string;
|
|
4
4
|
mountPoint: HTMLDivElement;
|
|
5
5
|
payload: MicroFrontendPayload;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type UnmountEventDetail = {
|
|
8
8
|
id: string;
|
|
9
9
|
mountPoint: HTMLDivElement;
|
|
10
10
|
};
|
|
@@ -17,8 +17,8 @@ export interface UnmountEvent extends CustomEvent<UnmountEventDetail> {
|
|
|
17
17
|
export declare function createMountEvent(detail: MountEventDetail): CustomEvent<MountEventDetail>;
|
|
18
18
|
export declare function createUnmountEvent(detail: UnmountEventDetail): CustomEvent<UnmountEventDetail>;
|
|
19
19
|
export declare const ROUTE_CHANGE_EVENT_TYPE = "@entur-partner:after-route-change";
|
|
20
|
-
export
|
|
21
|
-
|
|
20
|
+
export type RouteAction = 'PUSH' | 'POP' | 'REPLACE';
|
|
21
|
+
type RouteChangeEventDetail = {
|
|
22
22
|
location: Location;
|
|
23
23
|
action: RouteAction;
|
|
24
24
|
};
|
|
@@ -10,20 +10,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
function _regeneratorRuntime() {
|
|
13
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
14
|
-
|
|
15
13
|
_regeneratorRuntime = function () {
|
|
16
14
|
return exports;
|
|
17
15
|
};
|
|
18
|
-
|
|
19
16
|
var exports = {},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
Op = Object.prototype,
|
|
18
|
+
hasOwn = Op.hasOwnProperty,
|
|
19
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
20
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
21
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
22
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
27
23
|
function define(obj, key, value) {
|
|
28
24
|
return Object.defineProperty(obj, key, {
|
|
29
25
|
value: value,
|
|
@@ -32,7 +28,6 @@ function _regeneratorRuntime() {
|
|
|
32
28
|
writable: !0
|
|
33
29
|
}), obj[key];
|
|
34
30
|
}
|
|
35
|
-
|
|
36
31
|
try {
|
|
37
32
|
define({}, "");
|
|
38
33
|
} catch (err) {
|
|
@@ -40,40 +35,33 @@ function _regeneratorRuntime() {
|
|
|
40
35
|
return obj[key] = value;
|
|
41
36
|
};
|
|
42
37
|
}
|
|
43
|
-
|
|
44
38
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
45
39
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
generator = Object.create(protoGenerator.prototype),
|
|
41
|
+
context = new Context(tryLocsList || []);
|
|
48
42
|
return generator._invoke = function (innerFn, self, context) {
|
|
49
43
|
var state = "suspendedStart";
|
|
50
44
|
return function (method, arg) {
|
|
51
45
|
if ("executing" === state) throw new Error("Generator is already running");
|
|
52
|
-
|
|
53
46
|
if ("completed" === state) {
|
|
54
47
|
if ("throw" === method) throw arg;
|
|
55
48
|
return doneResult();
|
|
56
49
|
}
|
|
57
|
-
|
|
58
50
|
for (context.method = method, context.arg = arg;;) {
|
|
59
51
|
var delegate = context.delegate;
|
|
60
|
-
|
|
61
52
|
if (delegate) {
|
|
62
53
|
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
63
|
-
|
|
64
54
|
if (delegateResult) {
|
|
65
55
|
if (delegateResult === ContinueSentinel) continue;
|
|
66
56
|
return delegateResult;
|
|
67
57
|
}
|
|
68
58
|
}
|
|
69
|
-
|
|
70
59
|
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
71
60
|
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
72
61
|
context.dispatchException(context.arg);
|
|
73
62
|
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
74
63
|
state = "executing";
|
|
75
64
|
var record = tryCatch(innerFn, self, context);
|
|
76
|
-
|
|
77
65
|
if ("normal" === record.type) {
|
|
78
66
|
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
79
67
|
return {
|
|
@@ -81,13 +69,11 @@ function _regeneratorRuntime() {
|
|
|
81
69
|
done: context.done
|
|
82
70
|
};
|
|
83
71
|
}
|
|
84
|
-
|
|
85
72
|
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
86
73
|
}
|
|
87
74
|
};
|
|
88
75
|
}(innerFn, self, context), generator;
|
|
89
76
|
}
|
|
90
|
-
|
|
91
77
|
function tryCatch(fn, obj, arg) {
|
|
92
78
|
try {
|
|
93
79
|
return {
|
|
@@ -101,25 +87,19 @@ function _regeneratorRuntime() {
|
|
|
101
87
|
};
|
|
102
88
|
}
|
|
103
89
|
}
|
|
104
|
-
|
|
105
90
|
exports.wrap = wrap;
|
|
106
91
|
var ContinueSentinel = {};
|
|
107
|
-
|
|
108
92
|
function Generator() {}
|
|
109
|
-
|
|
110
93
|
function GeneratorFunction() {}
|
|
111
|
-
|
|
112
94
|
function GeneratorFunctionPrototype() {}
|
|
113
|
-
|
|
114
95
|
var IteratorPrototype = {};
|
|
115
96
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
116
97
|
return this;
|
|
117
98
|
});
|
|
118
99
|
var getProto = Object.getPrototypeOf,
|
|
119
|
-
|
|
100
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
120
101
|
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
121
102
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
122
|
-
|
|
123
103
|
function defineIteratorMethods(prototype) {
|
|
124
104
|
["next", "throw", "return"].forEach(function (method) {
|
|
125
105
|
define(prototype, method, function (arg) {
|
|
@@ -127,14 +107,12 @@ function _regeneratorRuntime() {
|
|
|
127
107
|
});
|
|
128
108
|
});
|
|
129
109
|
}
|
|
130
|
-
|
|
131
110
|
function AsyncIterator(generator, PromiseImpl) {
|
|
132
111
|
function invoke(method, arg, resolve, reject) {
|
|
133
112
|
var record = tryCatch(generator[method], generator, arg);
|
|
134
|
-
|
|
135
113
|
if ("throw" !== record.type) {
|
|
136
114
|
var result = record.arg,
|
|
137
|
-
|
|
115
|
+
value = result.value;
|
|
138
116
|
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
139
117
|
invoke("next", value, resolve, reject);
|
|
140
118
|
}, function (err) {
|
|
@@ -145,89 +123,71 @@ function _regeneratorRuntime() {
|
|
|
145
123
|
return invoke("throw", error, resolve, reject);
|
|
146
124
|
});
|
|
147
125
|
}
|
|
148
|
-
|
|
149
126
|
reject(record.arg);
|
|
150
127
|
}
|
|
151
|
-
|
|
152
128
|
var previousPromise;
|
|
153
|
-
|
|
154
129
|
this._invoke = function (method, arg) {
|
|
155
130
|
function callInvokeWithMethodAndArg() {
|
|
156
131
|
return new PromiseImpl(function (resolve, reject) {
|
|
157
132
|
invoke(method, arg, resolve, reject);
|
|
158
133
|
});
|
|
159
134
|
}
|
|
160
|
-
|
|
161
135
|
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
162
136
|
};
|
|
163
137
|
}
|
|
164
|
-
|
|
165
138
|
function maybeInvokeDelegate(delegate, context) {
|
|
166
139
|
var method = delegate.iterator[context.method];
|
|
167
|
-
|
|
168
140
|
if (undefined === method) {
|
|
169
141
|
if (context.delegate = null, "throw" === context.method) {
|
|
170
142
|
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
171
143
|
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
172
144
|
}
|
|
173
|
-
|
|
174
145
|
return ContinueSentinel;
|
|
175
146
|
}
|
|
176
|
-
|
|
177
147
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
178
148
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
179
149
|
var info = record.arg;
|
|
180
150
|
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
181
151
|
}
|
|
182
|
-
|
|
183
152
|
function pushTryEntry(locs) {
|
|
184
153
|
var entry = {
|
|
185
154
|
tryLoc: locs[0]
|
|
186
155
|
};
|
|
187
156
|
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
188
157
|
}
|
|
189
|
-
|
|
190
158
|
function resetTryEntry(entry) {
|
|
191
159
|
var record = entry.completion || {};
|
|
192
160
|
record.type = "normal", delete record.arg, entry.completion = record;
|
|
193
161
|
}
|
|
194
|
-
|
|
195
162
|
function Context(tryLocsList) {
|
|
196
163
|
this.tryEntries = [{
|
|
197
164
|
tryLoc: "root"
|
|
198
165
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
199
166
|
}
|
|
200
|
-
|
|
201
167
|
function values(iterable) {
|
|
202
168
|
if (iterable) {
|
|
203
169
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
204
170
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
205
171
|
if ("function" == typeof iterable.next) return iterable;
|
|
206
|
-
|
|
207
172
|
if (!isNaN(iterable.length)) {
|
|
208
173
|
var i = -1,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
};
|
|
214
|
-
|
|
174
|
+
next = function next() {
|
|
175
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
176
|
+
return next.value = undefined, next.done = !0, next;
|
|
177
|
+
};
|
|
215
178
|
return next.next = next;
|
|
216
179
|
}
|
|
217
180
|
}
|
|
218
|
-
|
|
219
181
|
return {
|
|
220
182
|
next: doneResult
|
|
221
183
|
};
|
|
222
184
|
}
|
|
223
|
-
|
|
224
185
|
function doneResult() {
|
|
225
186
|
return {
|
|
226
187
|
value: undefined,
|
|
227
188
|
done: !0
|
|
228
189
|
};
|
|
229
190
|
}
|
|
230
|
-
|
|
231
191
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
232
192
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
233
193
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
@@ -251,15 +211,12 @@ function _regeneratorRuntime() {
|
|
|
251
211
|
return "[object Generator]";
|
|
252
212
|
}), exports.keys = function (object) {
|
|
253
213
|
var keys = [];
|
|
254
|
-
|
|
255
214
|
for (var key in object) keys.push(key);
|
|
256
|
-
|
|
257
215
|
return keys.reverse(), function next() {
|
|
258
216
|
for (; keys.length;) {
|
|
259
217
|
var key = keys.pop();
|
|
260
218
|
if (key in object) return next.value = key, next.done = !1, next;
|
|
261
219
|
}
|
|
262
|
-
|
|
263
220
|
return next.done = !0, next;
|
|
264
221
|
};
|
|
265
222
|
}, exports.values = values, Context.prototype = {
|
|
@@ -276,20 +233,16 @@ function _regeneratorRuntime() {
|
|
|
276
233
|
dispatchException: function (exception) {
|
|
277
234
|
if (this.done) throw exception;
|
|
278
235
|
var context = this;
|
|
279
|
-
|
|
280
236
|
function handle(loc, caught) {
|
|
281
237
|
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
282
238
|
}
|
|
283
|
-
|
|
284
239
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
285
240
|
var entry = this.tryEntries[i],
|
|
286
|
-
|
|
241
|
+
record = entry.completion;
|
|
287
242
|
if ("root" === entry.tryLoc) return handle("end");
|
|
288
|
-
|
|
289
243
|
if (entry.tryLoc <= this.prev) {
|
|
290
244
|
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
291
|
-
|
|
292
|
-
|
|
245
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
293
246
|
if (hasCatch && hasFinally) {
|
|
294
247
|
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
295
248
|
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
@@ -305,13 +258,11 @@ function _regeneratorRuntime() {
|
|
|
305
258
|
abrupt: function (type, arg) {
|
|
306
259
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
307
260
|
var entry = this.tryEntries[i];
|
|
308
|
-
|
|
309
261
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
310
262
|
var finallyEntry = entry;
|
|
311
263
|
break;
|
|
312
264
|
}
|
|
313
265
|
}
|
|
314
|
-
|
|
315
266
|
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
316
267
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
317
268
|
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
@@ -329,19 +280,15 @@ function _regeneratorRuntime() {
|
|
|
329
280
|
catch: function (tryLoc) {
|
|
330
281
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
331
282
|
var entry = this.tryEntries[i];
|
|
332
|
-
|
|
333
283
|
if (entry.tryLoc === tryLoc) {
|
|
334
284
|
var record = entry.completion;
|
|
335
|
-
|
|
336
285
|
if ("throw" === record.type) {
|
|
337
286
|
var thrown = record.arg;
|
|
338
287
|
resetTryEntry(entry);
|
|
339
288
|
}
|
|
340
|
-
|
|
341
289
|
return thrown;
|
|
342
290
|
}
|
|
343
291
|
}
|
|
344
|
-
|
|
345
292
|
throw new Error("illegal catch attempt");
|
|
346
293
|
},
|
|
347
294
|
delegateYield: function (iterable, resultName, nextLoc) {
|
|
@@ -353,7 +300,6 @@ function _regeneratorRuntime() {
|
|
|
353
300
|
}
|
|
354
301
|
}, exports;
|
|
355
302
|
}
|
|
356
|
-
|
|
357
303
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
358
304
|
try {
|
|
359
305
|
var info = gen[key](arg);
|
|
@@ -362,65 +308,53 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
362
308
|
reject(error);
|
|
363
309
|
return;
|
|
364
310
|
}
|
|
365
|
-
|
|
366
311
|
if (info.done) {
|
|
367
312
|
resolve(value);
|
|
368
313
|
} else {
|
|
369
314
|
Promise.resolve(value).then(_next, _throw);
|
|
370
315
|
}
|
|
371
316
|
}
|
|
372
|
-
|
|
373
317
|
function _asyncToGenerator(fn) {
|
|
374
318
|
return function () {
|
|
375
319
|
var self = this,
|
|
376
|
-
|
|
320
|
+
args = arguments;
|
|
377
321
|
return new Promise(function (resolve, reject) {
|
|
378
322
|
var gen = fn.apply(self, args);
|
|
379
|
-
|
|
380
323
|
function _next(value) {
|
|
381
324
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
382
325
|
}
|
|
383
|
-
|
|
384
326
|
function _throw(err) {
|
|
385
327
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
386
328
|
}
|
|
387
|
-
|
|
388
329
|
_next(undefined);
|
|
389
330
|
});
|
|
390
331
|
};
|
|
391
332
|
}
|
|
392
|
-
|
|
393
333
|
function _extends() {
|
|
394
334
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
395
335
|
for (var i = 1; i < arguments.length; i++) {
|
|
396
336
|
var source = arguments[i];
|
|
397
|
-
|
|
398
337
|
for (var key in source) {
|
|
399
338
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
400
339
|
target[key] = source[key];
|
|
401
340
|
}
|
|
402
341
|
}
|
|
403
342
|
}
|
|
404
|
-
|
|
405
343
|
return target;
|
|
406
344
|
};
|
|
407
345
|
return _extends.apply(this, arguments);
|
|
408
346
|
}
|
|
409
|
-
|
|
410
347
|
function _inheritsLoose(subClass, superClass) {
|
|
411
348
|
subClass.prototype = Object.create(superClass.prototype);
|
|
412
349
|
subClass.prototype.constructor = subClass;
|
|
413
|
-
|
|
414
350
|
_setPrototypeOf(subClass, superClass);
|
|
415
351
|
}
|
|
416
|
-
|
|
417
352
|
function _getPrototypeOf(o) {
|
|
418
353
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
419
354
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
420
355
|
};
|
|
421
356
|
return _getPrototypeOf(o);
|
|
422
357
|
}
|
|
423
|
-
|
|
424
358
|
function _setPrototypeOf(o, p) {
|
|
425
359
|
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
426
360
|
o.__proto__ = p;
|
|
@@ -428,12 +362,10 @@ function _setPrototypeOf(o, p) {
|
|
|
428
362
|
};
|
|
429
363
|
return _setPrototypeOf(o, p);
|
|
430
364
|
}
|
|
431
|
-
|
|
432
365
|
function _isNativeReflectConstruct() {
|
|
433
366
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
434
367
|
if (Reflect.construct.sham) return false;
|
|
435
368
|
if (typeof Proxy === "function") return true;
|
|
436
|
-
|
|
437
369
|
try {
|
|
438
370
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
439
371
|
return true;
|
|
@@ -441,7 +373,6 @@ function _isNativeReflectConstruct() {
|
|
|
441
373
|
return false;
|
|
442
374
|
}
|
|
443
375
|
}
|
|
444
|
-
|
|
445
376
|
function _construct(Parent, args, Class) {
|
|
446
377
|
if (_isNativeReflectConstruct()) {
|
|
447
378
|
_construct = Reflect.construct.bind();
|
|
@@ -455,34 +386,25 @@ function _construct(Parent, args, Class) {
|
|
|
455
386
|
return instance;
|
|
456
387
|
};
|
|
457
388
|
}
|
|
458
|
-
|
|
459
389
|
return _construct.apply(null, arguments);
|
|
460
390
|
}
|
|
461
|
-
|
|
462
391
|
function _isNativeFunction(fn) {
|
|
463
392
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
464
393
|
}
|
|
465
|
-
|
|
466
394
|
function _wrapNativeSuper(Class) {
|
|
467
395
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
468
|
-
|
|
469
396
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
470
397
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
471
|
-
|
|
472
398
|
if (typeof Class !== "function") {
|
|
473
399
|
throw new TypeError("Super expression must either be null or a function");
|
|
474
400
|
}
|
|
475
|
-
|
|
476
401
|
if (typeof _cache !== "undefined") {
|
|
477
402
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
478
|
-
|
|
479
403
|
_cache.set(Class, Wrapper);
|
|
480
404
|
}
|
|
481
|
-
|
|
482
405
|
function Wrapper() {
|
|
483
406
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
484
407
|
}
|
|
485
|
-
|
|
486
408
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
487
409
|
constructor: {
|
|
488
410
|
value: Wrapper,
|
|
@@ -493,22 +415,18 @@ function _wrapNativeSuper(Class) {
|
|
|
493
415
|
});
|
|
494
416
|
return _setPrototypeOf(Wrapper, Class);
|
|
495
417
|
};
|
|
496
|
-
|
|
497
418
|
return _wrapNativeSuper(Class);
|
|
498
419
|
}
|
|
499
|
-
|
|
500
420
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
501
421
|
if (source == null) return {};
|
|
502
422
|
var target = {};
|
|
503
423
|
var sourceKeys = Object.keys(source);
|
|
504
424
|
var key, i;
|
|
505
|
-
|
|
506
425
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
507
426
|
key = sourceKeys[i];
|
|
508
427
|
if (excluded.indexOf(key) >= 0) continue;
|
|
509
428
|
target[key] = source[key];
|
|
510
429
|
}
|
|
511
|
-
|
|
512
430
|
return target;
|
|
513
431
|
}
|
|
514
432
|
|
|
@@ -527,30 +445,26 @@ function createUnmountEvent(detail) {
|
|
|
527
445
|
var ROUTE_CHANGE_EVENT_TYPE = '@entur-partner:after-route-change';
|
|
528
446
|
var RouteChangeEvent = /*#__PURE__*/function (_CustomEvent) {
|
|
529
447
|
_inheritsLoose(RouteChangeEvent, _CustomEvent);
|
|
530
|
-
|
|
531
448
|
function RouteChangeEvent() {
|
|
532
449
|
return _CustomEvent.apply(this, arguments) || this;
|
|
533
450
|
}
|
|
534
|
-
|
|
535
451
|
return RouteChangeEvent;
|
|
536
452
|
}( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
|
|
537
453
|
|
|
538
454
|
function registerMicroFrontend(config) {
|
|
539
455
|
var unmount = config.unmount,
|
|
540
|
-
|
|
541
|
-
|
|
456
|
+
microFrontendId = config.microFrontendId,
|
|
457
|
+
mount = config.mount;
|
|
542
458
|
window.addEventListener(MOUNT_EVENT_TYPE, function (event) {
|
|
543
459
|
if (!event.detail.id.startsWith(microFrontendId)) {
|
|
544
460
|
return;
|
|
545
461
|
}
|
|
546
|
-
|
|
547
462
|
mount(event.detail.mountPoint, event.detail.payload, event.detail.mountPoint);
|
|
548
463
|
});
|
|
549
464
|
window.addEventListener(UNMOUNT_EVENT_TYPE, function (event) {
|
|
550
465
|
if (!event.detail.id.startsWith(microFrontendId)) {
|
|
551
466
|
return;
|
|
552
467
|
}
|
|
553
|
-
|
|
554
468
|
unmount(event.detail.mountPoint);
|
|
555
469
|
});
|
|
556
470
|
}
|
|
@@ -574,51 +488,42 @@ var useNavigate = function useNavigate() {
|
|
|
574
488
|
};
|
|
575
489
|
var AppProvider = function AppProvider(_ref) {
|
|
576
490
|
var children = _ref.children,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
491
|
+
organisationId = _ref.organisationId,
|
|
492
|
+
getPermissions = _ref.getPermissions,
|
|
493
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
581
494
|
var _useState = React.useState([]),
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
495
|
+
permissions = _useState[0],
|
|
496
|
+
setPermissions = _useState[1];
|
|
585
497
|
React.useEffect(function () {
|
|
586
498
|
function fetchData() {
|
|
587
499
|
return _fetchData.apply(this, arguments);
|
|
588
500
|
}
|
|
589
|
-
|
|
590
501
|
function _fetchData() {
|
|
591
502
|
_fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
592
503
|
var fetchedPermissions;
|
|
593
504
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
594
|
-
while (1) {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
case 10:
|
|
613
|
-
case "end":
|
|
614
|
-
return _context.stop();
|
|
615
|
-
}
|
|
505
|
+
while (1) switch (_context.prev = _context.next) {
|
|
506
|
+
case 0:
|
|
507
|
+
_context.prev = 0;
|
|
508
|
+
_context.next = 3;
|
|
509
|
+
return getPermissions();
|
|
510
|
+
case 3:
|
|
511
|
+
fetchedPermissions = _context.sent;
|
|
512
|
+
setPermissions(fetchedPermissions);
|
|
513
|
+
_context.next = 10;
|
|
514
|
+
break;
|
|
515
|
+
case 7:
|
|
516
|
+
_context.prev = 7;
|
|
517
|
+
_context.t0 = _context["catch"](0);
|
|
518
|
+
console.error('Fetching permissions with the provided getPermissions function failed in AppProvider with the following error:', _context.t0);
|
|
519
|
+
case 10:
|
|
520
|
+
case "end":
|
|
521
|
+
return _context.stop();
|
|
616
522
|
}
|
|
617
523
|
}, _callee, null, [[0, 7]]);
|
|
618
524
|
}));
|
|
619
525
|
return _fetchData.apply(this, arguments);
|
|
620
526
|
}
|
|
621
|
-
|
|
622
527
|
fetchData();
|
|
623
528
|
}, [getPermissions]);
|
|
624
529
|
return React__default["default"].createElement(AppContext.Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"micro-frontend.cjs.development.js","sources":["../src/events.ts","../src/registerMicroFrontend.tsx","../src/AppProvider.tsx"],"sourcesContent":["import { MicroFrontendPayload } from './Payload';\n\ntype MountEventDetail = {\n id: string;\n mountPoint: HTMLDivElement;\n payload: MicroFrontendPayload;\n};\n\ntype UnmountEventDetail = {\n id: string;\n mountPoint: HTMLDivElement;\n};\n\nexport const MOUNT_EVENT_TYPE = '@entur-partner:mount';\nexport const UNMOUNT_EVENT_TYPE = '@entur-partner:unmount';\n\nexport interface MountEvent extends CustomEvent<MountEventDetail> {}\nexport interface UnmountEvent extends CustomEvent<UnmountEventDetail> {}\n\nexport function createMountEvent(detail: MountEventDetail) {\n return new CustomEvent<MountEventDetail>(MOUNT_EVENT_TYPE, { detail });\n}\n\nexport function createUnmountEvent(detail: UnmountEventDetail) {\n return new CustomEvent<UnmountEventDetail>(UNMOUNT_EVENT_TYPE, { detail });\n}\n\nexport const ROUTE_CHANGE_EVENT_TYPE = '@entur-partner:after-route-change';\n\nexport type RouteAction = 'PUSH' | 'POP' | 'REPLACE';\n\ntype RouteChangeEventDetail = {\n location: Location;\n action: RouteAction;\n};\n\nexport class RouteChangeEvent extends CustomEvent<RouteChangeEventDetail> {}\n","/*global EventListener*/\nimport { MicroFrontendPayload } from './Payload';\nimport {\n MountEvent,\n UnmountEvent,\n MOUNT_EVENT_TYPE,\n UNMOUNT_EVENT_TYPE,\n} from './events';\n\ninterface Config {\n microFrontendId: string;\n mount: (\n mountPoint: HTMLDivElement,\n payload: MicroFrontendPayload,\n deprecatedMountPoint: HTMLDivElement\n ) => void;\n unmount: (mountPoint: HTMLDivElement) => void;\n}\n\nexport function registerMicroFrontend(config: Config): void {\n const { unmount, microFrontendId, mount } = config;\n\n window.addEventListener(MOUNT_EVENT_TYPE, ((event: MountEvent) => {\n if (!event.detail.id.startsWith(microFrontendId)) {\n return;\n }\n mount(\n event.detail.mountPoint,\n event.detail.payload,\n event.detail.mountPoint\n );\n }) as EventListener);\n\n window.addEventListener(UNMOUNT_EVENT_TYPE, ((event: UnmountEvent) => {\n if (!event.detail.id.startsWith(microFrontendId)) {\n return;\n }\n unmount(event.detail.mountPoint);\n }) as EventListener);\n}\n","import React, { FC, ReactNode, useContext, useEffect, useState } from 'react';\nimport { assertIsDefined } from '@entur-partner/util';\nimport { Permission } from '@entur-partner/permission-client-node';\n\nimport { User } from './User';\n\ninterface AppContextType {\n getToken: () => Promise<string>;\n user: User;\n logout?: () => void;\n activeOrgId: number;\n navigate: (path: string) => void;\n}\n\nexport const AppContext = React.createContext<AppContextType | undefined>(\n undefined\n);\n\nexport const useUser = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.user;\n};\n\nexport const useActiveOrgId = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.activeOrgId;\n};\n\nexport interface AppProviderProps {\n children: ReactNode;\n getToken: () => Promise<string>;\n user: User;\n getPermissions: () => Promise<Permission[]>;\n organisationId: string;\n navigate: (path: string) => void;\n}\n\nexport const useNavigate = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.navigate;\n};\n\nexport const AppProvider: FC<AppProviderProps> = ({\n children,\n organisationId,\n getPermissions,\n ...rest\n}) => {\n const [permissions, setPermissions] = useState<Permission[]>([]);\n\n useEffect(() => {\n async function fetchData() {\n try {\n const fetchedPermissions = await getPermissions();\n setPermissions(fetchedPermissions);\n } catch (error) {\n console.error(\n 'Fetching permissions with the provided getPermissions function failed in AppProvider with the following error:',\n error\n );\n }\n }\n\n fetchData();\n }, [getPermissions]);\n\n return (\n <AppContext.Provider\n value={{\n ...rest,\n user: { ...rest.user, permissions: permissions },\n activeOrgId: Number(organisationId),\n }}\n >\n {children}\n </AppContext.Provider>\n );\n};\n"],"names":["MOUNT_EVENT_TYPE","UNMOUNT_EVENT_TYPE","createMountEvent","detail","CustomEvent","createUnmountEvent","ROUTE_CHANGE_EVENT_TYPE","RouteChangeEvent","registerMicroFrontend","config","unmount","microFrontendId","mount","window","addEventListener","event","id","startsWith","mountPoint","payload","AppContext","React","createContext","undefined","useUser","context","useContext","assertIsDefined","user","useActiveOrgId","activeOrgId","useNavigate","navigate","AppProvider","children","organisationId","getPermissions","rest","useState","permissions","setPermissions","useEffect","fetchData","fetchedPermissions","console","error","createElement","Provider","value","Number"],"mappings":"
|
|
1
|
+
{"version":3,"file":"micro-frontend.cjs.development.js","sources":["../src/events.ts","../src/registerMicroFrontend.tsx","../src/AppProvider.tsx"],"sourcesContent":["import { MicroFrontendPayload } from './Payload';\n\ntype MountEventDetail = {\n id: string;\n mountPoint: HTMLDivElement;\n payload: MicroFrontendPayload;\n};\n\ntype UnmountEventDetail = {\n id: string;\n mountPoint: HTMLDivElement;\n};\n\nexport const MOUNT_EVENT_TYPE = '@entur-partner:mount';\nexport const UNMOUNT_EVENT_TYPE = '@entur-partner:unmount';\n\nexport interface MountEvent extends CustomEvent<MountEventDetail> {}\nexport interface UnmountEvent extends CustomEvent<UnmountEventDetail> {}\n\nexport function createMountEvent(detail: MountEventDetail) {\n return new CustomEvent<MountEventDetail>(MOUNT_EVENT_TYPE, { detail });\n}\n\nexport function createUnmountEvent(detail: UnmountEventDetail) {\n return new CustomEvent<UnmountEventDetail>(UNMOUNT_EVENT_TYPE, { detail });\n}\n\nexport const ROUTE_CHANGE_EVENT_TYPE = '@entur-partner:after-route-change';\n\nexport type RouteAction = 'PUSH' | 'POP' | 'REPLACE';\n\ntype RouteChangeEventDetail = {\n location: Location;\n action: RouteAction;\n};\n\nexport class RouteChangeEvent extends CustomEvent<RouteChangeEventDetail> {}\n","/*global EventListener*/\nimport { MicroFrontendPayload } from './Payload';\nimport {\n MountEvent,\n UnmountEvent,\n MOUNT_EVENT_TYPE,\n UNMOUNT_EVENT_TYPE,\n} from './events';\n\ninterface Config {\n microFrontendId: string;\n mount: (\n mountPoint: HTMLDivElement,\n payload: MicroFrontendPayload,\n deprecatedMountPoint: HTMLDivElement\n ) => void;\n unmount: (mountPoint: HTMLDivElement) => void;\n}\n\nexport function registerMicroFrontend(config: Config): void {\n const { unmount, microFrontendId, mount } = config;\n\n window.addEventListener(MOUNT_EVENT_TYPE, ((event: MountEvent) => {\n if (!event.detail.id.startsWith(microFrontendId)) {\n return;\n }\n mount(\n event.detail.mountPoint,\n event.detail.payload,\n event.detail.mountPoint\n );\n }) as EventListener);\n\n window.addEventListener(UNMOUNT_EVENT_TYPE, ((event: UnmountEvent) => {\n if (!event.detail.id.startsWith(microFrontendId)) {\n return;\n }\n unmount(event.detail.mountPoint);\n }) as EventListener);\n}\n","import React, { FC, ReactNode, useContext, useEffect, useState } from 'react';\nimport { assertIsDefined } from '@entur-partner/util';\nimport { Permission } from '@entur-partner/permission-client-node';\n\nimport { User } from './User';\n\ninterface AppContextType {\n getToken: () => Promise<string>;\n user: User;\n logout?: () => void;\n activeOrgId: number;\n navigate: (path: string) => void;\n}\n\nexport const AppContext = React.createContext<AppContextType | undefined>(\n undefined\n);\n\nexport const useUser = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.user;\n};\n\nexport const useActiveOrgId = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.activeOrgId;\n};\n\nexport interface AppProviderProps {\n children: ReactNode;\n getToken: () => Promise<string>;\n user: User;\n getPermissions: () => Promise<Permission[]>;\n organisationId: string;\n navigate: (path: string) => void;\n}\n\nexport const useNavigate = () => {\n const context = useContext(AppContext);\n assertIsDefined(context);\n return context.navigate;\n};\n\nexport const AppProvider: FC<AppProviderProps> = ({\n children,\n organisationId,\n getPermissions,\n ...rest\n}) => {\n const [permissions, setPermissions] = useState<Permission[]>([]);\n\n useEffect(() => {\n async function fetchData() {\n try {\n const fetchedPermissions = await getPermissions();\n setPermissions(fetchedPermissions);\n } catch (error) {\n console.error(\n 'Fetching permissions with the provided getPermissions function failed in AppProvider with the following error:',\n error\n );\n }\n }\n\n fetchData();\n }, [getPermissions]);\n\n return (\n <AppContext.Provider\n value={{\n ...rest,\n user: { ...rest.user, permissions: permissions },\n activeOrgId: Number(organisationId),\n }}\n >\n {children}\n </AppContext.Provider>\n );\n};\n"],"names":["MOUNT_EVENT_TYPE","UNMOUNT_EVENT_TYPE","createMountEvent","detail","CustomEvent","createUnmountEvent","ROUTE_CHANGE_EVENT_TYPE","RouteChangeEvent","_CustomEvent","_inheritsLoose","apply","arguments","_wrapNativeSuper","registerMicroFrontend","config","unmount","microFrontendId","mount","window","addEventListener","event","id","startsWith","mountPoint","payload","AppContext","React","createContext","undefined","useUser","context","useContext","assertIsDefined","user","useActiveOrgId","activeOrgId","useNavigate","navigate","AppProvider","_ref","children","organisationId","getPermissions","rest","_objectWithoutPropertiesLoose","_excluded","_useState","useState","permissions","setPermissions","useEffect","fetchData","_fetchData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","fetchedPermissions","wrap","_callee$","_context","prev","next","sent","t0","console","error","stop","createElement","Provider","value","_extends","Number"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaO,IAAMA,gBAAgB,GAAG,uBAAsB;AAC/C,IAAMC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