@flogeez/angular-tiptap-editor 3.2.2 → 3.4.0
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 +26 -0
- package/README.md +17 -19
- package/esm2022/lib/components/bubble-menus/base/ate-base-bubble-menu.mjs +3 -3
- package/esm2022/lib/components/bubble-menus/base/ate-base-sub-bubble-menu.mjs +1 -1
- package/esm2022/lib/components/bubble-menus/color/ate-color-bubble-menu.component.mjs +2 -2
- package/esm2022/lib/components/bubble-menus/link/ate-link-bubble-menu.component.mjs +2 -2
- package/esm2022/lib/components/edit-toggle/ate-edit-toggle.component.mjs +1 -1
- package/esm2022/lib/components/editor/angular-tiptap-editor.component.mjs +23 -7
- package/esm2022/lib/components/editor/ate-block-controls.component.mjs +4 -4
- package/esm2022/lib/components/slash-commands/ate-slash-commands.component.mjs +2 -2
- package/esm2022/lib/components/table-of-contents/ate-table-of-contents.component.mjs +359 -0
- package/esm2022/lib/extensions/ate-block-controls.extension.mjs +3 -3
- package/esm2022/lib/i18n/ateTranslationsModel.mjs +2 -0
- package/esm2022/lib/i18n/de_ateTranslations.mjs +190 -0
- package/esm2022/lib/i18n/en_ateTranslations.mjs +190 -0
- package/esm2022/lib/i18n/fr_ateTranslations.mjs +190 -0
- package/esm2022/lib/services/ate-i18n.service.mjs +6 -374
- package/esm2022/lib/services/ate-image.service.mjs +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/flogeez-angular-tiptap-editor.mjs +589 -20
- package/fesm2022/flogeez-angular-tiptap-editor.mjs.map +1 -1
- package/lib/components/bubble-menus/base/ate-base-bubble-menu.d.ts +1 -1
- package/lib/components/bubble-menus/base/ate-base-sub-bubble-menu.d.ts +1 -1
- package/lib/components/edit-toggle/ate-edit-toggle.component.d.ts +1 -1
- package/lib/components/editor/angular-tiptap-editor.component.d.ts +3 -2
- package/lib/components/table-of-contents/ate-table-of-contents.component.d.ts +48 -0
- package/lib/i18n/ateTranslationsModel.d.ts +190 -0
- package/lib/i18n/de_ateTranslations.d.ts +2 -0
- package/lib/i18n/en_ateTranslations.d.ts +2 -0
- package/lib/i18n/fr_ateTranslations.d.ts +2 -0
- package/lib/services/ate-i18n.service.d.ts +5 -187
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/src/lib/styles/ate-variables.global.css +173 -0
- package/src/lib/styles/index.css +1 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Full Design Tokens & CSS Custom Properties for angular-tiptap-editor
|
|
3
|
+
========================================================================== */
|
|
4
|
+
:root {
|
|
5
|
+
/* ===== BASE TOKENS ===== */
|
|
6
|
+
--ate-primary: #2563eb;
|
|
7
|
+
--ate-primary-hover: #153ca9;
|
|
8
|
+
--ate-primary-contrast: #ffffff;
|
|
9
|
+
--ate-primary-light: color-mix(in srgb, var(--ate-primary), transparent 90%);
|
|
10
|
+
--ate-primary-lighter: color-mix(in srgb, var(--ate-primary), transparent 95%);
|
|
11
|
+
--ate-primary-light-alpha: color-mix(in srgb, var(--ate-primary), transparent 85%);
|
|
12
|
+
|
|
13
|
+
--ate-surface: #ffffff;
|
|
14
|
+
--ate-surface-secondary: #f8f9fa;
|
|
15
|
+
--ate-surface-tertiary: #f1f5f9;
|
|
16
|
+
--ate-surface-hover: rgba(37, 99, 235, 0.05);
|
|
17
|
+
|
|
18
|
+
--ate-text: #2d3748;
|
|
19
|
+
--ate-text-primary: #1e293b;
|
|
20
|
+
--ate-text-secondary: #64748b;
|
|
21
|
+
--ate-text-muted: #a0aec0;
|
|
22
|
+
|
|
23
|
+
--ate-border: #e2e8f0;
|
|
24
|
+
|
|
25
|
+
--ate-highlight-bg: #fef08a;
|
|
26
|
+
--ate-highlight-color: #854d0e;
|
|
27
|
+
|
|
28
|
+
--ate-button-hover: #f1f5f9;
|
|
29
|
+
--ate-button-active: #e2e8f0;
|
|
30
|
+
|
|
31
|
+
--ate-selection-bg: var(--ate-primary-light-alpha);
|
|
32
|
+
|
|
33
|
+
--ate-error-color: #c53030;
|
|
34
|
+
--ate-error-bg: #fed7d7;
|
|
35
|
+
--ate-error-border: #feb2b2;
|
|
36
|
+
|
|
37
|
+
/* ===== COMPONENT TOKENS ===== */
|
|
38
|
+
--ate-border-color: var(--ate-border);
|
|
39
|
+
--ate-border-width: 2px;
|
|
40
|
+
--ate-border-radius: 12px;
|
|
41
|
+
--ate-sub-border-radius: 8px;
|
|
42
|
+
--ate-focus-color: var(--ate-primary);
|
|
43
|
+
--ate-background: var(--ate-surface);
|
|
44
|
+
|
|
45
|
+
/* Content */
|
|
46
|
+
--ate-text-color: var(--ate-text);
|
|
47
|
+
--ate-placeholder-color: var(--ate-text-muted);
|
|
48
|
+
--ate-line-height: 1.6;
|
|
49
|
+
--ate-content-padding-block: 16px;
|
|
50
|
+
--ate-content-padding-inline: 16px;
|
|
51
|
+
--ate-content-gutter: 0px;
|
|
52
|
+
|
|
53
|
+
/* Menus (Slash/Bubble/TOC) */
|
|
54
|
+
--ate-menu-bg: var(--ate-surface);
|
|
55
|
+
--ate-menu-border-radius: var(--ate-border-radius);
|
|
56
|
+
--ate-menu-border: var(--ate-border);
|
|
57
|
+
--ate-menu-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
58
|
+
--ate-menu-padding: 4px;
|
|
59
|
+
--ate-menu-gap: 2px;
|
|
60
|
+
|
|
61
|
+
/* Toolbar */
|
|
62
|
+
--ate-toolbar-padding: var(--ate-menu-padding);
|
|
63
|
+
--ate-toolbar-gap: var(--ate-menu-gap);
|
|
64
|
+
--ate-toolbar-background: var(--ate-surface-secondary);
|
|
65
|
+
--ate-toolbar-border-color: var(--ate-border);
|
|
66
|
+
--ate-toolbar-button-color: var(--ate-text-secondary);
|
|
67
|
+
--ate-toolbar-button-hover-background: transparent;
|
|
68
|
+
--ate-toolbar-button-active-background: var(--ate-primary-light);
|
|
69
|
+
--ate-toolbar-button-active-color: var(--ate-primary);
|
|
70
|
+
|
|
71
|
+
/* Counter & Footer */
|
|
72
|
+
--ate-counter-color: var(--ate-text-secondary);
|
|
73
|
+
--ate-counter-background: var(--ate-surface-secondary);
|
|
74
|
+
--ate-counter-border-color: var(--ate-border);
|
|
75
|
+
|
|
76
|
+
/* Table of Contents (TOC) */
|
|
77
|
+
--ate-toc-width: 240px;
|
|
78
|
+
--ate-toc-gap: 2px;
|
|
79
|
+
--ate-toc-item-height: 16px;
|
|
80
|
+
--ate-toc-item-hover-height: 24px;
|
|
81
|
+
--ate-toc-border-radius: var(--ate-border-radius);
|
|
82
|
+
--ate-toc-padding: var(--ate-menu-padding);
|
|
83
|
+
--ate-toc-hitbox-padding: 16px;
|
|
84
|
+
--ate-toc-hitbox-padding-vertical: 8px;
|
|
85
|
+
|
|
86
|
+
/* Drag & Drop */
|
|
87
|
+
--ate-drag-background: #f0f8ff;
|
|
88
|
+
--ate-drag-border-color: var(--ate-primary);
|
|
89
|
+
|
|
90
|
+
/* Blockquote */
|
|
91
|
+
--ate-blockquote-border-color: var(--ate-border);
|
|
92
|
+
--ate-blockquote-background: var(--ate-surface-secondary);
|
|
93
|
+
|
|
94
|
+
/* Code */
|
|
95
|
+
--ate-code-background: var(--ate-surface-secondary);
|
|
96
|
+
--ate-code-color: var(--ate-text);
|
|
97
|
+
--ate-code-border-color: var(--ate-border);
|
|
98
|
+
|
|
99
|
+
--ate-code-block-background: #0f172a;
|
|
100
|
+
--ate-code-block-color: #e2e8f0;
|
|
101
|
+
--ate-code-block-border-color: var(--ate-border);
|
|
102
|
+
|
|
103
|
+
/* Images */
|
|
104
|
+
--ate-image-border-radius: 16px;
|
|
105
|
+
--ate-image-selected-color: var(--ate-primary);
|
|
106
|
+
|
|
107
|
+
/* Scrollbars */
|
|
108
|
+
--ate-scrollbar-width: 10px;
|
|
109
|
+
--ate-scrollbar-thumb: var(--ate-border);
|
|
110
|
+
--ate-scrollbar-thumb-hover: var(--ate-text-muted);
|
|
111
|
+
--ate-scrollbar-track: transparent;
|
|
112
|
+
|
|
113
|
+
/* Tables */
|
|
114
|
+
--ate-table-border-color: var(--ate-border);
|
|
115
|
+
--ate-table-header-background: var(--ate-surface-secondary);
|
|
116
|
+
--ate-table-header-color: var(--ate-text);
|
|
117
|
+
--ate-table-cell-background: var(--ate-surface);
|
|
118
|
+
--ate-table-cell-selected-background: var(--ate-primary-light);
|
|
119
|
+
--ate-table-resize-handle-color: var(--ate-primary);
|
|
120
|
+
--ate-table-row-hover-background: var(--ate-primary-lighter);
|
|
121
|
+
|
|
122
|
+
/* Floating UI & Tooltips */
|
|
123
|
+
--ate-tooltip-bg: var(--ate-code-block-background, #0f172a);
|
|
124
|
+
--ate-tooltip-color: var(--ate-code-block-color, #e2e8f0);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Dark mode global theme support */
|
|
128
|
+
.dark,
|
|
129
|
+
:root.dark,
|
|
130
|
+
body.dark,
|
|
131
|
+
:root[data-theme="dark"],
|
|
132
|
+
[data-theme="dark"] {
|
|
133
|
+
--ate-primary: #3b82f6;
|
|
134
|
+
--ate-primary-contrast: #ffffff;
|
|
135
|
+
--ate-primary-light: color-mix(in srgb, var(--ate-primary), transparent 85%);
|
|
136
|
+
--ate-primary-lighter: color-mix(in srgb, var(--ate-primary), transparent 92%);
|
|
137
|
+
--ate-primary-light-alpha: color-mix(in srgb, var(--ate-primary), transparent 80%);
|
|
138
|
+
|
|
139
|
+
--ate-surface: #020617;
|
|
140
|
+
--ate-surface-secondary: #0f172a;
|
|
141
|
+
--ate-surface-tertiary: #1e293b;
|
|
142
|
+
--ate-surface-hover: rgba(59, 130, 246, 0.1);
|
|
143
|
+
|
|
144
|
+
--ate-text: #f8fafc;
|
|
145
|
+
--ate-text-primary: #f8fafc;
|
|
146
|
+
--ate-text-secondary: #94a3b8;
|
|
147
|
+
--ate-text-muted: #64748b;
|
|
148
|
+
|
|
149
|
+
--ate-border: #1e293b;
|
|
150
|
+
|
|
151
|
+
--ate-highlight-bg: #854d0e;
|
|
152
|
+
--ate-highlight-color: #fef08a;
|
|
153
|
+
|
|
154
|
+
--ate-button-hover: #1e293b;
|
|
155
|
+
--ate-button-active: #0f172a;
|
|
156
|
+
|
|
157
|
+
--ate-menu-border: rgba(255, 255, 255, 0.1);
|
|
158
|
+
--ate-menu-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
|
|
159
|
+
|
|
160
|
+
--ate-error-color: #f87171;
|
|
161
|
+
--ate-error-bg: #450a0a;
|
|
162
|
+
--ate-error-border: #7f1d1d;
|
|
163
|
+
|
|
164
|
+
--ate-drag-background: var(--ate-surface-tertiary);
|
|
165
|
+
--ate-drag-border-color: var(--ate-primary);
|
|
166
|
+
--ate-blockquote-border-color: var(--ate-primary);
|
|
167
|
+
--ate-toolbar-button-active-background: var(--ate-primary-light);
|
|
168
|
+
--ate-toolbar-button-active-color: var(--ate-primary);
|
|
169
|
+
--ate-button-hover: var(--ate-surface-tertiary);
|
|
170
|
+
--ate-button-active: var(--ate-surface-secondary);
|
|
171
|
+
--ate-scrollbar-thumb: var(--ate-surface-tertiary);
|
|
172
|
+
--ate-scrollbar-thumb-hover: var(--ate-text-muted);
|
|
173
|
+
}
|
package/src/lib/styles/index.css
CHANGED