@haklex/rich-ext-embed 0.0.88 → 0.0.89
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.
|
@@ -5,9 +5,10 @@ import { DecoratorNode, $getNodeByKey } from "lexical";
|
|
|
5
5
|
import { createContext, use, lazy, useState, useMemo, useEffect, Suspense, Component, createElement, useRef, useCallback } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useColorScheme } from "@haklex/rich-editor";
|
|
8
|
-
import {
|
|
8
|
+
import { SiGithub } from "@icons-pack/react-simple-icons";
|
|
9
9
|
import { ActionBar, ActionButton } from "@haklex/rich-editor-ui";
|
|
10
10
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
11
|
+
import { ExternalLink, Trash2 } from "lucide-react";
|
|
11
12
|
var semanticClassNames$1 = { wrapper: "rich-embed-link-wrapper", embed: "rich-embed", badge: "rich-embed__badge", dot: "rich-embed__dot", divider: "rich-embed__divider", input: "rich-embed__input" };
|
|
12
13
|
var semanticEmbedModifierClass = { generic: "rich-embed--generic", tweet: "rich-embed--tweet", youtube: "rich-embed--youtube", codesandbox: "rich-embed--codesandbox", bilibili: "rich-embed--bilibili", "github-file": "rich-embed--github-file", "github-gist": "rich-embed--github-gist", thinking: "rich-embed--thinking" };
|
|
13
14
|
var wrapper = "_1qucygc1";
|
|
@@ -115,7 +116,7 @@ class EmbedErrorBoundary extends Component {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
function GitHubSvg() {
|
|
118
|
-
return /* @__PURE__ */ jsx(
|
|
119
|
+
return /* @__PURE__ */ jsx(SiGithub, { size: 16 });
|
|
119
120
|
}
|
|
120
121
|
function FixedRatioContainer({
|
|
121
122
|
children,
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { E as EmbedNode, a as EmbedLinkRenderer, c as createSelfThinkingMatcher, m as matchEmbedUrl } from "./EmbedLinkRenderer-
|
|
5
|
-
import { $, b, d, e, i, f, g, h, j, k, u } from "./EmbedLinkRenderer-
|
|
4
|
+
import { E as EmbedNode, a as EmbedLinkRenderer, c as createSelfThinkingMatcher, m as matchEmbedUrl } from "./EmbedLinkRenderer-Cw-Doj2u.js";
|
|
5
|
+
import { $, b, d, e, i, f, g, h, j, k, u } from "./EmbedLinkRenderer-Cw-Doj2u.js";
|
|
6
6
|
import { $insertNodes, createCommand, PASTE_COMMAND, COMMAND_PRIORITY_LOW } from "lexical";
|
|
7
7
|
import { Code } from "lucide-react";
|
|
8
8
|
import { createElement, useMemo, useEffect } from "react";
|
package/dist/static.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EmbedNode } from "./EmbedLinkRenderer-
|
|
2
|
-
import { $, b, a, d, e, c, i, f, g, h, j, k, m, u } from "./EmbedLinkRenderer-
|
|
1
|
+
import { E as EmbedNode } from "./EmbedLinkRenderer-Cw-Doj2u.js";
|
|
2
|
+
import { $, b, a, d, e, c, i, f, g, h, j, k, m, u } from "./EmbedLinkRenderer-Cw-Doj2u.js";
|
|
3
3
|
const embedNodes = [EmbedNode];
|
|
4
4
|
export {
|
|
5
5
|
$ as $createEmbedNode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-embed",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "Embed extension for Twitter, YouTube, etc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"
|
|
28
|
+
"@icons-pack/react-simple-icons": "^13.12.0",
|
|
29
|
+
"lucide-react": "^1.0.0",
|
|
29
30
|
"react-tweet": "npm:@innei/react-tweet@3.4.2",
|
|
30
|
-
"@haklex/rich-editor": "0.0.
|
|
31
|
-
"@haklex/rich-
|
|
32
|
-
"@haklex/rich-
|
|
31
|
+
"@haklex/rich-editor": "0.0.89",
|
|
32
|
+
"@haklex/rich-style-token": "0.0.89",
|
|
33
|
+
"@haklex/rich-editor-ui": "0.0.89"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@lexical/react": "^0.42.0",
|