@next-bricks/visual-builder 0.8.12 → 0.8.14
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.
- package/dist/bricks.json +1 -1
- package/dist/chunks/{2108.b4c72f77.js → 2108.cd047bb3.js} +2 -2
- package/dist/chunks/{2108.b4c72f77.js.map → 2108.cd047bb3.js.map} +1 -1
- package/dist/chunks/{4635.927ae768.js → 3669.9dff08f1.js} +2 -2
- package/dist/chunks/3669.9dff08f1.js.map +1 -0
- package/dist/chunks/{4084.7a1a33e0.js → 4084.291c409f.js} +3 -3
- package/dist/chunks/{4084.7a1a33e0.js.map → 4084.291c409f.js.map} +1 -1
- package/dist/chunks/{6519.21b9104a.js → 6519.22ad3c51.js} +3 -3
- package/dist/chunks/6519.22ad3c51.js.map +1 -0
- package/dist/chunks/{9194.125b1a1f.js → 9194.2abbeefd.js} +2 -2
- package/dist/chunks/{9194.125b1a1f.js.map → 9194.2abbeefd.js.map} +1 -1
- package/dist/chunks/{main.7d3f9272.js → main.fa500b30.js} +2 -2
- package/dist/chunks/{main.7d3f9272.js.map → main.fa500b30.js.map} +1 -1
- package/dist/chunks/{workbench-action-list.3eaf398c.js → workbench-action-list.2ac13225.js} +2 -2
- package/dist/chunks/{workbench-action-list.3eaf398c.js.map → workbench-action-list.2ac13225.js.map} +1 -1
- package/dist/chunks/workbench-history-action.88c8f47b.js +3 -0
- package/dist/chunks/workbench-history-action.88c8f47b.js.map +1 -0
- package/dist/chunks/{workbench-tree.79f9e7ec.js → workbench-tree.ab00cf05.js} +2 -2
- package/dist/chunks/{workbench-tree.79f9e7ec.js.map → workbench-tree.ab00cf05.js.map} +1 -1
- package/dist/{index.fc7527f4.js → index.53c7dc68.js} +2 -2
- package/dist/{index.fc7527f4.js.map → index.53c7dc68.js.map} +1 -1
- package/dist/manifest.json +1 -1
- package/dist/types.json +83 -23
- package/dist-types/workbench-history-action/index.d.ts +7 -2
- package/dist-types/workbench-history-action/utils.d.ts +2 -11
- package/package.json +2 -2
- package/dist/chunks/4635.927ae768.js.map +0 -1
- package/dist/chunks/6519.21b9104a.js.map +0 -1
- package/dist/chunks/workbench-history-action.e75cb32f.js +0 -3
- package/dist/chunks/workbench-history-action.e75cb32f.js.map +0 -1
- /package/dist/chunks/{4084.7a1a33e0.js.LICENSE.txt → 4084.291c409f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6519.21b9104a.js.LICENSE.txt → 6519.22ad3c51.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-history-action.e75cb32f.js.LICENSE.txt → workbench-history-action.88c8f47b.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -227,11 +227,33 @@
|
|
|
227
227
|
"name": "history.item.click",
|
|
228
228
|
"detail": {
|
|
229
229
|
"annotation": {
|
|
230
|
-
"type": "
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
230
|
+
"type": "intersection",
|
|
231
|
+
"types": [
|
|
232
|
+
{
|
|
233
|
+
"type": "reference",
|
|
234
|
+
"typeName": {
|
|
235
|
+
"type": "identifier",
|
|
236
|
+
"name": "HistoryData"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "typeLiteral",
|
|
241
|
+
"members": [
|
|
242
|
+
{
|
|
243
|
+
"type": "propertySignature",
|
|
244
|
+
"key": {
|
|
245
|
+
"type": "identifier",
|
|
246
|
+
"name": "enableRollback"
|
|
247
|
+
},
|
|
248
|
+
"annotation": {
|
|
249
|
+
"type": "keyword",
|
|
250
|
+
"value": "boolean"
|
|
251
|
+
},
|
|
252
|
+
"computed": false
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
]
|
|
235
257
|
}
|
|
236
258
|
}
|
|
237
259
|
},
|
|
@@ -251,28 +273,66 @@
|
|
|
251
273
|
"methods": [],
|
|
252
274
|
"types": [
|
|
253
275
|
{
|
|
254
|
-
"type": "
|
|
276
|
+
"type": "interface",
|
|
255
277
|
"name": "HistoryData",
|
|
256
|
-
"
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
"
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
{
|
|
266
|
-
"type": "
|
|
267
|
-
"
|
|
278
|
+
"body": [
|
|
279
|
+
{
|
|
280
|
+
"type": "propertySignature",
|
|
281
|
+
"key": {
|
|
282
|
+
"type": "identifier",
|
|
283
|
+
"name": "translation"
|
|
284
|
+
},
|
|
285
|
+
"annotation": {
|
|
286
|
+
"type": "reference",
|
|
287
|
+
"typeName": {
|
|
288
|
+
"type": "identifier",
|
|
289
|
+
"name": "Record"
|
|
268
290
|
},
|
|
269
|
-
{
|
|
270
|
-
"type": "
|
|
271
|
-
"
|
|
291
|
+
"typeParameters": {
|
|
292
|
+
"type": "typeParameterInstantiation",
|
|
293
|
+
"params": [
|
|
294
|
+
{
|
|
295
|
+
"type": "keyword",
|
|
296
|
+
"value": "string"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"type": "keyword",
|
|
300
|
+
"value": "string"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
272
303
|
}
|
|
273
|
-
|
|
304
|
+
},
|
|
305
|
+
"computed": false
|
|
274
306
|
}
|
|
275
|
-
|
|
307
|
+
],
|
|
308
|
+
"extends": [
|
|
309
|
+
{
|
|
310
|
+
"type": "expressionWithTypeArguments",
|
|
311
|
+
"expression": {
|
|
312
|
+
"type": "identifier",
|
|
313
|
+
"name": "Partial"
|
|
314
|
+
},
|
|
315
|
+
"typeParameters": {
|
|
316
|
+
"type": "typeParameterInstantiation",
|
|
317
|
+
"params": [
|
|
318
|
+
{
|
|
319
|
+
"type": "reference",
|
|
320
|
+
"typeName": {
|
|
321
|
+
"type": "qualifiedName",
|
|
322
|
+
"left": {
|
|
323
|
+
"type": "identifier",
|
|
324
|
+
"name": "NextBuilderModels"
|
|
325
|
+
},
|
|
326
|
+
"right": {
|
|
327
|
+
"type": "identifier",
|
|
328
|
+
"name": "ModelWorkspaceChangeHistory"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
276
336
|
}
|
|
277
337
|
]
|
|
278
338
|
},
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
-
|
|
4
|
+
import { NextBuilderModels } from "@next-api-sdk/next-builder-sdk";
|
|
5
|
+
interface HistoryData extends Partial<NextBuilderModels.ModelWorkspaceChangeHistory> {
|
|
6
|
+
translation: Record<string, string>;
|
|
7
|
+
}
|
|
5
8
|
export interface WorkbenchHistoryActionProps {
|
|
6
9
|
appId: string;
|
|
7
10
|
projectId: string;
|
|
@@ -16,7 +19,9 @@ export declare class WorkbenchHistoryAction extends ReactNextElement implements
|
|
|
16
19
|
render(): JSX.Element;
|
|
17
20
|
}
|
|
18
21
|
interface WorkbenchHistoryActionComponentProps extends WorkbenchHistoryActionProps {
|
|
19
|
-
onHistoryItemClick?: (data: HistoryData
|
|
22
|
+
onHistoryItemClick?: (data: HistoryData & {
|
|
23
|
+
enableRollback: boolean;
|
|
24
|
+
}) => void;
|
|
20
25
|
onRollback?: (data: HistoryData) => void;
|
|
21
26
|
}
|
|
22
27
|
export declare function WorkbenchHistoryActionComponent(props: WorkbenchHistoryActionComponentProps): JSX.Element;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
action: string;
|
|
4
|
-
leftObjectId: string;
|
|
5
|
-
rightObjectId: string;
|
|
6
|
-
nodes: string;
|
|
7
|
-
leftNodes: string;
|
|
8
|
-
rightNodes: string;
|
|
9
|
-
abstract: string;
|
|
10
|
-
rollbackAbstract: string;
|
|
11
|
-
};
|
|
1
|
+
import { NextBuilderModels } from "@next-api-sdk/next-builder-sdk";
|
|
2
|
+
export declare function translateHistory(history: Partial<NextBuilderModels.ModelWorkspaceChangeHistory>): Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/visual-builder",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.14",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"@next-core/build-next-bricks": "^1.14.3",
|
|
36
36
|
"@next-core/test-next": "^1.0.11"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "901d3eb13694e922edfdc889b3e665e045d77ff0"
|
|
39
39
|
}
|