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 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
@@ -0,0 +1,3 @@
1
+
2
+ declare function App(): import("react/jsx-runtime").JSX.Element;
3
+ export default App;
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