@genesislcap/foundation-shell 14.197.0-ng.2 → 14.197.1-alpha-bd261ef.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/215.215.4d15a7333e0070b7346a.js +2 -0
- package/dist/215.7def5d325f98534dca7a2f1d6e68d2df.js.map +1 -0
- package/dist/{653.2d6f903c2b917b4b5ea2ecd3beb11774.js.map → 653.5fee96aa5ae4697c0fcb1c85d0c6b1fe.js.map} +1 -1
- package/dist/{653.653.3ad4993346890040fc21.js → 653.653.a9de01f2a74201079fd8.js} +2 -2
- package/dist/705.705.7da73f704d94d0590fa4.js +20 -0
- package/dist/705.ef882a6401940f357de055f665629b6b.js.map +1 -0
- package/dist/816.816.913409256d123ccc197f.js +2 -0
- package/dist/{816.bfd6fa9d851aea58fcbb84267281924e.js.map → 816.9feaa2f412f97296614244eebf1f91b3.js.map} +1 -1
- package/dist/InjectManifest.0f9462e79479884fc2d57bb3645af85f.js.map +1 -0
- package/dist/dts/app/app.d.ts.map +1 -1
- package/dist/dts/app/behaviors.d.ts +2 -1
- package/dist/dts/app/behaviors.d.ts.map +1 -1
- package/dist/dts/app/config.d.ts +1 -1
- package/dist/dts/app/config.d.ts.map +1 -1
- package/dist/dts/app/types.d.ts +10 -16
- package/dist/dts/app/types.d.ts.map +1 -1
- package/dist/dts/app/utils.d.ts +1 -1
- package/dist/dts/app/utils.d.ts.map +1 -1
- package/dist/dts/layouts/default/layout.d.ts +52 -0
- package/dist/dts/layouts/default/layout.d.ts.map +1 -0
- package/dist/dts/layouts/formatsExample/layout.d.ts +52 -0
- package/dist/dts/layouts/formatsExample/layout.d.ts.map +1 -0
- package/dist/dts/main/bootstrap.d.ts +2 -0
- package/dist/dts/main/bootstrap.d.ts.map +1 -0
- package/dist/dts/main/main.d.ts +1 -1
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts +4 -3
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/pbc/webpack/exports.d.ts.map +1 -1
- package/dist/esm/app/app.js +2 -1
- package/dist/esm/app/behaviors.js +1 -1
- package/dist/esm/app/config.js +2 -4
- package/dist/esm/app/utils.js +1 -1
- package/dist/esm/layouts/default/layout.js +69 -0
- package/dist/esm/layouts/formatsExample/layout.js +69 -0
- package/dist/esm/main/bootstrap.js +35 -0
- package/dist/esm/main/main.js +1 -1
- package/dist/esm/main/main.styles.js +1 -1
- package/dist/esm/main/main.template.js +1 -1
- package/dist/esm/pbc/webpack/exports.js +6 -24
- package/dist/foundation-shell.api.json +17 -38
- package/dist/foundation-shell.d.ts +21 -31
- package/dist/foundationShell.1f062cfb19b626f2cf533cc1927f8281.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.86988dc12e09156f31f03ac60982ab72.js.map +1 -0
- package/dist/main.9effe0491a9538ebe284.js +2 -0
- package/dist/npm.microsoft.544.8af3a36a8a0101fc2be0.js +2 -0
- package/dist/npm.microsoft.e1448e9854bd3d184acd40bf98db9ba9.js.map +1 -0
- package/dist/remoteEntry.js +2 -2
- package/dist/sw.js +2 -2
- package/dist/swRegistration.62e445367929dbd7e70f.js +2 -0
- package/dist/swRegistration.d7c645578557ca54d0a2775136b8b0ae.js.map +1 -0
- package/docs/api/foundation-shell.appcontext.md +1 -4
- package/docs/api/foundation-shell.appelement.md +0 -1
- package/docs/api/foundation-shell.approute.md +1 -1
- package/docs/api/foundation-shell.appstore.md +1 -1
- package/docs/api/foundation-shell.dynamictemplate.md +1 -1
- package/docs/api/foundation-shell.loadingtemplate.md +1 -1
- package/docs/api/foundation-shell.maintemplate.md +1 -1
- package/docs/api-report.md +15 -22
- package/package.json +19 -14
- package/dist/118.011ddae571e6415212fda2026ecd797e.js.map +0 -1
- package/dist/118.118.25633f009b56c60fe3b7.js +0 -3
- package/dist/118.118.25633f009b56c60fe3b7.js.LICENSE.txt +0 -4
- package/dist/296.296.c039e3b693325ca815e4.js +0 -3
- package/dist/296.296.c039e3b693325ca815e4.js.LICENSE.txt +0 -4
- package/dist/296.ff8f950c7a332f70975a3eac38862a84.js.map +0 -1
- package/dist/705.705.887dea7ac9d6cc2c0db1.js +0 -20
- package/dist/705.d795f35b7ad4b337c7a40230e140220e.js.map +0 -1
- package/dist/816.816.8667f42cbcef4de7366b.js +0 -2
- package/dist/InjectManifest.803585ff0fdf2b3a18ca7fa58d5ff4cd.js.map +0 -1
- package/dist/foundationShell.3f3810ea75c0e93771b7e97497dafc11.js.map +0 -1
- package/dist/main.38658a7330c4c69ec1db.js +0 -2
- package/dist/main.83744707aea2d2fe041f931f46f0f51f.js.map +0 -1
- package/dist/npm.microsoft.544.4665f3d68b60338a25da.js +0 -6402
- package/dist/npm.microsoft.8d3dc25c4c9b4089a7fdfe04befb6293.js.map +0 -1
- package/dist/swRegistration.68b2e720d5322574644a.js +0 -2
- package/dist/swRegistration.6fdfe610fbec4c3f3e84b9d61354d259.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app/app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app/app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwC,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EAEV,WAAW,EACX,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAGjB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,GAAI,SAAQ,SAAS,EAAE,WAAW,EAAE,WAAW;IAC9D;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,cAAc,CAAC,MAAM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,CAAC,OAAO,KAAA;IAQ1B;;;;;OAKG;IACH,OAAO,CAAC,OAAO,KAAA;IAIf,uCAAuC;IACvC,cAAc,CAAC,MAAM,KAAA;IAcrB,yCAAyC;IACzC,gBAAgB;IAShB,kCAAkC;IAClC,SAAS;CAUV;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,GAAG,2DAA0D,CAAC;AAE3E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,IAAI,GAAG,CAE5B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { StoreRoot } from '@genesislcap/foundation-store';
|
|
2
2
|
import type { FoundationRouteCollection } from '@genesislcap/foundation-ui';
|
|
3
|
-
import { Behavior
|
|
3
|
+
import { Behavior } from '@microsoft/fast-element';
|
|
4
|
+
import type { ElementStyles, FASTElement } from '@microsoft/fast-element';
|
|
4
5
|
import type { App } from './app';
|
|
5
6
|
import type { AppRoute, AppRoutePredicate, AppStore, AppStorePredicate, AppStylePredicate, AppTargetId } from './types';
|
|
6
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"behaviors.d.ts","sourceRoot":"","sources":["../../../src/app/behaviors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"behaviors.d.ts","sourceRoot":"","sources":["../../../src/app/behaviors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAc,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB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AAS,CAAC,EAAE,iBAAiB;IANzC,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAM;IACtC,SAAS,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAM;gBAG1B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,SAAS,CAAC,EAAE,iBAAiB;IAGzC,IAAI;IAKJ,MAAM;IAIN,YAAY;IAeZ,SAAS,CAAC,kBAAkB;CAY7B"}
|
package/dist/dts/app/config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/app/config.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/app/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,2BAA2B,CAAC,EAAE,aAAa,CAAC;CAC7C;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAc9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,iEAAqE,CAAC"}
|
package/dist/dts/app/types.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { StoreRoot } from '@genesislcap/foundation-store';
|
|
2
2
|
import type { FoundationRoute, FoundationRouteCollection } from '@genesislcap/foundation-ui';
|
|
3
3
|
import type { DesignSystemModule } from '@genesislcap/foundation-utils';
|
|
4
|
-
import type { Behavior, ComposableStyles,
|
|
4
|
+
import type { Behavior, ComposableStyles, RepeatOptions, ViewTemplate } from '@microsoft/fast-element';
|
|
5
|
+
import type { HasElement } from '@microsoft/fast-router';
|
|
5
6
|
/**
|
|
6
7
|
* Context passed to predicate functions and other utilities.
|
|
7
8
|
*
|
|
@@ -14,10 +15,7 @@ export type AppContext = {
|
|
|
14
15
|
env?: string;
|
|
15
16
|
domain?: string;
|
|
16
17
|
user?: {};
|
|
17
|
-
answers?: {
|
|
18
|
-
framework: string;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
18
|
+
answers?: {};
|
|
21
19
|
featureFlags?: {};
|
|
22
20
|
};
|
|
23
21
|
/**
|
|
@@ -244,10 +242,6 @@ export type AppElement<TSource = any, TParent = any, TTarget = string> = HasTarg
|
|
|
244
242
|
* Not currently used. We could mirror https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement#position here.
|
|
245
243
|
*/
|
|
246
244
|
slotId?: string;
|
|
247
|
-
/**
|
|
248
|
-
* Unknown keys to aid integration testing for now.
|
|
249
|
-
*/
|
|
250
|
-
[key: string]: any;
|
|
251
245
|
};
|
|
252
246
|
/**
|
|
253
247
|
* @example
|
|
@@ -284,7 +278,7 @@ export type AppElement<TSource = any, TParent = any, TTarget = string> = HasTarg
|
|
|
284
278
|
*
|
|
285
279
|
* @public
|
|
286
280
|
*/
|
|
287
|
-
export type AppRoute = FoundationRoute &
|
|
281
|
+
export type AppRoute = FoundationRoute & HasElement & HasPredicate;
|
|
288
282
|
/**
|
|
289
283
|
* @example
|
|
290
284
|
* AppStore definition example.
|
|
@@ -294,7 +288,7 @@ export type AppRoute = FoundationRoute & HasTitle & HasElement & HasPredicate;
|
|
|
294
288
|
* // Setup the foundation stores your PBC needs to function, then include the following for each:
|
|
295
289
|
*
|
|
296
290
|
* export function getNotifyStore(): NotifyStore {
|
|
297
|
-
* return DI.getOrCreateDOMContainer().get(NotifyStore)
|
|
291
|
+
* return DI.getOrCreateDOMContainer().get(NotifyStore);
|
|
298
292
|
* }
|
|
299
293
|
*
|
|
300
294
|
* // The actual `AppStore` definition
|
|
@@ -404,7 +398,7 @@ export type AppStorePredicate = (store: AppStore, context?: AppContext) => boole
|
|
|
404
398
|
* Determine if {@link AppElement} should be included during runtime integration.
|
|
405
399
|
*
|
|
406
400
|
* Provides app, micro frontend, and seed author fine-grained control over what assets they will accept in their
|
|
407
|
-
* target integration points. This is a similar concept to {@link @
|
|
401
|
+
* target integration points. This is a similar concept to {@link @microsoft/fast-element#ElementsFilter} which may be
|
|
408
402
|
* applied to slotted content. For example the accordion accepts slotted accordionItems only.
|
|
409
403
|
*
|
|
410
404
|
* @public
|
|
@@ -495,7 +489,7 @@ export type RegisterStoreRoot = (storeRoot: StoreRoot, predicate?: AppStorePredi
|
|
|
495
489
|
* API for Application and Seed authors to define dynamic {@link AppElement} integration points.
|
|
496
490
|
*
|
|
497
491
|
* @example
|
|
498
|
-
* Register elements targets within a {@link @
|
|
492
|
+
* Register elements targets within a {@link @microsoft/fast-element#html | html} template literal. An array can be used
|
|
499
493
|
* to integrate assets targeting N number of targets to the one integration location, ie. `['layout', 'layout-end']`.
|
|
500
494
|
* ```ts
|
|
501
495
|
* html`
|
|
@@ -517,7 +511,7 @@ export type RegisterStoreRoot = (storeRoot: StoreRoot, predicate?: AppStorePredi
|
|
|
517
511
|
*
|
|
518
512
|
* @param targetId - {@link AppTargetId}.
|
|
519
513
|
* @param predicate - Optional {@link AppElementPredicate}.
|
|
520
|
-
* @returns A {@link @
|
|
514
|
+
* @returns A {@link @microsoft/fast-element#html | html} fragment that will stay in sync as elements are registered and deregistered.
|
|
521
515
|
*
|
|
522
516
|
* @public
|
|
523
517
|
*/
|
|
@@ -526,7 +520,7 @@ export type RegisterElementsTarget = <T = string>(targetId: AppTargetId<T>, pred
|
|
|
526
520
|
* API for Application and Seed authors to define dynamic {@link AppStyle} integration points.
|
|
527
521
|
*
|
|
528
522
|
* @example
|
|
529
|
-
* Register styles targets as a {@link @
|
|
523
|
+
* Register styles targets as a {@link @microsoft/fast-element#Behavior | Behavior} on a {@link @microsoft/fast-element#css | css} definition.
|
|
530
524
|
* ```ts
|
|
531
525
|
* export const MainStyles = css`
|
|
532
526
|
* :host {
|
|
@@ -537,7 +531,7 @@ export type RegisterElementsTarget = <T = string>(targetId: AppTargetId<T>, pred
|
|
|
537
531
|
*
|
|
538
532
|
* @param targetId - {@link AppTargetId}.
|
|
539
533
|
* @param predicate - Optional {@link AppStylePredicate}.
|
|
540
|
-
* @returns A {@link @
|
|
534
|
+
* @returns A {@link @microsoft/fast-element#Behavior | Behavior} that will stay in sync as styles are registered and deregistered.
|
|
541
535
|
*
|
|
542
536
|
* @public
|
|
543
537
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/app/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/app/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,YAAY,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,EAAE,CAAC;IACV,OAAO,CAAC,EAAE,EAAE,CAAC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,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC;CAC/C"}
|
package/dist/dts/app/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComposableStyles, ViewTemplate } from '@
|
|
1
|
+
import { ComposableStyles, ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { AppContext, AppElement, AppMetadata, AppRegistration, AppRoute, AppStore, AppStyle, AppTargetId, AppTokenTypePredicate, HasPredicate, HasTarget } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* @param token - A module export token.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/app/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/app/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,YAAY,EACZ,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAGlE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAG5D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAG5D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAQhE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAK5D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAI5E;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,0CAGvB,UAAU,KAClB,OAA+E,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAW,SAAS,YAAY,WAAW,YACkB,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,YAAY,WAAW,UAAU,YACE,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,8BAC3B,GAAG,aACA,qBAAqB,QAoBjC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare function _exports(authToken: any, loggedInUser: any): {
|
|
2
|
+
mode: string;
|
|
3
|
+
base: string;
|
|
4
|
+
containerEl: string;
|
|
5
|
+
routes: ({
|
|
6
|
+
type: string;
|
|
7
|
+
attrs: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
routes: {
|
|
12
|
+
type: string;
|
|
13
|
+
name: string;
|
|
14
|
+
error: string;
|
|
15
|
+
loader: string;
|
|
16
|
+
}[];
|
|
17
|
+
} | {
|
|
18
|
+
type: string;
|
|
19
|
+
attrs: {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
routes: ({
|
|
24
|
+
type: string;
|
|
25
|
+
path: string;
|
|
26
|
+
routes: {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
error: string;
|
|
30
|
+
loader: string;
|
|
31
|
+
props: {
|
|
32
|
+
authToken: any;
|
|
33
|
+
loggedInUser: any;
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
default?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
type: string;
|
|
39
|
+
default: boolean;
|
|
40
|
+
routes: {
|
|
41
|
+
type: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
44
|
+
path?: undefined;
|
|
45
|
+
})[];
|
|
46
|
+
})[];
|
|
47
|
+
redirects: {
|
|
48
|
+
'/old-settings': string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export = _exports;
|
|
52
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/layouts/default/layout.js"],"names":[],"mappings":"AAMiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Df"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare function _exports(authToken: any, loggedInUser: any): {
|
|
2
|
+
mode: string;
|
|
3
|
+
base: string;
|
|
4
|
+
containerEl: string;
|
|
5
|
+
routes: ({
|
|
6
|
+
type: string;
|
|
7
|
+
attrs: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
routes: {
|
|
12
|
+
type: string;
|
|
13
|
+
name: string;
|
|
14
|
+
error: string;
|
|
15
|
+
loader: string;
|
|
16
|
+
}[];
|
|
17
|
+
} | {
|
|
18
|
+
type: string;
|
|
19
|
+
attrs: {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}[];
|
|
23
|
+
routes: ({
|
|
24
|
+
type: string;
|
|
25
|
+
path: string;
|
|
26
|
+
routes: {
|
|
27
|
+
type: string;
|
|
28
|
+
name: string;
|
|
29
|
+
error: string;
|
|
30
|
+
loader: string;
|
|
31
|
+
props: {
|
|
32
|
+
authToken: any;
|
|
33
|
+
loggedInUser: any;
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
default?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
type: string;
|
|
39
|
+
default: boolean;
|
|
40
|
+
routes: {
|
|
41
|
+
type: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}[];
|
|
44
|
+
path?: undefined;
|
|
45
|
+
})[];
|
|
46
|
+
})[];
|
|
47
|
+
redirects: {
|
|
48
|
+
'/old-settings': string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export = _exports;
|
|
52
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/layouts/formatsExample/layout.js"],"names":[],"mappings":"AAMiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../src/main/bootstrap.ts"],"names":[],"mappings":""}
|
package/dist/dts/main/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAOjF;;GAEG;AACH,qBAKa,eAAgB,SAAQ,WAAW;IAClC,KAAK,EAAE,OAAO,CAAS;IAE5B,iBAAiB;IAMjB,cAAc;CAGtB"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
1
2
|
import type { MainApplication } from './main';
|
|
2
3
|
/**
|
|
3
4
|
* @public
|
|
4
5
|
*/
|
|
5
|
-
export declare const DynamicTemplate:
|
|
6
|
+
export declare const DynamicTemplate: ViewTemplate<MainApplication>;
|
|
6
7
|
/**
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
9
|
-
export declare const LoadingTemplate:
|
|
10
|
+
export declare const LoadingTemplate: ViewTemplate<MainApplication>;
|
|
10
11
|
/**
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
|
-
export declare const MainTemplate:
|
|
14
|
+
export declare const MainTemplate: ViewTemplate<MainApplication>;
|
|
14
15
|
//# sourceMappingURL=main.template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"main.template.d.ts","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,eAAe,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,eAAe,CAEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,eAAe,CAGtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/webpack/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/webpack/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,eAGpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mBAGzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAA+E,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,QAAQ,gCAGpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,oBAA+E,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,MAAM,iBAA+E,CAAC"}
|
package/dist/esm/app/app.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { html,
|
|
2
|
+
import { html, observable, repeat } from '@microsoft/fast-element';
|
|
3
|
+
import { DI } from '@microsoft/fast-foundation';
|
|
3
4
|
import { AppRoutesBehavior, AppStoresBehavior, AppStylesTargetBehavior } from './behaviors';
|
|
4
5
|
import { AppConfig } from './config';
|
|
5
6
|
import { assetPredicate, registrationPredicate, targetIdPredicate } from './utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toElementStyles } from '@genesislcap/foundation-utils';
|
|
2
|
-
import { Observable } from '@
|
|
2
|
+
import { Observable } from '@microsoft/fast-element';
|
|
3
3
|
import { assetPredicate, registrationPredicate, targetIdPredicate } from './utils';
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
package/dist/esm/app/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DI } from '@
|
|
1
|
+
import { DI } from '@microsoft/fast-foundation';
|
|
2
2
|
/**
|
|
3
3
|
* Default AppConfig DI implementation.
|
|
4
4
|
* @public
|
|
@@ -11,9 +11,7 @@ export const defaultAppConfig = {
|
|
|
11
11
|
env: 'development',
|
|
12
12
|
domain: location.hostname,
|
|
13
13
|
user: {},
|
|
14
|
-
answers: {
|
|
15
|
-
framework: 'webcomponents',
|
|
16
|
-
},
|
|
14
|
+
answers: {},
|
|
17
15
|
featureFlags: {},
|
|
18
16
|
},
|
|
19
17
|
defaultElementRepeatOptions: {
|
package/dist/esm/app/utils.js
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const elementLoader = `<div className="loading">Loading...</div>`;
|
|
2
|
+
const appLoader = `<div className="loading">Loading...</div>`;
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
module.exports = (authToken, loggedInUser) => ({
|
|
7
|
+
mode: 'history',
|
|
8
|
+
base: '/',
|
|
9
|
+
containerEl: '#app',
|
|
10
|
+
routes: [
|
|
11
|
+
{
|
|
12
|
+
type: 'nav',
|
|
13
|
+
attrs: [
|
|
14
|
+
{
|
|
15
|
+
name: 'class',
|
|
16
|
+
value: 'header',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
routes: [
|
|
20
|
+
{
|
|
21
|
+
type: 'application',
|
|
22
|
+
name: '@genesislcap/foundation-header',
|
|
23
|
+
error: "<h1>Oops! The header isn't working right now</h1>",
|
|
24
|
+
loader: elementLoader,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'div',
|
|
30
|
+
attrs: [
|
|
31
|
+
{
|
|
32
|
+
name: 'class',
|
|
33
|
+
value: 'main-content',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
routes: [
|
|
37
|
+
{
|
|
38
|
+
type: 'route',
|
|
39
|
+
path: 'settings',
|
|
40
|
+
routes: [
|
|
41
|
+
{
|
|
42
|
+
type: 'application',
|
|
43
|
+
name: '@genesislcap/foundation-settings',
|
|
44
|
+
error: "<h1>Oops! The settings isn't working right now</h1>",
|
|
45
|
+
loader: appLoader,
|
|
46
|
+
props: {
|
|
47
|
+
authToken,
|
|
48
|
+
loggedInUser,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'route',
|
|
55
|
+
default: true,
|
|
56
|
+
routes: [
|
|
57
|
+
{
|
|
58
|
+
type: 'h1',
|
|
59
|
+
value: '404 Not Found',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
redirects: {
|
|
67
|
+
'/old-settings': '/settings',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const elementLoader = `<div className="loading">Loading...</div>`;
|
|
2
|
+
const appLoader = `<div className="loading">Loading...</div>`;
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
module.exports = (authToken, loggedInUser) => ({
|
|
7
|
+
mode: 'history',
|
|
8
|
+
base: '/',
|
|
9
|
+
containerEl: '#app',
|
|
10
|
+
routes: [
|
|
11
|
+
{
|
|
12
|
+
type: 'nav',
|
|
13
|
+
attrs: [
|
|
14
|
+
{
|
|
15
|
+
name: 'class',
|
|
16
|
+
value: 'header',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
routes: [
|
|
20
|
+
{
|
|
21
|
+
type: 'application',
|
|
22
|
+
name: '@genesislcap/foundation-header',
|
|
23
|
+
error: "<h1>Oops! The header isn't working right now</h1>",
|
|
24
|
+
loader: elementLoader,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'div',
|
|
30
|
+
attrs: [
|
|
31
|
+
{
|
|
32
|
+
name: 'class',
|
|
33
|
+
value: 'main-content',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
routes: [
|
|
37
|
+
{
|
|
38
|
+
type: 'route',
|
|
39
|
+
path: 'settings',
|
|
40
|
+
routes: [
|
|
41
|
+
{
|
|
42
|
+
type: 'application',
|
|
43
|
+
name: '@genesislcap/foundation-settings',
|
|
44
|
+
error: "<h1>Oops! The settings isn't working right now</h1>",
|
|
45
|
+
loader: appLoader,
|
|
46
|
+
props: {
|
|
47
|
+
authToken,
|
|
48
|
+
loggedInUser,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'route',
|
|
55
|
+
default: true,
|
|
56
|
+
routes: [
|
|
57
|
+
{
|
|
58
|
+
type: 'h1',
|
|
59
|
+
value: '404 Not Found',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
redirects: {
|
|
67
|
+
'/old-settings': '/settings',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { registerApplication, start } from 'single-spa';
|
|
2
|
+
import { constructApplications, constructRoutes, constructLayoutEngine } from 'single-spa-layout';
|
|
3
|
+
// TODO: WIP, finish
|
|
4
|
+
/**
|
|
5
|
+
* This won't exist yet, not published anywhere.
|
|
6
|
+
*/
|
|
7
|
+
// import Header from '@genesislcap/foundation-header/header';
|
|
8
|
+
// Header;
|
|
9
|
+
const templateElement = document.querySelector('#foundation-shell');
|
|
10
|
+
const layoutData = {
|
|
11
|
+
loaders: {
|
|
12
|
+
element: `<div class="loading">Loading...</div>`,
|
|
13
|
+
app: `<div class="loading">Loading...</div>`,
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
authToken: `fds789dsfyuiosodusfd`,
|
|
17
|
+
loggedInUser: ``, // fetch('/api/logged-in-user').then(r => r.json())
|
|
18
|
+
},
|
|
19
|
+
errors: {
|
|
20
|
+
header: `<h1>Oops! The header isn't working right now</h1>`,
|
|
21
|
+
settings: `<h1>Oops! Settings isn't working right now</h1>`,
|
|
22
|
+
footer: `<h1>Oops! The footer isn't working right now</h1>`,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const routes = constructRoutes(templateElement, layoutData);
|
|
26
|
+
const applications = constructApplications({
|
|
27
|
+
routes,
|
|
28
|
+
loadApp({ name }) {
|
|
29
|
+
return import(name);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const layoutEngine = constructLayoutEngine({ routes, applications });
|
|
33
|
+
applications.forEach(registerApplication);
|
|
34
|
+
layoutEngine.activate();
|
|
35
|
+
start();
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { customElement, FASTElement, observable } from '@
|
|
2
|
+
import { customElement, FASTElement, observable } from '@microsoft/fast-element';
|
|
3
3
|
import { logger } from '../utils';
|
|
4
4
|
import { MainStyles as styles } from './main.styles';
|
|
5
5
|
import { DynamicTemplate as template, LoadingTemplate, MainTemplate } from './main.template';
|
|
@@ -3,42 +3,24 @@ import { importAll } from './utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export const metadata = importAll(
|
|
7
|
-
regExp: /^.\/\w+\/metadata\.ts$/,
|
|
8
|
-
recursive: true,
|
|
9
|
-
}), isAppMetadata);
|
|
6
|
+
export const metadata = importAll(require.context('pbc', true, /metadata\.ts$/), isAppMetadata);
|
|
10
7
|
/**
|
|
11
8
|
* @public
|
|
12
9
|
*/
|
|
13
|
-
export const registrations = importAll(
|
|
14
|
-
regExp: /^.\/\w+\/registrations\.ts$/,
|
|
15
|
-
recursive: true,
|
|
16
|
-
}), isAppRegistration);
|
|
10
|
+
export const registrations = importAll(require.context('pbc', true, /registrations\.ts$/), isAppRegistration);
|
|
17
11
|
/**
|
|
18
12
|
* @public
|
|
19
13
|
*/
|
|
20
|
-
export const routes = importAll(
|
|
21
|
-
regExp: /^.\/\w+\/routes\.ts$/,
|
|
22
|
-
recursive: true,
|
|
23
|
-
}), isAppRoute);
|
|
14
|
+
export const routes = importAll(require.context('pbc', true, /routes\.ts$/), isAppRoute);
|
|
24
15
|
/**
|
|
25
16
|
* @public
|
|
26
17
|
*/
|
|
27
|
-
export const elements = importAll(
|
|
28
|
-
regExp: /^.\/\w+\/elements\.ts$/,
|
|
29
|
-
recursive: true,
|
|
30
|
-
}), isAppElement);
|
|
18
|
+
export const elements = importAll(require.context('pbc', true, /elements\.ts$/), isAppElement);
|
|
31
19
|
/**
|
|
32
20
|
* @public
|
|
33
21
|
*/
|
|
34
|
-
export const styles = importAll(
|
|
35
|
-
regExp: /^.\/\w+\/styles\.ts$/,
|
|
36
|
-
recursive: true,
|
|
37
|
-
}), isAppStyle);
|
|
22
|
+
export const styles = importAll(require.context('pbc', true, /styles\.ts$/), isAppStyle);
|
|
38
23
|
/**
|
|
39
24
|
* @public
|
|
40
25
|
*/
|
|
41
|
-
export const stores = importAll(
|
|
42
|
-
regExp: /^.\/\w+\/stores\.ts$/,
|
|
43
|
-
recursive: true,
|
|
44
|
-
}), isAppStore);
|
|
26
|
+
export const stores = importAll(require.context('pbc', true, /stores\.ts$/), isAppStore);
|