@rork-ai/toolkit-sdk 0.1.0 → 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.
package/LICENSE CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Rork
4
-
3
+ Copyright (c) 2025 Levan Kvirkvelia
5
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
5
  of this software and associated documentation files (the "Software"), to deal
7
6
  in the Software without restriction, including without limitation the rights
@@ -19,4 +18,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
18
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
19
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
20
  SOFTWARE.
22
-
package/README.md CHANGED
@@ -1,85 +1,37 @@
1
- # @rork/toolkit-sdk
1
+ # @rork-ai/toolkit-sdk
2
2
 
3
- React Native toolkit SDK for building native experiences.
3
+ toolkit-sdk
4
4
 
5
5
  ## Installation
6
6
 
7
- ```bash
8
- # Using pnpm
9
- pnpm add @rork/toolkit-sdk
10
7
 
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
8
+ ```sh
9
+ npm install @rork-ai/toolkit-sdk
45
10
  ```
46
11
 
47
- ## Requirements
48
12
 
49
- - React >= 16.8.0
50
- - React Native >= 0.60.0
13
+ ## Usage
51
14
 
52
- ## Development
53
15
 
54
- ### Building
16
+ ```js
17
+ import { multiply } from '@rork-ai/toolkit-sdk';
55
18
 
56
- To build the package:
19
+ // ...
57
20
 
58
- ```bash
59
- pnpm run build
21
+ const result = await multiply(3, 7);
60
22
  ```
61
23
 
62
- ### Development Mode
63
-
64
- To run the build in watch mode:
65
-
66
- ```bash
67
- pnpm run dev
68
- ```
69
24
 
70
- ### Example App
25
+ ## Contributing
71
26
 
72
- An example React Native application is included in the `example/` directory to demonstrate the SDK usage.
27
+ - [Development workflow](CONTRIBUTING.md#development-workflow)
28
+ - [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
29
+ - [Code of conduct](CODE_OF_CONDUCT.md)
73
30
 
74
31
  ## License
75
32
 
76
33
  MIT
77
34
 
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.
35
+ ---
85
36
 
37
+ Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export function multiply(a, b) {
4
+ return a * b;
5
+ }
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["multiply","a","b"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAO,SAASA,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAU;EACrD,OAAOD,CAAC,GAAGC,CAAC;AACd","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ export function multiply(a, b) {
4
+ return a * b;
5
+ }
6
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["multiply","a","b"],"sourceRoot":"../../src","sources":["index.web.tsx"],"mappings":";;AAAA,OAAO,SAASA,QAAQA,CAACC,CAAS,EAAEC,CAAS,EAAU;EACrD,OAAOD,CAAC,GAAGC,CAAC;AACd","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,2 @@
1
+ export declare function multiply(a: number, b: number): number;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,2 @@
1
+ export declare function multiply(a: number, b: number): number;
2
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAErD"}
package/package.json CHANGED
@@ -1,52 +1,154 @@
1
1
  {
2
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",
3
+ "version": "0.2.0",
4
+ "description": "toolkit-sdk",
5
+ "main": "./lib/module/index.js",
6
+ "types": "./lib/typescript/src/index.d.ts",
8
7
  "exports": {
9
8
  ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
13
- }
9
+ "source": "./src/index.tsx",
10
+ "types": "./lib/typescript/src/index.d.ts",
11
+ "default": "./lib/module/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
14
  },
15
15
  "files": [
16
- "dist",
17
16
  "src",
18
- "README.md",
19
- "LICENSE"
17
+ "lib",
18
+ "android",
19
+ "ios",
20
+ "cpp",
21
+ "*.podspec",
22
+ "react-native.config.js",
23
+ "!ios/build",
24
+ "!android/build",
25
+ "!android/gradle",
26
+ "!android/gradlew",
27
+ "!android/gradlew.bat",
28
+ "!android/local.properties",
29
+ "!**/__tests__",
30
+ "!**/__fixtures__",
31
+ "!**/__mocks__",
32
+ "!**/.*"
20
33
  ],
21
34
  "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"
35
+ "example": "yarn workspace @rork-ai/toolkit-sdk-example",
36
+ "test": "jest",
37
+ "typecheck": "tsc",
38
+ "lint": "eslint \"**/*.{js,ts,tsx}\"",
39
+ "clean": "del-cli lib",
40
+ "prepare": "bob build",
41
+ "release": "release-it --only-version --no-git"
25
42
  },
26
43
  "keywords": [
27
44
  "react-native",
28
- "toolkit",
29
- "sdk",
30
- "react",
31
- "mobile"
45
+ "ios",
46
+ "android"
32
47
  ],
33
- "author": "Rork",
34
- "license": "MIT",
35
48
  "repository": {
36
49
  "type": "git",
37
- "url": "https://github.com/rorkai/toolkit-sdk"
50
+ "url": "git+https://github.com/LevanKvirkvelia/rork-ai-toolkit-sdk.git"
51
+ },
52
+ "author": "Levan Kvirkvelia <lekvirkvelia@gmail.com> (https://github.com/LevanKvirkvelia)",
53
+ "license": "MIT",
54
+ "bugs": {
55
+ "url": "https://github.com/LevanKvirkvelia/rork-ai-toolkit-sdk/issues"
38
56
  },
57
+ "homepage": "https://github.com/LevanKvirkvelia/rork-ai-toolkit-sdk#readme",
39
58
  "publishConfig": {
40
- "access": "public"
59
+ "registry": "https://registry.npmjs.org/"
60
+ },
61
+ "devDependencies": {
62
+ "@commitlint/config-conventional": "^19.8.1",
63
+ "@eslint/compat": "^1.3.2",
64
+ "@eslint/eslintrc": "^3.3.1",
65
+ "@eslint/js": "^9.35.0",
66
+ "@evilmartians/lefthook": "^1.12.3",
67
+ "@react-native/babel-preset": "0.81.1",
68
+ "@react-native/eslint-config": "^0.81.1",
69
+ "@release-it/conventional-changelog": "^10.0.1",
70
+ "@types/jest": "^29.5.14",
71
+ "@types/react": "^19.1.12",
72
+ "commitlint": "^19.8.1",
73
+ "del-cli": "^6.0.0",
74
+ "eslint": "^9.35.0",
75
+ "eslint-config-prettier": "^10.1.8",
76
+ "eslint-plugin-prettier": "^5.5.4",
77
+ "jest": "^29.7.0",
78
+ "prettier": "^3.6.2",
79
+ "react": "19.1.0",
80
+ "react-native": "0.81.5",
81
+ "react-native-builder-bob": "^0.40.13",
82
+ "release-it": "^19.0.4",
83
+ "typescript": "^5.9.2"
41
84
  },
42
85
  "peerDependencies": {
86
+ "react": "*",
43
87
  "react-native": "*"
44
88
  },
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"
89
+ "workspaces": [
90
+ "example"
91
+ ],
92
+ "packageManager": "yarn@3.6.1",
93
+ "jest": {
94
+ "preset": "react-native",
95
+ "modulePathIgnorePatterns": [
96
+ "<rootDir>/example/node_modules",
97
+ "<rootDir>/lib/"
98
+ ]
99
+ },
100
+ "commitlint": {
101
+ "extends": [
102
+ "@commitlint/config-conventional"
103
+ ]
104
+ },
105
+ "release-it": {
106
+ "git": {
107
+ "commitMessage": "chore: release ${version}",
108
+ "tagName": "v${version}"
109
+ },
110
+ "npm": {
111
+ "publish": true
112
+ },
113
+ "github": {
114
+ "release": false
115
+ },
116
+ "plugins": {
117
+ "@release-it/conventional-changelog": {
118
+ "preset": {
119
+ "name": "angular"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "prettier": {
125
+ "quoteProps": "consistent",
126
+ "singleQuote": true,
127
+ "tabWidth": 2,
128
+ "trailingComma": "es5",
129
+ "useTabs": false
130
+ },
131
+ "react-native-builder-bob": {
132
+ "source": "src",
133
+ "output": "lib",
134
+ "targets": [
135
+ [
136
+ "module",
137
+ {
138
+ "esm": true
139
+ }
140
+ ],
141
+ [
142
+ "typescript",
143
+ {
144
+ "project": "tsconfig.build.json"
145
+ }
146
+ ]
147
+ ]
148
+ },
149
+ "create-react-native-library": {
150
+ "languages": "js",
151
+ "type": "library",
152
+ "version": "0.54.8"
51
153
  }
52
154
  }
@@ -0,0 +1,3 @@
1
+ export function multiply(a: number, b: number): number {
2
+ return a * b;
3
+ }
package/dist/index.d.mts DELETED
@@ -1,3 +0,0 @@
1
- declare function multiply(a: number, b: number): number;
2
-
3
- export { multiply };
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare function multiply(a: number, b: number): number;
2
-
3
- export { multiply };
package/dist/index.js DELETED
@@ -1,32 +0,0 @@
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 DELETED
@@ -1,7 +0,0 @@
1
- // src/index.tsx
2
- function multiply(a, b) {
3
- return a * b;
4
- }
5
- export {
6
- multiply
7
- };