@37signals/lexxy 0.9.3-beta → 0.9.4-beta
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/lexxy.esm.js +1007 -585
- package/dist/lexxy_helpers.esm.js +14 -0
- package/dist/stylesheets/lexxy-editor.css +8 -11
- package/package.json +15 -15
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import Prism from 'prismjs';
|
|
2
|
+
import 'prismjs/components/prism-clike';
|
|
3
|
+
import 'prismjs/components/prism-markup';
|
|
4
|
+
import 'prismjs/components/prism-markup-templating';
|
|
5
|
+
import 'prismjs/components/prism-ruby';
|
|
6
|
+
import 'prismjs/components/prism-php';
|
|
7
|
+
import 'prismjs/components/prism-go';
|
|
8
|
+
import 'prismjs/components/prism-bash';
|
|
9
|
+
import 'prismjs/components/prism-json';
|
|
10
|
+
import 'prismjs/components/prism-diff';
|
|
11
|
+
|
|
12
|
+
// Configure Prism for manual highlighting mode
|
|
13
|
+
// This must be set before importing prismjs
|
|
14
|
+
window.Prism ||= {};
|
|
15
|
+
window.Prism.manual = true;
|
|
2
16
|
|
|
3
17
|
function createElement(name, properties, content = "") {
|
|
4
18
|
const element = document.createElement(name);
|
|
@@ -637,23 +637,19 @@
|
|
|
637
637
|
|
|
638
638
|
lexxy-link-dropdown {
|
|
639
639
|
font-size: var(--lexxy-text-small);
|
|
640
|
+
gap: var(--lexxy-toolbar-spacing);
|
|
640
641
|
inset-inline-start: var(--lexxy-toolbar-spacing);
|
|
641
642
|
inset-inline-end: var(--lexxy-toolbar-spacing);
|
|
642
643
|
|
|
643
|
-
|
|
644
|
-
display:
|
|
645
|
-
flex: 1;
|
|
646
|
-
gap: var(--lexxy-toolbar-spacing);
|
|
647
|
-
|
|
648
|
-
[overflowing] & {
|
|
649
|
-
display: block;
|
|
644
|
+
[overflowing] [open] & {
|
|
645
|
+
display: block;
|
|
650
646
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
647
|
+
.lexxy-editor__toolbar-dropdown-actions {
|
|
648
|
+
margin-block-start: var(--lexxy-toolbar-spacing);
|
|
654
649
|
}
|
|
655
650
|
}
|
|
656
651
|
|
|
652
|
+
|
|
657
653
|
.lexxy-editor__toolbar-dropdown-actions {
|
|
658
654
|
display: flex;
|
|
659
655
|
flex: 1;
|
|
@@ -681,7 +677,7 @@
|
|
|
681
677
|
padding-inline: 2ch;
|
|
682
678
|
}
|
|
683
679
|
|
|
684
|
-
button[
|
|
680
|
+
button[value="link"] {
|
|
685
681
|
background-color: var(--lexxy-color-accent-dark);
|
|
686
682
|
color: var(--lexxy-color-ink-inverted);
|
|
687
683
|
|
|
@@ -1022,6 +1018,7 @@
|
|
|
1022
1018
|
&[data-clipped-at-right] {
|
|
1023
1019
|
inset-inline-start: unset;
|
|
1024
1020
|
inset-inline-end: 1ch;
|
|
1021
|
+
max-inline-size: calc(100% - 1ch);
|
|
1025
1022
|
}
|
|
1026
1023
|
|
|
1027
1024
|
&[data-clipped-at-bottom] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@37signals/lexxy",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-beta",
|
|
4
4
|
"description": "Lexxy - A modern rich text editor for Rails.",
|
|
5
5
|
"module": "dist/lexxy.esm.js",
|
|
6
6
|
"type": "module",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"release": "yarn build:npm && yarn publish"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@lexical/clipboard": "^0.
|
|
52
|
-
"@lexical/code": "^0.
|
|
53
|
-
"@lexical/extension": "^0.
|
|
54
|
-
"@lexical/history": "^0.
|
|
55
|
-
"@lexical/html": "^0.
|
|
56
|
-
"@lexical/link": "^0.
|
|
57
|
-
"@lexical/list": "^0.
|
|
58
|
-
"@lexical/markdown": "^0.
|
|
59
|
-
"@lexical/plain-text": "^0.
|
|
60
|
-
"@lexical/rich-text": "^0.
|
|
61
|
-
"@lexical/selection": "^0.
|
|
62
|
-
"@lexical/table": "^0.
|
|
63
|
-
"@lexical/utils": "^0.
|
|
51
|
+
"@lexical/clipboard": "^0.42.0",
|
|
52
|
+
"@lexical/code": "^0.42.0",
|
|
53
|
+
"@lexical/extension": "^0.42.0",
|
|
54
|
+
"@lexical/history": "^0.42.0",
|
|
55
|
+
"@lexical/html": "^0.42.0",
|
|
56
|
+
"@lexical/link": "^0.42.0",
|
|
57
|
+
"@lexical/list": "^0.42.0",
|
|
58
|
+
"@lexical/markdown": "^0.42.0",
|
|
59
|
+
"@lexical/plain-text": "^0.42.0",
|
|
60
|
+
"@lexical/rich-text": "^0.42.0",
|
|
61
|
+
"@lexical/selection": "^0.42.0",
|
|
62
|
+
"@lexical/table": "^0.42.0",
|
|
63
|
+
"@lexical/utils": "^0.42.0",
|
|
64
64
|
"dompurify": "^3.3.0",
|
|
65
|
-
"lexical": "^0.
|
|
65
|
+
"lexical": "^0.42.0",
|
|
66
66
|
"marked": "^16.4.1",
|
|
67
67
|
"prismjs": "^1.30.0"
|
|
68
68
|
},
|