testomatio-editor-blocks 0.4.1 → 0.4.9
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/editor/blocks/step.d.ts +6 -0
- package/package/editor/blocks/step.js +6 -3
- package/package/editor/blocks/stepField.js +5 -5
- package/package/editor/customMarkdownConverter.js +18 -6
- package/package/editor/customSchema.d.ts +6 -0
- package/package/styles.css +216 -4
- package/package.json +1 -1
- package/src/App.css +95 -2
- package/src/App.tsx +18 -1
- package/src/editor/blocks/step.tsx +7 -0
- package/src/editor/blocks/stepField.tsx +5 -0
- package/src/editor/customMarkdownConverter.test.ts +157 -34
- package/src/editor/customMarkdownConverter.ts +16 -2
- package/src/editor/markdownToBlocks.test.ts +2 -0
- package/src/editor/styles.css +216 -4
- package/src/index.css +9 -0
package/src/editor/styles.css
CHANGED
|
@@ -95,6 +95,163 @@
|
|
|
95
95
|
--status-blocked-bg: rgba(239, 68, 68, 0.12);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/* Dark mode variable overrides */
|
|
99
|
+
html.dark {
|
|
100
|
+
--color-white: #171717;
|
|
101
|
+
--color-slate-900: #fafafa;
|
|
102
|
+
--color-slate-400: #737373;
|
|
103
|
+
|
|
104
|
+
--text-primary: #fafafa;
|
|
105
|
+
--text-muted: rgba(250, 250, 250, 0.5);
|
|
106
|
+
|
|
107
|
+
--border-light: rgba(255, 255, 255, 0.1);
|
|
108
|
+
--border-default: rgba(255, 255, 255, 0.12);
|
|
109
|
+
--shadow-subtle: rgba(0, 0, 0, 0.2);
|
|
110
|
+
--shadow-medium: rgba(0, 0, 0, 0.35);
|
|
111
|
+
--shadow-heavy: rgba(0, 0, 0, 0.6);
|
|
112
|
+
--overlay-dark: rgba(0, 0, 0, 0.8);
|
|
113
|
+
|
|
114
|
+
--bg-white: rgba(38, 38, 38, 0.85);
|
|
115
|
+
--bg-white-solid: rgba(38, 38, 38, 0.92);
|
|
116
|
+
--bg-white-opaque: rgba(38, 38, 38, 0.98);
|
|
117
|
+
--bg-muted: rgba(255, 255, 255, 0.05);
|
|
118
|
+
|
|
119
|
+
/* Step block colors */
|
|
120
|
+
--step-card-bg: #1a1a1a;
|
|
121
|
+
--step-card-border: #333333;
|
|
122
|
+
--step-card-shadow: rgba(0, 0, 0, 0.2);
|
|
123
|
+
--step-input-border: #404040;
|
|
124
|
+
--step-input-border-focus: #6366f1;
|
|
125
|
+
--step-input-shadow: rgba(99, 102, 241, 0.25);
|
|
126
|
+
--step-text: #e5e5e5;
|
|
127
|
+
--step-muted: #737373;
|
|
128
|
+
--step-action: #a3a3a3;
|
|
129
|
+
--step-bg-button: #262626;
|
|
130
|
+
--step-bg-button-hover: #333333;
|
|
131
|
+
--step-border-focus: rgba(99, 102, 241, 0.4);
|
|
132
|
+
--step-border-light: rgba(255, 255, 255, 0.1);
|
|
133
|
+
--step-bg-light: rgba(255, 255, 255, 0.06);
|
|
134
|
+
--step-shadow-hover: rgba(0, 0, 0, 0.2);
|
|
135
|
+
|
|
136
|
+
/* Step timeline */
|
|
137
|
+
--step-number-bg: #404040;
|
|
138
|
+
--step-number-text: #fafafa;
|
|
139
|
+
--step-label-color: #a3a3a3;
|
|
140
|
+
--snippet-dropdown-bg: #262626;
|
|
141
|
+
--snippet-content-bg: #1a1a1a;
|
|
142
|
+
--snippet-content-border: #333333;
|
|
143
|
+
|
|
144
|
+
/* Snippet block colors */
|
|
145
|
+
--snippet-border: rgba(16, 185, 129, 0.6);
|
|
146
|
+
--snippet-bg: rgba(16, 185, 129, 0.08);
|
|
147
|
+
--snippet-shadow: rgba(16, 185, 129, 0.12);
|
|
148
|
+
--snippet-border-light: rgba(16, 185, 129, 0.2);
|
|
149
|
+
--snippet-border-medium: rgba(16, 185, 129, 0.3);
|
|
150
|
+
--snippet-border-strong: rgba(16, 185, 129, 0.45);
|
|
151
|
+
--snippet-border-focus: rgba(16, 185, 129, 0.6);
|
|
152
|
+
--snippet-bg-light: rgba(16, 185, 129, 0.08);
|
|
153
|
+
--snippet-bg-hover: rgba(16, 185, 129, 0.14);
|
|
154
|
+
--snippet-focus-ring: rgba(16, 185, 129, 0.15);
|
|
155
|
+
|
|
156
|
+
/* Status colors */
|
|
157
|
+
--status-default-bg: rgba(148, 163, 184, 0.08);
|
|
158
|
+
--status-ready-bg: rgba(34, 197, 94, 0.08);
|
|
159
|
+
--status-blocked-bg: rgba(239, 68, 68, 0.08);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Dark mode hardcoded color overrides */
|
|
163
|
+
html.dark .bn-step-action-btn {
|
|
164
|
+
color: #a3a3a3;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
html.dark .bn-step-toolbar__button {
|
|
168
|
+
color: #d4d4d4;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
html.dark .bn-step-toolbar__divider {
|
|
172
|
+
background: #404040;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
html.dark .bn-teststep__view-toggle svg {
|
|
176
|
+
color: #d4d4d4;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
html.dark [data-tooltip]::after {
|
|
180
|
+
background: #262626;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
html.dark .bn-step-field__dismiss {
|
|
184
|
+
color: #737373;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
html.dark .bn-step-editor {
|
|
188
|
+
color: #fafafa;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
html.dark .bn-step-editor .overtype-wrapper .overtype-input {
|
|
192
|
+
caret-color: #fafafa !important;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
html.dark .bn-step-editor .overtype-wrapper .overtype-preview {
|
|
196
|
+
color: #fafafa !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
html.dark .bn-step-editor .overtype-wrapper textarea.overtype-input::placeholder {
|
|
200
|
+
color: #525252 !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
html.dark .bn-step-editor .overtype-wrapper textarea.overtype-input::-webkit-input-placeholder {
|
|
204
|
+
color: #525252 !important;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
html.dark .bn-step-custom-caret {
|
|
208
|
+
background: #fafafa;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
html.dark .bn-step-link-tooltip {
|
|
212
|
+
background: #262626;
|
|
213
|
+
border-color: #404040;
|
|
214
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
html.dark .bn-step-link-tooltip__url {
|
|
218
|
+
color: #737373;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
html.dark .bn-snippet-dropdown__panel {
|
|
222
|
+
background: #262626;
|
|
223
|
+
border-color: #404040;
|
|
224
|
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
html.dark .bn-snippet-dropdown__search {
|
|
228
|
+
border-color: #404040;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
html.dark .bn-snippet-dropdown__search-icon {
|
|
232
|
+
color: #525252;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
html.dark .bn-snippet-dropdown__search-input {
|
|
236
|
+
color: #fafafa;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
html.dark .bn-snippet-dropdown__search-input::placeholder {
|
|
240
|
+
color: #525252;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
html.dark .bn-snippet-dropdown__list {
|
|
244
|
+
border-top-color: #404040;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
html.dark .bn-snippet-dropdown__chevron {
|
|
248
|
+
color: #525252;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
html.dark .bn-step-image-preview__content {
|
|
252
|
+
background: #262626;
|
|
253
|
+
}
|
|
254
|
+
|
|
98
255
|
.testomatio-editor {
|
|
99
256
|
font-family: "Inter", system-ui, -apple-system, sans-serif;
|
|
100
257
|
}
|
|
@@ -249,8 +406,8 @@
|
|
|
249
406
|
padding-bottom: 8px;
|
|
250
407
|
}
|
|
251
408
|
|
|
252
|
-
.bn-teststep__header + .bn-step-field {
|
|
253
|
-
margin-top: calc(
|
|
409
|
+
.bn-teststep__content > .bn-teststep__header + .bn-step-field {
|
|
410
|
+
margin-top: calc(4px - var(--step-section-gap));
|
|
254
411
|
}
|
|
255
412
|
|
|
256
413
|
.bn-teststep__header {
|
|
@@ -324,6 +481,22 @@
|
|
|
324
481
|
transform: rotate(90deg);
|
|
325
482
|
}
|
|
326
483
|
|
|
484
|
+
.bn-teststep__view-toggle[data-tooltip]::after {
|
|
485
|
+
bottom: auto;
|
|
486
|
+
left: auto;
|
|
487
|
+
right: calc(100% + 6px);
|
|
488
|
+
top: 50%;
|
|
489
|
+
transform: translateY(-50%);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.bn-teststep__view-toggle--horizontal[data-tooltip]::after {
|
|
493
|
+
right: auto;
|
|
494
|
+
top: auto;
|
|
495
|
+
bottom: calc(100% + 6px);
|
|
496
|
+
left: 50%;
|
|
497
|
+
transform: translateX(-50%) rotate(-90deg);
|
|
498
|
+
}
|
|
499
|
+
|
|
327
500
|
.bn-teststep__horizontal-fields {
|
|
328
501
|
display: flex;
|
|
329
502
|
gap: 16px;
|
|
@@ -579,7 +752,7 @@
|
|
|
579
752
|
.bn-step-field {
|
|
580
753
|
display: flex;
|
|
581
754
|
flex-direction: column;
|
|
582
|
-
gap:
|
|
755
|
+
gap: 4px;
|
|
583
756
|
position: relative;
|
|
584
757
|
}
|
|
585
758
|
|
|
@@ -733,6 +906,41 @@
|
|
|
733
906
|
background: var(--step-bg-button-hover);
|
|
734
907
|
}
|
|
735
908
|
|
|
909
|
+
[data-tooltip] {
|
|
910
|
+
position: relative;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
[data-tooltip]::after {
|
|
914
|
+
content: attr(data-tooltip);
|
|
915
|
+
position: absolute;
|
|
916
|
+
bottom: calc(100% + 6px);
|
|
917
|
+
left: 50%;
|
|
918
|
+
transform: translateX(-50%);
|
|
919
|
+
background: #0a0a0a;
|
|
920
|
+
color: #fafafa;
|
|
921
|
+
font-family: Inter, sans-serif;
|
|
922
|
+
font-weight: 400;
|
|
923
|
+
font-size: 14px;
|
|
924
|
+
line-height: 20px;
|
|
925
|
+
padding: 4px 12px;
|
|
926
|
+
border-radius: 8px;
|
|
927
|
+
white-space: nowrap;
|
|
928
|
+
pointer-events: none;
|
|
929
|
+
opacity: 0;
|
|
930
|
+
transition: opacity 120ms ease;
|
|
931
|
+
z-index: 1000;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
[data-tooltip]:hover::after {
|
|
935
|
+
opacity: 1;
|
|
936
|
+
transition-delay: 300ms;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
[data-tooltip]:active::after {
|
|
940
|
+
opacity: 0;
|
|
941
|
+
transition-delay: 0ms;
|
|
942
|
+
}
|
|
943
|
+
|
|
736
944
|
.bn-step-editor {
|
|
737
945
|
position: relative;
|
|
738
946
|
border-radius: 0.6rem;
|
|
@@ -801,8 +1009,12 @@
|
|
|
801
1009
|
font-weight: 400 !important;
|
|
802
1010
|
}
|
|
803
1011
|
|
|
1012
|
+
.bn-step-editor .overtype-wrapper .overtype-placeholder {
|
|
1013
|
+
display: none !important;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
804
1016
|
.bn-step-editor .overtype-wrapper .overtype-preview {
|
|
805
|
-
color:
|
|
1017
|
+
color: #262626 !important;
|
|
806
1018
|
}
|
|
807
1019
|
|
|
808
1020
|
.bn-step-editor .overtype-wrapper .overtype-preview a.step-preview-link {
|
package/src/index.css
CHANGED
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
-moz-osx-font-smoothing: grayscale;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
html.dark {
|
|
13
|
+
color: #fafafa;
|
|
14
|
+
background-color: #0a0a0a;
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
a {
|
|
13
18
|
color: inherit;
|
|
14
19
|
text-decoration: none;
|
|
@@ -24,6 +29,10 @@ body {
|
|
|
24
29
|
min-height: 100vh;
|
|
25
30
|
}
|
|
26
31
|
|
|
32
|
+
html.dark body {
|
|
33
|
+
background-color: #0a0a0a;
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
button {
|
|
28
37
|
font-family: inherit;
|
|
29
38
|
}
|