@knock-ai/sdk 0.1.2 → 0.1.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.
Files changed (39) hide show
  1. package/README.md +25 -4
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/knockai.iife.js +1 -1
  7. package/dist/knockai.iife.js.map +1 -1
  8. package/dist/react.cjs +1 -1
  9. package/dist/react.cjs.map +1 -1
  10. package/dist/react.js +1 -1
  11. package/dist/react.js.map +1 -1
  12. package/dist/snippet.js +1 -1
  13. package/dist/snippet.js.map +1 -1
  14. package/dist/testing.cjs +1 -1
  15. package/dist/testing.cjs.map +1 -1
  16. package/dist/testing.js +1 -1
  17. package/dist/testing.js.map +1 -1
  18. package/dist/types/core/bridge.d.cts +2 -2
  19. package/dist/types/core/bridge.d.ts +2 -2
  20. package/dist/types/core/bridge.d.ts.map +1 -1
  21. package/dist/types/core/index.d.ts.map +1 -1
  22. package/dist/types/core/queue.d.cts +2 -2
  23. package/dist/types/core/queue.d.ts +2 -2
  24. package/dist/types/core/queue.d.ts.map +1 -1
  25. package/dist/types/core/types.d.cts +17 -0
  26. package/dist/types/core/types.d.ts +17 -0
  27. package/dist/types/core/types.d.ts.map +1 -1
  28. package/dist/types/core/version.d.cts +1 -1
  29. package/dist/types/core/version.d.ts +1 -1
  30. package/dist/types/frameworks/react/KnockLink.d.cts +15 -0
  31. package/dist/types/frameworks/react/KnockLink.d.ts +16 -0
  32. package/dist/types/frameworks/react/KnockLink.d.ts.map +1 -0
  33. package/dist/types/frameworks/react/index.d.cts +2 -0
  34. package/dist/types/frameworks/react/index.d.ts +2 -0
  35. package/dist/types/frameworks/react/index.d.ts.map +1 -1
  36. package/dist/types/testing/index.d.cts +3 -0
  37. package/dist/types/testing/index.d.ts +3 -0
  38. package/dist/types/testing/index.d.ts.map +1 -1
  39. package/package.json +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knock-ai/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Knock AI SDK \u2014 identify people, send events and open the Knock widget from your website or your logged-in app. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://knock-ai.com",
@@ -159,6 +159,7 @@
159
159
  "@testing-library/dom": "^10.4.2",
160
160
  "@testing-library/react": "^16.0.0",
161
161
  "@types/react": "^19.0.0",
162
+ "@types/react-dom": "^19.3.0",
162
163
  "@vitest/coverage-v8": "^3.0.0",
163
164
  "jsdom": "^26.0.0",
164
165
  "react": "^19.0.0",
@@ -175,13 +176,13 @@
175
176
  {
176
177
  "name": "core (@knock-ai/sdk)",
177
178
  "path": "dist/index.js",
178
- "limit": "1.7 kB",
179
+ "limit": "1.74 kB",
179
180
  "gzip": true
180
181
  },
181
182
  {
182
183
  "name": "react",
183
184
  "path": "dist/react.js",
184
- "limit": "700 B",
185
+ "limit": "950 B",
185
186
  "gzip": true,
186
187
  "ignore": [
187
188
  "@knock-ai/sdk",
@@ -218,13 +219,13 @@
218
219
  {
219
220
  "name": "snippet (CDN stub)",
220
221
  "path": "dist/snippet.js",
221
- "limit": "608 B",
222
+ "limit": "620 B",
222
223
  "gzip": true
223
224
  },
224
225
  {
225
226
  "name": "knockai.iife (CDN)",
226
227
  "path": "dist/knockai.iife.js",
227
- "limit": "1.9 kB",
228
+ "limit": "1.92 kB",
228
229
  "gzip": true
229
230
  }
230
231
  ]