@squiz/formatted-text-editor 2.6.1 → 2.6.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6ee7c0c: Updated various Squiz dependencies.
8
+
3
9
  ## 2.6.1
4
10
 
5
11
  ### Patch Changes
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;
@@ -3471,6 +3483,67 @@
3471
3483
  .squiz-fte-scope .sds-skip-links__button:active {
3472
3484
  background: #ededed;
3473
3485
  }
3486
+ .squiz-fte-scope .sds-sortable-list.presentation-only .sds-sortable-list__item-content {
3487
+ margin-right: unset;
3488
+ }
3489
+ .squiz-fte-scope .sds-sortable-list__item {
3490
+ align-items: center;
3491
+ display: flex;
3492
+ gap: 0.5rem;
3493
+ position: relative;
3494
+ }
3495
+ .squiz-fte-scope .sds-sortable-list__item:last-of-type::before {
3496
+ content: none;
3497
+ }
3498
+ .squiz-fte-scope .sds-sortable-list__list {
3499
+ display: flex;
3500
+ flex-direction: column;
3501
+ gap: 0.5rem;
3502
+ list-style-type: none;
3503
+ padding: 0;
3504
+ }
3505
+ .squiz-fte-scope .sds-sortable-list__list--dragging .sds-sortable-list__item-dots {
3506
+ display: none;
3507
+ }
3508
+ .squiz-fte-scope .sds-sortable-list__list--dragging .sds-tooltip {
3509
+ visibility: hidden;
3510
+ }
3511
+ .squiz-fte-scope .sds-sortable-list__item-content {
3512
+ display: flex;
3513
+ flex-direction: row;
3514
+ gap: 0.5rem;
3515
+ width: 100%;
3516
+ }
3517
+ @media screen and (min-width: 576px) {
3518
+ .squiz-fte-scope .sds-sortable-list__item-content {
3519
+ gap: 1rem;
3520
+ }
3521
+ }
3522
+ .squiz-fte-scope .sds-sortable-list .sds-tooltip__wrapper {
3523
+ height: -moz-min-content;
3524
+ height: min-content;
3525
+ }
3526
+ .squiz-fte-scope .sds-sortable-list .sds-tooltip__wrapper:has(.sds-sortable-list__item-remove) {
3527
+ position: absolute;
3528
+ right: 1rem;
3529
+ top: 0.75rem;
3530
+ }
3531
+ .squiz-fte-scope .sds-sortable-list__item-drag-btn {
3532
+ align-self: baseline;
3533
+ }
3534
+ .squiz-fte-scope .sds-sortable-list__item-drag-btn svg {
3535
+ height: 1.5rem;
3536
+ width: 1.5rem;
3537
+ }
3538
+ .squiz-fte-scope .sds-sortable-list__item-drag-btn--disabled {
3539
+ opacity: 0.5;
3540
+ pointer-events: none;
3541
+ }
3542
+ .squiz-fte-scope .sds-sortable-list--presentation-grey-box .sds-sortable-list__item-content {
3543
+ background-color: #ededed;
3544
+ border-radius: 0.25rem;
3545
+ padding: 0.375rem 0.625rem;
3546
+ }
3474
3547
  .squiz-fte-scope .sds-source-selector__item button {
3475
3548
  font-size: 0.875rem;
3476
3549
  font-weight: 400;
@@ -3588,6 +3661,12 @@
3588
3661
  border-radius: 50%;
3589
3662
  color: currentcolor;
3590
3663
  }
3664
+ .squiz-fte-scope .sds-spinner.spinner--lg {
3665
+ border: 0.1875rem solid currentcolor;
3666
+ height: 3rem;
3667
+ width: 3rem;
3668
+ border-right-color: transparent;
3669
+ }
3591
3670
  .squiz-fte-scope .sds-spinner.spinner--regular {
3592
3671
  border: 0.1875rem solid currentcolor;
3593
3672
  height: 2rem;
@@ -4368,6 +4447,9 @@
4368
4447
  gap: 0.75rem;
4369
4448
  margin-left: 3rem;
4370
4449
  }
4450
+ .squiz-fte-scope .sds-sequence-list .simple-list {
4451
+ padding-inline-start: 0;
4452
+ }
4371
4453
 
4372
4454
  /* ../../node_modules/@squiz/dxp-content-tools-modal/lib/package.css */
4373
4455
  .dxp-ctm-section .squiz-fte-scope.squiz-fte-scope__editor.squiz-fte-scope__editor--is-disabled.squiz-fte-scope__editor--bordered {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/formatted-text-editor",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
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-ai-client-react": "^0.2.0",
31
29
  "@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",
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": "^0.2.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.4.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": "^0.2.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.4.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",