notra-editor 0.2.0 → 0.3.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.
@@ -228,13 +228,6 @@
228
228
  outline: none;
229
229
  }
230
230
 
231
- .notra-editor .tiptap-button .tiptap-button-icon {
232
- width: 1rem;
233
- height: 1rem;
234
- flex-shrink: 0;
235
- color: inherit;
236
- }
237
-
238
231
  .notra-editor .tiptap-button:hover:not([disabled]) {
239
232
  background-color: var(--tt-button-hover-bg-color);
240
233
  color: var(--tt-button-hover-icon-color);
@@ -261,19 +254,6 @@
261
254
  /* Dropdown menu */
262
255
  --tt-dropdown-menu-bg-color: var(--white);
263
256
  --tt-dropdown-menu-text-color: var(--tt-gray-light-a-600);
264
-
265
- /* Popover */
266
- --tt-popover-bg-color: var(--white);
267
- --tt-popover-border-color: var(--tt-gray-light-a-100);
268
-
269
- /* Card */
270
- --tiptap-card-bg-color: var(--white);
271
- --tiptap-card-border-color: var(--tt-gray-light-a-100);
272
-
273
- /* Input */
274
- --tt-input-placeholder: var(--tt-gray-light-a-400);
275
- --tt-input-border: var(--tt-gray-light-a-200);
276
- --tt-input-border-focus: var(--tt-gray-light-a-300);
277
257
  }
278
258
 
279
259
  /* =====================
@@ -332,99 +312,3 @@
332
312
  transform: translateX(-50%) scale(1) translateY(0);
333
313
  }
334
314
  }
335
-
336
- /* =====================
337
- Popover
338
- ===================== */
339
- .notra-editor .tiptap-popover-content {
340
- z-index: 9999;
341
- transform: translateX(-50%);
342
- animation: popover-in 150ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
343
- }
344
-
345
- @keyframes popover-in {
346
- from {
347
- opacity: 0;
348
- transform: translateX(-50%) scale(0.95) translateY(-0.25rem);
349
- }
350
- to {
351
- opacity: 1;
352
- transform: translateX(-50%) scale(1) translateY(0);
353
- }
354
- }
355
-
356
- /* =====================
357
- Card
358
- ===================== */
359
- .notra-editor .tiptap-card {
360
- display: flex;
361
- flex-direction: column;
362
- border-radius: calc(0.375rem + var(--tt-radius-lg));
363
- box-shadow: var(--tt-shadow-elevated-md);
364
- background-color: var(--tiptap-card-bg-color);
365
- border: 1px solid var(--tiptap-card-border-color);
366
- outline: none;
367
- min-width: 0;
368
- }
369
-
370
- .notra-editor .tiptap-card-body {
371
- padding: 0.375rem;
372
- flex: 1 1 auto;
373
- overflow-y: auto;
374
- }
375
-
376
- .notra-editor .tiptap-card-item-group {
377
- position: relative;
378
- display: flex;
379
- vertical-align: middle;
380
- min-width: max-content;
381
- }
382
-
383
- .notra-editor .tiptap-card-item-group[data-orientation='vertical'] {
384
- flex-direction: column;
385
- justify-content: center;
386
- }
387
-
388
- .notra-editor .tiptap-card-item-group[data-orientation='horizontal'] {
389
- flex-direction: row;
390
- align-items: center;
391
- gap: 0.25rem;
392
- }
393
-
394
- /* =====================
395
- Input
396
- ===================== */
397
- .notra-editor .tiptap-input {
398
- width: 100%;
399
- min-width: 0;
400
- height: 2rem;
401
- padding: 0.25rem 0.625rem;
402
- border-radius: var(--tt-radius-md);
403
- border: 1px solid var(--tt-input-border);
404
- background: transparent;
405
- font-size: 0.875rem;
406
- outline: none;
407
- transition: border-color 150ms;
408
- }
409
-
410
- .notra-editor .tiptap-input::placeholder {
411
- color: var(--tt-input-placeholder);
412
- }
413
-
414
- .notra-editor .tiptap-input:focus-visible {
415
- border-color: var(--tt-input-border-focus);
416
- }
417
-
418
- .notra-editor .tiptap-link-input {
419
- font-size: 0.875rem;
420
- border: none;
421
- min-width: 12rem;
422
- padding-right: 0;
423
- text-overflow: ellipsis;
424
- white-space: nowrap;
425
- }
426
-
427
- .notra-editor .tiptap-link-input:focus {
428
- text-overflow: clip;
429
- overflow: visible;
430
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "notra-editor",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "A Markdown-first rich text editor for React",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -25,7 +25,8 @@
25
25
  },
26
26
  "./themes/default/shared.css": "./dist/themes/default/shared.css",
27
27
  "./themes/default/editor.css": "./dist/themes/default/editor.css",
28
- "./themes/default/reader.css": "./dist/themes/default/reader.css"
28
+ "./themes/default/reader.css": "./dist/themes/default/reader.css",
29
+ "./styles/globals.css": "./dist/styles/globals.css"
29
30
  },
30
31
  "main": "./dist/index.cjs",
31
32
  "module": "./dist/index.mjs",
@@ -34,10 +35,11 @@
34
35
  "dist"
35
36
  ],
36
37
  "peerDependencies": {
37
- "react": "^18.0.0 || ^19.0.0",
38
- "react-dom": "^18.0.0 || ^19.0.0"
38
+ "react": "^19.0.0",
39
+ "react-dom": "^19.0.0"
39
40
  },
40
41
  "dependencies": {
42
+ "@radix-ui/react-slot": "^1.2.4",
41
43
  "@tiptap/core": "^3.22.4",
42
44
  "@tiptap/extension-link": "^3.22.4",
43
45
  "@tiptap/extension-list": "^3.22.4",
@@ -45,22 +47,32 @@
45
47
  "@tiptap/react": "^3.22.4",
46
48
  "@tiptap/starter-kit": "^3.22.4",
47
49
  "@tiptap/static-renderer": "^3.22.4",
50
+ "class-variance-authority": "^0.7.1",
51
+ "clsx": "^2.1.1",
52
+ "lucide-react": "^1.9.0",
53
+ "radix-ui": "^1.4.3",
54
+ "tailwind-merge": "^3.5.0",
48
55
  "tiptap-markdown": "^0.8.10"
49
56
  },
50
57
  "devDependencies": {
58
+ "@tailwindcss/postcss": "^4.2.4",
51
59
  "@testing-library/jest-dom": "^6.6.3",
52
60
  "@testing-library/react": "^16.3.0",
53
61
  "@types/react": "19.2.2",
54
62
  "@types/react-dom": "19.2.2",
55
63
  "jsdom": "^26.1.0",
64
+ "postcss": "^8.5.10",
65
+ "postcss-cli": "^11.0.1",
56
66
  "react": "^19.2.0",
57
67
  "react-dom": "^19.2.0",
68
+ "tailwindcss": "^4.2.4",
58
69
  "tsup": "^8.4.0",
59
70
  "typescript": "^5.8.0",
60
71
  "vitest": "^4.0.18"
61
72
  },
62
73
  "scripts": {
63
- "build": "tsup",
74
+ "build": "tsup && pnpm build:css",
75
+ "build:css": "postcss src/styles/globals.css -o dist/styles/globals.css",
64
76
  "dev": "tsup --watch",
65
77
  "test": "vitest run --passWithNoTests",
66
78
  "test:watch": "vitest",