@jotx-labs/editor 2.4.149 → 2.4.151

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.
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Document Header Styles - Web Compatible
2
+ * Document Header Styles - Knowledge Hub Theme Compatible
3
+ * Uses app's CSS custom properties for seamless theming
3
4
  */
4
5
 
5
6
  .jotx-header {
@@ -13,19 +14,11 @@
13
14
  justify-content: space-between;
14
15
  height: 60px;
15
16
  padding: 0 24px;
16
- background-color: #ffffff;
17
- border-bottom: 1px solid #dee2e6;
17
+ background-color: hsl(var(--background));
18
+ border-bottom: 1px solid hsl(var(--border));
18
19
  backdrop-filter: blur(8px);
19
20
  }
20
21
 
21
- /* Dark mode support */
22
- @media (prefers-color-scheme: dark) {
23
- .jotx-header {
24
- background-color: #1e1e1e;
25
- border-bottom-color: #3e3e3e;
26
- }
27
- }
28
-
29
22
  .jotx-header-left {
30
23
  display: flex;
31
24
  align-items: center;
@@ -48,8 +41,7 @@
48
41
  width: 32px;
49
42
  height: 32px;
50
43
  flex-shrink: 0;
51
- color: #14b8a6;
52
- /* Teal brand color */
44
+ color: hsl(var(--accent));
53
45
  }
54
46
 
55
47
  .jotx-header-logo-svg {
@@ -66,33 +58,20 @@
66
58
  align-items: center;
67
59
  gap: 6px;
68
60
  padding: 6px 12px;
69
- border: 1px solid #e5e7eb;
70
- background: #f9fafb;
61
+ border: 1px solid hsl(var(--border));
62
+ background: hsl(var(--muted));
71
63
  border-radius: 6px;
72
64
  cursor: pointer;
73
65
  transition: all 0.2s;
74
- color: #4b5563;
66
+ color: hsl(var(--muted-foreground));
75
67
  font-size: 13px;
76
68
  font-weight: 500;
77
69
  }
78
70
 
79
71
  .jotx-header-type-button:hover {
80
- background: #f3f4f6;
81
- border-color: #d1d5db;
82
- color: #1f2937;
83
- }
84
-
85
- @media (prefers-color-scheme: dark) {
86
- .jotx-header-type-button {
87
- background: #2d2d2d;
88
- border-color: #4a4a4a;
89
- color: #d4d4d4;
90
- }
91
-
92
- .jotx-header-type-button:hover {
93
- background: #373737;
94
- border-color: #5a5a5a;
95
- }
72
+ background: hsl(var(--accent) / 0.1);
73
+ border-color: hsl(var(--accent) / 0.3);
74
+ color: hsl(var(--foreground));
96
75
  }
97
76
 
98
77
  .jotx-header-type-label {
@@ -110,42 +89,26 @@
110
89
  top: 100%;
111
90
  left: 0;
112
91
  margin-top: 4px;
113
- background: #ffffff;
114
- border: 1px solid #e5e7eb;
92
+ background: hsl(var(--popover));
93
+ border: 1px solid hsl(var(--border));
115
94
  border-radius: 8px;
116
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
95
+ box-shadow: var(--shadow-md);
117
96
  width: 200px;
118
97
  z-index: 200;
119
98
  overflow: hidden;
120
99
  }
121
100
 
122
- @media (prefers-color-scheme: dark) {
123
- .jotx-header-type-menu {
124
- background: #2d2d2d;
125
- border-color: #4a4a4a;
126
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
127
- }
128
- }
129
-
130
101
  .jotx-type-menu-header {
131
102
  padding: 8px 12px;
132
103
  font-size: 11px;
133
104
  font-weight: 600;
134
- color: #6b7280;
135
- border-bottom: 1px solid #e5e7eb;
136
- background: #f9fafb;
105
+ color: hsl(var(--muted-foreground));
106
+ border-bottom: 1px solid hsl(var(--border));
107
+ background: hsl(var(--muted) / 0.5);
137
108
  text-transform: uppercase;
138
109
  letter-spacing: 0.5px;
139
110
  }
140
111
 
141
- @media (prefers-color-scheme: dark) {
142
- .jotx-type-menu-header {
143
- background: #1e1e1e;
144
- border-bottom-color: #3e3e3e;
145
- color: #9ca3af;
146
- }
147
- }
148
-
149
112
  .jotx-type-menu-list {
150
113
  padding: 4px;
151
114
  }
@@ -158,7 +121,7 @@
158
121
  width: 100%;
159
122
  border: none;
160
123
  background: transparent;
161
- color: #1f2937;
124
+ color: hsl(var(--foreground));
162
125
  font-size: 13px;
163
126
  text-align: left;
164
127
  cursor: pointer;
@@ -167,22 +130,12 @@
167
130
  }
168
131
 
169
132
  .jotx-type-menu-item:hover {
170
- background: #f3f4f6;
133
+ background: hsl(var(--muted));
171
134
  }
172
135
 
173
136
  .jotx-type-menu-item.active {
174
- background: #14b8a6;
175
- color: #ffffff;
176
- }
177
-
178
- @media (prefers-color-scheme: dark) {
179
- .jotx-type-menu-item {
180
- color: #e5e7eb;
181
- }
182
-
183
- .jotx-type-menu-item:hover {
184
- background: #373737;
185
- }
137
+ background: hsl(var(--accent));
138
+ color: hsl(var(--accent-foreground));
186
139
  }
187
140
 
188
141
  /* Title */
@@ -195,7 +148,7 @@
195
148
  margin: 0;
196
149
  font-size: 18px;
197
150
  font-weight: 600;
198
- color: #1f2937;
151
+ color: hsl(var(--foreground));
199
152
  cursor: text;
200
153
  white-space: nowrap;
201
154
  overflow: hidden;
@@ -207,17 +160,7 @@
207
160
 
208
161
  .jotx-header-title:hover {
209
162
  opacity: 0.7;
210
- background: #f9fafb;
211
- }
212
-
213
- @media (prefers-color-scheme: dark) {
214
- .jotx-header-title {
215
- color: #f3f4f6;
216
- }
217
-
218
- .jotx-header-title:hover {
219
- background: #2d2d2d;
220
- }
163
+ background: hsl(var(--muted) / 0.5);
221
164
  }
222
165
 
223
166
  .jotx-header-title-input {
@@ -225,22 +168,14 @@
225
168
  padding: 6px 12px;
226
169
  font-size: 18px;
227
170
  font-weight: 600;
228
- color: #1f2937;
229
- background-color: #f9fafb;
230
- border: 2px solid #14b8a6;
171
+ color: hsl(var(--foreground));
172
+ background-color: hsl(var(--muted));
173
+ border: 2px solid hsl(var(--accent));
231
174
  border-radius: 6px;
232
175
  outline: none;
233
176
  font-family: inherit;
234
177
  }
235
178
 
236
- @media (prefers-color-scheme: dark) {
237
- .jotx-header-title-input {
238
- background: #2d2d2d;
239
- color: #f3f4f6;
240
- border-color: #14b8a6;
241
- }
242
- }
243
-
244
179
  /* Buttons */
245
180
  .jotx-header-button,
246
181
  .jotx-header-graph-btn,
@@ -251,7 +186,7 @@
251
186
  width: 36px;
252
187
  height: 36px;
253
188
  padding: 0;
254
- color: #6b7280;
189
+ color: hsl(var(--muted-foreground));
255
190
  background-color: transparent;
256
191
  border: none;
257
192
  border-radius: 6px;
@@ -262,8 +197,8 @@
262
197
  .jotx-header-button:hover:not(:disabled),
263
198
  .jotx-header-graph-btn:hover,
264
199
  .jotx-header-help-btn:hover {
265
- color: #1f2937;
266
- background-color: #f3f4f6;
200
+ color: hsl(var(--foreground));
201
+ background-color: hsl(var(--muted));
267
202
  }
268
203
 
269
204
  .jotx-header-button:active:not(:disabled) {
@@ -275,22 +210,6 @@
275
210
  cursor: not-allowed;
276
211
  }
277
212
 
278
- @media (prefers-color-scheme: dark) {
279
-
280
- .jotx-header-button,
281
- .jotx-header-graph-btn,
282
- .jotx-header-help-btn {
283
- color: #9ca3af;
284
- }
285
-
286
- .jotx-header-button:hover:not(:disabled),
287
- .jotx-header-graph-btn:hover,
288
- .jotx-header-help-btn:hover {
289
- color: #e5e7eb;
290
- background-color: #373737;
291
- }
292
- }
293
-
294
213
  .jotx-header-button svg {
295
214
  width: 16px;
296
215
  height: 16px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotx-labs/editor",
3
- "version": "2.4.149",
3
+ "version": "2.4.151",
4
4
  "files": [
5
5
  "dist",
6
6
  "src/styles"
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Document Header Styles - Web Compatible
2
+ * Document Header Styles - Knowledge Hub Theme Compatible
3
+ * Uses app's CSS custom properties for seamless theming
3
4
  */
4
5
 
5
6
  .jotx-header {
@@ -13,19 +14,11 @@
13
14
  justify-content: space-between;
14
15
  height: 60px;
15
16
  padding: 0 24px;
16
- background-color: #ffffff;
17
- border-bottom: 1px solid #dee2e6;
17
+ background-color: hsl(var(--background));
18
+ border-bottom: 1px solid hsl(var(--border));
18
19
  backdrop-filter: blur(8px);
19
20
  }
20
21
 
21
- /* Dark mode support */
22
- @media (prefers-color-scheme: dark) {
23
- .jotx-header {
24
- background-color: #1e1e1e;
25
- border-bottom-color: #3e3e3e;
26
- }
27
- }
28
-
29
22
  .jotx-header-left {
30
23
  display: flex;
31
24
  align-items: center;
@@ -48,8 +41,7 @@
48
41
  width: 32px;
49
42
  height: 32px;
50
43
  flex-shrink: 0;
51
- color: #14b8a6;
52
- /* Teal brand color */
44
+ color: hsl(var(--accent));
53
45
  }
54
46
 
55
47
  .jotx-header-logo-svg {
@@ -66,33 +58,20 @@
66
58
  align-items: center;
67
59
  gap: 6px;
68
60
  padding: 6px 12px;
69
- border: 1px solid #e5e7eb;
70
- background: #f9fafb;
61
+ border: 1px solid hsl(var(--border));
62
+ background: hsl(var(--muted));
71
63
  border-radius: 6px;
72
64
  cursor: pointer;
73
65
  transition: all 0.2s;
74
- color: #4b5563;
66
+ color: hsl(var(--muted-foreground));
75
67
  font-size: 13px;
76
68
  font-weight: 500;
77
69
  }
78
70
 
79
71
  .jotx-header-type-button:hover {
80
- background: #f3f4f6;
81
- border-color: #d1d5db;
82
- color: #1f2937;
83
- }
84
-
85
- @media (prefers-color-scheme: dark) {
86
- .jotx-header-type-button {
87
- background: #2d2d2d;
88
- border-color: #4a4a4a;
89
- color: #d4d4d4;
90
- }
91
-
92
- .jotx-header-type-button:hover {
93
- background: #373737;
94
- border-color: #5a5a5a;
95
- }
72
+ background: hsl(var(--accent) / 0.1);
73
+ border-color: hsl(var(--accent) / 0.3);
74
+ color: hsl(var(--foreground));
96
75
  }
97
76
 
98
77
  .jotx-header-type-label {
@@ -110,42 +89,26 @@
110
89
  top: 100%;
111
90
  left: 0;
112
91
  margin-top: 4px;
113
- background: #ffffff;
114
- border: 1px solid #e5e7eb;
92
+ background: hsl(var(--popover));
93
+ border: 1px solid hsl(var(--border));
115
94
  border-radius: 8px;
116
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
95
+ box-shadow: var(--shadow-md);
117
96
  width: 200px;
118
97
  z-index: 200;
119
98
  overflow: hidden;
120
99
  }
121
100
 
122
- @media (prefers-color-scheme: dark) {
123
- .jotx-header-type-menu {
124
- background: #2d2d2d;
125
- border-color: #4a4a4a;
126
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
127
- }
128
- }
129
-
130
101
  .jotx-type-menu-header {
131
102
  padding: 8px 12px;
132
103
  font-size: 11px;
133
104
  font-weight: 600;
134
- color: #6b7280;
135
- border-bottom: 1px solid #e5e7eb;
136
- background: #f9fafb;
105
+ color: hsl(var(--muted-foreground));
106
+ border-bottom: 1px solid hsl(var(--border));
107
+ background: hsl(var(--muted) / 0.5);
137
108
  text-transform: uppercase;
138
109
  letter-spacing: 0.5px;
139
110
  }
140
111
 
141
- @media (prefers-color-scheme: dark) {
142
- .jotx-type-menu-header {
143
- background: #1e1e1e;
144
- border-bottom-color: #3e3e3e;
145
- color: #9ca3af;
146
- }
147
- }
148
-
149
112
  .jotx-type-menu-list {
150
113
  padding: 4px;
151
114
  }
@@ -158,7 +121,7 @@
158
121
  width: 100%;
159
122
  border: none;
160
123
  background: transparent;
161
- color: #1f2937;
124
+ color: hsl(var(--foreground));
162
125
  font-size: 13px;
163
126
  text-align: left;
164
127
  cursor: pointer;
@@ -167,22 +130,12 @@
167
130
  }
168
131
 
169
132
  .jotx-type-menu-item:hover {
170
- background: #f3f4f6;
133
+ background: hsl(var(--muted));
171
134
  }
172
135
 
173
136
  .jotx-type-menu-item.active {
174
- background: #14b8a6;
175
- color: #ffffff;
176
- }
177
-
178
- @media (prefers-color-scheme: dark) {
179
- .jotx-type-menu-item {
180
- color: #e5e7eb;
181
- }
182
-
183
- .jotx-type-menu-item:hover {
184
- background: #373737;
185
- }
137
+ background: hsl(var(--accent));
138
+ color: hsl(var(--accent-foreground));
186
139
  }
187
140
 
188
141
  /* Title */
@@ -195,7 +148,7 @@
195
148
  margin: 0;
196
149
  font-size: 18px;
197
150
  font-weight: 600;
198
- color: #1f2937;
151
+ color: hsl(var(--foreground));
199
152
  cursor: text;
200
153
  white-space: nowrap;
201
154
  overflow: hidden;
@@ -207,17 +160,7 @@
207
160
 
208
161
  .jotx-header-title:hover {
209
162
  opacity: 0.7;
210
- background: #f9fafb;
211
- }
212
-
213
- @media (prefers-color-scheme: dark) {
214
- .jotx-header-title {
215
- color: #f3f4f6;
216
- }
217
-
218
- .jotx-header-title:hover {
219
- background: #2d2d2d;
220
- }
163
+ background: hsl(var(--muted) / 0.5);
221
164
  }
222
165
 
223
166
  .jotx-header-title-input {
@@ -225,22 +168,14 @@
225
168
  padding: 6px 12px;
226
169
  font-size: 18px;
227
170
  font-weight: 600;
228
- color: #1f2937;
229
- background-color: #f9fafb;
230
- border: 2px solid #14b8a6;
171
+ color: hsl(var(--foreground));
172
+ background-color: hsl(var(--muted));
173
+ border: 2px solid hsl(var(--accent));
231
174
  border-radius: 6px;
232
175
  outline: none;
233
176
  font-family: inherit;
234
177
  }
235
178
 
236
- @media (prefers-color-scheme: dark) {
237
- .jotx-header-title-input {
238
- background: #2d2d2d;
239
- color: #f3f4f6;
240
- border-color: #14b8a6;
241
- }
242
- }
243
-
244
179
  /* Buttons */
245
180
  .jotx-header-button,
246
181
  .jotx-header-graph-btn,
@@ -251,7 +186,7 @@
251
186
  width: 36px;
252
187
  height: 36px;
253
188
  padding: 0;
254
- color: #6b7280;
189
+ color: hsl(var(--muted-foreground));
255
190
  background-color: transparent;
256
191
  border: none;
257
192
  border-radius: 6px;
@@ -262,8 +197,8 @@
262
197
  .jotx-header-button:hover:not(:disabled),
263
198
  .jotx-header-graph-btn:hover,
264
199
  .jotx-header-help-btn:hover {
265
- color: #1f2937;
266
- background-color: #f3f4f6;
200
+ color: hsl(var(--foreground));
201
+ background-color: hsl(var(--muted));
267
202
  }
268
203
 
269
204
  .jotx-header-button:active:not(:disabled) {
@@ -275,22 +210,6 @@
275
210
  cursor: not-allowed;
276
211
  }
277
212
 
278
- @media (prefers-color-scheme: dark) {
279
-
280
- .jotx-header-button,
281
- .jotx-header-graph-btn,
282
- .jotx-header-help-btn {
283
- color: #9ca3af;
284
- }
285
-
286
- .jotx-header-button:hover:not(:disabled),
287
- .jotx-header-graph-btn:hover,
288
- .jotx-header-help-btn:hover {
289
- color: #e5e7eb;
290
- background-color: #373737;
291
- }
292
- }
293
-
294
213
  .jotx-header-button svg {
295
214
  width: 16px;
296
215
  height: 16px;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonNode = void 0;
4
- const core_1 = require("@tiptap/core");
5
- const react_1 = require("@tiptap/react");
6
- const ButtonNodeView_1 = require("../components/ButtonNodeView");
7
- /**
8
- * Button node for navigation
9
- * Renders as a clickable button that navigates to linked file
10
- */
11
- exports.ButtonNode = core_1.Node.create({
12
- name: 'button',
13
- group: 'block',
14
- content: '',
15
- defining: true,
16
- addAttributes() {
17
- return {
18
- label: { default: '' },
19
- link: { default: '' },
20
- style: { default: 'primary' },
21
- align: { default: 'left' },
22
- blockId: { default: null }
23
- };
24
- },
25
- parseHTML() {
26
- return [
27
- {
28
- tag: 'div[data-type="button"]',
29
- getAttrs: (node) => {
30
- if (!(node instanceof HTMLElement))
31
- return false;
32
- return {
33
- label: node.getAttribute('data-label') || '',
34
- link: node.getAttribute('data-link') || '',
35
- style: node.getAttribute('data-style') || 'primary',
36
- align: node.getAttribute('data-align') || 'left'
37
- };
38
- }
39
- }
40
- ];
41
- },
42
- renderHTML({ HTMLAttributes }) {
43
- return [
44
- 'div',
45
- (0, core_1.mergeAttributes)(HTMLAttributes, {
46
- 'data-type': 'button',
47
- 'data-label': HTMLAttributes.label || '',
48
- 'data-link': HTMLAttributes.link || '',
49
- 'data-style': HTMLAttributes.style || 'primary',
50
- 'data-align': HTMLAttributes.align || 'left'
51
- }),
52
- 0
53
- ];
54
- },
55
- addNodeView() {
56
- return (0, react_1.ReactNodeViewRenderer)(ButtonNodeView_1.ButtonNodeView);
57
- }
58
- });
59
- //# sourceMappingURL=ButtonNode.js.map
@@ -1,7 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- /**
3
- * Button node for navigation
4
- * Renders as a clickable button that navigates to linked file
5
- */
6
- export declare const ButtonNode: Node<any, any>;
7
- //# sourceMappingURL=ButtonNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonNode.d.ts","sourceRoot":"","sources":["../../src/extensions/ButtonNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD;;;GAGG;AACH,eAAO,MAAM,UAAU,gBAmDrB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonNode.js","sourceRoot":"","sources":["../../src/extensions/ButtonNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,yCAAqD;AACrD,iEAA6D;AAE7D;;;GAGG;AACU,QAAA,UAAU,GAAG,WAAI,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,QAAQ;IAEd,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,IAAI;IAEd,aAAa;QACT,OAAO;YACH,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YACtB,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YACrB,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;YAC7B,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;YAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SAC7B,CAAA;IACL,CAAC;IAED,SAAS;QACL,OAAO;YACH;gBACI,GAAG,EAAE,yBAAyB;gBAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;oBACf,IAAI,CAAC,CAAC,IAAI,YAAY,WAAW,CAAC;wBAAE,OAAO,KAAK,CAAA;oBAChD,OAAO;wBACH,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,EAAE;wBAC5C,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,EAAE;wBAC1C,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,SAAS;wBACnD,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,MAAM;qBACnD,CAAA;gBACL,CAAC;aACJ;SACJ,CAAA;IACL,CAAC;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QACzB,OAAO;YACH,KAAK;YACL,IAAA,sBAAe,EAAC,cAAc,EAAE;gBAC5B,WAAW,EAAE,QAAQ;gBACrB,YAAY,EAAE,cAAc,CAAC,KAAK,IAAI,EAAE;gBACxC,WAAW,EAAE,cAAc,CAAC,IAAI,IAAI,EAAE;gBACtC,YAAY,EAAE,cAAc,CAAC,KAAK,IAAI,SAAS;gBAC/C,YAAY,EAAE,cAAc,CAAC,KAAK,IAAI,MAAM;aAC/C,CAAC;YACF,CAAC;SACJ,CAAA;IACL,CAAC;IAED,WAAW;QACP,OAAO,IAAA,6BAAqB,EAAC,+BAAc,CAAC,CAAA;IAChD,CAAC;CACJ,CAAC,CAAA"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardNode = void 0;
4
- const core_1 = require("@tiptap/core");
5
- const react_1 = require("@tiptap/react");
6
- const CardNodeView_1 = require("../components/CardNodeView");
7
- /**
8
- * Card node - child of GridCard
9
- * Contains title, value, icon, color, link
10
- */
11
- exports.CardNode = core_1.Node.create({
12
- name: 'card',
13
- // NOT in 'block' group - cards are only children of gridcard, not standalone
14
- content: '',
15
- defining: false,
16
- selectable: false, // Don't allow individual card selection
17
- draggable: false, // Cards can't be dragged individually
18
- addAttributes() {
19
- return {
20
- title: { default: '' },
21
- value: { default: '' },
22
- icon: { default: '' },
23
- color: { default: 'teal' },
24
- link: { default: '' },
25
- blockId: { default: null }
26
- };
27
- },
28
- parseHTML() {
29
- return [
30
- {
31
- tag: 'div[data-type="card"]',
32
- getAttrs: (node) => {
33
- if (!(node instanceof HTMLElement))
34
- return false;
35
- return {
36
- title: node.getAttribute('data-title') || '',
37
- value: node.getAttribute('data-value') || '',
38
- icon: node.getAttribute('data-icon') || '',
39
- color: node.getAttribute('data-color') || 'teal',
40
- link: node.getAttribute('data-link') || ''
41
- };
42
- }
43
- }
44
- ];
45
- },
46
- renderHTML({ HTMLAttributes }) {
47
- return [
48
- 'div',
49
- (0, core_1.mergeAttributes)(HTMLAttributes, {
50
- 'data-type': 'card',
51
- 'data-title': HTMLAttributes.title || '',
52
- 'data-value': HTMLAttributes.value || '',
53
- 'data-icon': HTMLAttributes.icon || '',
54
- 'data-color': HTMLAttributes.color || 'teal',
55
- 'data-link': HTMLAttributes.link || ''
56
- }),
57
- 0
58
- ];
59
- },
60
- addNodeView() {
61
- return (0, react_1.ReactNodeViewRenderer)(CardNodeView_1.CardNodeView);
62
- }
63
- });
64
- //# sourceMappingURL=CardNode.js.map
@@ -1,7 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- /**
3
- * Card node - child of GridCard
4
- * Contains title, value, icon, color, link
5
- */
6
- export declare const CardNode: Node<any, any>;
7
- //# sourceMappingURL=CardNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardNode.d.ts","sourceRoot":"","sources":["../../src/extensions/CardNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD;;;GAGG;AACH,eAAO,MAAM,QAAQ,gBAwDnB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardNode.js","sourceRoot":"","sources":["../../src/extensions/CardNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,yCAAqD;AACrD,6DAAyD;AAEzD;;;GAGG;AACU,QAAA,QAAQ,GAAG,WAAI,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM;IAEZ,6EAA6E;IAC7E,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,KAAK;IACf,UAAU,EAAE,KAAK,EAAE,wCAAwC;IAC3D,SAAS,EAAE,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AAC,KAAK,IAAI,MAAM;gBAC5C,WAAW,EAAE,cAAc,CAAC,IAAI,IAAI,EAAE;aACzC,CAAC;YACF,CAAC;SACJ,CAAA;IACL,CAAC;IAED,WAAW;QACP,OAAO,IAAA,6BAAqB,EAAC,2BAAY,CAAC,CAAA;IAC9C,CAAC;CACJ,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- /**
3
- * Grid Card container node
4
- * Contains card children in a grid layout
5
- */
6
- export declare const GridCardNode: Node<any, any>;
7
- //# sourceMappingURL=GridCardNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridCardNode.d.ts","sourceRoot":"","sources":["../../src/extensions/GridCardNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD;;;GAGG;AACH,eAAO,MAAM,YAAY,gBAgDvB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridCardNode.js","sourceRoot":"","sources":["../../src/extensions/GridCardNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,yCAAqD;AACrD,qEAAiE;AAEjE;;;GAGG;AACU,QAAA,YAAY,GAAG,WAAI,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,UAAU;IAEhB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI,EAAE,8CAA8C;IAC/D,SAAS,EAAE,IAAI,EAAE,4CAA4C;IAE7D,aAAa;QACT,OAAO;YACH,MAAM,EAAE;gBACJ,OAAO,EAAE,KAAK;aACjB;YACD,OAAO,EAAE;gBACL,OAAO,EAAE,IAAI;aAChB;SACJ,CAAA;IACL,CAAC;IAED,SAAS;QACL,OAAO;YACH;gBACI,GAAG,EAAE,2BAA2B;gBAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;oBACf,IAAI,CAAC,CAAC,IAAI,YAAY,WAAW,CAAC;wBAAE,OAAO,KAAK,CAAA;oBAChD,OAAO;wBACH,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,KAAK;qBACpD,CAAA;gBACL,CAAC;aACJ;SACJ,CAAA;IACL,CAAC;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QACzB,OAAO;YACH,KAAK;YACL,IAAA,sBAAe,EAAC,cAAc,EAAE;gBAC5B,WAAW,EAAE,UAAU;gBACvB,aAAa,EAAE,cAAc,CAAC,MAAM,IAAI,KAAK;aAChD,CAAC;YACF,CAAC;SACJ,CAAA;IACL,CAAC;IAED,WAAW;QACP,OAAO,IAAA,6BAAqB,EAAC,mCAAgB,CAAC,CAAA;IAClD,CAAC;CACJ,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImageNode.d.ts","sourceRoot":"","sources":["../../src/extensions/ImageNode.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,kFAuDpB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinkNode.js","sourceRoot":"","sources":["../../src/extensions/LinkNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AAEpD;;;GAGG;AACU,QAAA,QAAQ,GAAG,WAAI,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,WAAW;IAEjB,KAAK,EAAE,OAAO;IAEd,OAAO,EAAE,SAAS;IAElB,QAAQ,EAAE,IAAI;IAEd,aAAa;QACX,OAAO;YACL,IAAI,EAAE;gBACJ,OAAO,EAAE,EAAE;gBACX,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC;gBACvD,UAAU,EAAE,UAAU,CAAC,EAAE;oBACvB,OAAO;wBACL,WAAW,EAAE,UAAU,CAAC,IAAI;qBAC7B,CAAA;gBACH,CAAC;aACF;SACF,CAAA;IACH,CAAC;IAED,SAAS;QACP,OAAO;YACL;gBACE,GAAG,EAAE,qBAAqB;aAC3B;SACF,CAAA;IACH,CAAC;IAED,UAAU,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE;QACjC,OAAO;YACL,KAAK;YACL,IAAA,sBAAe,EAAC,cAAc,EAAE;gBAC9B,gBAAgB,EAAE,MAAM;gBACxB,KAAK,EAAE,iBAAiB;aACzB,CAAC;YACF;gBACE,GAAG;gBACH;oBACE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;oBACrB,MAAM,EAAE,QAAQ;oBAChB,GAAG,EAAE,qBAAqB;oBAC1B,KAAK,EAAE,wBAAwB;iBAChC;gBACD,CAAC;aACF;SACF,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -1,40 +0,0 @@
1
- /**
2
- * Search Extension for Tiptap
3
- * Handles search logic, highlighting, and navigation
4
- */
5
- import { Extension } from '@tiptap/core';
6
- import { PluginKey } from '@tiptap/pm/state';
7
- import { DecorationSet } from '@tiptap/pm/view';
8
- declare module '@tiptap/core' {
9
- interface Commands<ReturnType> {
10
- search: {
11
- setSearchTerm: (searchTerm: string) => ReturnType;
12
- nextSearchMatch: () => ReturnType;
13
- previousSearchMatch: () => ReturnType;
14
- clearSearch: () => ReturnType;
15
- };
16
- }
17
- }
18
- export interface SearchOptions {
19
- searchTerm: string;
20
- caseSensitive: boolean;
21
- currentIndex: number;
22
- }
23
- export interface SearchResult {
24
- from: number;
25
- to: number;
26
- }
27
- /**
28
- * Search Plugin State
29
- */
30
- interface SearchPluginState {
31
- searchTerm: string;
32
- caseSensitive: boolean;
33
- matches: SearchResult[];
34
- currentIndex: number;
35
- decorations: DecorationSet;
36
- }
37
- export declare const searchPluginKey: PluginKey<SearchPluginState>;
38
- export declare const SearchExtension: Extension<any, any>;
39
- export {};
40
- //# sourceMappingURL=SearchExtension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/SearchExtension.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,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,EAAE,KAAK,EAAE,EAAE,EAAE;gBACrD,MAAM,WAAW,GAAG,uBAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACnD,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;oBAAE,OAAO,KAAK,CAAA;gBAElE,MAAM,SAAS,GAAG,WAAW,CAAC,YAAY,KAAK,CAAC;oBAC9C,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;oBAChC,CAAC,CAAC,WAAW,CAAC,YAAY,GAAG,CAAC,CAAA;gBAEhC,IAAI,QAAQ,EAAE,CAAC;oBACb,EAAE,CAAC,OAAO,CAAC,uBAAe,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAA;gBAC1D,CAAC;gBAED,OAAO,IAAI,CAAA;YACb,CAAC;YAED;;eAEG;YACH,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACtC,IAAI,QAAQ,EAAE,CAAC;oBACb,EAAE,CAAC,OAAO,CAAC,uBAAe,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAA;gBAClE,CAAC;gBACD,OAAO,IAAI,CAAA;YACb,CAAC;SACF,CAAA;IACH,CAAC;CACF,CAAC,CAAA"}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SectionNode = void 0;
4
- const core_1 = require("@tiptap/core");
5
- const react_1 = require("@tiptap/react");
6
- const SectionNodeView_1 = require("../components/SectionNodeView");
7
- /**
8
- * Section block (collapsible container with title)
9
- *
10
- * HTML:
11
- * <div data-type="section" data-title="..." data-collapsed="true|false">
12
- * <div data-role="section-content"> ...nested blocks... </div>
13
- * </div>
14
- */
15
- exports.SectionNode = core_1.Node.create({
16
- name: 'section',
17
- group: 'block',
18
- content: 'block+',
19
- defining: true,
20
- isolating: true,
21
- addAttributes() {
22
- return {
23
- title: {
24
- default: 'Section',
25
- parseHTML: (element) => element.getAttribute('data-title') || 'Section'
26
- },
27
- collapsed: {
28
- default: false,
29
- parseHTML: (element) => (element.getAttribute('data-collapsed') || 'false') === 'true'
30
- }
31
- };
32
- },
33
- parseHTML() {
34
- return [
35
- {
36
- tag: 'div[data-type="section"]',
37
- contentElement: 'div[data-role="section-content"]'
38
- }
39
- ];
40
- },
41
- renderHTML({ HTMLAttributes }) {
42
- const title = (HTMLAttributes.title || 'Section').toString();
43
- const collapsed = (HTMLAttributes.collapsed ? 'true' : 'false').toString();
44
- return [
45
- 'div',
46
- (0, core_1.mergeAttributes)(HTMLAttributes, {
47
- 'data-type': 'section',
48
- 'data-title': title,
49
- 'data-collapsed': collapsed
50
- }),
51
- ['div', { 'data-role': 'section-content' }, 0]
52
- ];
53
- },
54
- addNodeView() {
55
- return (0, react_1.ReactNodeViewRenderer)(SectionNodeView_1.SectionNodeView);
56
- }
57
- });
58
- //# sourceMappingURL=SectionNode.js.map
@@ -1,11 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- /**
3
- * Section block (collapsible container with title)
4
- *
5
- * HTML:
6
- * <div data-type="section" data-title="..." data-collapsed="true|false">
7
- * <div data-role="section-content"> ...nested blocks... </div>
8
- * </div>
9
- */
10
- export declare const SectionNode: Node<any, any>;
11
- //# sourceMappingURL=SectionNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionNode.d.ts","sourceRoot":"","sources":["../../src/extensions/SectionNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,gBA+CtB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionNode.js","sourceRoot":"","sources":["../../src/extensions/SectionNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,yCAAqD;AACrD,mEAA+D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C,CAAC;CACF,CAAC,CAAA"}
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToggleNode = void 0;
4
- const core_1 = require("@tiptap/core");
5
- const react_1 = require("@tiptap/react");
6
- const ToggleNodeView_1 = require("../components/ToggleNodeView");
7
- /**
8
- * Toggle block (collapsible container)
9
- *
10
- * HTML:
11
- * <div data-type="toggle" data-title="..." data-collapsed="true|false">
12
- * <div data-role="toggle-content"> ...nested blocks... </div>
13
- * </div>
14
- */
15
- exports.ToggleNode = core_1.Node.create({
16
- name: 'toggle',
17
- group: 'block',
18
- content: 'block+',
19
- defining: true,
20
- isolating: true,
21
- addAttributes() {
22
- return {
23
- title: {
24
- default: 'Toggle',
25
- parseHTML: (element) => element.getAttribute('data-title') || 'Toggle'
26
- },
27
- collapsed: {
28
- default: false,
29
- parseHTML: (element) => (element.getAttribute('data-collapsed') || 'false') === 'true'
30
- }
31
- };
32
- },
33
- parseHTML() {
34
- return [
35
- {
36
- tag: 'div[data-type="toggle"]',
37
- contentElement: 'div[data-role="toggle-content"]'
38
- }
39
- ];
40
- },
41
- renderHTML({ HTMLAttributes }) {
42
- const title = (HTMLAttributes.title || 'Toggle').toString();
43
- const collapsed = (HTMLAttributes.collapsed ? 'true' : 'false').toString();
44
- return [
45
- 'div',
46
- (0, core_1.mergeAttributes)(HTMLAttributes, {
47
- 'data-type': 'toggle',
48
- 'data-title': title,
49
- 'data-collapsed': collapsed
50
- }),
51
- ['div', { 'data-role': 'toggle-content' }, 0]
52
- ];
53
- },
54
- addNodeView() {
55
- return (0, react_1.ReactNodeViewRenderer)(ToggleNodeView_1.ToggleNodeView);
56
- }
57
- });
58
- //# sourceMappingURL=ToggleNode.js.map
@@ -1,11 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- /**
3
- * Toggle block (collapsible container)
4
- *
5
- * HTML:
6
- * <div data-type="toggle" data-title="..." data-collapsed="true|false">
7
- * <div data-role="toggle-content"> ...nested blocks... </div>
8
- * </div>
9
- */
10
- export declare const ToggleNode: Node<any, any>;
11
- //# sourceMappingURL=ToggleNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToggleNode.d.ts","sourceRoot":"","sources":["../../src/extensions/ToggleNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,gBA+CrB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToggleNode.js","sourceRoot":"","sources":["../../src/extensions/ToggleNode.ts"],"names":[],"mappings":";;;AAAA,uCAAoD;AACpD,yCAAqD;AACrD,iEAA6D;AAE7D;;;;;;;GAOG;AACU,QAAA,UAAU,GAAG,WAAI,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,QAAQ;IAEd,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IAEf,aAAa;QACX,OAAO;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,QAAQ;gBACjB,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAE,OAAuB,CAAC,YAAY,CAAC,YAAY,CAAC,IAAI,QAAQ;aACxF;YACD,SAAS,EAAE;gBACT,OAAO,EAAE,KAAK;gBACd,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAE,OAAuB,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,OAAO,CAAC,KAAK,MAAM;aACxG;SACF,CAAA;IACH,CAAC;IAED,SAAS;QACP,OAAO;YACL;gBACE,GAAG,EAAE,yBAAyB;gBAC9B,cAAc,EAAE,iCAAiC;aAClD;SACF,CAAA;IACH,CAAC;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,MAAM,KAAK,GAAG,CAAE,cAAsB,CAAC,KAAK,IAAI,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAA;QACpE,MAAM,SAAS,GAAG,CAAE,cAAsB,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAA;QACnF,OAAO;YACL,KAAK;YACL,IAAA,sBAAe,EAAC,cAAc,EAAE;gBAC9B,WAAW,EAAE,QAAQ;gBACrB,YAAY,EAAE,KAAK;gBACnB,gBAAgB,EAAE,SAAS;aAC5B,CAAC;YACF,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC;SAC9C,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO,IAAA,6BAAqB,EAAC,+BAAc,CAAC,CAAA;IAC9C,CAAC;CACF,CAAC,CAAA"}
package/dist/index 2.js DELETED
@@ -1,128 +0,0 @@
1
- "use strict";
2
- /**
3
- * @jotx-labs/editor
4
- *
5
- * Shared Tiptap editor for jotx - works in VS Code, web, and Electron
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.TableFilterExtension = exports.JotxTable = exports.GridCardNode = exports.ButtonNode = exports.CardNode = exports.SectionNode = exports.ToggleNode = exports.LinkNode = exports.AttachNode = exports.CalloutNode = exports.JotxLinkNode = exports.DateTimeNode = exports.MathNode = exports.VideoBlockNode = exports.FloatImageBlockNode = exports.ImageBlockNode = exports.ImageNode = exports.CodeReferenceNode = exports.CodeBlockNode = exports.ChartNode = exports.MermaidNode = exports.ReadonlyMermaid = exports.ReadonlyBlockRenderer = exports.CodeReferenceNodeView = exports.GridCardNodeView = exports.ButtonNodeView = exports.CardNodeView = exports.SectionNodeView = exports.ToggleNodeView = exports.JotxLinkNodeView = exports.DateTimeNodeView = exports.MathNodeView = exports.VideoBlockNodeView = exports.FloatImageBlockNodeView = exports.ImageBlockNodeView = exports.CodeBlockNodeView = exports.ChartNodeView = exports.MermaidNodeView = exports.NodePickerDialog = exports.LinkDialog = exports.ImageToolbar = exports.TableToolbar = exports.SearchBar = exports.SlashMenu = exports.BlockMenu = exports.JotxEditor = exports.BridgeContext = exports.useBridge = exports.BridgeProvider = exports.defaultBridge = void 0;
9
- exports.searchPluginKey = exports.SearchExtension = exports.slashMenuPluginKey = exports.SlashMenuExtension = exports.FormattingExtensions = exports.CalloutActionsExtension = exports.BlockOpsExtension = void 0;
10
- // Bridge types and context
11
- var types_1 = require("./bridge/types");
12
- Object.defineProperty(exports, "defaultBridge", { enumerable: true, get: function () { return types_1.defaultBridge; } });
13
- var BridgeContext_1 = require("./bridge/BridgeContext");
14
- Object.defineProperty(exports, "BridgeProvider", { enumerable: true, get: function () { return BridgeContext_1.BridgeProvider; } });
15
- Object.defineProperty(exports, "useBridge", { enumerable: true, get: function () { return BridgeContext_1.useBridge; } });
16
- Object.defineProperty(exports, "BridgeContext", { enumerable: true, get: function () { return BridgeContext_1.BridgeContext; } });
17
- // Main editor component
18
- var JotxEditor_1 = require("./components/JotxEditor");
19
- Object.defineProperty(exports, "JotxEditor", { enumerable: true, get: function () { return JotxEditor_1.JotxEditor; } });
20
- // Sub-components (exported for customization)
21
- var BlockMenu_1 = require("./components/BlockMenu");
22
- Object.defineProperty(exports, "BlockMenu", { enumerable: true, get: function () { return BlockMenu_1.BlockMenu; } });
23
- var SlashMenu_1 = require("./components/SlashMenu");
24
- Object.defineProperty(exports, "SlashMenu", { enumerable: true, get: function () { return SlashMenu_1.SlashMenu; } });
25
- var SearchBar_1 = require("./components/SearchBar");
26
- Object.defineProperty(exports, "SearchBar", { enumerable: true, get: function () { return SearchBar_1.SearchBar; } });
27
- var TableToolbar_1 = require("./components/TableToolbar");
28
- Object.defineProperty(exports, "TableToolbar", { enumerable: true, get: function () { return TableToolbar_1.TableToolbar; } });
29
- var ImageToolbar_1 = require("./components/ImageToolbar");
30
- Object.defineProperty(exports, "ImageToolbar", { enumerable: true, get: function () { return ImageToolbar_1.ImageToolbar; } });
31
- var LinkDialog_1 = require("./components/LinkDialog");
32
- Object.defineProperty(exports, "LinkDialog", { enumerable: true, get: function () { return LinkDialog_1.LinkDialog; } });
33
- var NodePickerDialog_1 = require("./components/NodePickerDialog");
34
- Object.defineProperty(exports, "NodePickerDialog", { enumerable: true, get: function () { return NodePickerDialog_1.NodePickerDialog; } });
35
- // Node views (for custom rendering)
36
- var MermaidNodeView_1 = require("./components/MermaidNodeView");
37
- Object.defineProperty(exports, "MermaidNodeView", { enumerable: true, get: function () { return MermaidNodeView_1.MermaidNodeView; } });
38
- var ChartNodeView_1 = require("./components/ChartNodeView");
39
- Object.defineProperty(exports, "ChartNodeView", { enumerable: true, get: function () { return ChartNodeView_1.ChartNodeView; } });
40
- var CodeBlockNodeView_1 = require("./components/CodeBlockNodeView");
41
- Object.defineProperty(exports, "CodeBlockNodeView", { enumerable: true, get: function () { return CodeBlockNodeView_1.CodeBlockNodeView; } });
42
- var ImageBlockNodeView_1 = require("./components/ImageBlockNodeView");
43
- Object.defineProperty(exports, "ImageBlockNodeView", { enumerable: true, get: function () { return ImageBlockNodeView_1.ImageBlockNodeView; } });
44
- var FloatImageBlockNodeView_1 = require("./components/FloatImageBlockNodeView");
45
- Object.defineProperty(exports, "FloatImageBlockNodeView", { enumerable: true, get: function () { return FloatImageBlockNodeView_1.FloatImageBlockNodeView; } });
46
- var VideoBlockNodeView_1 = require("./components/VideoBlockNodeView");
47
- Object.defineProperty(exports, "VideoBlockNodeView", { enumerable: true, get: function () { return VideoBlockNodeView_1.VideoBlockNodeView; } });
48
- var MathNodeView_1 = require("./components/MathNodeView");
49
- Object.defineProperty(exports, "MathNodeView", { enumerable: true, get: function () { return MathNodeView_1.MathNodeView; } });
50
- var DateTimeNodeView_1 = require("./components/DateTimeNodeView");
51
- Object.defineProperty(exports, "DateTimeNodeView", { enumerable: true, get: function () { return DateTimeNodeView_1.DateTimeNodeView; } });
52
- var JotxLinkNodeView_1 = require("./components/JotxLinkNodeView");
53
- Object.defineProperty(exports, "JotxLinkNodeView", { enumerable: true, get: function () { return JotxLinkNodeView_1.JotxLinkNodeView; } });
54
- var ToggleNodeView_1 = require("./components/ToggleNodeView");
55
- Object.defineProperty(exports, "ToggleNodeView", { enumerable: true, get: function () { return ToggleNodeView_1.ToggleNodeView; } });
56
- var SectionNodeView_1 = require("./components/SectionNodeView");
57
- Object.defineProperty(exports, "SectionNodeView", { enumerable: true, get: function () { return SectionNodeView_1.SectionNodeView; } });
58
- var CardNodeView_1 = require("./components/CardNodeView");
59
- Object.defineProperty(exports, "CardNodeView", { enumerable: true, get: function () { return CardNodeView_1.CardNodeView; } });
60
- var ButtonNodeView_1 = require("./components/ButtonNodeView");
61
- Object.defineProperty(exports, "ButtonNodeView", { enumerable: true, get: function () { return ButtonNodeView_1.ButtonNodeView; } });
62
- var GridCardNodeView_1 = require("./components/GridCardNodeView");
63
- Object.defineProperty(exports, "GridCardNodeView", { enumerable: true, get: function () { return GridCardNodeView_1.GridCardNodeView; } });
64
- var CodeReferenceNodeView_1 = require("./components/CodeReferenceNodeView");
65
- Object.defineProperty(exports, "CodeReferenceNodeView", { enumerable: true, get: function () { return CodeReferenceNodeView_1.CodeReferenceNodeView; } });
66
- var ReadonlyBlockRenderer_1 = require("./components/ReadonlyBlockRenderer");
67
- Object.defineProperty(exports, "ReadonlyBlockRenderer", { enumerable: true, get: function () { return ReadonlyBlockRenderer_1.ReadonlyBlockRenderer; } });
68
- var ReadonlyMermaid_1 = require("./components/ReadonlyMermaid");
69
- Object.defineProperty(exports, "ReadonlyMermaid", { enumerable: true, get: function () { return ReadonlyMermaid_1.ReadonlyMermaid; } });
70
- // Tiptap extensions
71
- var MermaidNode_1 = require("./extensions/MermaidNode");
72
- Object.defineProperty(exports, "MermaidNode", { enumerable: true, get: function () { return MermaidNode_1.MermaidNode; } });
73
- var ChartNode_1 = require("./extensions/ChartNode");
74
- Object.defineProperty(exports, "ChartNode", { enumerable: true, get: function () { return ChartNode_1.ChartNode; } });
75
- var CodeBlockNode_1 = require("./extensions/CodeBlockNode");
76
- Object.defineProperty(exports, "CodeBlockNode", { enumerable: true, get: function () { return CodeBlockNode_1.CodeBlockNode; } });
77
- var CodeReferenceNode_1 = require("./extensions/CodeReferenceNode");
78
- Object.defineProperty(exports, "CodeReferenceNode", { enumerable: true, get: function () { return CodeReferenceNode_1.CodeReferenceNode; } });
79
- var ImageNode_1 = require("./extensions/ImageNode");
80
- Object.defineProperty(exports, "ImageNode", { enumerable: true, get: function () { return ImageNode_1.ImageNode; } });
81
- var ImageBlockNode_1 = require("./extensions/ImageBlockNode");
82
- Object.defineProperty(exports, "ImageBlockNode", { enumerable: true, get: function () { return ImageBlockNode_1.ImageBlockNode; } });
83
- var FloatImageBlockNode_1 = require("./extensions/FloatImageBlockNode");
84
- Object.defineProperty(exports, "FloatImageBlockNode", { enumerable: true, get: function () { return FloatImageBlockNode_1.FloatImageBlockNode; } });
85
- var VideoBlockNode_1 = require("./extensions/VideoBlockNode");
86
- Object.defineProperty(exports, "VideoBlockNode", { enumerable: true, get: function () { return VideoBlockNode_1.VideoBlockNode; } });
87
- var MathNode_1 = require("./extensions/MathNode");
88
- Object.defineProperty(exports, "MathNode", { enumerable: true, get: function () { return MathNode_1.MathNode; } });
89
- var DateTimeNode_1 = require("./extensions/DateTimeNode");
90
- Object.defineProperty(exports, "DateTimeNode", { enumerable: true, get: function () { return DateTimeNode_1.DateTimeNode; } });
91
- var JotxLinkNode_1 = require("./extensions/JotxLinkNode");
92
- Object.defineProperty(exports, "JotxLinkNode", { enumerable: true, get: function () { return JotxLinkNode_1.JotxLinkNode; } });
93
- var CalloutNode_1 = require("./extensions/CalloutNode");
94
- Object.defineProperty(exports, "CalloutNode", { enumerable: true, get: function () { return CalloutNode_1.CalloutNode; } });
95
- var AttachNode_1 = require("./extensions/AttachNode");
96
- Object.defineProperty(exports, "AttachNode", { enumerable: true, get: function () { return AttachNode_1.AttachNode; } });
97
- var LinkNode_1 = require("./extensions/LinkNode");
98
- Object.defineProperty(exports, "LinkNode", { enumerable: true, get: function () { return LinkNode_1.LinkNode; } });
99
- var ToggleNode_1 = require("./extensions/ToggleNode");
100
- Object.defineProperty(exports, "ToggleNode", { enumerable: true, get: function () { return ToggleNode_1.ToggleNode; } });
101
- var SectionNode_1 = require("./extensions/SectionNode");
102
- Object.defineProperty(exports, "SectionNode", { enumerable: true, get: function () { return SectionNode_1.SectionNode; } });
103
- var CardNode_1 = require("./extensions/CardNode");
104
- Object.defineProperty(exports, "CardNode", { enumerable: true, get: function () { return CardNode_1.CardNode; } });
105
- var ButtonNode_1 = require("./extensions/ButtonNode");
106
- Object.defineProperty(exports, "ButtonNode", { enumerable: true, get: function () { return ButtonNode_1.ButtonNode; } });
107
- var GridCardNode_1 = require("./extensions/GridCardNode");
108
- Object.defineProperty(exports, "GridCardNode", { enumerable: true, get: function () { return GridCardNode_1.GridCardNode; } });
109
- var JotxTable_1 = require("./extensions/JotxTable");
110
- Object.defineProperty(exports, "JotxTable", { enumerable: true, get: function () { return JotxTable_1.JotxTable; } });
111
- var TableFilterExtension_1 = require("./extensions/TableFilterExtension");
112
- Object.defineProperty(exports, "TableFilterExtension", { enumerable: true, get: function () { return TableFilterExtension_1.TableFilterExtension; } });
113
- var BlockOpsExtension_1 = require("./extensions/BlockOpsExtension");
114
- Object.defineProperty(exports, "BlockOpsExtension", { enumerable: true, get: function () { return BlockOpsExtension_1.BlockOpsExtension; } });
115
- var CalloutActionsExtension_1 = require("./extensions/CalloutActionsExtension");
116
- Object.defineProperty(exports, "CalloutActionsExtension", { enumerable: true, get: function () { return CalloutActionsExtension_1.CalloutActionsExtension; } });
117
- var formatting_1 = require("./extensions/formatting");
118
- Object.defineProperty(exports, "FormattingExtensions", { enumerable: true, get: function () { return formatting_1.FormattingExtensions; } });
119
- // Slash menu and search
120
- var SlashMenuExtension_1 = require("./extensions/SlashMenuExtension");
121
- Object.defineProperty(exports, "SlashMenuExtension", { enumerable: true, get: function () { return SlashMenuExtension_1.SlashMenuExtension; } });
122
- Object.defineProperty(exports, "slashMenuPluginKey", { enumerable: true, get: function () { return SlashMenuExtension_1.slashMenuPluginKey; } });
123
- var SearchExtension_1 = require("./extensions/SearchExtension");
124
- Object.defineProperty(exports, "SearchExtension", { enumerable: true, get: function () { return SearchExtension_1.SearchExtension; } });
125
- Object.defineProperty(exports, "searchPluginKey", { enumerable: true, get: function () { return SearchExtension_1.searchPluginKey; } });
126
- // Note: SpellCheckExtension excluded - requires nspell dictionaries (VS Code only)
127
- // Note: SpellCheckService excluded - requires nspell dictionaries (VS Code only)
128
- //# sourceMappingURL=index.js.map
@@ -1,59 +0,0 @@
1
- /**
2
- * @jotx-labs/editor
3
- *
4
- * Shared Tiptap editor for jotx - works in VS Code, web, and Electron
5
- */
6
- export { EditorPlatformBridge, FilePickerOptions, defaultBridge } from './bridge/types';
7
- export { BridgeProvider, useBridge, BridgeContext } from './bridge/BridgeContext';
8
- export { JotxEditor, JotxEditorProps } from './components/JotxEditor';
9
- export { BlockMenu } from './components/BlockMenu';
10
- export { SlashMenu } from './components/SlashMenu';
11
- export { SearchBar } from './components/SearchBar';
12
- export { TableToolbar } from './components/TableToolbar';
13
- export { ImageToolbar } from './components/ImageToolbar';
14
- export { LinkDialog } from './components/LinkDialog';
15
- export { NodePickerDialog } from './components/NodePickerDialog';
16
- export { MermaidNodeView } from './components/MermaidNodeView';
17
- export { ChartNodeView } from './components/ChartNodeView';
18
- export { CodeBlockNodeView } from './components/CodeBlockNodeView';
19
- export { ImageBlockNodeView } from './components/ImageBlockNodeView';
20
- export { FloatImageBlockNodeView } from './components/FloatImageBlockNodeView';
21
- export { VideoBlockNodeView } from './components/VideoBlockNodeView';
22
- export { MathNodeView } from './components/MathNodeView';
23
- export { DateTimeNodeView } from './components/DateTimeNodeView';
24
- export { JotxLinkNodeView } from './components/JotxLinkNodeView';
25
- export { ToggleNodeView } from './components/ToggleNodeView';
26
- export { SectionNodeView } from './components/SectionNodeView';
27
- export { CardNodeView } from './components/CardNodeView';
28
- export { ButtonNodeView } from './components/ButtonNodeView';
29
- export { GridCardNodeView } from './components/GridCardNodeView';
30
- export { CodeReferenceNodeView } from './components/CodeReferenceNodeView';
31
- export { ReadonlyBlockRenderer } from './components/ReadonlyBlockRenderer';
32
- export { ReadonlyMermaid } from './components/ReadonlyMermaid';
33
- export { MermaidNode } from './extensions/MermaidNode';
34
- export { ChartNode } from './extensions/ChartNode';
35
- export { CodeBlockNode } from './extensions/CodeBlockNode';
36
- export { CodeReferenceNode } from './extensions/CodeReferenceNode';
37
- export { ImageNode } from './extensions/ImageNode';
38
- export { ImageBlockNode } from './extensions/ImageBlockNode';
39
- export { FloatImageBlockNode } from './extensions/FloatImageBlockNode';
40
- export { VideoBlockNode } from './extensions/VideoBlockNode';
41
- export { MathNode } from './extensions/MathNode';
42
- export { DateTimeNode } from './extensions/DateTimeNode';
43
- export { JotxLinkNode } from './extensions/JotxLinkNode';
44
- export { CalloutNode } from './extensions/CalloutNode';
45
- export { AttachNode } from './extensions/AttachNode';
46
- export { LinkNode } from './extensions/LinkNode';
47
- export { ToggleNode } from './extensions/ToggleNode';
48
- export { SectionNode } from './extensions/SectionNode';
49
- export { CardNode } from './extensions/CardNode';
50
- export { ButtonNode } from './extensions/ButtonNode';
51
- export { GridCardNode } from './extensions/GridCardNode';
52
- export { JotxTable } from './extensions/JotxTable';
53
- export { TableFilterExtension } from './extensions/TableFilterExtension';
54
- export { BlockOpsExtension } from './extensions/BlockOpsExtension';
55
- export { CalloutActionsExtension } from './extensions/CalloutActionsExtension';
56
- export { FormattingExtensions } from './extensions/formatting';
57
- export { SlashMenuExtension, slashMenuPluginKey } from './extensions/SlashMenuExtension';
58
- export { SearchExtension, searchPluginKey } from './extensions/SearchExtension';
59
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,a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