@devultur/convex 0.0.0-stage → 1.0.1

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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -2
  3. package/dist/bin/init.d.ts +1 -0
  4. package/dist/bin/init.js +112 -0
  5. package/dist/chunk-FHWT3GD6.js +21 -0
  6. package/dist/component/_generated/api.d.ts +36 -0
  7. package/dist/component/_generated/api.d.ts.map +1 -0
  8. package/dist/component/_generated/api.js +31 -0
  9. package/dist/component/_generated/api.js.map +1 -0
  10. package/dist/component/_generated/component.d.ts +100 -0
  11. package/dist/component/_generated/component.d.ts.map +1 -0
  12. package/dist/component/_generated/component.js +11 -0
  13. package/dist/component/_generated/component.js.map +1 -0
  14. package/dist/component/_generated/dataModel.d.ts +46 -0
  15. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  16. package/dist/component/_generated/dataModel.js +11 -0
  17. package/dist/component/_generated/dataModel.js.map +1 -0
  18. package/dist/component/_generated/server.d.ts +130 -0
  19. package/dist/component/_generated/server.d.ts.map +1 -0
  20. package/dist/component/_generated/server.js +79 -0
  21. package/dist/component/_generated/server.js.map +1 -0
  22. package/dist/component/convex.config.d.ts +6 -0
  23. package/dist/component/convex.config.d.ts.map +1 -0
  24. package/dist/component/convex.config.js +10 -0
  25. package/dist/component/convex.config.js.map +1 -0
  26. package/dist/component/http.d.ts +3 -0
  27. package/dist/component/http.d.ts.map +1 -0
  28. package/dist/component/http.js +25 -0
  29. package/dist/component/http.js.map +1 -0
  30. package/dist/component/public.d.ts +221 -0
  31. package/dist/component/public.d.ts.map +1 -0
  32. package/dist/component/public.js +429 -0
  33. package/dist/component/public.js.map +1 -0
  34. package/dist/component/schema.d.ts +169 -0
  35. package/dist/component/schema.d.ts.map +1 -0
  36. package/dist/component/schema.js +63 -0
  37. package/dist/component/schema.js.map +1 -0
  38. package/dist/index.d.ts +198 -0
  39. package/dist/index.js +121 -0
  40. package/dist/react.d.ts +281 -0
  41. package/dist/react.js +756 -0
  42. package/dist/validators.d.ts +31 -0
  43. package/dist/validators.js +6 -0
  44. package/package.json +79 -3
@@ -0,0 +1,31 @@
1
+ import * as convex_values from 'convex/values';
2
+ import { DevulturKind } from '@devultur/core';
3
+
4
+ /**
5
+ * Convex validator for a typed media reference. `dv.media()` accepts any kind;
6
+ * `dv.media("image")` restricts the `kind`. Store the reference, not the URL:
7
+ *
8
+ * @example
9
+ * // convex/schema.ts
10
+ * import { dv } from "@devultur/convex";
11
+ * courses: defineTable({ thumbnail: dv.media("image").optional() });
12
+ */
13
+ declare const dv: {
14
+ media(kind?: DevulturKind): convex_values.VObject<{
15
+ filename?: string | undefined;
16
+ width?: number | undefined;
17
+ height?: number | undefined;
18
+ id: string;
19
+ kind: DevulturKind;
20
+ visibility: "public" | "private";
21
+ }, {
22
+ kind: convex_values.VLiteral<DevulturKind, "required"> | convex_values.VUnion<"image" | "video" | "file", [convex_values.VLiteral<"image", "required">, convex_values.VLiteral<"video", "required">, convex_values.VLiteral<"file", "required">], "required", never>;
23
+ id: convex_values.VString<string, "required">;
24
+ visibility: convex_values.VUnion<"public" | "private", [convex_values.VLiteral<"public", "required">, convex_values.VLiteral<"private", "required">], "required", never>;
25
+ filename: convex_values.VString<string | undefined, "optional">;
26
+ width: convex_values.VFloat64<number | undefined, "optional">;
27
+ height: convex_values.VFloat64<number | undefined, "optional">;
28
+ }, "required", "id" | "kind" | "visibility" | "filename" | "width" | "height">;
29
+ };
30
+
31
+ export { dv };
@@ -0,0 +1,6 @@
1
+ import {
2
+ dv
3
+ } from "./chunk-FHWT3GD6.js";
4
+ export {
5
+ dv
6
+ };
package/package.json CHANGED
@@ -1,6 +1,82 @@
1
1
  {
2
2
  "name": "@devultur/convex",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.1",
4
+ "description": "Convex component for Devultur media: media records, uploads, transcodes, watch progress and React bindings",
5
+ "keywords": [
6
+ "convex",
7
+ "convex-component",
8
+ "media",
9
+ "video",
10
+ "hls",
11
+ "upload"
12
+ ],
13
+ "private": false,
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/devultur/devultur",
18
+ "directory": "packages/convex"
19
+ },
20
+ "homepage": "https://github.com/devultur/devultur#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/devultur/devultur/issues"
23
+ },
24
+ "type": "module",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./convex.config": {
31
+ "types": "./dist/component/convex.config.d.ts",
32
+ "default": "./dist/component/convex.config.js"
33
+ },
34
+ "./_generated/component.js": {
35
+ "types": "./dist/component/_generated/component.d.ts"
36
+ },
37
+ "./validators": {
38
+ "import": "./dist/validators.js",
39
+ "types": "./dist/validators.d.ts"
40
+ },
41
+ "./react": {
42
+ "import": "./dist/react.js",
43
+ "types": "./dist/react.d.ts"
44
+ }
45
+ },
46
+ "bin": {
47
+ "@devultur/convex": "./dist/bin/init.js",
48
+ "devultur-init": "./dist/bin/init.js"
49
+ },
50
+ "files": [
51
+ "dist"
52
+ ],
53
+ "dependencies": {
54
+ "@devultur/react": "1.0.1",
55
+ "@devultur/core": "1.0.1"
56
+ },
57
+ "peerDependencies": {
58
+ "convex": ">=1.25.0",
59
+ "react": ">=19.0.0"
60
+ },
61
+ "peerDependenciesMeta": {
62
+ "react": {
63
+ "optional": true
64
+ }
65
+ },
66
+ "devDependencies": {
67
+ "@types/node": "^22.0.0",
68
+ "@types/react": "^19.0.0",
69
+ "convex": "^1.21.0",
70
+ "react": "^19.0.0",
71
+ "tsup": "^8.0.0",
72
+ "typescript": "^5.8.0"
73
+ },
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "scripts": {
78
+ "build": "tsup src/index.ts src/validators.ts src/react.tsx src/bin/init.ts --format esm --dts && tsc -p src/component/tsconfig.json",
79
+ "dev": "tsup src/index.ts src/react.tsx --format esm --dts --watch",
80
+ "typecheck": "tsc --noEmit"
81
+ }
6
82
  }