@powerhousedao/builder-tools 4.1.0-dev.21 → 4.1.0-dev.23
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 +62 -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/document-model-editor/document-model-editor.stories.d.ts.map +1 -1
- package/dist/document-model-editor/document-model-editor.stories.js +173 -175
- package/dist/document-model-editor/document-model-editor.stories.js.map +1 -1
- package/dist/editor-utils/storybook.d.ts +2 -2
- package/dist/editor-utils/storybook.d.ts.map +1 -1
- package/dist/editor-utils/storybook.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,187 +1,185 @@
|
|
|
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,
|
|
@@ -196,7 +194,7 @@ type TestDefinition${id} {
|
|
|
196
194
|
const newStateSchema = `${oldStateSchema}\n${newTypeDef}`;
|
|
197
195
|
return {
|
|
198
196
|
id: generateId(),
|
|
199
|
-
|
|
197
|
+
timestampUtcMs: new Date().toISOString(),
|
|
200
198
|
type: "SET_STATE_SCHEMA",
|
|
201
199
|
input: {
|
|
202
200
|
schema: newStateSchema,
|
|
@@ -215,7 +213,7 @@ type TestLocalDefinition${id} {
|
|
|
215
213
|
const newStateSchema = `${oldStateSchema}\n${newTypeDef}`;
|
|
216
214
|
return {
|
|
217
215
|
id: generateId(),
|
|
218
|
-
|
|
216
|
+
timestampUtcMs: new Date().toISOString(),
|
|
219
217
|
type: "SET_STATE_SCHEMA",
|
|
220
218
|
input: {
|
|
221
219
|
schema: newStateSchema,
|
|
@@ -228,7 +226,7 @@ type TestLocalDefinition${id} {
|
|
|
228
226
|
const moduleIndex = document.state.global.specifications[0].modules.length + 1;
|
|
229
227
|
return {
|
|
230
228
|
id: generateId(),
|
|
231
|
-
|
|
229
|
+
timestampUtcMs: new Date().toISOString(),
|
|
232
230
|
type: "ADD_MODULE",
|
|
233
231
|
input: {
|
|
234
232
|
id: uuidv7(),
|
|
@@ -243,7 +241,7 @@ type TestLocalDefinition${id} {
|
|
|
243
241
|
const operationIndex = module.operations.length + 1;
|
|
244
242
|
return {
|
|
245
243
|
id: generateId(),
|
|
246
|
-
|
|
244
|
+
timestampUtcMs: new Date().toISOString(),
|
|
247
245
|
type: "ADD_OPERATION",
|
|
248
246
|
input: {
|
|
249
247
|
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,EACpB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,mBAAmB,CAC9D,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,EAAE,CACnC,CAAC;AAEF,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAC3D,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,CAAC;IAC/B,
|
|
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,gCAAgC,EAChC,oBAAoB,EACpB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,mBAAmB,CAC9D,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,EAAE,CACnC,CAAC;AAEF,MAAM,EAAE,mBAAmB,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAC3D,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,CAAC;IAC/B,GAAG,SAAS,EAAE;IACd,MAAM,EAAE;QACN,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,kBAAkB;QAC/B,MAAM,EAAE;YACN,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,kBAAkB;SAC5B;QACD,cAAc,EAAE;YACd;gBACE,OAAO,EAAE,CAAC;gBACV,SAAS,EAAE,EAAE;gBACb,KAAK,EAAE;oBACL,MAAM,EAAE;wBACN,MAAM,EACJ,0HAA0H;wBAC5H,YAAY,EACV,oEAAoE;wBACtE,QAAQ,EAAE,EAAE;qBACb;oBACD,KAAK,EAAE;wBACL,MAAM,EACJ,wHAAwH;wBAC1H,YAAY,EACV,4DAA4D;wBAC9D,QAAQ,E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AAC,CAAC,CAAC,OAAO,CAAC;gBAChE,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;gBAC1B,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;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,6 +1,6 @@
|
|
|
1
1
|
import { type DriveEditorProps } from "@powerhousedao/reactor-browser";
|
|
2
2
|
import { type Decorator, type Meta, type StoryObj } from "@storybook/react";
|
|
3
|
-
import { type Action, type EditorProps, type
|
|
3
|
+
import { type Action, type EditorProps, type ExtendedStateFromDocument, type PHDocument, type Reducer } from "document-model";
|
|
4
4
|
import React from "react";
|
|
5
5
|
export type EditorStoryArgs<TDocument extends PHDocument> = Partial<{
|
|
6
6
|
isAllowedToCreateDocuments: boolean;
|
|
@@ -22,7 +22,7 @@ export type EditorStoryComponent<TDocument extends PHDocument> = (props: EditorS
|
|
|
22
22
|
export type DriveEditorStoryComponent<TDocument extends PHDocument> = (props: DriveEditorStoryProps<TDocument>) => React.JSX.Element;
|
|
23
23
|
export type DocumentStory<TDocument extends PHDocument> = StoryObj<EditorStoryComponent<TDocument>>;
|
|
24
24
|
export type DriveDocumentStory<TDocument extends PHDocument> = StoryObj<DriveEditorStoryComponent<TDocument>>;
|
|
25
|
-
export declare function createDocumentStory<TDocument extends PHDocument>(Editor: EditorStoryComponent<TDocument>, reducer: Reducer<TDocument>, initialState: Partial<
|
|
25
|
+
export declare function createDocumentStory<TDocument extends PHDocument>(Editor: EditorStoryComponent<TDocument>, reducer: Reducer<TDocument>, initialState: Partial<ExtendedStateFromDocument<TDocument>>, additionalStoryArgs?: EditorStoryArgs<TDocument>, decorators?: Decorator<EditorStoryProps<TDocument>>[]): {
|
|
26
26
|
meta: Meta<typeof Editor>;
|
|
27
27
|
CreateDocumentStory: DocumentStory<TDocument>;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../editor-utils/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAEL,KAAK,MAAM,EAEX,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../editor-utils/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAEL,KAAK,MAAM,EAEX,KAAK,WAAW,EAChB,KAAK,yBAAyB,EAG9B,KAAK,UAAU,EAEf,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,MAAM,MAAM,eAAe,CAAC,SAAS,SAAS,UAAU,IAAI,OAAO,CAAC;IACl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AmB,CAAC,SAAS,SAAS,UAAU,EAC9D,MAAM,EAAE,oBAAoB,CAAC,SAAS,CAAC,EACvC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,EAC3B,YAAY,EAAE,OAAO,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,EAC3D,mBAAmB,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC,EAChD,UAAU,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,EAAE,GACpD;IACD,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;IAC1B,mBAAmB,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAC/C,CAwIA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.js","sourceRoot":"","sources":["../../editor-utils/storybook.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EACL,kBAAkB,GAUnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAuC1C,MAAM,UAAU,mBAAmB,CACjC,MAAuC,EACvC,OAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"storybook.js","sourceRoot":"","sources":["../../editor-utils/storybook.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EACL,kBAAkB,GAUnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,aA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