@metamask-previews/design-system-react-native 0.0.0-preview.909f2e9 → 0.0.0-preview.f4da8f1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-react-native",
3
- "version": "0.0.0-preview.909f2e9",
3
+ "version": "0.0.0-preview.f4da8f1",
4
4
  "description": "Design System React Native",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -19,24 +19,19 @@
19
19
  "exports": {
20
20
  ".": {
21
21
  "import": {
22
- "types": "./dist/index.d.mts",
23
- "default": "./dist/index.mjs"
24
- },
25
- "require": {
26
- "types": "./dist/index.d.cts",
27
- "default": "./dist/index.cjs"
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.js"
28
24
  }
29
25
  },
30
26
  "./package.json": "./package.json"
31
27
  },
32
- "main": "./dist/index.cjs",
33
- "types": "./dist/index.d.cts",
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
34
30
  "files": [
35
31
  "dist/"
36
32
  ],
37
33
  "scripts": {
38
- "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
39
- "build:docs": "typedoc",
34
+ "build": "rm -rf tsconfig.build.tsbuildinfo dist && tsc --project tsconfig.build.json",
40
35
  "changelog:update": "../../scripts/update-changelog.sh @metamask/design-system-react-native",
41
36
  "changelog:validate": "../../scripts/validate-changelog.sh @metamask/design-system-react-native",
42
37
  "publish:preview": "yarn npm publish --tag preview",
@@ -46,14 +41,29 @@
46
41
  "test:verbose": "NODE_OPTIONS=--experimental-vm-modules jest --verbose",
47
42
  "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
48
43
  },
44
+ "dependencies": {
45
+ "@metamask-previews/design-system-twrnc-preset": "0.0.0-preview.f4da8f1",
46
+ "@types/react": "^18.2.0",
47
+ "react": "^18.2.0",
48
+ "react-native": "^0.72.15"
49
+ },
49
50
  "devDependencies": {
51
+ "@babel/core": "^7.23.5",
52
+ "@babel/preset-env": "^7.26.0",
53
+ "@babel/preset-react": "^7.25.9",
54
+ "@babel/preset-typescript": "^7.23.3",
50
55
  "@metamask/auto-changelog": "^3.4.4",
56
+ "@storybook/react-native": "6.5",
57
+ "@testing-library/react-native": "^12.8.1",
58
+ "@types/babel__preset-env": "^7",
51
59
  "@types/jest": "^27.4.1",
60
+ "@types/react-test-renderer": "^18",
61
+ "babel-jest": "^29.7.0",
52
62
  "deepmerge": "^4.2.2",
53
- "jest": "^27.5.1",
54
- "ts-jest": "^27.1.4",
55
- "typedoc": "^0.24.8",
56
- "typedoc-plugin-missing-exports": "^2.0.0",
63
+ "jest": "^29.7.0",
64
+ "metro-react-native-babel-preset": "^0.77.0",
65
+ "react-test-renderer": "^18.3.1",
66
+ "ts-jest": "^29.2.5",
57
67
  "typescript": "~5.2.2"
58
68
  },
59
69
  "engines": {
package/dist/index.cjs DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * Example function that returns a greeting for the given name.
5
- *
6
- * @param name - The name to greet.
7
- * @returns The greeting.
8
- */
9
- function greeter(name) {
10
- return `Hello, ${name}!`;
11
- }
12
- exports.default = greeter;
13
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,SAAwB,OAAO,CAAC,IAAY;IAC1C,OAAO,UAAU,IAAI,GAAG,CAAC;AAC3B,CAAC;AAFD,0BAEC","sourcesContent":["/**\n * Example function that returns a greeting for the given name.\n *\n * @param name - The name to greet.\n * @returns The greeting.\n */\nexport default function greeter(name: string): string {\n return `Hello, ${name}!`;\n}\n"]}
package/dist/index.d.cts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name: string): string;
8
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
package/dist/index.d.mts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name: string): string;
8
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
package/dist/index.mjs DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name) {
8
- return `Hello, ${name}!`;
9
- }
10
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAY;IAC1C,OAAO,UAAU,IAAI,GAAG,CAAC;AAC3B,CAAC","sourcesContent":["/**\n * Example function that returns a greeting for the given name.\n *\n * @param name - The name to greet.\n * @returns The greeting.\n */\nexport default function greeter(name: string): string {\n return `Hello, ${name}!`;\n}\n"]}