@novaprose/core 0.4.0 → 0.5.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @novaprose/core
2
2
 
3
3
  **NovaProse** is an embeddable rich text (WYSIWYG) editor built on [ProseMirror](https://prosemirror.net).
4
- It is an open-source (MIT) alternative to TinyMCE: toolbar, plugin and option names follow the
5
- conventions you already know, while the output is clean, deterministic HTML.
4
+ It is open source (MIT), produces clean, deterministic HTML, and includes real-time collaboration,
5
+ comments and version history. Toolbar, plugin and option names follow familiar conventions.
6
6
 
7
7
  > **Status: 0.x preview.** The API may change between minor versions until 1.0.
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novaprose/core",
3
- "version": "0.4.0",
3
+ "version": "0.5.2",
4
4
  "description": "NovaProse: embeddable rich text (WYSIWYG) editor built on ProseMirror. Secure by default, accessible, TinyMCE-compatible plugin and toolbar names.",
5
5
  "keywords": [
6
6
  "wysiwyg",
@@ -9,7 +9,6 @@
9
9
  "prosemirror",
10
10
  "contenteditable",
11
11
  "html-editor",
12
- "tinymce-alternative",
13
12
  "novaprose"
14
13
  ],
15
14
  "license": "MIT",
package/src/style.css CHANGED
@@ -2231,3 +2231,77 @@ div.nova-diff-removed {
2231
2231
  .nova-prosemirror.nova-suggesting {
2232
2232
  caret-color: var(--nova-success);
2233
2233
  }
2234
+
2235
+ /* ---------- Диалоги по описанию (windowManager.open в @novaprose/tinymce-compat) ---------- */
2236
+
2237
+ .nova-compat-dialog {
2238
+ display: flex;
2239
+ flex-direction: column;
2240
+ gap: 12px;
2241
+ }
2242
+ .nova-compat-tabs {
2243
+ display: flex;
2244
+ gap: 2px;
2245
+ border-bottom: 1px solid var(--nova-border);
2246
+ }
2247
+ .nova-compat-tab {
2248
+ padding: 6px 10px;
2249
+ border: 0;
2250
+ border-bottom: 2px solid transparent;
2251
+ background: none;
2252
+ color: var(--nova-muted);
2253
+ font: inherit;
2254
+ cursor: pointer;
2255
+ }
2256
+ .nova-compat-tab[aria-selected='true'] {
2257
+ border-bottom-color: var(--nova-accent);
2258
+ color: var(--nova-fg);
2259
+ font-weight: 600;
2260
+ }
2261
+ .nova-compat-tab:focus-visible {
2262
+ outline: 2px solid var(--nova-focus);
2263
+ outline-offset: -2px;
2264
+ }
2265
+ .nova-compat-tabpanel {
2266
+ display: flex;
2267
+ flex-direction: column;
2268
+ gap: 12px;
2269
+ }
2270
+ .nova-compat-tabpanel[hidden] {
2271
+ display: none;
2272
+ }
2273
+ .nova-compat-grid {
2274
+ display: grid;
2275
+ gap: 10px;
2276
+ }
2277
+ .nova-compat-group {
2278
+ display: flex;
2279
+ flex-direction: column;
2280
+ gap: 8px;
2281
+ }
2282
+ .nova-compat-actions {
2283
+ display: flex;
2284
+ flex-wrap: wrap;
2285
+ gap: 8px;
2286
+ }
2287
+ .nova-compat-alert {
2288
+ margin: 0;
2289
+ padding: 8px 10px;
2290
+ border-radius: var(--nova-radius-sm);
2291
+ background: var(--nova-active);
2292
+ color: var(--nova-fg);
2293
+ }
2294
+ .nova-compat-alert.is-warn {
2295
+ background: var(--nova-warning-bg);
2296
+ }
2297
+ .nova-compat-alert.is-error {
2298
+ background: var(--nova-danger-bg);
2299
+ color: var(--nova-danger);
2300
+ }
2301
+ .nova-compat-alert.is-success {
2302
+ background: var(--nova-success-bg);
2303
+ }
2304
+ .nova-compat-html {
2305
+ line-height: 1.5;
2306
+ overflow-wrap: anywhere;
2307
+ }