@powerhousedao/builder-tools 4.1.0-dev.22 → 4.1.0-dev.24
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/connect-studio/server.d.ts.map +1 -1
- package/dist/connect-studio/server.js +5 -6
- package/dist/connect-studio/server.js.map +1 -1
- package/dist/connect-studio/studio.d.ts.map +1 -1
- package/dist/connect-studio/studio.js +3 -0
- package/dist/connect-studio/studio.js.map +1 -1
- package/dist/connect-studio/types.d.ts +2 -0
- package/dist/connect-studio/types.d.ts.map +1 -1
- package/dist/connect-utils/index.d.ts +2 -0
- package/dist/connect-utils/index.d.ts.map +1 -1
- package/dist/connect-utils/index.js +2 -0
- package/dist/connect-utils/index.js.map +1 -1
- package/dist/connect-utils/vite-plugins/document-models-hmr.d.ts +3 -0
- package/dist/connect-utils/vite-plugins/document-models-hmr.d.ts.map +1 -0
- package/dist/connect-utils/vite-plugins/document-models-hmr.js +62 -0
- package/dist/connect-utils/vite-plugins/document-models-hmr.js.map +1 -0
- package/dist/connect-utils/vite-plugins/editors-hmr.d.ts +3 -0
- package/dist/connect-utils/vite-plugins/editors-hmr.d.ts.map +1 -0
- package/dist/connect-utils/vite-plugins/editors-hmr.js +61 -0
- package/dist/connect-utils/vite-plugins/editors-hmr.js.map +1 -0
- package/dist/connect-utils/vite-plugins/external-packages.d.ts.map +1 -1
- package/dist/connect-utils/vite-plugins/external-packages.js +11 -5
- package/dist/connect-utils/vite-plugins/external-packages.js.map +1 -1
- package/dist/connect-utils/vite-plugins/importmap.d.ts.map +1 -1
- package/dist/connect-utils/vite-plugins/importmap.js +3 -0
- package/dist/connect-utils/vite-plugins/importmap.js.map +1 -1
- package/dist/document-model-editor/document-model-editor.stories.d.ts.map +1 -1
- package/dist/document-model-editor/document-model-editor.stories.js +181 -179
- package/dist/document-model-editor/document-model-editor.stories.js.map +1 -1
- package/dist/document-model-editor/editor.d.ts +2 -2
- package/dist/document-model-editor/editor.d.ts.map +1 -1
- package/dist/document-model-editor/editor.js +63 -53
- package/dist/document-model-editor/editor.js.map +1 -1
- package/dist/document-model-editor/module.d.ts +1 -2
- package/dist/document-model-editor/module.d.ts.map +1 -1
- package/dist/document-model-editor/module.js.map +1 -1
- package/dist/document-model-editor/utils/helpers.d.ts +1 -4
- package/dist/document-model-editor/utils/helpers.d.ts.map +1 -1
- package/dist/document-model-editor/utils/helpers.js +4 -4
- package/dist/document-model-editor/utils/helpers.js.map +1 -1
- package/dist/editor-utils/storybook.d.ts +20 -11
- package/dist/editor-utils/storybook.d.ts.map +1 -1
- package/dist/editor-utils/storybook.js +14 -23
- package/dist/editor-utils/storybook.js.map +1 -1
- package/dist/style.css +7 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1,194 +1,193 @@
|
|
|
1
1
|
import { createDocumentStory } from "#editor-utils/storybook";
|
|
2
|
-
import { documentModelCreateExtendedState, documentModelReducer, generateId, } from "document-model";
|
|
2
|
+
import { baseState, documentModelCreateExtendedState, documentModelReducer, generateId, } from "document-model";
|
|
3
3
|
import { v7 as uuidv7 } from "uuid";
|
|
4
4
|
import { DocumentModelEditor } from "./editor.js";
|
|
5
5
|
const { meta, CreateDocumentStory: Empty } = createDocumentStory(DocumentModelEditor, documentModelReducer, documentModelCreateExtendedState());
|
|
6
6
|
const { CreateDocumentStory: WithData } = createDocumentStory(DocumentModelEditor, documentModelReducer, documentModelCreateExtendedState({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
7
|
+
...baseState(),
|
|
8
|
+
global: {
|
|
9
|
+
id: "test type",
|
|
10
|
+
name: "test",
|
|
11
|
+
extension: ".test.ph",
|
|
12
|
+
description: "test description",
|
|
13
|
+
author: {
|
|
14
|
+
name: "test user",
|
|
15
|
+
website: "https://test.com",
|
|
16
|
+
},
|
|
17
|
+
specifications: [
|
|
18
|
+
{
|
|
19
|
+
version: 1,
|
|
20
|
+
changeLog: [],
|
|
21
|
+
state: {
|
|
22
|
+
global: {
|
|
23
|
+
schema: 'type TestState {\n "Add your global state fields here"\n _placeholder: String\n something: Int\n another: Boolean\n}',
|
|
24
|
+
initialValue: '{\n "_placeholder": "",\n "something": 0,\n "another": false\n}',
|
|
25
|
+
examples: [],
|
|
26
|
+
},
|
|
27
|
+
local: {
|
|
28
|
+
schema: 'type TestLocalState {\n "Add your local state fields here"\n _placeholder: String\n test: String\n another: Int\n}',
|
|
29
|
+
initialValue: '{\n "_placeholder": "",\n "test": "",\n "another": 0\n}',
|
|
30
|
+
examples: [],
|
|
32
31
|
},
|
|
33
|
-
modules: [
|
|
34
|
-
{
|
|
35
|
-
id: "TuKeTdrcoKwzZe0ZJQCrWLr4pGw=",
|
|
36
|
-
name: "test_module",
|
|
37
|
-
description: "",
|
|
38
|
-
operations: [
|
|
39
|
-
{
|
|
40
|
-
id: "NEYEmynbmVnx5ZlESaoVx18pl38=",
|
|
41
|
-
name: "TEST_OPERATION",
|
|
42
|
-
description: "test operation description",
|
|
43
|
-
schema: 'input TestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: TestInput\n}\n\ninput TestInput {\n test: String\n}',
|
|
44
|
-
template: "",
|
|
45
|
-
reducer: "",
|
|
46
|
-
errors: [
|
|
47
|
-
{
|
|
48
|
-
id: "FwZyM4KAxRO+GurVuSRxgaENKSk=",
|
|
49
|
-
name: "TestException",
|
|
50
|
-
code: "",
|
|
51
|
-
description: "",
|
|
52
|
-
template: "",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
examples: [],
|
|
56
|
-
scope: "global",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: "Uix/waNZU0L0Q6bryt7QFnf3aoA=",
|
|
62
|
-
name: "another_test_module",
|
|
63
|
-
description: "",
|
|
64
|
-
operations: [
|
|
65
|
-
{
|
|
66
|
-
id: "iDXCKGVaDPPCyTVxv8vQ2h7SVvw=",
|
|
67
|
-
name: "ANOTHER_TEST_OPERATION",
|
|
68
|
-
description: "another description",
|
|
69
|
-
schema: 'input AnotherTestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: Int\n}',
|
|
70
|
-
template: "",
|
|
71
|
-
reducer: "",
|
|
72
|
-
errors: [],
|
|
73
|
-
examples: [],
|
|
74
|
-
scope: "global",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: "N2Flem5MW4dnLd0y21si2J0ZA9E=",
|
|
78
|
-
name: "ONE_MORE_OPERATION",
|
|
79
|
-
description: "one more description",
|
|
80
|
-
schema: 'input OneMoreOperationInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
81
|
-
template: "",
|
|
82
|
-
reducer: "",
|
|
83
|
-
errors: [],
|
|
84
|
-
examples: [],
|
|
85
|
-
scope: "global",
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
32
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
33
|
+
modules: [
|
|
34
|
+
{
|
|
35
|
+
id: "TuKeTdrcoKwzZe0ZJQCrWLr4pGw=",
|
|
36
|
+
name: "test_module",
|
|
37
|
+
description: "",
|
|
38
|
+
operations: [
|
|
39
|
+
{
|
|
40
|
+
id: "NEYEmynbmVnx5ZlESaoVx18pl38=",
|
|
41
|
+
name: "TEST_OPERATION",
|
|
42
|
+
description: "test operation description",
|
|
43
|
+
schema: 'input TestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: TestInput\n}\n\ninput TestInput {\n test: String\n}',
|
|
44
|
+
template: "",
|
|
45
|
+
reducer: "",
|
|
46
|
+
errors: [
|
|
47
|
+
{
|
|
48
|
+
id: "FwZyM4KAxRO+GurVuSRxgaENKSk=",
|
|
49
|
+
name: "TestException",
|
|
50
|
+
code: "",
|
|
51
|
+
description: "",
|
|
52
|
+
template: "",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
examples: [],
|
|
56
|
+
scope: "global",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "Uix/waNZU0L0Q6bryt7QFnf3aoA=",
|
|
62
|
+
name: "another_test_module",
|
|
63
|
+
description: "",
|
|
64
|
+
operations: [
|
|
65
|
+
{
|
|
66
|
+
id: "iDXCKGVaDPPCyTVxv8vQ2h7SVvw=",
|
|
67
|
+
name: "ANOTHER_TEST_OPERATION",
|
|
68
|
+
description: "another description",
|
|
69
|
+
schema: 'input AnotherTestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: Int\n}',
|
|
70
|
+
template: "",
|
|
71
|
+
reducer: "",
|
|
72
|
+
errors: [],
|
|
73
|
+
examples: [],
|
|
74
|
+
scope: "global",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "N2Flem5MW4dnLd0y21si2J0ZA9E=",
|
|
78
|
+
name: "ONE_MORE_OPERATION",
|
|
79
|
+
description: "one more description",
|
|
80
|
+
schema: 'input OneMoreOperationInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
81
|
+
template: "",
|
|
82
|
+
reducer: "",
|
|
83
|
+
errors: [],
|
|
84
|
+
examples: [],
|
|
85
|
+
scope: "global",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
94
92
|
},
|
|
93
|
+
local: {},
|
|
95
94
|
}));
|
|
96
95
|
const { CreateDocumentStory: WithBackgroundUpdates } = createDocumentStory(DocumentModelEditor, documentModelReducer, documentModelCreateExtendedState({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
},
|
|
96
|
+
...baseState(),
|
|
97
|
+
global: {
|
|
98
|
+
id: "test type",
|
|
99
|
+
name: "test",
|
|
100
|
+
extension: ".test.ph",
|
|
101
|
+
description: "test description",
|
|
102
|
+
author: {
|
|
103
|
+
name: "test user",
|
|
104
|
+
website: "https://test.com",
|
|
105
|
+
},
|
|
106
|
+
specifications: [
|
|
107
|
+
{
|
|
108
|
+
version: 1,
|
|
109
|
+
changeLog: [],
|
|
110
|
+
state: {
|
|
111
|
+
global: {
|
|
112
|
+
schema: 'type TestState {\n "Add your global state fields here"\n _placeholder: String\n something: Int\n another: Boolean\n}',
|
|
113
|
+
initialValue: '{\n "_placeholder": "",\n "something": 0,\n "another": false\n}',
|
|
114
|
+
examples: [],
|
|
115
|
+
},
|
|
116
|
+
local: {
|
|
117
|
+
schema: 'type TestLocalState {\n "Add your local state fields here"\n _placeholder: String\n test: String\n another: Int\n}',
|
|
118
|
+
initialValue: '{\n "_placeholder": "",\n "test": "",\n "another": 0\n}',
|
|
119
|
+
examples: [],
|
|
122
120
|
},
|
|
123
|
-
modules: [
|
|
124
|
-
{
|
|
125
|
-
id: "TuKeTdrcoKwzZe0ZJQCrWLr4pGw=",
|
|
126
|
-
name: "test_module",
|
|
127
|
-
description: "",
|
|
128
|
-
operations: [
|
|
129
|
-
{
|
|
130
|
-
id: "NEYEmynbmVnx5ZlESaoVx18pl38=",
|
|
131
|
-
name: "TEST_OPERATION",
|
|
132
|
-
description: "test operation description",
|
|
133
|
-
schema: 'input TestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: TestInput\n}\n\ninput TestInput {\n test: String\n}',
|
|
134
|
-
template: "",
|
|
135
|
-
reducer: "",
|
|
136
|
-
errors: [
|
|
137
|
-
{
|
|
138
|
-
id: "FwZyM4KAxRO+GurVuSRxgaENKSk=",
|
|
139
|
-
name: "TestException",
|
|
140
|
-
code: "",
|
|
141
|
-
description: "",
|
|
142
|
-
template: "",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
examples: [],
|
|
146
|
-
scope: "global",
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
id: "Uix/waNZU0L0Q6bryt7QFnf3aoA=",
|
|
152
|
-
name: "another_test_module",
|
|
153
|
-
description: "",
|
|
154
|
-
operations: [
|
|
155
|
-
{
|
|
156
|
-
id: "iDXCKGVaDPPCyTVxv8vQ2h7SVvw=",
|
|
157
|
-
name: "ANOTHER_TEST_OPERATION",
|
|
158
|
-
description: "another description",
|
|
159
|
-
schema: 'input AnotherTestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: Int\n}',
|
|
160
|
-
template: "",
|
|
161
|
-
reducer: "",
|
|
162
|
-
errors: [],
|
|
163
|
-
examples: [],
|
|
164
|
-
scope: "global",
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: "N2Flem5MW4dnLd0y21si2J0ZA9E=",
|
|
168
|
-
name: "ONE_MORE_OPERATION",
|
|
169
|
-
description: "one more description",
|
|
170
|
-
schema: 'input OneMoreOperationInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
171
|
-
template: "",
|
|
172
|
-
reducer: "",
|
|
173
|
-
errors: [],
|
|
174
|
-
examples: [],
|
|
175
|
-
scope: "global",
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
121
|
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
122
|
+
modules: [
|
|
123
|
+
{
|
|
124
|
+
id: "TuKeTdrcoKwzZe0ZJQCrWLr4pGw=",
|
|
125
|
+
name: "test_module",
|
|
126
|
+
description: "",
|
|
127
|
+
operations: [
|
|
128
|
+
{
|
|
129
|
+
id: "NEYEmynbmVnx5ZlESaoVx18pl38=",
|
|
130
|
+
name: "TEST_OPERATION",
|
|
131
|
+
description: "test operation description",
|
|
132
|
+
schema: 'input TestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: TestInput\n}\n\ninput TestInput {\n test: String\n}',
|
|
133
|
+
template: "",
|
|
134
|
+
reducer: "",
|
|
135
|
+
errors: [
|
|
136
|
+
{
|
|
137
|
+
id: "FwZyM4KAxRO+GurVuSRxgaENKSk=",
|
|
138
|
+
name: "TestException",
|
|
139
|
+
code: "",
|
|
140
|
+
description: "",
|
|
141
|
+
template: "",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
examples: [],
|
|
145
|
+
scope: "global",
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: "Uix/waNZU0L0Q6bryt7QFnf3aoA=",
|
|
151
|
+
name: "another_test_module",
|
|
152
|
+
description: "",
|
|
153
|
+
operations: [
|
|
154
|
+
{
|
|
155
|
+
id: "iDXCKGVaDPPCyTVxv8vQ2h7SVvw=",
|
|
156
|
+
name: "ANOTHER_TEST_OPERATION",
|
|
157
|
+
description: "another description",
|
|
158
|
+
schema: 'input AnotherTestOperationInput {\n "Add your inputs here"\n _placeholder: String\n test: Int\n}',
|
|
159
|
+
template: "",
|
|
160
|
+
reducer: "",
|
|
161
|
+
errors: [],
|
|
162
|
+
examples: [],
|
|
163
|
+
scope: "global",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: "N2Flem5MW4dnLd0y21si2J0ZA9E=",
|
|
167
|
+
name: "ONE_MORE_OPERATION",
|
|
168
|
+
description: "one more description",
|
|
169
|
+
schema: 'input OneMoreOperationInput {\n "Add your inputs here"\n _placeholder: String\n}',
|
|
170
|
+
template: "",
|
|
171
|
+
reducer: "",
|
|
172
|
+
errors: [],
|
|
173
|
+
examples: [],
|
|
174
|
+
scope: "global",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
],
|
|
184
181
|
},
|
|
182
|
+
local: {},
|
|
185
183
|
}), {
|
|
186
184
|
simulateBackgroundUpdates: {
|
|
187
185
|
backgroundUpdateRate: 1000,
|
|
188
186
|
backgroundUpdateActions: [
|
|
189
187
|
(document) => {
|
|
190
188
|
const id = uuidv7().split("-").at(-1);
|
|
191
|
-
const
|
|
189
|
+
const unsafeGlobalState = document.state.global;
|
|
190
|
+
const oldStateSchema = unsafeGlobalState.specifications[0].state.global.schema;
|
|
192
191
|
const newTypeDef = `
|
|
193
192
|
type TestDefinition${id} {
|
|
194
193
|
test: String
|
|
@@ -196,7 +195,7 @@ type TestDefinition${id} {
|
|
|
196
195
|
const newStateSchema = `${oldStateSchema}\n${newTypeDef}`;
|
|
197
196
|
return {
|
|
198
197
|
id: generateId(),
|
|
199
|
-
|
|
198
|
+
timestampUtcMs: new Date().toISOString(),
|
|
200
199
|
type: "SET_STATE_SCHEMA",
|
|
201
200
|
input: {
|
|
202
201
|
schema: newStateSchema,
|
|
@@ -207,7 +206,8 @@ type TestDefinition${id} {
|
|
|
207
206
|
},
|
|
208
207
|
(document) => {
|
|
209
208
|
const id = uuidv7().split("-").at(-1);
|
|
210
|
-
const
|
|
209
|
+
const unsafeLocalState = document.state.local;
|
|
210
|
+
const oldStateSchema = unsafeLocalState.specifications[0].state.local.schema;
|
|
211
211
|
const newTypeDef = `
|
|
212
212
|
type TestLocalDefinition${id} {
|
|
213
213
|
test: String
|
|
@@ -215,7 +215,7 @@ type TestLocalDefinition${id} {
|
|
|
215
215
|
const newStateSchema = `${oldStateSchema}\n${newTypeDef}`;
|
|
216
216
|
return {
|
|
217
217
|
id: generateId(),
|
|
218
|
-
|
|
218
|
+
timestampUtcMs: new Date().toISOString(),
|
|
219
219
|
type: "SET_STATE_SCHEMA",
|
|
220
220
|
input: {
|
|
221
221
|
schema: newStateSchema,
|
|
@@ -225,10 +225,11 @@ type TestLocalDefinition${id} {
|
|
|
225
225
|
};
|
|
226
226
|
},
|
|
227
227
|
(document) => {
|
|
228
|
-
const
|
|
228
|
+
const unsafeGlobalState = document.state.global;
|
|
229
|
+
const moduleIndex = unsafeGlobalState.specifications[0].modules.length + 1;
|
|
229
230
|
return {
|
|
230
231
|
id: generateId(),
|
|
231
|
-
|
|
232
|
+
timestampUtcMs: new Date().toISOString(),
|
|
232
233
|
type: "ADD_MODULE",
|
|
233
234
|
input: {
|
|
234
235
|
id: uuidv7(),
|
|
@@ -238,12 +239,13 @@ type TestLocalDefinition${id} {
|
|
|
238
239
|
};
|
|
239
240
|
},
|
|
240
241
|
(document) => {
|
|
241
|
-
const
|
|
242
|
+
const unsafeGlobalState = document.state.global;
|
|
243
|
+
const modules = unsafeGlobalState.specifications[0].modules;
|
|
242
244
|
const module = modules[0];
|
|
243
245
|
const operationIndex = module.operations.length + 1;
|
|
244
246
|
return {
|
|
245
247
|
id: generateId(),
|
|
246
|
-
|
|
248
|
+
timestampUtcMs: new Date().toISOString(),
|
|
247
249
|
type: "ADD_OPERATION",
|
|
248
250
|
input: {
|
|
249
251
|
id: uuidv7(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-model-editor.stories.js","sourceRoot":"","sources":["../../document-model-editor/document-model-editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EACL,gCAAgC,EAChC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"document-model-editor.stories.js","sourceRoot":"","sources":["../../document-model-editor/document-model-editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EACL,SAAS,EACT,gCA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gBAEpD,OAAO;oBACL,EAAE,EAAE,UAAU,EAAE;oBAChB,cAAc,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;oBACxC,IAAI,EAAE,eAAwB;oBAC9B,KAAK,EAAE;wBACL,EAAE,EAAE,MAAM,EAAE;wBACZ,IAAI,EAAE,kBAAkB,cAAc,EAAE;wBACxC,QAAQ,EAAE,MAAM,CAAC,EAAE;qBACpB;oBACD,KAAK,EAAE,QAAQ;iBAChB,CAAC;YACJ,CAAC;SACF;KACF;CACF,CACF,CAAC;AAEF,eAAe,IAAwC,CAAC;AAExD,MAAM,CAAC,MAAM,UAAU,GAAyC,KAAK,CAAC;AACtE,MAAM,CAAC,MAAM,aAAa,GAAyC,QAAQ,CAAC;AAC5E,MAAM,CAAC,MAAM,0BAA0B,GACrC,qBAAqB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare function DocumentModelEditor(props: EditorProps
|
|
1
|
+
import { type EditorProps } from "document-model";
|
|
2
|
+
export declare function DocumentModelEditor(props: EditorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../document-model-editor/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../document-model-editor/editor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,WAAW,EAejB,MAAM,gBAAgB,CAAC;AAexB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,2CAqUrD"}
|