@squiz/formatted-text-editor 2.6.1 → 2.6.3
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/CHANGELOG.md +12 -0
- package/lib/index.css +130 -7
- package/package.json +13 -8
package/CHANGELOG.md
CHANGED
package/lib/index.css
CHANGED
@@ -2301,6 +2301,18 @@
|
|
2301
2301
|
margin: 0;
|
2302
2302
|
padding: 0;
|
2303
2303
|
}
|
2304
|
+
.squiz-fte-scope .sds-dropdown-section__heading {
|
2305
|
+
background: #f5f5f5;
|
2306
|
+
border-radius: 0.25rem;
|
2307
|
+
color: #707070;
|
2308
|
+
font-weight: 600;
|
2309
|
+
margin: 0.25rem 0;
|
2310
|
+
padding: 0.25rem 0.5rem;
|
2311
|
+
text-align: center;
|
2312
|
+
}
|
2313
|
+
.squiz-fte-scope .sds-dropdown-heading + div > .sds-dropdown-section:nth-child(1) .sds-dropdown-section__heading {
|
2314
|
+
margin-top: 0;
|
2315
|
+
}
|
2304
2316
|
.squiz-fte-scope .sds-dropdown-list {
|
2305
2317
|
list-style-type: none;
|
2306
2318
|
margin: 0;
|
@@ -3064,6 +3076,12 @@
|
|
3064
3076
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
3065
3077
|
padding: 1rem;
|
3066
3078
|
}
|
3079
|
+
.squiz-fte-scope .sds-row.no-border {
|
3080
|
+
box-shadow: none;
|
3081
|
+
}
|
3082
|
+
.squiz-fte-scope .sds-row.no-children .sds-row__header-text {
|
3083
|
+
margin-bottom: 0;
|
3084
|
+
}
|
3067
3085
|
.squiz-fte-scope .sds-row__title {
|
3068
3086
|
font-size: 1.25rem;
|
3069
3087
|
font-weight: 600;
|
@@ -3071,14 +3089,43 @@
|
|
3071
3089
|
line-height: 1.5rem;
|
3072
3090
|
color: #3d3d3d;
|
3073
3091
|
display: block;
|
3074
|
-
margin-bottom: 0.75rem;
|
3075
3092
|
}
|
3076
3093
|
.squiz-fte-scope .sds-row__title .svg-wrapper svg {
|
3077
3094
|
fill: #3d3d3d;
|
3078
3095
|
}
|
3079
|
-
.squiz-fte-scope .sds-
|
3080
|
-
|
3081
|
-
|
3096
|
+
.squiz-fte-scope .sds-row__subtitle {
|
3097
|
+
color: #4f4f4f;
|
3098
|
+
}
|
3099
|
+
.squiz-fte-scope .sds-row__header-text {
|
3100
|
+
display: flex;
|
3101
|
+
flex-direction: column;
|
3102
|
+
gap: 0.75rem;
|
3103
|
+
margin-bottom: 0.75rem;
|
3104
|
+
}
|
3105
|
+
@media screen and (max-width: 768px) {
|
3106
|
+
.squiz-fte-scope .sds-row__header-text {
|
3107
|
+
width: 100%;
|
3108
|
+
}
|
3109
|
+
.squiz-fte-scope .sds-row__header-actions {
|
3110
|
+
margin-top: 0.5rem;
|
3111
|
+
width: 100%;
|
3112
|
+
}
|
3113
|
+
.squiz-fte-scope .sds-row__header-actions .sds-button {
|
3114
|
+
display: grid;
|
3115
|
+
place-items: center;
|
3116
|
+
width: 100%;
|
3117
|
+
}
|
3118
|
+
}
|
3119
|
+
.squiz-fte-scope .sds-row__header {
|
3120
|
+
align-items: center;
|
3121
|
+
display: flex;
|
3122
|
+
flex-direction: column;
|
3123
|
+
justify-content: space-between;
|
3124
|
+
}
|
3125
|
+
@media screen and (min-width: 768px) {
|
3126
|
+
.squiz-fte-scope .sds-row__header {
|
3127
|
+
flex-direction: row;
|
3128
|
+
}
|
3082
3129
|
}
|
3083
3130
|
.squiz-fte-scope .sds-heading--level-1 {
|
3084
3131
|
font-size: 1.625rem;
|
@@ -3471,6 +3518,67 @@
|
|
3471
3518
|
.squiz-fte-scope .sds-skip-links__button:active {
|
3472
3519
|
background: #ededed;
|
3473
3520
|
}
|
3521
|
+
.squiz-fte-scope .sds-sortable-list.presentation-only .sds-sortable-list__item-content {
|
3522
|
+
margin-right: unset;
|
3523
|
+
}
|
3524
|
+
.squiz-fte-scope .sds-sortable-list__item {
|
3525
|
+
align-items: center;
|
3526
|
+
display: flex;
|
3527
|
+
gap: 0.5rem;
|
3528
|
+
position: relative;
|
3529
|
+
}
|
3530
|
+
.squiz-fte-scope .sds-sortable-list__item:last-of-type::before {
|
3531
|
+
content: none;
|
3532
|
+
}
|
3533
|
+
.squiz-fte-scope .sds-sortable-list__list {
|
3534
|
+
display: flex;
|
3535
|
+
flex-direction: column;
|
3536
|
+
gap: 0.5rem;
|
3537
|
+
list-style-type: none;
|
3538
|
+
padding: 0;
|
3539
|
+
}
|
3540
|
+
.squiz-fte-scope .sds-sortable-list__list--dragging .sds-sortable-list__item-dots {
|
3541
|
+
display: none;
|
3542
|
+
}
|
3543
|
+
.squiz-fte-scope .sds-sortable-list__list--dragging .sds-tooltip {
|
3544
|
+
visibility: hidden;
|
3545
|
+
}
|
3546
|
+
.squiz-fte-scope .sds-sortable-list__item-content {
|
3547
|
+
display: flex;
|
3548
|
+
flex-direction: row;
|
3549
|
+
gap: 0.5rem;
|
3550
|
+
width: 100%;
|
3551
|
+
}
|
3552
|
+
@media screen and (min-width: 576px) {
|
3553
|
+
.squiz-fte-scope .sds-sortable-list__item-content {
|
3554
|
+
gap: 1rem;
|
3555
|
+
}
|
3556
|
+
}
|
3557
|
+
.squiz-fte-scope .sds-sortable-list .sds-tooltip__wrapper {
|
3558
|
+
height: -moz-min-content;
|
3559
|
+
height: min-content;
|
3560
|
+
}
|
3561
|
+
.squiz-fte-scope .sds-sortable-list .sds-tooltip__wrapper:has(.sds-sortable-list__item-remove) {
|
3562
|
+
position: absolute;
|
3563
|
+
right: 1rem;
|
3564
|
+
top: 0.75rem;
|
3565
|
+
}
|
3566
|
+
.squiz-fte-scope .sds-sortable-list__item-drag-btn {
|
3567
|
+
align-self: baseline;
|
3568
|
+
}
|
3569
|
+
.squiz-fte-scope .sds-sortable-list__item-drag-btn svg {
|
3570
|
+
height: 1.5rem;
|
3571
|
+
width: 1.5rem;
|
3572
|
+
}
|
3573
|
+
.squiz-fte-scope .sds-sortable-list__item-drag-btn--disabled {
|
3574
|
+
opacity: 0.5;
|
3575
|
+
pointer-events: none;
|
3576
|
+
}
|
3577
|
+
.squiz-fte-scope .sds-sortable-list--presentation-grey-box .sds-sortable-list__item-content {
|
3578
|
+
background-color: #ededed;
|
3579
|
+
border-radius: 0.25rem;
|
3580
|
+
padding: 0.375rem 0.625rem;
|
3581
|
+
}
|
3474
3582
|
.squiz-fte-scope .sds-source-selector__item button {
|
3475
3583
|
font-size: 0.875rem;
|
3476
3584
|
font-weight: 400;
|
@@ -3588,6 +3696,12 @@
|
|
3588
3696
|
border-radius: 50%;
|
3589
3697
|
color: currentcolor;
|
3590
3698
|
}
|
3699
|
+
.squiz-fte-scope .sds-spinner.spinner--lg {
|
3700
|
+
border: 0.1875rem solid currentcolor;
|
3701
|
+
height: 3rem;
|
3702
|
+
width: 3rem;
|
3703
|
+
border-right-color: transparent;
|
3704
|
+
}
|
3591
3705
|
.squiz-fte-scope .sds-spinner.spinner--regular {
|
3592
3706
|
border: 0.1875rem solid currentcolor;
|
3593
3707
|
height: 2rem;
|
@@ -4368,11 +4482,11 @@
|
|
4368
4482
|
gap: 0.75rem;
|
4369
4483
|
margin-left: 3rem;
|
4370
4484
|
}
|
4485
|
+
.squiz-fte-scope .sds-sequence-list .simple-list {
|
4486
|
+
padding-inline-start: 0;
|
4487
|
+
}
|
4371
4488
|
|
4372
4489
|
/* ../../node_modules/@squiz/dxp-content-tools-modal/lib/package.css */
|
4373
|
-
.dxp-ctm-section .squiz-fte-scope.squiz-fte-scope__editor.squiz-fte-scope__editor--is-disabled.squiz-fte-scope__editor--bordered {
|
4374
|
-
overflow-y: scroll;
|
4375
|
-
}
|
4376
4490
|
@keyframes skeleton-pulse {
|
4377
4491
|
0% {
|
4378
4492
|
opacity: 1;
|
@@ -4413,6 +4527,7 @@
|
|
4413
4527
|
display: flex;
|
4414
4528
|
flex: 1;
|
4415
4529
|
flex-direction: column;
|
4530
|
+
max-width: calc(50% - 1rem * 2);
|
4416
4531
|
padding: 1rem;
|
4417
4532
|
}
|
4418
4533
|
.squiz-fte-scope .dxp-ctm-content > .dxp-ctm-section > .squiz-fte-scope {
|
@@ -4421,6 +4536,14 @@
|
|
4421
4536
|
.squiz-fte-scope .dxp-ctm-content > .dxp-ctm-section > .squiz-fte-scope:not(.dxp-ctm-section__spinner) {
|
4422
4537
|
background-color: #fff;
|
4423
4538
|
}
|
4539
|
+
.dxp-ctm-section .squiz-fte-scope.squiz-fte-scope__editor.squiz-fte-scope__editor--is-disabled.squiz-fte-scope__editor--bordered {
|
4540
|
+
overflow-y: scroll;
|
4541
|
+
}
|
4542
|
+
.squiz-fte-scope .dxp-ctm-section__viperTextInput {
|
4543
|
+
background-color: #fff !important;
|
4544
|
+
flex-grow: 1;
|
4545
|
+
overflow-y: auto;
|
4546
|
+
}
|
4424
4547
|
.squiz-fte-scope .dxp-ctm-dialog .sds-dialog__content {
|
4425
4548
|
max-height: 100%;
|
4426
4549
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/formatted-text-editor",
|
3
|
-
"version": "2.6.
|
3
|
+
"version": "2.6.3",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"private": false,
|
@@ -25,19 +25,19 @@
|
|
25
25
|
"@mui/icons-material": "5.15.18",
|
26
26
|
"@remirror/extension-react-tables": "^2.2.21",
|
27
27
|
"@remirror/react": "2.0.35",
|
28
|
-
"@squiz/dam-resource-browser-plugin": "^3.0.3-rc.0",
|
29
28
|
"@squiz/dx-json-schema-lib": "^1.74.1",
|
30
|
-
"@squiz/dxp-
|
31
|
-
"@squiz/dxp-content-tools-modal": "^0.3.2",
|
32
|
-
"@squiz/matrix-resource-browser-plugin": "^3.0.3-rc.0",
|
33
|
-
"@squiz/resource-browser": "^3.0.1-rc.0",
|
34
|
-
"@squiz/sds": "^1.0.2",
|
29
|
+
"@squiz/dxp-content-tools-modal": "^0.4.0",
|
35
30
|
"clsx": "2.1.1",
|
36
31
|
"react-hook-form": "7.51.4",
|
37
32
|
"react-image-size": "2.0.0",
|
38
33
|
"remirror": "2.0.39"
|
39
34
|
},
|
40
35
|
"devDependencies": {
|
36
|
+
"@squiz/dam-resource-browser-plugin": "^3.1.0-rc.1",
|
37
|
+
"@squiz/dxp-ai-client-react": "^1.0.0",
|
38
|
+
"@squiz/matrix-resource-browser-plugin": "^3.1.0-rc.5",
|
39
|
+
"@squiz/resource-browser": "^3.1.0-rc.0",
|
40
|
+
"@squiz/sds": "^1.5.0",
|
41
41
|
"@testing-library/cypress": "9.0.0",
|
42
42
|
"@testing-library/jest-dom": "5.16.5",
|
43
43
|
"@testing-library/react": "14.0.0",
|
@@ -70,6 +70,11 @@
|
|
70
70
|
"vite": "^4.5.3"
|
71
71
|
},
|
72
72
|
"peerDependencies": {
|
73
|
+
"@squiz/dam-resource-browser-plugin": "^3.1.0-rc.1",
|
74
|
+
"@squiz/dxp-ai-client-react": "^1.0.0",
|
75
|
+
"@squiz/matrix-resource-browser-plugin": "^3.1.0-rc.5",
|
76
|
+
"@squiz/resource-browser": "^3.1.0-rc.0",
|
77
|
+
"@squiz/sds": "^1.5.0",
|
73
78
|
"@types/react": "^16.14.0 || ^17 || ^18",
|
74
79
|
"@types/react-dom": "^16.9.0 || ^17 || ^18",
|
75
80
|
"lib0": "0.2.69",
|
@@ -85,6 +90,6 @@
|
|
85
90
|
}
|
86
91
|
},
|
87
92
|
"volta": {
|
88
|
-
"
|
93
|
+
"extends": "../../package.json"
|
89
94
|
}
|
90
95
|
}
|