@trycourier/react-designer 0.0.0-canary-20251204163023 → 0.0.0-canary-20251205102447
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/cjs/index.js +49 -49
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/styles.css +25 -28
- package/dist/components/extensions/Button/Button.types.d.ts +10 -16
- package/dist/components/extensions/Divider/Divider.types.d.ts +1 -1
- package/dist/components/ui-kit/Toggle/Toggle.d.ts +2 -2
- package/dist/components/ui-kit/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/esm/index.js +50 -50
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/styles.css +25 -28
- package/dist/styles.css +25 -28
- package/dist/types/elemental.types.d.ts +14 -2
- package/package.json +1 -1
package/dist/esm/styles.css
CHANGED
|
@@ -259,15 +259,15 @@
|
|
|
259
259
|
pointer-events: none;
|
|
260
260
|
width: 100%;
|
|
261
261
|
} */
|
|
262
|
-
.ProseMirror
|
|
263
|
-
.ProseMirror [data-type="column"]
|
|
262
|
+
.ProseMirror > *:first-child:first-child,
|
|
263
|
+
.ProseMirror [data-type="column"] > *:first-child {
|
|
264
264
|
margin-top: 0px;
|
|
265
265
|
}
|
|
266
|
-
.ProseMirror
|
|
267
|
-
.ProseMirror [data-type="column"]
|
|
266
|
+
.ProseMirror > *:first-child:last-child,
|
|
267
|
+
.ProseMirror [data-type="column"] > *:last-child {
|
|
268
268
|
margin-bottom: 0px;
|
|
269
269
|
}
|
|
270
|
-
.ProseMirror
|
|
270
|
+
.ProseMirror > * + * {
|
|
271
271
|
margin-top: 0.75em;
|
|
272
272
|
}
|
|
273
273
|
.ProseMirror .node-imageUpload {
|
|
@@ -375,9 +375,6 @@
|
|
|
375
375
|
.ProseMirror .node-imageBlock img {
|
|
376
376
|
overflow: hidden;
|
|
377
377
|
}
|
|
378
|
-
.ProseMirror .node-imageBlock img {
|
|
379
|
-
border-radius: 0.75rem;
|
|
380
|
-
}
|
|
381
378
|
.ProseMirror .node-imageBlock img {
|
|
382
379
|
border-width: 2px;
|
|
383
380
|
}
|
|
@@ -409,45 +406,45 @@
|
|
|
409
406
|
--tw-border-opacity: 1;
|
|
410
407
|
border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
|
|
411
408
|
}
|
|
412
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
409
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
413
410
|
border-radius: var(--radius);
|
|
414
411
|
}
|
|
415
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
412
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
416
413
|
--tw-shadow: 0 0 0 2px;
|
|
417
414
|
--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
|
|
418
415
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
419
416
|
}
|
|
420
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
417
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
421
418
|
--tw-shadow-color: rgb(0 0 0 / 0.3);
|
|
422
419
|
--tw-shadow: var(--tw-shadow-colored);
|
|
423
420
|
}
|
|
424
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
421
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
425
422
|
transition-property: all;
|
|
426
423
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
427
424
|
transition-duration: 150ms;
|
|
428
425
|
}
|
|
429
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
426
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *:is(.courier-dark *), .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *:is(.courier-dark *), .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > *:is(.courier-dark *) {
|
|
430
427
|
--tw-shadow-color: rgb(255 255 255 / 0.3);
|
|
431
428
|
--tw-shadow: var(--tw-shadow-colored);
|
|
432
429
|
}
|
|
433
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
434
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
435
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
430
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock,
|
|
431
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload,
|
|
432
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote {
|
|
436
433
|
outline-color: #404040;
|
|
437
434
|
}
|
|
438
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
439
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
440
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
435
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:hover,
|
|
436
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:hover,
|
|
437
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:hover {
|
|
441
438
|
outline-color: #525252;
|
|
442
439
|
}
|
|
443
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
444
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
445
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
440
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:is(.courier-dark *),
|
|
441
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:is(.courier-dark *),
|
|
442
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:is(.courier-dark *) {
|
|
446
443
|
outline-color: #d4d4d4;
|
|
447
444
|
}
|
|
448
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
449
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
450
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
445
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:hover:is(.courier-dark *),
|
|
446
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:hover:is(.courier-dark *),
|
|
447
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:hover:is(.courier-dark *) {
|
|
451
448
|
outline-color: #a3a3a3;
|
|
452
449
|
}
|
|
453
450
|
*, ::before, ::after {
|
|
@@ -1626,9 +1623,6 @@ body {
|
|
|
1626
1623
|
.courier-rounded-sm {
|
|
1627
1624
|
border-radius: calc(var(--radius) - 4px);
|
|
1628
1625
|
}
|
|
1629
|
-
.courier-rounded-xl {
|
|
1630
|
-
border-radius: 0.75rem;
|
|
1631
|
-
}
|
|
1632
1626
|
.courier-rounded-b-none {
|
|
1633
1627
|
border-bottom-right-radius: 0px;
|
|
1634
1628
|
border-bottom-left-radius: 0px;
|
|
@@ -2193,6 +2187,9 @@ body {
|
|
|
2193
2187
|
.courier-leading-relaxed {
|
|
2194
2188
|
line-height: 1.625;
|
|
2195
2189
|
}
|
|
2190
|
+
.courier-leading-tight {
|
|
2191
|
+
line-height: 1.25;
|
|
2192
|
+
}
|
|
2196
2193
|
.courier-tracking-\[0\.64px\] {
|
|
2197
2194
|
letter-spacing: 0.64px;
|
|
2198
2195
|
}
|
package/dist/styles.css
CHANGED
|
@@ -259,15 +259,15 @@
|
|
|
259
259
|
pointer-events: none;
|
|
260
260
|
width: 100%;
|
|
261
261
|
} */
|
|
262
|
-
.ProseMirror
|
|
263
|
-
.ProseMirror [data-type="column"]
|
|
262
|
+
.ProseMirror > *:first-child:first-child,
|
|
263
|
+
.ProseMirror [data-type="column"] > *:first-child {
|
|
264
264
|
margin-top: 0px;
|
|
265
265
|
}
|
|
266
|
-
.ProseMirror
|
|
267
|
-
.ProseMirror [data-type="column"]
|
|
266
|
+
.ProseMirror > *:first-child:last-child,
|
|
267
|
+
.ProseMirror [data-type="column"] > *:last-child {
|
|
268
268
|
margin-bottom: 0px;
|
|
269
269
|
}
|
|
270
|
-
.ProseMirror
|
|
270
|
+
.ProseMirror > * + * {
|
|
271
271
|
margin-top: 0.75em;
|
|
272
272
|
}
|
|
273
273
|
.ProseMirror .node-imageUpload {
|
|
@@ -375,9 +375,6 @@
|
|
|
375
375
|
.ProseMirror .node-imageBlock img {
|
|
376
376
|
overflow: hidden;
|
|
377
377
|
}
|
|
378
|
-
.ProseMirror .node-imageBlock img {
|
|
379
|
-
border-radius: 0.75rem;
|
|
380
|
-
}
|
|
381
378
|
.ProseMirror .node-imageBlock img {
|
|
382
379
|
border-width: 2px;
|
|
383
380
|
}
|
|
@@ -409,45 +406,45 @@
|
|
|
409
406
|
--tw-border-opacity: 1;
|
|
410
407
|
border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
|
|
411
408
|
}
|
|
412
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
409
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
413
410
|
border-radius: var(--radius);
|
|
414
411
|
}
|
|
415
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
412
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
416
413
|
--tw-shadow: 0 0 0 2px;
|
|
417
414
|
--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
|
|
418
415
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
419
416
|
}
|
|
420
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
417
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
421
418
|
--tw-shadow-color: rgb(0 0 0 / 0.3);
|
|
422
419
|
--tw-shadow: var(--tw-shadow-colored);
|
|
423
420
|
}
|
|
424
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
421
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *, .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > * {
|
|
425
422
|
transition-property: all;
|
|
426
423
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
427
424
|
transition-duration: 150ms;
|
|
428
425
|
}
|
|
429
|
-
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper]
|
|
426
|
+
.ProseMirror .node-aiWriter.has-focus [data-node-view-wrapper] > *:is(.courier-dark *), .ProseMirror .node-aiImage.has-focus [data-node-view-wrapper] > *:is(.courier-dark *), .ProseMirror .node-tableOfContentsNode.has-focus [data-node-view-wrapper] > *:is(.courier-dark *) {
|
|
430
427
|
--tw-shadow-color: rgb(255 255 255 / 0.3);
|
|
431
428
|
--tw-shadow: var(--tw-shadow-colored);
|
|
432
429
|
}
|
|
433
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
434
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
435
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
430
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock,
|
|
431
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload,
|
|
432
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote {
|
|
436
433
|
outline-color: #404040;
|
|
437
434
|
}
|
|
438
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
439
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
440
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
435
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:hover,
|
|
436
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:hover,
|
|
437
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:hover {
|
|
441
438
|
outline-color: #525252;
|
|
442
439
|
}
|
|
443
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
444
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
445
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
440
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:is(.courier-dark *),
|
|
441
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:is(.courier-dark *),
|
|
442
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:is(.courier-dark *) {
|
|
446
443
|
outline-color: #d4d4d4;
|
|
447
444
|
}
|
|
448
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
449
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
450
|
-
.ProseMirror .ProseMirror-gapcursor
|
|
445
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageBlock:hover:is(.courier-dark *),
|
|
446
|
+
.ProseMirror .ProseMirror-gapcursor + .node-imageUpload:hover:is(.courier-dark *),
|
|
447
|
+
.ProseMirror .ProseMirror-gapcursor + .node-blockquote:hover:is(.courier-dark *) {
|
|
451
448
|
outline-color: #a3a3a3;
|
|
452
449
|
}
|
|
453
450
|
*, ::before, ::after {
|
|
@@ -1626,9 +1623,6 @@ body {
|
|
|
1626
1623
|
.courier-rounded-sm {
|
|
1627
1624
|
border-radius: calc(var(--radius) - 4px);
|
|
1628
1625
|
}
|
|
1629
|
-
.courier-rounded-xl {
|
|
1630
|
-
border-radius: 0.75rem;
|
|
1631
|
-
}
|
|
1632
1626
|
.courier-rounded-b-none {
|
|
1633
1627
|
border-bottom-right-radius: 0px;
|
|
1634
1628
|
border-bottom-left-radius: 0px;
|
|
@@ -2193,6 +2187,9 @@ body {
|
|
|
2193
2187
|
.courier-leading-relaxed {
|
|
2194
2188
|
line-height: 1.625;
|
|
2195
2189
|
}
|
|
2190
|
+
.courier-leading-tight {
|
|
2191
|
+
line-height: 1.25;
|
|
2192
|
+
}
|
|
2196
2193
|
.courier-tracking-\[0\.64px\] {
|
|
2197
2194
|
letter-spacing: 0.64px;
|
|
2198
2195
|
}
|
|
@@ -142,10 +142,22 @@ export interface ElementalActionNode extends IsElementalNode {
|
|
|
142
142
|
style?: IActionButtonStyle;
|
|
143
143
|
align?: Align;
|
|
144
144
|
background_color?: string;
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
/** Border radius in pixels */
|
|
146
|
+
border_radius?: string;
|
|
147
|
+
/** Border size in pixels (e.g., "1px") */
|
|
148
|
+
border_size?: string;
|
|
147
149
|
padding?: string;
|
|
148
150
|
disable_tracking?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated Legacy text color. Not supported by Elemental.
|
|
153
|
+
* Kept for backward compatibility when reading old templates.
|
|
154
|
+
*/
|
|
155
|
+
color?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Legacy nested border format. Use flat `border_radius` and `border_size` instead.
|
|
158
|
+
* Kept for backward compatibility when reading old templates.
|
|
159
|
+
*/
|
|
160
|
+
border?: BorderConfig;
|
|
149
161
|
locales?: ElementalLocales<{
|
|
150
162
|
content?: string;
|
|
151
163
|
href?: string;
|
package/package.json
CHANGED