@squiz/formatted-text-editor 2.6.2 → 2.6.4

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.
@@ -0,0 +1,2 @@
1
+ ignores: ['@remirror/*', 'prosemirror-*']
2
+ ignorePatterns: ['*.scss']
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - a63dfe8: Revise dependencies
8
+ - Updated dependencies [a63dfe8]
9
+ - @squiz/dx-json-schema-lib@1.80.1
10
+
11
+ ## 2.6.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 89270a9: Updated Viper/AI Squiz dependencies.
16
+
3
17
  ## 2.6.2
4
18
 
5
19
  ### Patch Changes
package/lib/index.css CHANGED
@@ -3076,6 +3076,12 @@
3076
3076
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
3077
3077
  padding: 1rem;
3078
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
+ }
3079
3085
  .squiz-fte-scope .sds-row__title {
3080
3086
  font-size: 1.25rem;
3081
3087
  font-weight: 600;
@@ -3083,14 +3089,43 @@
3083
3089
  line-height: 1.5rem;
3084
3090
  color: #3d3d3d;
3085
3091
  display: block;
3086
- margin-bottom: 0.75rem;
3087
3092
  }
3088
3093
  .squiz-fte-scope .sds-row__title .svg-wrapper svg {
3089
3094
  fill: #3d3d3d;
3090
3095
  }
3091
- .squiz-fte-scope .sds-row__title:only-child,
3092
- .squiz-fte-scope .sds-row__title:last-child {
3093
- margin-bottom: 0;
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
+ }
3094
3129
  }
3095
3130
  .squiz-fte-scope .sds-heading--level-1 {
3096
3131
  font-size: 1.625rem;
@@ -4452,9 +4487,6 @@
4452
4487
  }
4453
4488
 
4454
4489
  /* ../../node_modules/@squiz/dxp-content-tools-modal/lib/package.css */
4455
- .dxp-ctm-section .squiz-fte-scope.squiz-fte-scope__editor.squiz-fte-scope__editor--is-disabled.squiz-fte-scope__editor--bordered {
4456
- overflow-y: scroll;
4457
- }
4458
4490
  @keyframes skeleton-pulse {
4459
4491
  0% {
4460
4492
  opacity: 1;
@@ -4495,6 +4527,7 @@
4495
4527
  display: flex;
4496
4528
  flex: 1;
4497
4529
  flex-direction: column;
4530
+ max-width: calc(50% - 1rem * 2);
4498
4531
  padding: 1rem;
4499
4532
  }
4500
4533
  .squiz-fte-scope .dxp-ctm-content > .dxp-ctm-section > .squiz-fte-scope {
@@ -4503,6 +4536,14 @@
4503
4536
  .squiz-fte-scope .dxp-ctm-content > .dxp-ctm-section > .squiz-fte-scope:not(.dxp-ctm-section__spinner) {
4504
4537
  background-color: #fff;
4505
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
+ }
4506
4547
  .squiz-fte-scope .dxp-ctm-dialog .sds-dialog__content {
4507
4548
  max-height: 100%;
4508
4549
  }
@@ -5613,7 +5654,7 @@
5613
5654
  top: -12px;
5614
5655
  width: 0;
5615
5656
  }
5616
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n + 2) {
5657
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n+2) {
5617
5658
  cursor: pointer;
5618
5659
  height: 12px;
5619
5660
  overflow: visible;
@@ -5621,7 +5662,7 @@
5621
5662
  position: relative;
5622
5663
  z-index: 15;
5623
5664
  }
5624
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n + 2) div.remirror-table-controller-wrapper {
5665
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n+2) div.remirror-table-controller-wrapper {
5625
5666
  align-items: flex-end;
5626
5667
  display: flex;
5627
5668
  flex-direction: row;
@@ -5630,16 +5671,16 @@
5630
5671
  overflow: visible;
5631
5672
  width: 100%;
5632
5673
  }
5633
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n + 2) div.remirror-table-controller-trigger-area {
5674
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n+2) div.remirror-table-controller-trigger-area {
5634
5675
  flex: 1;
5635
5676
  height: 36px;
5636
5677
  position: relative;
5637
5678
  z-index: 10;
5638
5679
  }
5639
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n + 2) div.remirror-table-controller-mark-row-corner {
5680
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n+2) div.remirror-table-controller-mark-row-corner {
5640
5681
  display: none;
5641
5682
  }
5642
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n + 2) div.remirror-table-controller-mark-column-corner {
5683
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:first-of-type th:nth-of-type(n+2) div.remirror-table-controller-mark-column-corner {
5643
5684
  border-color: var(--rmr-color-table-mark);
5644
5685
  border-radius: 50%;
5645
5686
  border-style: solid;
@@ -5650,7 +5691,7 @@
5650
5691
  top: -12px;
5651
5692
  width: 0;
5652
5693
  }
5653
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n + 2) th {
5694
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n+2) th {
5654
5695
  cursor: pointer;
5655
5696
  overflow: visible;
5656
5697
  padding: 0;
@@ -5658,7 +5699,7 @@
5658
5699
  width: 12px;
5659
5700
  z-index: 15;
5660
5701
  }
5661
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n + 2) th div.remirror-table-controller-wrapper {
5702
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n+2) th div.remirror-table-controller-wrapper {
5662
5703
  align-items: flex-end;
5663
5704
  display: flex;
5664
5705
  flex-direction: column;
@@ -5667,13 +5708,13 @@
5667
5708
  overflow: visible;
5668
5709
  width: 12px;
5669
5710
  }
5670
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n + 2) th div.remirror-table-controller-trigger-area {
5711
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n+2) th div.remirror-table-controller-trigger-area {
5671
5712
  flex: 1;
5672
5713
  position: relative;
5673
5714
  width: 36px;
5674
5715
  z-index: 10;
5675
5716
  }
5676
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n + 2) th div.remirror-table-controller-mark-row-corner {
5717
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n+2) th div.remirror-table-controller-mark-row-corner {
5677
5718
  border-color: var(--rmr-color-table-mark);
5678
5719
  border-radius: 50%;
5679
5720
  border-style: solid;
@@ -5684,7 +5725,7 @@
5684
5725
  position: absolute;
5685
5726
  width: 0;
5686
5727
  }
5687
- .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n + 2) th div.remirror-table-controller-mark-column-corner {
5728
+ .squiz-fte-scope .remirror-table-tbody-with-controllers > tr:nth-of-type(n+2) th div.remirror-table-controller-mark-column-corner {
5688
5729
  display: none;
5689
5730
  }
5690
5731
  .squiz-fte-scope .remirror-table-tbody-with-controllers th.remirror-table-controller {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/formatted-text-editor",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "private": false,
@@ -25,8 +25,8 @@
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/dx-json-schema-lib": "^1.74.1",
29
- "@squiz/dxp-content-tools-modal": "^0.3.2",
28
+ "@squiz/dx-json-schema-lib": "^1.80.1",
29
+ "@squiz/dxp-content-tools-modal": "^0.4.0",
30
30
  "clsx": "2.1.1",
31
31
  "react-hook-form": "7.51.4",
32
32
  "react-image-size": "2.0.0",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@squiz/dam-resource-browser-plugin": "^3.1.0-rc.1",
37
- "@squiz/dxp-ai-client-react": "^0.2.0",
37
+ "@squiz/dxp-ai-client-react": "^1.0.0",
38
38
  "@squiz/matrix-resource-browser-plugin": "^3.1.0-rc.5",
39
39
  "@squiz/resource-browser": "^3.1.0-rc.0",
40
- "@squiz/sds": "^1.4.0",
41
- "@testing-library/cypress": "9.0.0",
40
+ "@squiz/sds": "^1.5.0",
41
+ "@testing-library/cypress": "^10.0.2",
42
42
  "@testing-library/jest-dom": "5.16.5",
43
43
  "@testing-library/react": "14.0.0",
44
44
  "@testing-library/user-event": "14.4.3",
@@ -47,14 +47,15 @@
47
47
  "@types/react-dom": "^18.2.18",
48
48
  "@vitejs/plugin-react": "3.0.0",
49
49
  "autoprefixer": "10.4.13",
50
- "cypress": "12.5.1",
50
+ "cypress": "^13.17.0",
51
51
  "deepmerge": "4.3.0",
52
+ "esbuild": "^0.24.2",
52
53
  "esbuild-sass-plugin": "^2.8.0",
53
54
  "eslint-plugin-cypress": "2.12.1",
55
+ "eslint-plugin-jest": "^27.2.1",
54
56
  "eslint-plugin-jsx-a11y": "6.7.1",
55
57
  "eslint-plugin-react": "7.32.2",
56
58
  "jest": "29.4.1",
57
- "jest-environment-jsdom": "29.4.1",
58
59
  "jest-remirror": "2.1.5",
59
60
  "postcss": "8.4.31",
60
61
  "postcss-nested": "6.0.0",
@@ -63,7 +64,6 @@
63
64
  "react-diff-viewer-continued": "3.2.6",
64
65
  "react-dom": "18.2.0",
65
66
  "react-query": "^3.19.6",
66
- "rimraf": "5.0.7",
67
67
  "tailwindcss": "3.2.6",
68
68
  "ts-jest": "29.0.5",
69
69
  "typescript": "4.9.3",
@@ -71,10 +71,10 @@
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@squiz/dam-resource-browser-plugin": "^3.1.0-rc.1",
74
- "@squiz/dxp-ai-client-react": "^0.2.0",
74
+ "@squiz/dxp-ai-client-react": "^1.0.0",
75
75
  "@squiz/matrix-resource-browser-plugin": "^3.1.0-rc.5",
76
76
  "@squiz/resource-browser": "^3.1.0-rc.0",
77
- "@squiz/sds": "^1.4.0",
77
+ "@squiz/sds": "^1.5.0",
78
78
  "@types/react": "^16.14.0 || ^17 || ^18",
79
79
  "@types/react-dom": "^16.9.0 || ^17 || ^18",
80
80
  "lib0": "0.2.69",
@@ -90,6 +90,6 @@
90
90
  }
91
91
  },
92
92
  "volta": {
93
- "node": "18.15.0"
93
+ "extends": "../../package.json"
94
94
  }
95
95
  }