@blocklet/pages-kit 0.6.74 → 0.6.76

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,2 +1 @@
1
- import 'es-module-shims';
2
1
  export declare function injectGlobalComponents(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.6.74",
3
+ "version": "0.6.76",
4
4
  "description": "Pages Kit components and utils for blocklet(s)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -150,7 +150,7 @@
150
150
  "yaml": "^2.5.0",
151
151
  "zod": "^3.25.76",
152
152
  "zustand": "^4.5.5",
153
- "@blocklet/pages-kit-core": "^0.6.74"
153
+ "@blocklet/pages-kit-core": "^0.6.76"
154
154
  },
155
155
  "peerDependencies": {
156
156
  "@arcblock/ux": "^3.1.39",
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.injectESModulesShimsOptions = injectESModulesShimsOptions;
4
- function injectESModulesShimsOptions(options = {}) {
5
- // if already initialized, return
6
- if (window.esmsInitOptions && !options.force) {
7
- return;
8
- }
9
- window.esmsInitOptions = {
10
- // Notice: 不要修改 shimMode 的默认值,否则可能会影响到其他 blocklet 的正常使用
11
- // default is false, do not enable es-module-shims
12
- shimMode: options.shimMode ?? false,
13
- polyfillEnable: ['css-modules', 'json-modules', 'wasm-modules', 'source-phase'],
14
- };
15
- }
16
- // enable es-module-shims
17
- injectESModulesShimsOptions();
@@ -1,14 +0,0 @@
1
- export function injectESModulesShimsOptions(options = {}) {
2
- // if already initialized, return
3
- if (window.esmsInitOptions && !options.force) {
4
- return;
5
- }
6
- window.esmsInitOptions = {
7
- // Notice: 不要修改 shimMode 的默认值,否则可能会影响到其他 blocklet 的正常使用
8
- // default is false, do not enable es-module-shims
9
- shimMode: options.shimMode ?? false,
10
- polyfillEnable: ['css-modules', 'json-modules', 'wasm-modules', 'source-phase'],
11
- };
12
- }
13
- // enable es-module-shims
14
- injectESModulesShimsOptions();
@@ -1,4 +0,0 @@
1
- export declare function injectESModulesShimsOptions(options?: {
2
- shimMode?: boolean;
3
- force?: boolean;
4
- }): void;