@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.
@@ -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,CAyN9D"}
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("div", { className: `${urlRow} ${semanticClassNames.urlRow}`, children: [
187
- /* @__PURE__ */ jsx(Link, { className: `${linkIcon} ${semanticClassNames.linkIcon}`, size: 16 }),
188
- /* @__PURE__ */ jsx(
189
- "input",
190
- {
191
- ref: inputRef,
192
- className: `${input} ${semanticClassNames.input}`,
193
- type: "url",
194
- value: inputUrl,
195
- onChange: (e) => setInputUrl(e.target.value),
196
- onKeyDown: handleKeyDown,
197
- placeholder: "https://..."
198
- }
199
- )
200
- ] }),
201
- /* @__PURE__ */ jsxs("div", { className: `${actions} ${semanticClassNames.actions}`, children: [
202
- /* @__PURE__ */ jsxs(
203
- "button",
204
- {
205
- className: `${actionButton} ${semanticClassNames.actionButton}`,
206
- type: "button",
207
- onClick: handleOpen,
208
- children: [
209
- /* @__PURE__ */ jsx(ExternalLink, { size: 14 }),
210
- "Open"
211
- ]
212
- }
213
- ),
214
- /* @__PURE__ */ jsxs(
215
- "button",
216
- {
217
- className: `${actionButton} ${semanticClassNames.actionButton} ${actionButtonEnd} ${semanticClassNames.actionButtonEnd}`,
218
- type: "button",
219
- onClick: handleUnlink,
220
- children: [
221
- /* @__PURE__ */ jsx(Unlink, { size: 14 }),
222
- "Unlink"
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.4",
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.4",
20
- "@haklex/rich-style-token": "0.0.4"
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.39.0",
24
- "@lexical/react": "^0.39.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.39.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.0",
39
- "@lexical/react": "^0.39.0",
40
- "lexical": "^0.39.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"