@blocklet/pages-kit 0.2.240 → 0.2.241

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.
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("react-router-dom"), exports);
@@ -29,6 +29,7 @@ const builtinMuiLab = __importStar(require("../builtin/mui/lab"));
29
29
  const builtinMuiMaterial = __importStar(require("../builtin/mui/material"));
30
30
  const builtinReact = __importStar(require("../builtin/react"));
31
31
  const builtinReactHookForm = __importStar(require("../builtin/react-hook-form"));
32
+ const reactRouterDOM = __importStar(require("../builtin/react-router-dom"));
32
33
  const reactWrapBalancer = __importStar(require("../builtin/react-wrap-balancer"));
33
34
  const session = __importStar(require("../builtin/session"));
34
35
  const stream = __importStar(require("../builtin/stream"));
@@ -52,6 +53,7 @@ function injectGlobalComponents() {
52
53
  '@blocklet/pages-kit/builtin/call': call,
53
54
  '@blocklet/pages-kit/builtin/stream': stream,
54
55
  '@blocklet/pages-kit/builtin/session': session,
56
+ '@blocklet/pages-kit/builtin/react-router-dom': reactRouterDOM,
55
57
  },
56
58
  require(module) {
57
59
  return win[builtin_1.BuiltinModulesGlobalVariableName].modules[module];
@@ -72,7 +72,7 @@ function parsePropertyValue(property, value, { locale, defaultLocale }) {
72
72
  }
73
73
  }
74
74
  if (property.type === 'component') {
75
- const componentId = (value === null || value === void 0 ? void 0 : value.componentId) || property.componentId;
75
+ const componentId = value === null || value === void 0 ? void 0 : value.componentId;
76
76
  if (typeof componentId !== 'string')
77
77
  return undefined;
78
78
  const { locales } = property;
@@ -0,0 +1 @@
1
+ export * from 'react-router-dom';
@@ -4,6 +4,7 @@ import * as builtinMuiLab from '../builtin/mui/lab';
4
4
  import * as builtinMuiMaterial from '../builtin/mui/material';
5
5
  import * as builtinReact from '../builtin/react';
6
6
  import * as builtinReactHookForm from '../builtin/react-hook-form';
7
+ import * as reactRouterDOM from '../builtin/react-router-dom';
7
8
  import * as reactWrapBalancer from '../builtin/react-wrap-balancer';
8
9
  import * as session from '../builtin/session';
9
10
  import * as stream from '../builtin/stream';
@@ -27,6 +28,7 @@ function injectGlobalComponents() {
27
28
  '@blocklet/pages-kit/builtin/call': call,
28
29
  '@blocklet/pages-kit/builtin/stream': stream,
29
30
  '@blocklet/pages-kit/builtin/session': session,
31
+ '@blocklet/pages-kit/builtin/react-router-dom': reactRouterDOM,
30
32
  },
31
33
  require(module) {
32
34
  return win[BuiltinModulesGlobalVariableName].modules[module];
@@ -67,7 +67,7 @@ export function parsePropertyValue(property, value, { locale, defaultLocale }) {
67
67
  }
68
68
  }
69
69
  if (property.type === 'component') {
70
- const componentId = (value === null || value === void 0 ? void 0 : value.componentId) || property.componentId;
70
+ const componentId = value === null || value === void 0 ? void 0 : value.componentId;
71
71
  if (typeof componentId !== 'string')
72
72
  return undefined;
73
73
  const { locales } = property;
@@ -0,0 +1 @@
1
+ export * from 'react-router-dom';
@@ -90,7 +90,6 @@ export declare const customComponentStates: import("zustand").UseBoundStore<Omit
90
90
  } | undefined;
91
91
  } | {
92
92
  type: "component";
93
- componentId?: string | undefined;
94
93
  locales?: {
95
94
  [x: string]: {
96
95
  name?: undefined;
@@ -52,7 +52,6 @@ export interface CustomComponentStringProperty extends CustomComponentPropertyBa
52
52
  }
53
53
  export interface CustomComponentComponentProperty extends CustomComponentPropertyBase {
54
54
  type: 'component';
55
- componentId?: string;
56
55
  locales?: {
57
56
  [locale: string]: {
58
57
  name?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.2.240",
3
+ "version": "0.2.241",
4
4
  "description": "Pages Kit components and utils",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -93,7 +93,7 @@
93
93
  "prepare": "npm run build"
94
94
  },
95
95
  "dependencies": {
96
- "@arcblock/did-connect": "^2.9.35",
96
+ "@arcblock/did-connect": "^2.9.37",
97
97
  "@blocklet/sdk": "^1.16.23",
98
98
  "@iconify/react": "^4.1.1",
99
99
  "axios": "^1.6.7",
@@ -123,7 +123,7 @@
123
123
  "react-router-dom": "^6.16.0"
124
124
  },
125
125
  "devDependencies": {
126
- "@arcblock/ux": "^2.9.35",
126
+ "@arcblock/ux": "^2.9.37",
127
127
  "@emotion/cache": "^11.11.0",
128
128
  "@emotion/css": "^11.11.2",
129
129
  "@emotion/react": "^11.11.3",
@@ -133,7 +133,7 @@
133
133
  "@types/lodash": "^4.14.202",
134
134
  "@types/mustache": "^4.2.5",
135
135
  "@types/node-fetch": "^2.6.11",
136
- "@types/react": "^18.2.57",
136
+ "@types/react": "^18.2.58",
137
137
  "axios": "^1.6.7",
138
138
  "npm-run-all": "^4.1.5",
139
139
  "react": "^18.2.0",