@haklex/rich-plugin-link-edit 0.0.4 → 0.0.6
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/FloatingLinkEditorPlugin.d.ts.map +1 -1
- package/dist/index.mjs +59 -41
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingLinkEditorPlugin.d.ts","sourceRoot":"","sources":["../src/FloatingLinkEditorPlugin.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAoBxD,wBAAgB,wBAAwB,IAAI,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"FloatingLinkEditorPlugin.d.ts","sourceRoot":"","sources":["../src/FloatingLinkEditorPlugin.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAA;AAoBxD,wBAAgB,wBAAwB,IAAI,YAAY,GAAG,IAAI,CAgO9D"}
|
package/dist/index.mjs
CHANGED
|
@@ -183,47 +183,65 @@ function FloatingLinkEditorPlugin() {
|
|
|
183
183
|
onFocus: handlePanelFocusIn,
|
|
184
184
|
onBlur: handlePanelFocusOut,
|
|
185
185
|
children: [
|
|
186
|
-
/* @__PURE__ */ jsxs(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
{
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
186
|
+
/* @__PURE__ */ jsxs(
|
|
187
|
+
"div",
|
|
188
|
+
{
|
|
189
|
+
className: `${urlRow} ${semanticClassNames.urlRow}`,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ jsx(
|
|
192
|
+
Link,
|
|
193
|
+
{
|
|
194
|
+
className: `${linkIcon} ${semanticClassNames.linkIcon}`,
|
|
195
|
+
size: 16
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
"input",
|
|
200
|
+
{
|
|
201
|
+
ref: inputRef,
|
|
202
|
+
className: `${input} ${semanticClassNames.input}`,
|
|
203
|
+
type: "url",
|
|
204
|
+
value: inputUrl,
|
|
205
|
+
onChange: (e) => setInputUrl(e.target.value),
|
|
206
|
+
onKeyDown: handleKeyDown,
|
|
207
|
+
placeholder: "https://..."
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
),
|
|
213
|
+
/* @__PURE__ */ jsxs(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
className: `${actions} ${semanticClassNames.actions}`,
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ jsxs(
|
|
219
|
+
"button",
|
|
220
|
+
{
|
|
221
|
+
className: `${actionButton} ${semanticClassNames.actionButton}`,
|
|
222
|
+
type: "button",
|
|
223
|
+
onClick: handleOpen,
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ jsx(ExternalLink, { size: 14 }),
|
|
226
|
+
"Open"
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ jsxs(
|
|
231
|
+
"button",
|
|
232
|
+
{
|
|
233
|
+
className: `${actionButton} ${semanticClassNames.actionButton} ${actionButtonEnd} ${semanticClassNames.actionButtonEnd}`,
|
|
234
|
+
type: "button",
|
|
235
|
+
onClick: handleUnlink,
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ jsx(Unlink, { size: 14 }),
|
|
238
|
+
"Unlink"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
)
|
|
227
245
|
]
|
|
228
246
|
}
|
|
229
247
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-plugin-link-edit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Link editing plugin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@haklex/rich-editor-ui": "0.0.
|
|
20
|
-
"@haklex/rich-style-token": "0.0.
|
|
19
|
+
"@haklex/rich-editor-ui": "0.0.6",
|
|
20
|
+
"@haklex/rich-style-token": "0.0.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@lexical/link": "^0.
|
|
24
|
-
"@lexical/react": "^0.
|
|
23
|
+
"@lexical/link": "^0.40.0",
|
|
24
|
+
"@lexical/react": "^0.40.0",
|
|
25
25
|
"@types/react": "^19.0.0",
|
|
26
26
|
"@types/react-dom": "^19.0.0",
|
|
27
27
|
"@vanilla-extract/css": "^1.17.1",
|
|
28
28
|
"@vanilla-extract/vite-plugin": "^4.0.20",
|
|
29
|
-
"lexical": "^0.
|
|
29
|
+
"lexical": "^0.40.0",
|
|
30
30
|
"lucide-react": "^0.574.0",
|
|
31
31
|
"react": "19.2.4",
|
|
32
32
|
"react-dom": "19.2.4",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"vite-plugin-dts": "^4.5.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@lexical/link": "^0.
|
|
39
|
-
"@lexical/react": "^0.
|
|
40
|
-
"lexical": "^0.
|
|
38
|
+
"@lexical/link": "^0.40.0",
|
|
39
|
+
"@lexical/react": "^0.40.0",
|
|
40
|
+
"lexical": "^0.40.0",
|
|
41
41
|
"lucide-react": "^0.574.0",
|
|
42
42
|
"react": ">=19",
|
|
43
43
|
"react-dom": ">=19"
|