@knocklabs/react 0.11.22 → 0.12.0-rc.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 (70) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +17 -0
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/modules/core/cx/index.js +2 -0
  5. package/dist/cjs/modules/core/cx/index.js.map +1 -0
  6. package/dist/cjs/modules/core/debounce/index.js +2 -0
  7. package/dist/cjs/modules/core/debounce/index.js.map +1 -0
  8. package/dist/cjs/modules/core/hooks/useOnBottomScroll.js +1 -1
  9. package/dist/cjs/modules/core/hooks/useOnBottomScroll.js.map +1 -1
  10. package/dist/cjs/modules/feed/components/NotificationCell/NotificationCell.js +1 -1
  11. package/dist/cjs/modules/feed/components/NotificationCell/NotificationCell.js.map +1 -1
  12. package/dist/cjs/modules/feed/components/NotificationFeed/NotificationFeed.js +1 -1
  13. package/dist/cjs/modules/feed/components/NotificationFeed/NotificationFeed.js.map +1 -1
  14. package/dist/cjs/modules/guide/components/Banner/Banner.js +1 -1
  15. package/dist/cjs/modules/guide/components/Banner/Banner.js.map +1 -1
  16. package/dist/cjs/modules/guide/components/Card/Card.js +1 -1
  17. package/dist/cjs/modules/guide/components/Card/Card.js.map +1 -1
  18. package/dist/cjs/modules/guide/components/Modal/Modal.js +1 -1
  19. package/dist/cjs/modules/guide/components/Modal/Modal.js.map +1 -1
  20. package/dist/cjs/modules/slack/components/SlackAddChannelInput/SlackAddChannelInput.js +1 -1
  21. package/dist/cjs/modules/slack/components/SlackAddChannelInput/SlackAddChannelInput.js.map +1 -1
  22. package/dist/esm/index.mjs +43 -42
  23. package/dist/esm/modules/core/cx/index.mjs +5 -0
  24. package/dist/esm/modules/core/cx/index.mjs.map +1 -0
  25. package/dist/esm/modules/core/debounce/index.mjs +15 -0
  26. package/dist/esm/modules/core/debounce/index.mjs.map +1 -0
  27. package/dist/esm/modules/core/hooks/useOnBottomScroll.mjs +4 -4
  28. package/dist/esm/modules/core/hooks/useOnBottomScroll.mjs.map +1 -1
  29. package/dist/esm/modules/feed/components/NotificationCell/NotificationCell.mjs +2 -3
  30. package/dist/esm/modules/feed/components/NotificationCell/NotificationCell.mjs.map +1 -1
  31. package/dist/esm/modules/feed/components/NotificationFeed/NotificationFeed.mjs +40 -39
  32. package/dist/esm/modules/feed/components/NotificationFeed/NotificationFeed.mjs.map +1 -1
  33. package/dist/esm/modules/guide/components/Banner/Banner.mjs +1 -1
  34. package/dist/esm/modules/guide/components/Banner/Banner.mjs.map +1 -1
  35. package/dist/esm/modules/guide/components/Card/Card.mjs +17 -17
  36. package/dist/esm/modules/guide/components/Card/Card.mjs.map +1 -1
  37. package/dist/esm/modules/guide/components/Modal/Modal.mjs +1 -1
  38. package/dist/esm/modules/guide/components/Modal/Modal.mjs.map +1 -1
  39. package/dist/esm/modules/slack/components/SlackAddChannelInput/SlackAddChannelInput.mjs +7 -8
  40. package/dist/esm/modules/slack/components/SlackAddChannelInput/SlackAddChannelInput.mjs.map +1 -1
  41. package/dist/types/index.d.ts +1 -1
  42. package/dist/types/index.d.ts.map +1 -1
  43. package/dist/types/modules/core/cx/index.d.ts +9 -0
  44. package/dist/types/modules/core/cx/index.d.ts.map +1 -0
  45. package/dist/types/modules/core/debounce/index.d.ts +12 -0
  46. package/dist/types/modules/core/debounce/index.d.ts.map +1 -0
  47. package/dist/types/modules/core/hooks/useOnBottomScroll.d.ts.map +1 -1
  48. package/dist/types/modules/guide/components/Banner/Banner.d.ts.map +1 -1
  49. package/dist/types/modules/guide/components/Card/Card.d.ts.map +1 -1
  50. package/dist/types/modules/guide/components/Modal/Modal.d.ts +3 -3
  51. package/dist/types/modules/guide/components/Modal/Modal.d.ts.map +1 -1
  52. package/dist/types/modules/guide/components/Toolbar/KnockButton.d.ts +1 -1
  53. package/dist/types/modules/guide/components/Toolbar/KnockButton.d.ts.map +1 -1
  54. package/dist/types/modules/guide/components/Toolbar/V2/FocusChin.d.ts +1 -1
  55. package/dist/types/modules/guide/components/Toolbar/V2/FocusChin.d.ts.map +1 -1
  56. package/dist/types/modules/guide/components/Toolbar/V2/GuideAnnotatedStatusDot.d.ts +1 -1
  57. package/dist/types/modules/guide/components/Toolbar/V2/GuideAnnotatedStatusDot.d.ts.map +1 -1
  58. package/dist/types/modules/guide/components/Toolbar/V2/GuideContextDetails.d.ts +1 -1
  59. package/dist/types/modules/guide/components/Toolbar/V2/GuideContextDetails.d.ts.map +1 -1
  60. package/dist/types/modules/guide/components/Toolbar/V2/GuideHoverCard.d.ts +1 -1
  61. package/dist/types/modules/guide/components/Toolbar/V2/GuideHoverCard.d.ts.map +1 -1
  62. package/dist/types/modules/guide/components/Toolbar/V2/GuideRow.d.ts +2 -1
  63. package/dist/types/modules/guide/components/Toolbar/V2/GuideRow.d.ts.map +1 -1
  64. package/dist/types/modules/guide/components/Toolbar/V2/GuideRowDetails.d.ts +1 -1
  65. package/dist/types/modules/guide/components/Toolbar/V2/GuideRowDetails.d.ts.map +1 -1
  66. package/dist/types/modules/guide/components/Toolbar/V2/Kbd.d.ts +1 -1
  67. package/dist/types/modules/guide/components/Toolbar/V2/Kbd.d.ts.map +1 -1
  68. package/dist/types/modules/guide/components/Toolbar/V2/V2.d.ts +2 -1
  69. package/dist/types/modules/guide/components/Toolbar/V2/V2.d.ts.map +1 -1
  70. package/package.json +10 -12
@@ -1 +1 @@
1
- {"version":3,"file":"GuideContextDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,+CAkK/B,CAAC"}
1
+ {"version":3,"file":"GuideContextDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideContextDetails.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,mCAkK/B,CAAC"}
@@ -3,6 +3,6 @@ import * as React from "react";
3
3
  type Props = {
4
4
  guide: AnnotatedGuide | UncommittedGuide;
5
5
  };
6
- export declare const GuideHoverCard: ({ children, guide, }: React.PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const GuideHoverCard: ({ children, guide, }: React.PropsWithChildren<Props>) => React.JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=GuideHoverCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuideHoverCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideHoverCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,GAAG,gBAAgB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,sBAG5B,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,4CAmEhC,CAAC"}
1
+ {"version":3,"file":"GuideHoverCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideHoverCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,cAAc,GAAG,gBAAgB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,sBAG5B,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,sBAmEhC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { AnnotatedGuide, UncommittedGuide } from './useInspectGuideClientStore';
2
+ import * as React from "react";
2
3
  export declare const GUIDE_ROW_DATA_SELECTOR = "data-kgt-guide-row-key";
3
4
  type Props = {
4
5
  guide: UncommittedGuide | AnnotatedGuide;
@@ -6,6 +7,6 @@ type Props = {
6
7
  isExpanded: boolean;
7
8
  onClick: (guideKey: string) => void;
8
9
  };
9
- export declare const GuideRow: ({ guide, orderIndex, isExpanded, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const GuideRow: ({ guide, orderIndex, isExpanded, onClick }: Props) => React.JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=GuideRow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuideRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideRow.tsx"],"names":[],"mappings":"AAoBA,OAAO,EACL,cAAc,EAEd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAEtC,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAiJhE,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,GAAG,cAAc,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,4CAA4C,KAAK,4CAoLzE,CAAC"}
1
+ {"version":3,"file":"GuideRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideRow.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EACL,cAAc,EAEd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAEtC,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAiJhE,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,GAAG,cAAc,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,4CAA4C,KAAK,sBAoLzE,CAAC"}
@@ -8,5 +8,5 @@ export type StatusSummary = {
8
8
  export declare const getSelectableStatusSummary: (status: "returned" | "throttled" | "queried" | undefined) => StatusSummary;
9
9
  export declare const GuideRowDetails: ({ guide, }: {
10
10
  guide: AnnotatedGuide | UncommittedGuide;
11
- }) => import("react/jsx-runtime").JSX.Element;
11
+ }) => import("react").JSX.Element;
12
12
  //# sourceMappingURL=GuideRowDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GuideRowDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideRowDetails.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAiEtC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,QAAQ,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,KACvD,aA4BF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAE7B;IACD,KAAK,EAAE,cAAc,GAAG,gBAAgB,CAAC;CAC1C,4CA6FA,CAAC"}
1
+ {"version":3,"file":"GuideRowDetails.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/GuideRowDetails.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,cAAc,EACd,gBAAgB,EAEjB,MAAM,8BAA8B,CAAC;AAiEtC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,QAAQ,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,KACvD,aA4BF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAE7B;IACD,KAAK,EAAE,cAAc,GAAG,gBAAgB,CAAC;CAC1C,gCA6FA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  export declare const Kbd: ({ children }: {
3
3
  children: React.ReactNode;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => React.JSX.Element;
5
5
  //# sourceMappingURL=Kbd.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/Kbd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,GAAG,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4CAc9D,CAAC"}
1
+ {"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/Kbd.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,GAAG,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,sBAc9D,CAAC"}
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  type Props = {
2
3
  readyToTarget: boolean;
3
4
  listenForUpdates: boolean;
4
5
  };
5
- export declare const V2: ({ readyToTarget, listenForUpdates }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
+ export declare const V2: ({ readyToTarget, listenForUpdates }: Props) => React.JSX.Element | null;
6
7
  export {};
7
8
  //# sourceMappingURL=V2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"V2.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/V2.tsx"],"names":[],"mappings":"AAoBA,OAAO,eAAe,CAAC;AAoDvB,KAAK,KAAK,GAAG;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,qCAAqC,KAAK,mDAqV5D,CAAC"}
1
+ {"version":3,"file":"V2.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/guide/components/Toolbar/V2/V2.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,eAAe,CAAC;AAoDvB,KAAK,KAAK,GAAG;IACX,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,qCAAqC,KAAK,6BAqV5D,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@knocklabs/react",
3
3
  "description": "A set of React components to build notification experiences powered by Knock",
4
4
  "author": "@knocklabs",
5
- "version": "0.11.22",
5
+ "version": "0.12.0-rc.0",
6
6
  "license": "MIT",
7
7
  "main": "dist/cjs/index.js",
8
8
  "module": "dist/esm/index.mjs",
@@ -10,6 +10,7 @@
10
10
  "typings": "dist/types/index.d.ts",
11
11
  "style": "dist/index.css",
12
12
  "exports": {
13
+ "./package.json": "./package.json",
13
14
  "./dist/index.css": "./dist/index.css",
14
15
  ".": {
15
16
  "require": "./dist/cjs/index.js",
@@ -72,8 +73,8 @@
72
73
  }
73
74
  },
74
75
  "dependencies": {
75
- "@knocklabs/client": "^0.21.13",
76
- "@knocklabs/react-core": "^0.13.14",
76
+ "@knocklabs/client": "^0.22.0-rc.0",
77
+ "@knocklabs/react-core": "^0.14.0-rc.0",
77
78
  "@popperjs/core": "^2.11.8",
78
79
  "@radix-ui/react-dialog": "^1.1.15",
79
80
  "@radix-ui/react-hover-card": "^1.1.15",
@@ -88,8 +89,6 @@
88
89
  "@telegraph/tokens": ">=0.2.0",
89
90
  "@telegraph/tooltip": ">=0.2.2",
90
91
  "@telegraph/typography": ">=0.4.0",
91
- "clsx": "^2.1.1",
92
- "lodash.debounce": "^4.0.8",
93
92
  "lucide-react": "^0.544.0"
94
93
  },
95
94
  "devDependencies": {
@@ -99,11 +98,10 @@
99
98
  "@testing-library/dom": "^10.4.1",
100
99
  "@testing-library/react": "^16.3.2",
101
100
  "@types/eslint-plugin-jsx-a11y": "^6",
102
- "@types/lodash.debounce": "^4.0.9",
103
- "@types/react": "^19.2.14",
104
- "@types/react-dom": "^19.1.6",
105
- "@typescript-eslint/eslint-plugin": "^8.32.0",
106
- "@typescript-eslint/parser": "^8.58.0",
101
+ "@types/react": "^19.2.17",
102
+ "@types/react-dom": "^19.2.3",
103
+ "@typescript-eslint/eslint-plugin": "^8.59.4",
104
+ "@typescript-eslint/parser": "^8.59.4",
107
105
  "@vitejs/plugin-react": "^4.5.1",
108
106
  "babel-plugin-react-require": "^4.0.3",
109
107
  "eslint": "^8.56.0",
@@ -112,8 +110,8 @@
112
110
  "eslint-plugin-react-refresh": "^0.5.2",
113
111
  "jsdom": "^29.1.0",
114
112
  "next": "15.3.6",
115
- "react": "^19.2.5",
116
- "react-dom": "^19.2.5",
113
+ "react": "^19.2.7",
114
+ "react-dom": "^19.2.7",
117
115
  "rimraf": "^6.0.1",
118
116
  "rollup-plugin-execute": "^1.1.1",
119
117
  "rollup-preserve-directives": "^1.1.3",