@rork-ai/toolkit-sdk 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Rork
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # @rork/toolkit-sdk
2
+
3
+ React Native toolkit SDK for building native experiences.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Using pnpm
9
+ pnpm add @rork/toolkit-sdk
10
+
11
+ # Using npm
12
+ npm install @rork/toolkit-sdk
13
+
14
+ # Using yarn
15
+ yarn add @rork/toolkit-sdk
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```tsx
21
+ import { multiply } from '@rork/toolkit-sdk';
22
+
23
+ // Example usage
24
+ const result = multiply(5, 3);
25
+ console.log(result); // Output: 15
26
+ ```
27
+
28
+ ## API Reference
29
+
30
+ ### `multiply(a: number, b: number): number`
31
+
32
+ Multiplies two numbers and returns the result.
33
+
34
+ **Parameters:**
35
+ - `a` (number): The first number
36
+ - `b` (number): The second number
37
+
38
+ **Returns:**
39
+ - (number): The product of a and b
40
+
41
+ **Example:**
42
+ ```tsx
43
+ const result = multiply(10, 20);
44
+ // result: 200
45
+ ```
46
+
47
+ ## Requirements
48
+
49
+ - React >= 16.8.0
50
+ - React Native >= 0.60.0
51
+
52
+ ## Development
53
+
54
+ ### Building
55
+
56
+ To build the package:
57
+
58
+ ```bash
59
+ pnpm run build
60
+ ```
61
+
62
+ ### Development Mode
63
+
64
+ To run the build in watch mode:
65
+
66
+ ```bash
67
+ pnpm run dev
68
+ ```
69
+
70
+ ### Example App
71
+
72
+ An example React Native application is included in the `example/` directory to demonstrate the SDK usage.
73
+
74
+ ## License
75
+
76
+ MIT
77
+
78
+ ## Contributing
79
+
80
+ Contributions are welcome! Please feel free to submit a Pull Request.
81
+
82
+ ## Support
83
+
84
+ For issues and questions, please open an issue on the GitHub repository.
85
+
@@ -0,0 +1,3 @@
1
+ declare function multiply(a: number, b: number): number;
2
+
3
+ export { multiply };
@@ -0,0 +1,3 @@
1
+ declare function multiply(a: number, b: number): number;
2
+
3
+ export { multiply };
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.tsx
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ multiply: () => multiply
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ function multiply(a, b) {
27
+ return a * b;
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ multiply
32
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // src/index.tsx
2
+ function multiply(a, b) {
3
+ return a * b;
4
+ }
5
+ export {
6
+ multiply
7
+ };
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@rork-ai/toolkit-sdk",
3
+ "version": "0.1.0",
4
+ "description": "React Native toolkit SDK for building native experiences",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup src/index.tsx --format cjs,esm --dts --clean",
23
+ "prepublishOnly": "pnpm run build",
24
+ "dev": "tsup src/index.tsx --format cjs,esm --dts --watch"
25
+ },
26
+ "keywords": [
27
+ "react-native",
28
+ "toolkit",
29
+ "sdk",
30
+ "react",
31
+ "mobile"
32
+ ],
33
+ "author": "Rork",
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/rorkai/toolkit-sdk"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "peerDependencies": {
43
+ "react-native": "*"
44
+ },
45
+ "devDependencies": {
46
+ "@types/react": "^18.2.0",
47
+ "react": "^18.2.0",
48
+ "react-native": "^0.72.0",
49
+ "tsup": "^8.0.0",
50
+ "typescript": "^5.0.0"
51
+ }
52
+ }
package/src/index.tsx ADDED
@@ -0,0 +1,3 @@
1
+ export function multiply(a: number, b: number): number {
2
+ return a * b;
3
+ }