@steedos-widgets/reactflow 6.10.18 → 6.10.20

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/reactflow",
3
3
  "private": false,
4
- "version": "6.10.18",
4
+ "version": "6.10.20",
5
5
  "main": "dist/reactflow.cjs.js",
6
6
  "module": "dist/reactflow.esm.js",
7
7
  "unpkg": "dist/reactflow.umd.js",
@@ -49,8 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@rollup/plugin-replace": "^5.0.2",
52
- "@steedos-widgets/amis-lib": "6.10.18",
53
52
  "reactflow": "^11.5.6"
54
53
  },
55
- "gitHead": "f4713661803cb82bff4b59c316b7cb32d5bcc6ee"
54
+ "gitHead": "5c8462d090debd9a20c910544e331ad1bc59f7d5"
56
55
  }
@@ -1,418 +0,0 @@
1
- /* this gets exported as style.css and can be used for the default theming */
2
- /* these are the necessary styles for React Flow, they get used by base.css and style.css */
3
- .react-flow {
4
- direction: ltr;
5
- }
6
- .react-flow__container {
7
- position: absolute;
8
- width: 100%;
9
- height: 100%;
10
- top: 0;
11
- left: 0;
12
- }
13
- .react-flow__pane {
14
- z-index: 1;
15
- cursor: -webkit-grab;
16
- cursor: grab;
17
- }
18
- .react-flow__pane.selection {
19
- cursor: pointer;
20
- }
21
- .react-flow__pane.dragging {
22
- cursor: -webkit-grabbing;
23
- cursor: grabbing;
24
- }
25
- .react-flow__viewport {
26
- transform-origin: 0 0;
27
- z-index: 2;
28
- pointer-events: none;
29
- }
30
- .react-flow__renderer {
31
- z-index: 4;
32
- }
33
- .react-flow__selection {
34
- z-index: 6;
35
- }
36
- .react-flow__nodesselection-rect:focus,
37
- .react-flow__nodesselection-rect:focus-visible {
38
- outline: none;
39
- }
40
- .react-flow .react-flow__edges {
41
- pointer-events: none;
42
- overflow: visible;
43
- }
44
- .react-flow__edge-path,
45
- .react-flow__connection-path {
46
- stroke: #b1b1b7;
47
- stroke-width: 1;
48
- fill: none;
49
- }
50
- .react-flow__edge {
51
- pointer-events: visibleStroke;
52
- cursor: pointer;
53
- }
54
- .react-flow__edge.animated path {
55
- stroke-dasharray: 5;
56
- -webkit-animation: dashdraw 0.5s linear infinite;
57
- animation: dashdraw 0.5s linear infinite;
58
- }
59
- .react-flow__edge.animated path.react-flow__edge-interaction {
60
- stroke-dasharray: none;
61
- -webkit-animation: none;
62
- animation: none;
63
- }
64
- .react-flow__edge.inactive {
65
- pointer-events: none;
66
- }
67
- .react-flow__edge.selected,
68
- .react-flow__edge:focus,
69
- .react-flow__edge:focus-visible {
70
- outline: none;
71
- }
72
- .react-flow__edge.selected .react-flow__edge-path,
73
- .react-flow__edge:focus .react-flow__edge-path,
74
- .react-flow__edge:focus-visible .react-flow__edge-path {
75
- stroke: #555;
76
- }
77
- .react-flow__edge-textwrapper {
78
- pointer-events: all;
79
- }
80
- .react-flow__edge-textbg {
81
- fill: white;
82
- }
83
- .react-flow__edge .react-flow__edge-text {
84
- pointer-events: none;
85
- -webkit-user-select: none;
86
- -moz-user-select: none;
87
- user-select: none;
88
- }
89
- .react-flow__connection {
90
- pointer-events: none;
91
- }
92
- .react-flow__connection .animated {
93
- stroke-dasharray: 5;
94
- -webkit-animation: dashdraw 0.5s linear infinite;
95
- animation: dashdraw 0.5s linear infinite;
96
- }
97
- .react-flow__connectionline {
98
- z-index: 1001;
99
- }
100
- .react-flow__nodes {
101
- pointer-events: none;
102
- transform-origin: 0 0;
103
- }
104
- .react-flow__node {
105
- position: absolute;
106
- -webkit-user-select: none;
107
- -moz-user-select: none;
108
- user-select: none;
109
- pointer-events: all;
110
- transform-origin: 0 0;
111
- box-sizing: border-box;
112
- cursor: -webkit-grab;
113
- cursor: grab;
114
- }
115
- .react-flow__node.dragging {
116
- cursor: -webkit-grabbing;
117
- cursor: grabbing;
118
- }
119
- .react-flow__nodesselection {
120
- z-index: 3;
121
- transform-origin: left top;
122
- pointer-events: none;
123
- }
124
- .react-flow__nodesselection-rect {
125
- position: absolute;
126
- pointer-events: all;
127
- cursor: -webkit-grab;
128
- cursor: grab;
129
- }
130
- .react-flow__handle {
131
- position: absolute;
132
- pointer-events: none;
133
- min-width: 5px;
134
- min-height: 5px;
135
- width: 6px;
136
- height: 6px;
137
- background: #1a192b;
138
- border: 1px solid white;
139
- border-radius: 100%;
140
- }
141
- .react-flow__handle.connectionindicator {
142
- pointer-events: all;
143
- cursor: crosshair;
144
- }
145
- .react-flow__handle-bottom {
146
- top: auto;
147
- left: 50%;
148
- bottom: -4px;
149
- transform: translate(-50%, 0);
150
- }
151
- .react-flow__handle-top {
152
- left: 50%;
153
- top: -4px;
154
- transform: translate(-50%, 0);
155
- }
156
- .react-flow__handle-left {
157
- top: 50%;
158
- left: -4px;
159
- transform: translate(0, -50%);
160
- }
161
- .react-flow__handle-right {
162
- right: -4px;
163
- top: 50%;
164
- transform: translate(0, -50%);
165
- }
166
- .react-flow__edgeupdater {
167
- cursor: move;
168
- pointer-events: all;
169
- }
170
- .react-flow__panel {
171
- position: absolute;
172
- z-index: 5;
173
- margin: 15px;
174
- }
175
- .react-flow__panel.top {
176
- top: 0;
177
- }
178
- .react-flow__panel.bottom {
179
- bottom: 0;
180
- }
181
- .react-flow__panel.left {
182
- left: 0;
183
- }
184
- .react-flow__panel.right {
185
- right: 0;
186
- }
187
- .react-flow__panel.center {
188
- left: 50%;
189
- transform: translateX(-50%);
190
- }
191
- .react-flow__attribution {
192
- font-size: 10px;
193
- background: rgba(255, 255, 255, 0.5);
194
- padding: 2px 3px;
195
- margin: 0;
196
- }
197
- .react-flow__attribution a {
198
- text-decoration: none;
199
- color: #999;
200
- }
201
- @-webkit-keyframes dashdraw {
202
- from {
203
- stroke-dashoffset: 10;
204
- }
205
- }
206
- @keyframes dashdraw {
207
- from {
208
- stroke-dashoffset: 10;
209
- }
210
- }
211
- .react-flow__edgelabel-renderer {
212
- position: absolute;
213
- width: 100%;
214
- height: 100%;
215
- pointer-events: none;
216
- -webkit-user-select: none;
217
- -moz-user-select: none;
218
- user-select: none;
219
- }
220
- .react-flow__edge.updating .react-flow__edge-path {
221
- stroke: #777;
222
- }
223
- .react-flow__edge-text {
224
- font-size: 10px;
225
- }
226
- .react-flow__node.selectable:focus,
227
- .react-flow__node.selectable:focus-visible {
228
- outline: none;
229
- }
230
- .react-flow__node-default,
231
- .react-flow__node-input,
232
- .react-flow__node-output,
233
- .react-flow__node-group {
234
- padding: 10px;
235
- border-radius: 3px;
236
- width: 150px;
237
- font-size: 12px;
238
- color: #222;
239
- text-align: center;
240
- border-width: 1px;
241
- border-style: solid;
242
- border-color: #1a192b;
243
- background-color: white;
244
- }
245
- .react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
246
- box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
247
- }
248
- .react-flow__node-default.selectable.selected,
249
- .react-flow__node-default.selectable:focus,
250
- .react-flow__node-default.selectable:focus-visible,
251
- .react-flow__node-input.selectable.selected,
252
- .react-flow__node-input.selectable:focus,
253
- .react-flow__node-input.selectable:focus-visible,
254
- .react-flow__node-output.selectable.selected,
255
- .react-flow__node-output.selectable:focus,
256
- .react-flow__node-output.selectable:focus-visible,
257
- .react-flow__node-group.selectable.selected,
258
- .react-flow__node-group.selectable:focus,
259
- .react-flow__node-group.selectable:focus-visible {
260
- box-shadow: 0 0 0 0.5px #1a192b;
261
- }
262
- .react-flow__node-group {
263
- background-color: rgba(240, 240, 240, 0.25);
264
- }
265
- .react-flow__nodesselection-rect,
266
- .react-flow__selection {
267
- background: rgba(0, 89, 220, 0.08);
268
- border: 1px dotted rgba(0, 89, 220, 0.8);
269
- }
270
- .react-flow__nodesselection-rect:focus,
271
- .react-flow__nodesselection-rect:focus-visible,
272
- .react-flow__selection:focus,
273
- .react-flow__selection:focus-visible {
274
- outline: none;
275
- }
276
- .react-flow__controls {
277
- box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
278
- }
279
- .react-flow__controls-button {
280
- border: none;
281
- background: #fefefe;
282
- border-bottom: 1px solid #eee;
283
- box-sizing: content-box;
284
- display: flex;
285
- justify-content: center;
286
- align-items: center;
287
- width: 16px;
288
- height: 16px;
289
- cursor: pointer;
290
- -webkit-user-select: none;
291
- -moz-user-select: none;
292
- user-select: none;
293
- padding: 5px;
294
- }
295
- .react-flow__controls-button:hover {
296
- background: #f4f4f4;
297
- }
298
- .react-flow__controls-button svg {
299
- width: 100%;
300
- max-width: 12px;
301
- max-height: 12px;
302
- }
303
- .react-flow__controls-button:disabled {
304
- pointer-events: none;
305
- }
306
- .react-flow__controls-button:disabled svg {
307
- fill-opacity: 0.4;
308
- }
309
- .react-flow__minimap {
310
- background-color: #fff;
311
- }
312
- .react-flow__minimap svg {
313
- display: block;
314
- }
315
- .react-flow__resize-control {
316
- position: absolute;
317
- }
318
- .react-flow__resize-control.left,
319
- .react-flow__resize-control.right {
320
- cursor: ew-resize;
321
- }
322
- .react-flow__resize-control.top,
323
- .react-flow__resize-control.bottom {
324
- cursor: ns-resize;
325
- }
326
- .react-flow__resize-control.top.left,
327
- .react-flow__resize-control.bottom.right {
328
- cursor: nwse-resize;
329
- }
330
- .react-flow__resize-control.bottom.left,
331
- .react-flow__resize-control.top.right {
332
- cursor: nesw-resize;
333
- }
334
- /* handle styles */
335
- .react-flow__resize-control.handle {
336
- width: 4px;
337
- height: 4px;
338
- border: 1px solid #fff;
339
- border-radius: 1px;
340
- background-color: #3367d9;
341
- transform: translate(-50%, -50%);
342
- }
343
- .react-flow__resize-control.handle.left {
344
- left: 0;
345
- top: 50%;
346
- }
347
- .react-flow__resize-control.handle.right {
348
- left: 100%;
349
- top: 50%;
350
- }
351
- .react-flow__resize-control.handle.top {
352
- left: 50%;
353
- top: 0;
354
- }
355
- .react-flow__resize-control.handle.bottom {
356
- left: 50%;
357
- top: 100%;
358
- }
359
- .react-flow__resize-control.handle.top.left {
360
- left: 0;
361
- }
362
- .react-flow__resize-control.handle.bottom.left {
363
- left: 0;
364
- }
365
- .react-flow__resize-control.handle.top.right {
366
- left: 100%;
367
- }
368
- .react-flow__resize-control.handle.bottom.right {
369
- left: 100%;
370
- }
371
- /* line styles */
372
- .react-flow__resize-control.line {
373
- border-color: #3367d9;
374
- border-width: 0;
375
- border-style: solid;
376
- }
377
- .react-flow__resize-control.line.left,
378
- .react-flow__resize-control.line.right {
379
- width: 1px;
380
- transform: translate(-50%, 0);
381
- top: 0;
382
- height: 100%;
383
- }
384
- .react-flow__resize-control.line.left {
385
- left: 0;
386
- border-left-width: 1px;
387
- }
388
- .react-flow__resize-control.line.right {
389
- left: 100%;
390
- border-right-width: 1px;
391
- }
392
- .react-flow__resize-control.line.top,
393
- .react-flow__resize-control.line.bottom {
394
- height: 1px;
395
- transform: translate(0, -50%);
396
- left: 0;
397
- width: 100%;
398
- }
399
- .react-flow__resize-control.line.top {
400
- top: 0;
401
- border-top-width: 1px;
402
- }
403
- .react-flow__resize-control.line.bottom {
404
- border-bottom-width: 1px;
405
- top: 100%;
406
- }
407
-
408
- .antd-Form-item .steedos-react-flow.h-full{
409
- /*
410
- 组件作为formitem而不是renderer模式时,外面会包一层form-item div,造成react flow组件高度100%无效
411
- 把h-full设置为以下值可以有满屏效果
412
- */
413
- height: calc(100vh - 120px);
414
- }
415
- #__next .ae-Editor .ae-Preview-body .ae-Preview-inner .steedos-react-flow.h-full{
416
- /*设计器中height 100%无效,把h-full设置为以下值可以有满屏效果*/
417
- height: calc(100vh - 165px);
418
- }