@ni/spright-react 0.1.3 → 0.2.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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChatInput } from '@ni/spright-components/dist/esm/chat/input';
|
|
2
|
+
import type { ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';
|
|
3
|
+
export { type ChatInput };
|
|
4
|
+
export declare const SprightChatInput: import("@ni/fast-react-wrapper").ReactWrapper<ChatInput, {
|
|
5
|
+
onSend: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
export interface ChatInputSendEvent extends CustomEvent<ChatInputSendEventDetail> {
|
|
8
|
+
target: ChatInput;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChatInput } from '@ni/spright-components/dist/esm/chat/input';
|
|
2
|
+
import { wrap } from '../../utilities/react-wrapper';
|
|
3
|
+
export {};
|
|
4
|
+
export const SprightChatInput = wrap(ChatInput, {
|
|
5
|
+
events: {
|
|
6
|
+
onSend: 'send',
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/chat/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAkB,CAAC;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE;IAC5C,MAAM,EAAE;QACJ,MAAM,EAAE,MAAM;KACjB;CACJ,CAAC,CAAC","sourcesContent":["import { ChatInput } from '@ni/spright-components/dist/esm/chat/input';\nimport type { ChatInputSendEventDetail } from '@ni/spright-components/dist/esm/chat/input/types';\nimport { wrap } from '../../utilities/react-wrapper';\n\nexport { type ChatInput };\nexport const SprightChatInput = wrap(ChatInput, {\n events: {\n onSend: 'send',\n }\n});\nexport interface ChatInputSendEvent extends CustomEvent<ChatInputSendEventDetail> {\n target: ChatInput;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/spright-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React components for NI Spright",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spright",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@ni/fast-react-wrapper": "^10.1.0",
|
|
32
|
-
"@ni/spright-components": "^5.
|
|
32
|
+
"@ni/spright-components": "^5.5.0",
|
|
33
33
|
"react": "^16 || ^17 || ^18"
|
|
34
34
|
}
|
|
35
35
|
}
|