@blocklet/pages-kit 0.5.30 → 0.5.31

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.
@@ -82,6 +82,9 @@ export type Page = {
82
82
  style?: StyleConfig;
83
83
  [key: string]: any;
84
84
  }>;
85
+ dataSource?: Record<string, Record<string, {
86
+ [dataId: string]: any;
87
+ }>>;
85
88
  };
86
89
  export interface Chunk {
87
90
  id: string;
@@ -136,6 +139,7 @@ export interface Section<T = {
136
139
  id: string;
137
140
  component: string;
138
141
  config?: T;
142
+ locked?: boolean;
139
143
  visibility?: 'visible' | 'hidden';
140
144
  name?: string;
141
145
  isTemplateSection?: boolean;
@@ -154,7 +158,10 @@ export interface Section<T = {
154
158
  }>;
155
159
  }>;
156
160
  };
161
+ /** @deprecated section item 的 locales 已经被弃用,请使用 page dataSource 或者 currentSectionProperties 替代 */
157
162
  locales?: Record<string, T>;
163
+ sections?: Record<string, Section>;
164
+ sectionIds?: string[];
158
165
  }
159
166
  export type State = {
160
167
  pageIds: string[];
@@ -0,0 +1,4 @@
1
+ import { TemplateModel } from '@blocklet/pages-kit-core';
2
+ import { Page, Section } from '../types/state';
3
+ export declare const getPageTemplateModel: (page: Page, isClone?: boolean) => TemplateModel;
4
+ export declare const getPageAllSections: (page: Page) => Section[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.5.30",
3
+ "version": "0.5.31",
4
4
  "description": "Pages Kit components and utils for blocklet(s)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -100,11 +100,11 @@
100
100
  "url": "git+https://github.com/blocklet/pages-kit.git"
101
101
  },
102
102
  "dependencies": {
103
- "@arcblock/did-connect": "^2.13.52",
103
+ "@arcblock/did-connect": "^2.13.57",
104
104
  "@blocklet/ai-kit": "^0.1.78",
105
105
  "@blocklet/js-sdk": "^1.16.43",
106
106
  "@blocklet/sdk": "^1.16.43",
107
- "@blocklet/uploader": "^0.1.93",
107
+ "@blocklet/uploader": "^0.1.95",
108
108
  "@blocklet/xss": "^0.1.36",
109
109
  "@faker-js/faker": "^9.0.3",
110
110
  "@iconify-icons/tabler": "^1.2.95",
@@ -150,7 +150,8 @@
150
150
  "typescript": "~5.5.4",
151
151
  "ufo": "^1.5.4",
152
152
  "yaml": "^2.5.0",
153
- "zustand": "^4.5.5"
153
+ "zustand": "^4.5.5",
154
+ "@blocklet/pages-kit-core": "^0.5.31"
154
155
  },
155
156
  "peerDependencies": {
156
157
  "@arcblock/ux": "^2.11.35",
@@ -171,7 +172,7 @@
171
172
  "react-router-dom": "^6.16.0"
172
173
  },
173
174
  "devDependencies": {
174
- "@arcblock/ux": "^2.13.52",
175
+ "@arcblock/ux": "^2.13.57",
175
176
  "@blocklet/ai-runtime": "^0.4.271",
176
177
  "@blocklet/js-sdk": "^1.16.43",
177
178
  "@blocklet/sdk": "^1.16.43",