@genesislcap/foundation-progress-overlay 14.70.4-es2021.1 → 14.70.4-test.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
1
2
|
import { fastProgress, provideFASTDesignSystem } from '@microsoft/fast-components';
|
|
2
3
|
import { logger } from '../utils';
|
|
3
4
|
provideFASTDesignSystem().register(fastProgress());
|
|
@@ -17,25 +18,29 @@ function loadZeroFallback() {
|
|
|
17
18
|
/**
|
|
18
19
|
* Granular
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
function loadZeroDesignSystem() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let type = ResourceType.REMOTE;
|
|
24
|
+
try {
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
return yield import('foundationZero/ZeroDesignSystem');
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
type = ResourceType.LOCAL;
|
|
30
|
+
return yield loadZeroFallback();
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
logger.debug(`Using '${type}' version of foundationZero/ZeroDesignSystem`);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
33
36
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
function loadRemotes(options) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const { registerZeroDesignSystem } = yield loadZeroDesignSystem();
|
|
40
|
+
return {
|
|
41
|
+
ZeroDesignSystem: registerZeroDesignSystem(),
|
|
42
|
+
};
|
|
43
|
+
});
|
|
39
44
|
}
|
|
40
45
|
/**
|
|
41
46
|
* Ensure tree shaking doesn't remove these
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
2
|
import { PendingState } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { FASTElement, customElement, observable } from '@microsoft/fast-element';
|
|
4
4
|
import * as Components from '../components';
|
|
@@ -12,8 +12,10 @@ let MainApplication = class MainApplication extends PendingState(FASTElement) {
|
|
|
12
12
|
logger.debug(`${name} is now connected to the DOM`);
|
|
13
13
|
this.loadRemotes();
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
loadRemotes() {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
const remoteComponents = yield Components.loadRemotes({});
|
|
18
|
+
});
|
|
17
19
|
}
|
|
18
20
|
providerChanged() {
|
|
19
21
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-progress-overlay",
|
|
3
3
|
"description": "Genesis Foundation Progress Overlay",
|
|
4
|
-
"version": "14.70.4-
|
|
4
|
+
"version": "14.70.4-test.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/tbd.js",
|
|
7
7
|
"config": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"serve": "genx serve"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@genesislcap/genx": "14.70.4-
|
|
33
|
+
"@genesislcap/genx": "14.70.4-test.1",
|
|
34
34
|
"rimraf": "^3.0.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@genesislcap/foundation-utils": "14.70.4-
|
|
38
|
-
"@genesislcap/foundation-zero": "14.70.4-
|
|
37
|
+
"@genesislcap/foundation-utils": "14.70.4-test.1",
|
|
38
|
+
"@genesislcap/foundation-zero": "14.70.4-test.1",
|
|
39
39
|
"@microsoft/fast-components": "^2.21.3",
|
|
40
40
|
"@microsoft/fast-element": "^1.7.0",
|
|
41
41
|
"tslib": "^2.3.1"
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "2414c66a7a84c61343d756e240cb4140d82f1311"
|
|
52
52
|
}
|