@ekanos/sdk 0.3.0 → 0.5.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 (63) hide show
  1. package/README.md +171 -75
  2. package/api-report.md +8 -3
  3. package/dist/components/base-activation-dialog.d.ts +15 -5
  4. package/dist/components/base-activation-dialog.js +31 -5
  5. package/dist/components/base-activation-dialog.js.map +1 -1
  6. package/dist/components/base-activation-form.d.ts +20 -5
  7. package/dist/components/base-activation-form.js +12 -5
  8. package/dist/components/base-activation-form.js.map +1 -1
  9. package/dist/components/base-marketplace-tile.js +12 -10
  10. package/dist/components/base-marketplace-tile.js.map +1 -1
  11. package/dist/components/index.d.ts +1 -1
  12. package/dist/components/index.js.map +1 -1
  13. package/dist/components/oauth-activation-form.d.ts +23 -16
  14. package/dist/components/oauth-activation-form.js +34 -20
  15. package/dist/components/oauth-activation-form.js.map +1 -1
  16. package/dist/components/widgets/ai-prompt-chip.js +2 -2
  17. package/dist/components/widgets/ai-prompt-chip.js.map +1 -1
  18. package/dist/components/widgets/use-relative-time.d.ts +7 -0
  19. package/dist/components/widgets/use-relative-time.js +55 -0
  20. package/dist/components/widgets/use-relative-time.js.map +1 -0
  21. package/dist/components/widgets/widget-ask-bar.js +1 -1
  22. package/dist/components/widgets/widget-ask-bar.js.map +1 -1
  23. package/dist/components/widgets/widget-context.d.ts +21 -0
  24. package/dist/components/widgets/widget-context.js.map +1 -1
  25. package/dist/components/widgets/widget-preview-provider.d.ts +1 -1
  26. package/dist/components/widgets/widget-preview-provider.js +1 -1
  27. package/dist/components/widgets/widget-preview-provider.js.map +1 -1
  28. package/dist/components/widgets/widget-state-components.d.ts +4 -1
  29. package/dist/components/widgets/widget-state-components.js +6 -4
  30. package/dist/components/widgets/widget-state-components.js.map +1 -1
  31. package/dist/components/widgets/widget.d.ts +47 -2
  32. package/dist/components/widgets/widget.js +111 -23
  33. package/dist/components/widgets/widget.js.map +1 -1
  34. package/dist/context/egress.js.map +1 -1
  35. package/dist/context/storage-validation.d.ts +24 -4
  36. package/dist/context/storage-validation.js +5 -2
  37. package/dist/context/storage-validation.js.map +1 -1
  38. package/dist/hooks/ask-assistant-context.js.map +1 -1
  39. package/dist/hooks/fetch-integration-storage.js.map +1 -1
  40. package/dist/hooks/partner-oauth.js +3 -0
  41. package/dist/hooks/partner-oauth.js.map +1 -1
  42. package/dist/hooks/use-integration-action.js.map +1 -1
  43. package/dist/hooks/use-oauth-connection-status.d.ts +78 -78
  44. package/dist/hooks/use-oauth-connection-status.js +17 -10
  45. package/dist/hooks/use-oauth-connection-status.js.map +1 -1
  46. package/dist/hooks/widget-event-context.js.map +1 -1
  47. package/dist/integration/event-surfaces.js.map +1 -1
  48. package/dist/integration/index.d.ts +2 -2
  49. package/dist/integration/index.js +1 -1
  50. package/dist/integration/index.js.map +1 -1
  51. package/dist/testing/invoke.js +9 -5
  52. package/dist/testing/invoke.js.map +1 -1
  53. package/dist/testing/mock-context.js +43 -8
  54. package/dist/testing/mock-context.js.map +1 -1
  55. package/dist/testing/mock-fetch-provider.js.map +1 -1
  56. package/dist/types/integration.d.ts +27 -21
  57. package/dist/types/integration.js.map +1 -1
  58. package/dist/types/widget-ask-context.d.ts +9 -0
  59. package/dist/types/widget-ask-context.js.map +1 -1
  60. package/dist/types/workspace-target.d.ts +3 -2
  61. package/dist/types/workspace-target.js.map +1 -1
  62. package/eslint.preset.mjs +9 -8
  63. package/package.json +37 -41
package/package.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@ekanos/sdk",
3
- "version": "0.3.0",
4
- "type": "module",
3
+ "version": "0.5.0",
5
4
  "description": "The official SDK for building Ekanos integrations.",
6
- "license": "MIT",
7
5
  "bugs": {
8
6
  "email": "npm@govastly.com"
9
7
  },
10
- "sideEffects": [
11
- "**/mcp/**"
12
- ],
8
+ "license": "MIT",
13
9
  "files": [
14
10
  "dist",
15
11
  "!dist/mcp",
@@ -18,6 +14,26 @@
18
14
  "LICENSE",
19
15
  "eslint.preset.mjs"
20
16
  ],
17
+ "type": "module",
18
+ "sideEffects": [
19
+ "**/mcp/**"
20
+ ],
21
+ "typesVersions": {
22
+ "*": {
23
+ "context": [
24
+ "dist/context/index.d.ts"
25
+ ],
26
+ "testing": [
27
+ "dist/testing/index.d.ts"
28
+ ],
29
+ "integration": [
30
+ "dist/integration/index.d.ts"
31
+ ],
32
+ "*": [
33
+ "dist/*"
34
+ ]
35
+ }
36
+ },
21
37
  "exports": {
22
38
  ".": {
23
39
  "types": "./dist/index.d.ts",
@@ -49,57 +65,37 @@
49
65
  "access": "public"
50
66
  },
51
67
  "dependencies": {
52
- "@ekanos/integration-schema": "0.3.0",
53
- "@ekanos/ui": "0.3.0",
68
+ "@ekanos/integration-schema": "0.5.0",
69
+ "@ekanos/ui": "0.5.0",
54
70
  "@supabase/supabase-js": "2.87.1",
55
71
  "server-only": "^0.0.1"
56
72
  },
57
- "peerDependencies": {
58
- "@hookform/resolvers": "^5.2.2",
59
- "@tanstack/react-query": "^5.101.4",
60
- "next": "^16.0.0",
61
- "react": "^19.2.8",
62
- "react-hook-form": "^7.68.0",
63
- "zod": "^3.25.76"
64
- },
65
73
  "devDependencies": {
66
74
  "@hookform/resolvers": "^5.9.1",
67
- "@kit/eslint-config": "0.2.0",
68
- "@kit/prettier-config": "0.1.0",
69
75
  "@kit/tsconfig": "0.1.0",
70
- "@tanstack/react-query": "5.102.8",
76
+ "@tanstack/react-query": "5.103.2",
71
77
  "@types/react": "19.2.18",
72
78
  "@types/react-dom": "19.2.5",
73
- "next": "16.3.3",
79
+ "eslint": "^10.11.0",
80
+ "next": "16.3.6",
74
81
  "react": "19.2.8",
75
82
  "react-dom": "19.2.8",
76
- "react-hook-form": "^7.87.0",
77
- "typescript": "^5.9.3",
83
+ "react-hook-form": "^7.88.0",
84
+ "typescript": "^7.0.2",
78
85
  "vitest": "4.1.10",
79
- "zod": "3.25.76"
86
+ "zod": "4.6.5"
80
87
  },
81
- "prettier": "@kit/prettier-config",
82
- "typesVersions": {
83
- "*": {
84
- "context": [
85
- "dist/context/index.d.ts"
86
- ],
87
- "testing": [
88
- "dist/testing/index.d.ts"
89
- ],
90
- "integration": [
91
- "dist/integration/index.d.ts"
92
- ],
93
- "*": [
94
- "dist/*"
95
- ]
96
- }
88
+ "peerDependencies": {
89
+ "@hookform/resolvers": "^5.2.2",
90
+ "@tanstack/react-query": "^5.101.4",
91
+ "next": "^16.0.0",
92
+ "react": "^19.2.8",
93
+ "react-hook-form": "^7.68.0",
94
+ "zod": "^3.25.76 || ^4.0.0"
97
95
  },
98
96
  "scripts": {
99
97
  "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/rewrite-esm-specifiers.mjs",
100
98
  "clean": "git clean -xdf .turbo node_modules dist",
101
- "format": "prettier --check \"**/*.{ts,tsx}\"",
102
- "lint": "eslint .",
103
99
  "typecheck": "tsc --noEmit",
104
100
  "test": "vitest run --config vitest.config.ts",
105
101
  "api-report": "node scripts/api-report.mjs",