@trycourier/courier-react 8.0.0-beta
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.
- package/dist/components/courier-inbox-menu.d.ts +26 -0
- package/dist/components/courier-inbox.d.ts +20 -0
- package/dist/hooks/use-courier.d.ts +32 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +25713 -0
- package/dist/index.umd.js +271 -0
- package/dist/utils/utils.d.ts +8 -0
- package/package.json +41 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Converts a React node to an HTMLElement.
|
|
4
|
+
* This function uses flushSync to ensure the DOM is updated synchronously.
|
|
5
|
+
* @param node - The React node to convert.
|
|
6
|
+
* @returns The converted HTMLElement.
|
|
7
|
+
*/
|
|
8
|
+
export declare function reactNodeToHTMLElement(node: ReactNode): HTMLElement;
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trycourier/courier-react",
|
|
3
|
+
"version": "8.0.0-beta",
|
|
4
|
+
"description": "The React components for the Courier web UI",
|
|
5
|
+
"main": "dist/index.umd.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "vite",
|
|
10
|
+
"build": "tsc && vite build",
|
|
11
|
+
"watch": "vite build --watch",
|
|
12
|
+
"preview": "vite preview",
|
|
13
|
+
"prepare": "npm run build",
|
|
14
|
+
"test": "echo \"courier-react has no tests\""
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"courier",
|
|
18
|
+
"ui",
|
|
19
|
+
"react",
|
|
20
|
+
"typescript",
|
|
21
|
+
"browser"
|
|
22
|
+
],
|
|
23
|
+
"author": "Courier",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@trycourier/courier-ui-inbox": "1.0.1-beta",
|
|
30
|
+
"react": "19.1.0",
|
|
31
|
+
"react-dom": "19.1.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@trycourier/courier-ui-inbox": "file:../@trycourier/courier-ui-inbox",
|
|
35
|
+
"@types/react": "19.1.0",
|
|
36
|
+
"@types/react-dom": "19.1.0",
|
|
37
|
+
"@vitejs/plugin-react": "4.4.1",
|
|
38
|
+
"react": "19.1.0",
|
|
39
|
+
"react-dom": "19.1.0"
|
|
40
|
+
}
|
|
41
|
+
}
|