@itwin/core-frontend 5.1.0-dev.14 → 5.1.0-dev.15
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;;;;;;;;AAY/F,gCAGC;AAbD;;;;;;;;;GASG;AACI,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;;;;;;;;;;;;;;;;;;;;;;;AAY/F,gCAGC;AAbD;;;;;;;;;GASG;AACI,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,yBAA0D,KAAK,uCAAC,CAAC;IAChF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,8CAA8C;AAC9C,SAAS,OAAO,CAAC,CAAM;IACrB,IAAI,OAAO,CAAC,KAAK,UAAU;QACzB,OAAO,CAAC,EAAE,CAAC;IACb,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU;QACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU;QAC9C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/**\n * Imports and executes a bundled javascript (esm) module.\n * Used by remote and service Extensions.\n * Throws an error if no function is found to execute.\n * Looks for a function in the following order:\n * - the module itself.\n * - the module's main export.\n * - the module's default export.\n * @internal\n */\nexport async function loadScript(jsUrl: string): Promise<any> {\n const module = await import(/* webpackIgnore: true */ /* @vite-ignore */ jsUrl);\n return execute(module);\n}\n\n/** attempts to execute an extension module */\nfunction execute(m: any) {\n if (typeof m === \"function\")\n return m();\n if (m.main && typeof m.main === \"function\")\n return m.main();\n if (m.default && typeof m.default === \"function\")\n return m.default();\n throw new Error(\n `Failed to execute extension. No default function was found to execute.`,\n );\n}\n"]}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
15
|
export async function loadScript(jsUrl) {
|
|
16
|
-
const module = await import(/* @vite-ignore */ jsUrl);
|
|
16
|
+
const module = await import(/* webpackIgnore: true */ /* @vite-ignore */ jsUrl);
|
|
17
17
|
return execute(module);
|
|
18
18
|
}
|
|
19
19
|
/** attempts to execute an extension module */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ExtensionLoadScript.js","sourceRoot":"","sources":["../../../../src/extension/providers/ExtensionLoadScript.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,KAAa;IAC5C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAChF,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED,8CAA8C;AAC9C,SAAS,OAAO,CAAC,CAAM;IACrB,IAAI,OAAO,CAAC,KAAK,UAAU;QACzB,OAAO,CAAC,EAAE,CAAC;IACb,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU;QACxC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU;QAC9C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;IACrB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n\n/**\n * Imports and executes a bundled javascript (esm) module.\n * Used by remote and service Extensions.\n * Throws an error if no function is found to execute.\n * Looks for a function in the following order:\n * - the module itself.\n * - the module's main export.\n * - the module's default export.\n * @internal\n */\nexport async function loadScript(jsUrl: string): Promise<any> {\n const module = await import(/* webpackIgnore: true */ /* @vite-ignore */ jsUrl);\n return execute(module);\n}\n\n/** attempts to execute an extension module */\nfunction execute(m: any) {\n if (typeof m === \"function\")\n return m();\n if (m.main && typeof m.main === \"function\")\n return m.main();\n if (m.default && typeof m.default === \"function\")\n return m.default();\n throw new Error(\n `Failed to execute extension. No default function was found to execute.`,\n );\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-frontend",
|
|
3
|
-
"version": "5.1.0-dev.
|
|
3
|
+
"version": "5.1.0-dev.15",
|
|
4
4
|
"description": "iTwin.js frontend components",
|
|
5
5
|
"main": "lib/cjs/core-frontend.js",
|
|
6
6
|
"module": "lib/esm/core-frontend.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"url": "http://www.bentley.com"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@itwin/appui-abstract": "5.1.0-dev.
|
|
27
|
-
"@itwin/core-bentley": "5.1.0-dev.
|
|
28
|
-
"@itwin/core-common": "5.1.0-dev.
|
|
29
|
-
"@itwin/core-
|
|
30
|
-
"@itwin/core-
|
|
31
|
-
"@itwin/core-
|
|
32
|
-
"@itwin/ecschema-metadata": "5.1.0-dev.
|
|
33
|
-
"@itwin/ecschema-rpcinterface-common": "5.1.0-dev.
|
|
26
|
+
"@itwin/appui-abstract": "5.1.0-dev.15",
|
|
27
|
+
"@itwin/core-bentley": "5.1.0-dev.15",
|
|
28
|
+
"@itwin/core-common": "5.1.0-dev.15",
|
|
29
|
+
"@itwin/core-geometry": "5.1.0-dev.15",
|
|
30
|
+
"@itwin/core-quantity": "5.1.0-dev.15",
|
|
31
|
+
"@itwin/core-orbitgt": "5.1.0-dev.15",
|
|
32
|
+
"@itwin/ecschema-metadata": "5.1.0-dev.15",
|
|
33
|
+
"@itwin/ecschema-rpcinterface-common": "5.1.0-dev.15"
|
|
34
34
|
},
|
|
35
35
|
"//devDependencies": [
|
|
36
36
|
"NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install",
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"vite-multiple-assets": "^1.3.1",
|
|
54
54
|
"vite-plugin-static-copy": "2.2.0",
|
|
55
55
|
"webpack": "^5.97.1",
|
|
56
|
-
"@itwin/
|
|
57
|
-
"@itwin/
|
|
58
|
-
"@itwin/
|
|
59
|
-
"@itwin/core-common": "5.1.0-dev.
|
|
60
|
-
"@itwin/
|
|
61
|
-
"@itwin/ecschema-
|
|
62
|
-
"@itwin/core-
|
|
63
|
-
"@itwin/core-
|
|
64
|
-
"@itwin/
|
|
56
|
+
"@itwin/appui-abstract": "5.1.0-dev.15",
|
|
57
|
+
"@itwin/build-tools": "5.1.0-dev.15",
|
|
58
|
+
"@itwin/core-orbitgt": "5.1.0-dev.15",
|
|
59
|
+
"@itwin/core-common": "5.1.0-dev.15",
|
|
60
|
+
"@itwin/ecschema-metadata": "5.1.0-dev.15",
|
|
61
|
+
"@itwin/ecschema-rpcinterface-common": "5.1.0-dev.15",
|
|
62
|
+
"@itwin/core-geometry": "5.1.0-dev.15",
|
|
63
|
+
"@itwin/core-quantity": "5.1.0-dev.15",
|
|
64
|
+
"@itwin/core-bentley": "5.1.0-dev.15"
|
|
65
65
|
},
|
|
66
66
|
"//dependencies": [
|
|
67
67
|
"NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@loaders.gl/draco": "^3.1.6",
|
|
75
75
|
"fuse.js": "^3.3.0",
|
|
76
76
|
"wms-capabilities": "0.4.0",
|
|
77
|
-
"@itwin/core-i18n": "5.1.0-dev.
|
|
78
|
-
"@itwin/webgl-compatibility": "5.1.0-dev.
|
|
77
|
+
"@itwin/core-i18n": "5.1.0-dev.15",
|
|
78
|
+
"@itwin/webgl-compatibility": "5.1.0-dev.15"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers",
|