@bardioc/app-sdk 0.4.0

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 (41) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +368 -0
  3. package/assets/fonts/README.md +11 -0
  4. package/assets/fonts/bardioc-fonts.css +55 -0
  5. package/assets/fonts/v1/geist-mono-latin-wght-normal.woff2 +0 -0
  6. package/assets/fonts/v1/nunito-sans-latin-wght-italic.woff2 +0 -0
  7. package/assets/fonts/v1/nunito-sans-latin-wght-normal.woff2 +0 -0
  8. package/dist/contract-matrix.d.ts +130 -0
  9. package/dist/contract-matrix.js +132 -0
  10. package/dist/dev-auth-proxy-core.d.ts +24 -0
  11. package/dist/dev-auth-proxy-core.js +59 -0
  12. package/dist/dev-auth-vite.d.ts +34 -0
  13. package/dist/dev-auth-vite.js +221 -0
  14. package/dist/dev-proxy.d.ts +8 -0
  15. package/dist/dev-proxy.js +40 -0
  16. package/dist/dev-session-cli.d.ts +34 -0
  17. package/dist/dev-session-cli.js +125 -0
  18. package/dist/dev.d.ts +33 -0
  19. package/dist/dev.js +223 -0
  20. package/dist/dot-env.d.ts +2 -0
  21. package/dist/dot-env.js +22 -0
  22. package/dist/errors.d.ts +27 -0
  23. package/dist/errors.js +57 -0
  24. package/dist/host-bridge.d.ts +3 -0
  25. package/dist/host-bridge.js +260 -0
  26. package/dist/index.d.ts +9 -0
  27. package/dist/index.js +6 -0
  28. package/dist/manifest.d.ts +78 -0
  29. package/dist/manifest.js +169 -0
  30. package/dist/protocol.d.ts +26 -0
  31. package/dist/protocol.js +28 -0
  32. package/dist/react.d.ts +26 -0
  33. package/dist/react.js +208 -0
  34. package/dist/transports/graph-transport.d.ts +224 -0
  35. package/dist/transports/graph-transport.js +584 -0
  36. package/dist/transports/os-transport.d.ts +189 -0
  37. package/dist/transports/os-transport.js +444 -0
  38. package/dist/types.d.ts +343 -0
  39. package/dist/vite.d.ts +9 -0
  40. package/dist/vite.js +262 -0
  41. package/package.json +101 -0
package/package.json ADDED
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "@bardioc/app-sdk",
3
+ "version": "0.4.0",
4
+ "description": "SDK for building apps for the Bardioc OS",
5
+ "license": "MIT",
6
+ "private": false,
7
+ "type": "module",
8
+ "bin": {
9
+ "bardioc-dev-session": "./dist/dev-session-cli.js"
10
+ },
11
+ "publishConfig": {
12
+ "registry": "https://registry.npmjs.org/",
13
+ "access": "public"
14
+ },
15
+ "sideEffects": false,
16
+ "engines": {
17
+ "node": ">=20.19.0"
18
+ },
19
+ "main": "./dist/index.js",
20
+ "module": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ },
27
+ "./protocol": {
28
+ "types": "./dist/protocol.d.ts",
29
+ "default": "./dist/protocol.js"
30
+ },
31
+ "./react": {
32
+ "types": "./dist/react.d.ts",
33
+ "default": "./dist/react.js"
34
+ },
35
+ "./vite": {
36
+ "types": "./dist/vite.d.ts",
37
+ "default": "./dist/vite.js"
38
+ },
39
+ "./dev": {
40
+ "types": "./dist/dev.d.ts",
41
+ "default": "./dist/dev.js"
42
+ },
43
+ "./dev-proxy": {
44
+ "types": "./dist/dev-proxy.d.ts",
45
+ "default": "./dist/dev-proxy.js"
46
+ },
47
+ "./dev-session-cli": {
48
+ "types": "./dist/dev-session-cli.d.ts",
49
+ "default": "./dist/dev-session-cli.js"
50
+ },
51
+ "./types": {
52
+ "types": "./dist/types.d.ts"
53
+ }
54
+ },
55
+ "files": [
56
+ "dist",
57
+ "!dist/**/*.d.ts.map",
58
+ "!dist/types.js",
59
+ "assets",
60
+ "README.md",
61
+ "LICENSE"
62
+ ],
63
+ "keywords": [
64
+ "bardioc",
65
+ "sdk",
66
+ "vite",
67
+ "iframe",
68
+ "react"
69
+ ],
70
+ "peerDependencies": {
71
+ "react": "^18.0.0 || ^19.2"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "react": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "devDependencies": {
79
+ "@vitest/coverage-v8": "4.1.5",
80
+ "@types/node": "^25.6.0",
81
+ "@types/react": "^19.2.14",
82
+ "@testing-library/jest-dom": "6.9.1",
83
+ "@testing-library/react": "16.3.2",
84
+ "jsdom": "29.1.0",
85
+ "react": "19.2.5",
86
+ "react-dom": "19.2.5",
87
+ "typescript": "^5.9.3",
88
+ "vitest": "4.1.5"
89
+ },
90
+ "scripts": {
91
+ "build": "tsc",
92
+ "lint": "eslint .",
93
+ "format": "prettier --write .",
94
+ "format:check": "prettier --check .",
95
+ "check-types": "tsc --noEmit",
96
+ "pack:check": "npm pack --dry-run",
97
+ "test": "vitest run",
98
+ "test:coverage": "vitest run --coverage",
99
+ "test:watch": "vitest"
100
+ }
101
+ }