@player-ui/a2ui 1.1.0--canary.866.38513 → 1.1.0-next.3
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/cjs/index.cjs +1 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.legacy-esm.js +2 -7
- package/dist/index.mjs +2 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/index.tsx +2 -9
package/dist/cjs/index.cjs
CHANGED
|
@@ -33,10 +33,7 @@ var A2UIReactPlayer = class extends import_react.ReactPlayer {
|
|
|
33
33
|
constructor(options = {}) {
|
|
34
34
|
super({
|
|
35
35
|
...options,
|
|
36
|
-
plugins: [
|
|
37
|
-
new import_a2ui_plugin_react.A2UIPlugin(),
|
|
38
|
-
...options.plugins ?? []
|
|
39
|
-
]
|
|
36
|
+
plugins: [new import_a2ui_plugin_react.A2UIPlugin(), ...options.plugins ?? []]
|
|
40
37
|
});
|
|
41
38
|
}
|
|
42
39
|
};
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx"],"sourcesContent":["import { ReactPlayer, type ReactPlayerOptions } from \"@player-ui/react\";\nimport { A2UIPlugin } from \"@player-ui/a2ui-plugin-react\";\n\nexport type A2UIReactPlayerOptions = ReactPlayerOptions;\n\n/**\n * A `ReactPlayer` preconfigured with the A2UI plugin: content-format adapter,\n * asset transforms, expression handlers, and React asset registrations.\n *\n * Extra plugins from `options.plugins` are appended after the A2UI plugin so\n * consumer-supplied taps run later and win on conflict.\n *\n * @example\n * import { A2UIReactPlayer } from \"@player-ui/a2ui\";\n *\n * const player = new A2UIReactPlayer();\n * await player.start(snapshot, { format: \"a2ui\", version: \"0.9\" });\n */\nexport class A2UIReactPlayer extends ReactPlayer {\n constructor(options: A2UIReactPlayerOptions = {}) {\n super({\n ...options,\n plugins: [new A2UIPlugin(), ...(options.plugins ?? [])],\n });\n }\n}\n\nexport {\n ReactPlayer,\n type ReactPlayerOptions,\n type ReactPlayerPlugin,\n} from \"@player-ui/react\";\nexport { A2UIPlugin } from \"@player-ui/a2ui-plugin-react\";\nexport type { StartOptions, ContentMeta } from \"@player-ui/player\";\nexport type { A2UISnapshot, A2UIComponent } from \"@player-ui/a2ui-plugin\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAqD;AACrD,+BAA2B;AA0B3B,IAAAA,gBAIO;AACP,IAAAC,4BAA2B;AAdpB,IAAM,kBAAN,cAA8B,yBAAY;AAAA,EAC/C,YAAY,UAAkC,CAAC,GAAG;AAChD,UAAM;AAAA,MACJ,GAAG;AAAA,MACH,SAAS,CAAC,IAAI,oCAAW,GAAG,GAAI,QAAQ,WAAW,CAAC,CAAE;AAAA,IACxD,CAAC;AAAA,EACH;AACF;","names":["import_react","import_a2ui_plugin_react"]}
|
package/dist/index.legacy-esm.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx
|
|
2
|
-
import {
|
|
3
|
-
ReactPlayer
|
|
4
|
-
} from "@player-ui/react";
|
|
2
|
+
import { ReactPlayer } from "@player-ui/react";
|
|
5
3
|
import { A2UIPlugin } from "@player-ui/a2ui-plugin-react";
|
|
6
4
|
import {
|
|
7
5
|
ReactPlayer as ReactPlayer2
|
|
@@ -11,10 +9,7 @@ var A2UIReactPlayer = class extends ReactPlayer {
|
|
|
11
9
|
constructor(options = {}) {
|
|
12
10
|
super({
|
|
13
11
|
...options,
|
|
14
|
-
plugins: [
|
|
15
|
-
new A2UIPlugin(),
|
|
16
|
-
...options.plugins ?? []
|
|
17
|
-
]
|
|
12
|
+
plugins: [new A2UIPlugin(), ...options.plugins ?? []]
|
|
18
13
|
});
|
|
19
14
|
}
|
|
20
15
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// ../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx
|
|
2
|
-
import {
|
|
3
|
-
ReactPlayer
|
|
4
|
-
} from "@player-ui/react";
|
|
2
|
+
import { ReactPlayer } from "@player-ui/react";
|
|
5
3
|
import { A2UIPlugin } from "@player-ui/a2ui-plugin-react";
|
|
6
4
|
import {
|
|
7
5
|
ReactPlayer as ReactPlayer2
|
|
@@ -11,10 +9,7 @@ var A2UIReactPlayer = class extends ReactPlayer {
|
|
|
11
9
|
constructor(options = {}) {
|
|
12
10
|
super({
|
|
13
11
|
...options,
|
|
14
|
-
plugins: [
|
|
15
|
-
new A2UIPlugin(),
|
|
16
|
-
...options.plugins ?? []
|
|
17
|
-
]
|
|
12
|
+
plugins: [new A2UIPlugin(), ...options.plugins ?? []]
|
|
18
13
|
});
|
|
19
14
|
}
|
|
20
15
|
};
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/packages/a2ui/react/src/index.tsx"],"sourcesContent":["import { ReactPlayer, type ReactPlayerOptions } from \"@player-ui/react\";\nimport { A2UIPlugin } from \"@player-ui/a2ui-plugin-react\";\n\nexport type A2UIReactPlayerOptions = ReactPlayerOptions;\n\n/**\n * A `ReactPlayer` preconfigured with the A2UI plugin: content-format adapter,\n * asset transforms, expression handlers, and React asset registrations.\n *\n * Extra plugins from `options.plugins` are appended after the A2UI plugin so\n * consumer-supplied taps run later and win on conflict.\n *\n * @example\n * import { A2UIReactPlayer } from \"@player-ui/a2ui\";\n *\n * const player = new A2UIReactPlayer();\n * await player.start(snapshot, { format: \"a2ui\", version: \"0.9\" });\n */\nexport class A2UIReactPlayer extends ReactPlayer {\n constructor(options: A2UIReactPlayerOptions = {}) {\n super({\n ...options,\n plugins: [new A2UIPlugin(), ...(options.plugins ?? [])],\n });\n }\n}\n\nexport {\n ReactPlayer,\n type ReactPlayerOptions,\n type ReactPlayerPlugin,\n} from \"@player-ui/react\";\nexport { A2UIPlugin } from \"@player-ui/a2ui-plugin-react\";\nexport type { StartOptions, ContentMeta } from \"@player-ui/player\";\nexport type { A2UISnapshot, A2UIComponent } from \"@player-ui/a2ui-plugin\";\n"],"mappings":";AAAA,SAAS,mBAA4C;AACrD,SAAS,kBAAkB;AA0B3B;AAAA,EACE,eAAAA;AAAA,OAGK;AACP,SAAS,cAAAC,mBAAkB;AAdpB,IAAM,kBAAN,cAA8B,YAAY;AAAA,EAC/C,YAAY,UAAkC,CAAC,GAAG;AAChD,UAAM;AAAA,MACJ,GAAG;AAAA,MACH,SAAS,CAAC,IAAI,WAAW,GAAG,GAAI,QAAQ,WAAW,CAAC,CAAE;AAAA,IACxD,CAAC;AAAA,EACH;AACF;","names":["ReactPlayer","A2UIPlugin"]}
|
package/package.json
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
"types"
|
|
7
7
|
],
|
|
8
8
|
"name": "@player-ui/a2ui",
|
|
9
|
-
"version": "1.1.0
|
|
9
|
+
"version": "1.1.0-next.3",
|
|
10
10
|
"main": "dist/cjs/index.cjs",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-ui/a2ui-plugin": "1.1.0
|
|
13
|
-
"@player-ui/a2ui-plugin-react": "1.1.0
|
|
12
|
+
"@player-ui/a2ui-plugin": "1.1.0-next.3",
|
|
13
|
+
"@player-ui/a2ui-plugin-react": "1.1.0-next.3",
|
|
14
14
|
"tslib": "^2.6.2"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@player-ui/player": "1.1.0
|
|
18
|
-
"@player-ui/react": "1.1.0
|
|
17
|
+
"@player-ui/player": "1.1.0-next.3",
|
|
18
|
+
"@player-ui/react": "1.1.0-next.3",
|
|
19
19
|
"react": "^18.2.0",
|
|
20
20
|
"@types/react": "^18.2.39"
|
|
21
21
|
},
|
package/src/index.tsx
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ReactPlayer,
|
|
3
|
-
type ReactPlayerOptions,
|
|
4
|
-
type ReactPlayerPlugin,
|
|
5
|
-
} from "@player-ui/react";
|
|
1
|
+
import { ReactPlayer, type ReactPlayerOptions } from "@player-ui/react";
|
|
6
2
|
import { A2UIPlugin } from "@player-ui/a2ui-plugin-react";
|
|
7
3
|
|
|
8
4
|
export type A2UIReactPlayerOptions = ReactPlayerOptions;
|
|
@@ -24,10 +20,7 @@ export class A2UIReactPlayer extends ReactPlayer {
|
|
|
24
20
|
constructor(options: A2UIReactPlayerOptions = {}) {
|
|
25
21
|
super({
|
|
26
22
|
...options,
|
|
27
|
-
plugins: [
|
|
28
|
-
new A2UIPlugin() as unknown as ReactPlayerPlugin,
|
|
29
|
-
...(options.plugins ?? []),
|
|
30
|
-
],
|
|
23
|
+
plugins: [new A2UIPlugin(), ...(options.plugins ?? [])],
|
|
31
24
|
});
|
|
32
25
|
}
|
|
33
26
|
}
|