@haklex/rich-ext-embed 0.26.4 → 0.26.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/{EmbedLinkRenderer-C5x_7O2_.js → EmbedLinkRenderer-BOzRfwqp.js} +4 -4
- package/dist/index.mjs +1 -1
- package/dist/renderers/EmbedLinkRenderer.d.ts +1 -1
- package/dist/renderers/EmbedLinkRenderer.d.ts.map +1 -1
- package/dist/renderers/EmbedStaticRenderer.d.ts +1 -1
- package/dist/renderers/EmbedStaticRenderer.d.ts.map +1 -1
- package/dist/static.mjs +1 -1
- package/package.json +8 -8
|
@@ -125,7 +125,7 @@ var fallbackLink = "_1xclnejo";
|
|
|
125
125
|
var tweet = "_1xclnejp";
|
|
126
126
|
var loading = "_1xclnejq";
|
|
127
127
|
//#endregion
|
|
128
|
-
//#region \0@oxc-project+runtime@0.
|
|
128
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
129
129
|
function _typeof(o) {
|
|
130
130
|
"@babel/helpers - typeof";
|
|
131
131
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -135,7 +135,7 @@ function _typeof(o) {
|
|
|
135
135
|
}, _typeof(o);
|
|
136
136
|
}
|
|
137
137
|
//#endregion
|
|
138
|
-
//#region \0@oxc-project+runtime@0.
|
|
138
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
139
139
|
function toPrimitive(t, r) {
|
|
140
140
|
if ("object" != _typeof(t) || !t) return t;
|
|
141
141
|
var e = t[Symbol.toPrimitive];
|
|
@@ -147,13 +147,13 @@ function toPrimitive(t, r) {
|
|
|
147
147
|
return ("string" === r ? String : Number)(t);
|
|
148
148
|
}
|
|
149
149
|
//#endregion
|
|
150
|
-
//#region \0@oxc-project+runtime@0.
|
|
150
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
151
151
|
function toPropertyKey(t) {
|
|
152
152
|
var i = toPrimitive(t, "string");
|
|
153
153
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
154
154
|
}
|
|
155
155
|
//#endregion
|
|
156
|
-
//#region \0@oxc-project+runtime@0.
|
|
156
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
157
157
|
function _defineProperty(e, r, t) {
|
|
158
158
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
159
159
|
value: t,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isGistUrl, c as isYoutubeUrl, d as $isEmbedNode, f as EmbedNode, g as useEmbedRenderers, h as EmbedRendererProvider, i as isCodesandboxUrl, l as matchEmbedUrl, m as _defineProperty, n as createSelfThinkingMatcher, o as isGithubFilePreviewUrl, p as EmbedStaticRenderer, r as isBilibiliVideoUrl, s as isTweetUrl, t as EmbedLinkRenderer, u as $createEmbedNode } from "./EmbedLinkRenderer-
|
|
1
|
+
import { a as isGistUrl, c as isYoutubeUrl, d as $isEmbedNode, f as EmbedNode, g as useEmbedRenderers, h as EmbedRendererProvider, i as isCodesandboxUrl, l as matchEmbedUrl, m as _defineProperty, n as createSelfThinkingMatcher, o as isGithubFilePreviewUrl, p as EmbedStaticRenderer, r as isBilibiliVideoUrl, s as isTweetUrl, t as EmbedLinkRenderer, u as $createEmbedNode } from "./EmbedLinkRenderer-BOzRfwqp.js";
|
|
2
2
|
import { $insertNodes, COMMAND_PRIORITY_LOW, PASTE_COMMAND, createCommand } from "lexical";
|
|
3
3
|
import { createElement, useEffect, useMemo } from "react";
|
|
4
4
|
import { Code } from "lucide-react";
|
|
@@ -4,5 +4,5 @@ export interface EmbedLinkRendererProps {
|
|
|
4
4
|
type: EmbedType | null;
|
|
5
5
|
url: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function EmbedLinkRenderer({ type, url, nodeKey }: EmbedLinkRendererProps): import("react
|
|
7
|
+
export declare function EmbedLinkRenderer({ type, url, nodeKey }: EmbedLinkRendererProps): import("react").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=EmbedLinkRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedLinkRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedLinkRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASjD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAYD,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,sBAAsB
|
|
1
|
+
{"version":3,"file":"EmbedLinkRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedLinkRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASjD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAYD,wBAAgB,iBAAiB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,sBAAsB,+BAgG/E"}
|
|
@@ -3,5 +3,5 @@ export interface EmbedStaticRendererProps {
|
|
|
3
3
|
type: EmbedType | null;
|
|
4
4
|
url: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function EmbedStaticRenderer({ type, url }: EmbedStaticRendererProps): import("react
|
|
6
|
+
export declare function EmbedStaticRenderer({ type, url }: EmbedStaticRendererProps): import("react").JSX.Element | null;
|
|
7
7
|
//# sourceMappingURL=EmbedStaticRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedStaticRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedStaticRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuDjD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAsQD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"EmbedStaticRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/EmbedStaticRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAS1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAuDjD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAsQD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,wBAAwB,sCAgG1E"}
|
package/dist/static.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isGistUrl, c as isYoutubeUrl, d as $isEmbedNode, f as EmbedNode, g as useEmbedRenderers, h as EmbedRendererProvider, i as isCodesandboxUrl, l as matchEmbedUrl, n as createSelfThinkingMatcher, o as isGithubFilePreviewUrl, p as EmbedStaticRenderer, r as isBilibiliVideoUrl, s as isTweetUrl, t as EmbedLinkRenderer, u as $createEmbedNode } from "./EmbedLinkRenderer-
|
|
1
|
+
import { a as isGistUrl, c as isYoutubeUrl, d as $isEmbedNode, f as EmbedNode, g as useEmbedRenderers, h as EmbedRendererProvider, i as isCodesandboxUrl, l as matchEmbedUrl, n as createSelfThinkingMatcher, o as isGithubFilePreviewUrl, p as EmbedStaticRenderer, r as isBilibiliVideoUrl, s as isTweetUrl, t as EmbedLinkRenderer, u as $createEmbedNode } from "./EmbedLinkRenderer-BOzRfwqp.js";
|
|
2
2
|
//#region src/static.ts
|
|
3
3
|
var embedNodes = [EmbedNode];
|
|
4
4
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-ext-embed",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "Embed extension for Twitter, YouTube, etc.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@icons-pack/react-simple-icons": "^13.13.0",
|
|
29
|
-
"react-tweet": "npm:@innei/react-tweet@3.4.
|
|
29
|
+
"react-tweet": "npm:@innei/react-tweet@3.4.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@lexical/react": "^0.45.0",
|
|
33
|
-
"@types/react": "^19.2.
|
|
33
|
+
"@types/react": "^19.2.17",
|
|
34
34
|
"@types/react-dom": "^19.2.3",
|
|
35
35
|
"@vanilla-extract/css": "^1.20.1",
|
|
36
36
|
"@vanilla-extract/vite-plugin": "^5.2.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-dom": "19.2.6",
|
|
40
40
|
"shiki": "^4.2.0",
|
|
41
41
|
"typescript": "^5.9.3",
|
|
42
|
-
"unplugin-dts": "^1.0.
|
|
43
|
-
"vite": "^8.0.
|
|
42
|
+
"unplugin-dts": "^1.0.2",
|
|
43
|
+
"vite": "^8.0.16"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@lexical/react": "^0.45.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"react": ">=19",
|
|
50
50
|
"react-dom": ">=19",
|
|
51
51
|
"shiki": ">=4.0.0",
|
|
52
|
-
"@haklex/rich-editor": "^0.26.
|
|
53
|
-
"@haklex/rich-
|
|
54
|
-
"@haklex/rich-
|
|
52
|
+
"@haklex/rich-editor": "^0.26.6",
|
|
53
|
+
"@haklex/rich-style-token": "^0.26.6",
|
|
54
|
+
"@haklex/rich-editor-ui": "^0.26.6"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"shiki": {
|