@squiz/formatted-text-editor 1.56.1-alpha.14 → 1.56.1-alpha.15
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/lib/index.css +14 -14
- package/package.json +4 -4
- package/src/Editor/_editor.scss +2 -1
package/lib/index.css
CHANGED
@@ -791,7 +791,7 @@
|
|
791
791
|
line-height: 1.23;
|
792
792
|
padding-top: 0.25rem;
|
793
793
|
}
|
794
|
-
.squiz-fte-scope__editor {
|
794
|
+
.squiz-fte-scope.squiz-fte-scope__editor {
|
795
795
|
font-family: "Open Sans" !important;
|
796
796
|
border-radius: 8px;
|
797
797
|
--tw-border-opacity: 1;
|
@@ -799,14 +799,14 @@
|
|
799
799
|
--tw-bg-opacity: 1;
|
800
800
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
801
801
|
}
|
802
|
-
.squiz-fte-scope__editor:has(.squiz-fte-scope__editor__children) {
|
802
|
+
.squiz-fte-scope.squiz-fte-scope__editor:has(.squiz-fte-scope.squiz-fte-scope__editor__children) {
|
803
803
|
min-height: 2rem;
|
804
804
|
width: 100%;
|
805
805
|
}
|
806
|
-
.squiz-fte-scope__editor:has(.squiz-fte-scope__editor__children) .remirror-editor {
|
806
|
+
.squiz-fte-scope.squiz-fte-scope__editor:has(.squiz-fte-scope.squiz-fte-scope__editor__children) .remirror-editor {
|
807
807
|
padding-top: 0px;
|
808
808
|
}
|
809
|
-
.squiz-fte-scope__editor .remirror-editor {
|
809
|
+
.squiz-fte-scope.squiz-fte-scope__editor .remirror-editor {
|
810
810
|
padding: 2rem;
|
811
811
|
--tw-shadow: 0 0 #0000;
|
812
812
|
--tw-shadow-colored: 0 0 #0000;
|
@@ -817,27 +817,27 @@
|
|
817
817
|
overflow: auto;
|
818
818
|
min-height: 15vh;
|
819
819
|
}
|
820
|
-
.squiz-fte-scope__editor .remirror-editor:active,
|
821
|
-
.squiz-fte-scope__editor .remirror-editor:focus {
|
820
|
+
.squiz-fte-scope.squiz-fte-scope__editor .remirror-editor:active,
|
821
|
+
.squiz-fte-scope.squiz-fte-scope__editor .remirror-editor:focus {
|
822
822
|
outline-width: 0px;
|
823
823
|
}
|
824
|
-
.squiz-fte-scope__editor .remirror-editor p {
|
824
|
+
.squiz-fte-scope.squiz-fte-scope__editor .remirror-editor p {
|
825
825
|
display: block;
|
826
826
|
}
|
827
|
-
.squiz-fte-scope__editor--bordered {
|
827
|
+
.squiz-fte-scope.squiz-fte-scope__editor--bordered {
|
828
828
|
border-width: 2px;
|
829
829
|
border-style: solid;
|
830
830
|
}
|
831
|
-
.squiz-fte-scope__editor--is-disabled {
|
831
|
+
.squiz-fte-scope.squiz-fte-scope__editor--is-disabled {
|
832
832
|
cursor: not-allowed;
|
833
833
|
border-width: 0px;
|
834
834
|
--tw-bg-opacity: 1;
|
835
835
|
background-color: rgb(247 247 247 / var(--tw-bg-opacity));
|
836
836
|
}
|
837
|
-
.squiz-fte-scope__editor--is-disabled .remirror-is-empty:first-of-type::before {
|
837
|
+
.squiz-fte-scope.squiz-fte-scope__editor--is-disabled .remirror-is-empty:first-of-type::before {
|
838
838
|
display: none;
|
839
839
|
}
|
840
|
-
.squiz-fte-scope__editor .remirror-is-empty:first-of-type::before {
|
840
|
+
.squiz-fte-scope.squiz-fte-scope__editor .remirror-is-empty:first-of-type::before {
|
841
841
|
position: absolute;
|
842
842
|
pointer-events: none;
|
843
843
|
height: 0;
|
@@ -846,16 +846,16 @@
|
|
846
846
|
--tw-text-opacity: 1;
|
847
847
|
color: rgb(148 148 148 / var(--tw-text-opacity));
|
848
848
|
}
|
849
|
-
.squiz-fte-scope__editor .ProseMirror-selectednode {
|
849
|
+
.squiz-fte-scope.squiz-fte-scope__editor .ProseMirror-selectednode {
|
850
850
|
border-width: 2px;
|
851
851
|
border-style: solid;
|
852
852
|
--tw-border-opacity: 1;
|
853
853
|
border-color: rgb(7 116 210 / var(--tw-border-opacity));
|
854
854
|
}
|
855
|
-
.squiz-fte-scope__editor img {
|
855
|
+
.squiz-fte-scope.squiz-fte-scope__editor img {
|
856
856
|
display: inline;
|
857
857
|
}
|
858
|
-
.squiz-fte-scope__editor:has(.show-toolbar) {
|
858
|
+
.squiz-fte-scope.squiz-fte-scope__editor:has(.show-toolbar) {
|
859
859
|
border-width: 0px;
|
860
860
|
--tw-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 1px 12px 4px rgba(0,0,0,0.12);
|
861
861
|
--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color), 0 1px 12px 4px var(--tw-shadow-color);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@squiz/formatted-text-editor",
|
3
|
-
"version": "1.56.1-alpha.
|
3
|
+
"version": "1.56.1-alpha.15",
|
4
4
|
"main": "lib/index.js",
|
5
5
|
"types": "lib/index.d.ts",
|
6
6
|
"scripts": {
|
@@ -19,8 +19,8 @@
|
|
19
19
|
"@headlessui/react": "1.7.11",
|
20
20
|
"@mui/icons-material": "5.11.16",
|
21
21
|
"@remirror/react": "2.0.25",
|
22
|
-
"@squiz/dx-json-schema-lib": "1.56.1-alpha.
|
23
|
-
"@squiz/resource-browser": "1.56.1-alpha.
|
22
|
+
"@squiz/dx-json-schema-lib": "1.56.1-alpha.15",
|
23
|
+
"@squiz/resource-browser": "1.56.1-alpha.15",
|
24
24
|
"clsx": "1.2.1",
|
25
25
|
"react-hook-form": "7.43.2",
|
26
26
|
"react-image-size": "2.0.0",
|
@@ -74,5 +74,5 @@
|
|
74
74
|
"volta": {
|
75
75
|
"node": "18.15.0"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "535180139d270a04e80bbcfd27e85c852e22fb63"
|
78
78
|
}
|
package/src/Editor/_editor.scss
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
.squiz-
|
1
|
+
/* 2 class selectors so specificity is higher vs eg. ".squiz-ce-scope *" which would take priority over this. */
|
2
|
+
.squiz-fte-scope.squiz-fte-scope__editor {
|
2
3
|
font-family: 'Open Sans' !important;
|
3
4
|
@apply bg-white rounded border-gray-300;
|
4
5
|
|