@ampless/plugin-youtube 1.0.0-alpha.2 → 1.0.0-alpha.4
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/editor.d.ts +9 -1
- package/dist/editor.js +2 -0
- package/dist/index.js +1 -1
- package/package.json +5 -4
package/dist/editor.d.ts
CHANGED
|
@@ -26,5 +26,13 @@ declare const AmplessYoutubeNode: Node<any, any>;
|
|
|
26
26
|
declare const youtubeEditor: {
|
|
27
27
|
extension: Node<any, any>;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Canonical named export consumed by the codegen'd
|
|
31
|
+
* `_editor-bootstrap.tsx`. Plugins MUST export this symbol from
|
|
32
|
+
* their `./editor` module (= the subpath declared in
|
|
33
|
+
* `package.json#amplessPlugin.editorExports`) for the
|
|
34
|
+
* auto-wiring to find them.
|
|
35
|
+
*/
|
|
36
|
+
declare const editorExtension: Node<any, any>;
|
|
29
37
|
|
|
30
|
-
export { AmplessYoutubeNode, youtubeEditor };
|
|
38
|
+
export { AmplessYoutubeNode, editorExtension, youtubeEditor };
|
package/dist/editor.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { definePlugin } from "ampless";
|
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
function youtubePlugin(opts = {}) {
|
|
11
11
|
return definePlugin({
|
|
12
|
-
name: opts.name ?? "
|
|
12
|
+
name: opts.name ?? "youtube",
|
|
13
13
|
apiVersion: 1,
|
|
14
14
|
packageName: "@ampless/plugin-youtube",
|
|
15
15
|
trust_level: "trusted",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ampless/plugin-youtube",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "YouTube embed plugin for ampless — renders youtube.com / youtu.be URLs inline as iframes in tiptap + markdown posts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@tiptap/core": "^3",
|
|
34
34
|
"react": "^18 || ^19",
|
|
35
|
-
"ampless": "1.0.0-alpha.
|
|
35
|
+
"ampless": "1.0.0-alpha.44"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@tiptap/core": "^3.23.6",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"amplessPlugin": {
|
|
53
53
|
"apiVersion": 1,
|
|
54
|
-
"name": "
|
|
54
|
+
"name": "youtube",
|
|
55
55
|
"trustLevel": "trusted",
|
|
56
56
|
"capabilities": [
|
|
57
57
|
"contentFields"
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
"displayName": {
|
|
60
60
|
"en": "YouTube embeds",
|
|
61
61
|
"ja": "YouTube 埋め込み"
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"editorExports": "./editor"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
66
|
"build": "tsup",
|