tanstack 2.0.0 → 2.0.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/README.md +16 -4
- package/dist/index.cjs +79 -0
- package/dist/{index.mjs.map → index.cjs.map} +1 -1
- package/dist/index.js +4 -77
- package/package.json +10 -5
- package/packages/adapter-videojs/package.json +3 -3
- package/packages/core/package.json +3 -3
- package/packages/plugin-bookmark/package.json +3 -3
- package/packages/react/package.json +3 -3
- package/dist/index.mjs +0 -6
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/README.md
CHANGED
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
<a href="https://30tools.com">
|
|
4
|
+
<img src="https://img.shields.io/badge/Sponsored%20by-30tools.com-6c5ce7?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyem0wIDE4Yy00LjQxIDAtOC0zLjU5LTgtOHMzLjU5LTggOC04IDggMy41OSA4IDgtMy41OSA4LTggNHoiLz48L3N2Zz4=" alt="Sponsored by 30tools.com" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
**[30tools.com](https://30tools.com)** — **All Your Tools. One Platform.** 194+ free, privacy-first online tools for Image, PDF, Video, Developer, SEO & more. Fast, beautiful, and no uploads required.
|
|
8
|
+
|
|
9
|
+
<br/>
|
|
10
|
+
|
|
3
11
|
# ▶ TanStack Player
|
|
4
12
|
|
|
5
13
|
**A developer-first, universal Video Player SDK built on Video.js**
|
|
6
14
|
|
|
7
15
|
Headless hooks · Plugin architecture · React-first DX · Streaming ready
|
|
8
16
|
|
|
17
|
+
<img src=".github/assets/og-image.png" alt="TanStack Player" width="600" />
|
|
18
|
+
|
|
9
19
|
[](https://www.npmjs.com/package/tanstack)
|
|
10
20
|
[](https://www.npmjs.com/package/tanstack)
|
|
11
21
|
[](https://bundlephobia.com/package/tanstack)
|
|
12
22
|
[](LICENSE)
|
|
23
|
+
[](https://visitorbadge.io/status?path=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Ftanstack%3FactiveTab%3Dreadme)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
[](https://www.typescriptlang.org/)
|
|
27
|
+
[](https://videojs.com/)
|
|
13
28
|
[](https://github.com/sh20raj/tanstack)
|
|
14
29
|
[](https://github.com/sh20raj/tanstack/issues)
|
|
15
30
|
[](https://github.com/sh20raj/tanstack/pulls)
|
|
16
|
-
[](https://www.typescriptlang.org/)
|
|
17
|
-
[](https://videojs.com/)
|
|
18
|
-
[](https://visitorbadge.io/status?path=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Ftanstack%3FactiveTab%3Dreadme)
|
|
19
31
|
|
|
20
|
-
[Documentation](https://
|
|
32
|
+
[Documentation](https://github.com/sh20raj/tanstack/tree/main/docs) · [npm](https://www.npmjs.com/package/tanstack) · [Examples](https://github.com/sh20raj/tanstack/tree/main/examples) · [Contributing](CONTRIBUTING.md)
|
|
21
33
|
|
|
22
34
|
</div>
|
|
23
35
|
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@tanstack-player/core');
|
|
4
|
+
var adapterVideojs = require('@tanstack-player/adapter-videojs');
|
|
5
|
+
var react = require('@tanstack-player/react');
|
|
6
|
+
var pluginBookmark = require('@tanstack-player/plugin-bookmark');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "EventBus", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return core.EventBus; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "INITIAL_STATE", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return core.INITIAL_STATE; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "PlayerController", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return core.PlayerController; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "PlayerEvent", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return core.PlayerEvent; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "PluginRuntime", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return core.PluginRuntime; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "StateStore", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return core.StateStore; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "VideoJsAdapter", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return adapterVideojs.VideoJsAdapter; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "createVideoJsAdapter", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return adapterVideojs.createVideoJsAdapter; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "TanStackPlayer", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return react.TanStackPlayer; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "TanStackPlayerContext", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return react.TanStackPlayerContext; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "useBookmarks", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return react.useBookmarks; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "usePlayerContext", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return react.usePlayerContext; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "useProgress", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return react.useProgress; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "useTanStackPlayer", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return react.useTanStackPlayer; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "BookmarkEvent", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return pluginBookmark.BookmarkEvent; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "BookmarkPlugin", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return pluginBookmark.BookmarkPlugin; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "createBookmarkPlugin", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return pluginBookmark.createBookmarkPlugin; }
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=index.cjs.map
|
|
79
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
package/dist/index.js
CHANGED
|
@@ -1,79 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var react = require('@tanstack-player/react');
|
|
6
|
-
var pluginBookmark = require('@tanstack-player/plugin-bookmark');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "EventBus", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () { return core.EventBus; }
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "INITIAL_STATE", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return core.INITIAL_STATE; }
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "PlayerController", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return core.PlayerController; }
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(exports, "PlayerEvent", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return core.PlayerEvent; }
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "PluginRuntime", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () { return core.PluginRuntime; }
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "StateStore", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return core.StateStore; }
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "VideoJsAdapter", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () { return adapterVideojs.VideoJsAdapter; }
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, "createVideoJsAdapter", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () { return adapterVideojs.createVideoJsAdapter; }
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "TanStackPlayer", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () { return react.TanStackPlayer; }
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "TanStackPlayerContext", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return react.TanStackPlayerContext; }
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(exports, "useBookmarks", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () { return react.useBookmarks; }
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "usePlayerContext", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () { return react.usePlayerContext; }
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "useProgress", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () { return react.useProgress; }
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "useTanStackPlayer", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () { return react.useTanStackPlayer; }
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "BookmarkEvent", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () { return pluginBookmark.BookmarkEvent; }
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "BookmarkPlugin", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () { return pluginBookmark.BookmarkPlugin; }
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(exports, "createBookmarkPlugin", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function () { return pluginBookmark.createBookmarkPlugin; }
|
|
77
|
-
});
|
|
1
|
+
export { EventBus, INITIAL_STATE, PlayerController, PlayerEvent, PluginRuntime, StateStore } from '@tanstack-player/core';
|
|
2
|
+
export { VideoJsAdapter, createVideoJsAdapter } from '@tanstack-player/adapter-videojs';
|
|
3
|
+
export { TanStackPlayer, TanStackPlayerContext, useBookmarks, usePlayerContext, useProgress, useTanStackPlayer } from '@tanstack-player/react';
|
|
4
|
+
export { BookmarkEvent, BookmarkPlugin, createBookmarkPlugin } from '@tanstack-player/plugin-bookmark';
|
|
78
5
|
//# sourceMappingURL=index.js.map
|
|
79
6
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tanstack",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "TanStack Player — A developer-first, universal Video Player SDK built on Video.js with headless hooks, plugin architecture, and React-first DX",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"module": "dist/index.mjs",
|
|
7
8
|
"types": "dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
10
12
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
+
"require": "./dist/index.js"
|
|
13
14
|
}
|
|
14
15
|
},
|
|
15
16
|
"files": [
|
|
@@ -73,8 +74,12 @@
|
|
|
73
74
|
"video.js": ">=7.0.0"
|
|
74
75
|
},
|
|
75
76
|
"peerDependenciesMeta": {
|
|
76
|
-
"react": {
|
|
77
|
-
|
|
77
|
+
"react": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"react-dom": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
78
83
|
},
|
|
79
84
|
"devDependencies": {
|
|
80
85
|
"tsup": "^8.0.0",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack-player/adapter-videojs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "TanStack Player — Video.js adapter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": ["dist"],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack-player/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "TanStack Player — Headless core engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": ["dist"],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack-player/plugin-bookmark",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "TanStack Player — Bookmark plugin",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": ["dist"],
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack-player/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "TanStack Player — React component and hooks",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
10
11
|
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"files": ["dist"],
|
package/dist/index.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { EventBus, INITIAL_STATE, PlayerController, PlayerEvent, PluginRuntime, StateStore } from '@tanstack-player/core';
|
|
2
|
-
export { VideoJsAdapter, createVideoJsAdapter } from '@tanstack-player/adapter-videojs';
|
|
3
|
-
export { TanStackPlayer, TanStackPlayerContext, useBookmarks, usePlayerContext, useProgress, useTanStackPlayer } from '@tanstack-player/react';
|
|
4
|
-
export { BookmarkEvent, BookmarkPlugin, createBookmarkPlugin } from '@tanstack-player/plugin-bookmark';
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
6
|
-
//# sourceMappingURL=index.mjs.map
|
|
File without changes
|