@ni/spright-react 0.0.2

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ <div align="center">
2
+ <p><b>ni | spright | react</b></p>
3
+ </div>
4
+
5
+ # Spright React
6
+
7
+ Work in progress alpha package
@@ -0,0 +1,2 @@
1
+ import { ChatConversation } from '@ni/spright-components/dist/esm/chat/conversation';
2
+ export declare const SprightChatConversation: import("@ni/fast-react-wrapper").ReactWrapper<ChatConversation, unknown>;
@@ -0,0 +1,4 @@
1
+ import { ChatConversation } from '@ni/spright-components/dist/esm/chat/conversation';
2
+ import { wrap } from '../../utilities/react-wrapper';
3
+ export const SprightChatConversation = wrap(ChatConversation);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/chat/conversation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import { ChatConversation } from '@ni/spright-components/dist/esm/chat/conversation';\nimport { wrap } from '../../utilities/react-wrapper';\n\nexport const SprightChatConversation = wrap(ChatConversation);\n"]}
@@ -0,0 +1,2 @@
1
+ import { ChatMessage } from '@ni/spright-components/dist/esm/chat/message';
2
+ export declare const SprightChatMessage: import("@ni/fast-react-wrapper").ReactWrapper<ChatMessage, unknown>;
@@ -0,0 +1,4 @@
1
+ import { ChatMessage } from '@ni/spright-components/dist/esm/chat/message';
2
+ import { wrap } from '../../utilities/react-wrapper';
3
+ export const SprightChatMessage = wrap(ChatMessage);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/chat/message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import { ChatMessage } from '@ni/spright-components/dist/esm/chat/message';\nimport { wrap } from '../../utilities/react-wrapper';\n\nexport const SprightChatMessage = wrap(ChatMessage);\n"]}
@@ -0,0 +1,2 @@
1
+ import { Rectangle } from '@ni/spright-components/dist/esm/rectangle';
2
+ export declare const SprightRectangle: import("@ni/fast-react-wrapper").ReactWrapper<Rectangle, unknown>;
@@ -0,0 +1,4 @@
1
+ import { Rectangle } from '@ni/spright-components/dist/esm/rectangle';
2
+ import { wrap } from '../utilities/react-wrapper';
3
+ export const SprightRectangle = wrap(Rectangle);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rectangle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Rectangle } from '@ni/spright-components/dist/esm/rectangle';\nimport { wrap } from '../utilities/react-wrapper';\n\nexport const SprightRectangle = wrap(Rectangle);\n"]}
@@ -0,0 +1,4 @@
1
+ export declare const wrap: {
2
+ <TRegistry extends import("@ni/fast-foundation").FoundationElementRegistry<import("@ni/fast-foundation").FoundationElementDefinition, any>, TEvents>(registry: TRegistry, config?: import("@ni/fast-react-wrapper").ReactWrapperConfig<TEvents> | undefined): import("@ni/fast-react-wrapper").ReactWrapper<import("@ni/fast-react-wrapper").FoundationElementRegistryElement<TRegistry>, TEvents>;
3
+ <TElement extends HTMLElement, TEvents_1>(type: import("@ni/fast-element").Constructable<TElement>, config?: import("@ni/fast-react-wrapper").ReactWrapperConfig<TEvents_1> | undefined): import("@ni/fast-react-wrapper").ReactWrapper<TElement, TEvents_1>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { provideReactWrapper } from '@ni/fast-react-wrapper';
3
+ export const { wrap } = provideReactWrapper(React);
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utilities/react-wrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { provideReactWrapper } from '@ni/fast-react-wrapper';\n\nexport const { wrap } = provideReactWrapper(React);\n"]}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@ni/spright-react",
3
+ "version": "0.0.2",
4
+ "description": "React components for NI Spright",
5
+ "keywords": [
6
+ "spright",
7
+ "react"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc -p ./tsconfig.json",
11
+ "lint": "eslint .",
12
+ "format": "eslint . --fix",
13
+ "pack": "npm pack",
14
+ "invoke-publish": "npm publish"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/ni/nimble.git",
19
+ "directory": "packages/react-workspace/spright-react"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "author": "National Instruments",
25
+ "license": "MIT",
26
+ "devDependencies": {
27
+ "@ni-private/eslint-config-nimble": "*",
28
+ "typescript": "~5.4.5"
29
+ },
30
+ "peerDependencies": {
31
+ "@ni/fast-react-wrapper": "^10.1.0",
32
+ "@ni/spright-components": "^5.3.1",
33
+ "react": "^16 || ^17 || ^18"
34
+ }
35
+ }