jsxc-react-hook 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/dist/App.d.ts +3 -0
- package/dist/Jsxc.d.ts +16 -0
- package/dist/Sel.d.ts +1 -0
- package/dist/demo.png +0 -0
- package/dist/jsxc-react-hook.js +695 -0
- package/dist/jsxc-react-hook.umd.cjs +30 -0
- package/dist/jsxc.bundle.js +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +10 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/public/jsxc.bundle.js +1 -1
- package/src/Jsxc.tsx +32 -2
- package/src/Sel.tsx +2 -2
- package/src/lib/styles/jsxc.bundle.css +3 -3
package/README.md
CHANGED
@@ -20,8 +20,17 @@
|
|
20
20
|
marginRight?: string; (defalut is 40px)
|
21
21
|
fullscreen?: boolean; (defalut is false)
|
22
22
|
jqueryUrl?: string;
|
23
|
+
showMenu: "yes"|"no" (use boolean has bug in create-react-app)
|
23
24
|
|
24
25
|
```
|
26
|
+
## api
|
27
|
+
### origin api
|
28
|
+
can use jsxc native api in (windows as any).XX
|
29
|
+
### new api
|
30
|
+
expose JID class.
|
31
|
+
add new ap method
|
32
|
+
``` directOpenChatWindow(string jid) ```
|
33
|
+
it can open a chat window even the contact is not in roster list.
|
25
34
|
|
26
35
|
## script
|
27
36
|
- npm run dev: it will run a demo.
|
package/dist/App.d.ts
ADDED
package/dist/Jsxc.d.ts
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
export interface JsxcProp {
|
3
|
+
boshUrl: string;
|
4
|
+
id: string;
|
5
|
+
pw: string;
|
6
|
+
contactId?: string;
|
7
|
+
marginTop?: string;
|
8
|
+
marginLeft?: string;
|
9
|
+
marginBottom?: string;
|
10
|
+
marginRight?: string;
|
11
|
+
fullscreen?: boolean;
|
12
|
+
jqueryUrl?: string;
|
13
|
+
showMenu: "yes" | "no";
|
14
|
+
}
|
15
|
+
export declare function directOpenChatWindow(jid: string): Promise<void>;
|
16
|
+
export declare function Jsxc(prop: JsxcProp): import("react/jsx-runtime").JSX.Element;
|
package/dist/Sel.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export default function Sel(): import("react/jsx-runtime").JSX.Element;
|
package/dist/demo.png
ADDED
Binary file
|