@brightlayer-ui/react-native-template-blank-typescript 3.0.0-alpha.1 → 3.0.1-alpha.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/CHANGELOG.md ADDED
@@ -0,0 +1,61 @@
1
+ # Changelog
2
+
3
+ ## v3.0.0 (June 5, 2024)
4
+
5
+ ### Changed
6
+
7
+ - Update to build with React Native 0.73.
8
+ - Updated the templates to use React Native CLI
9
+
10
+ ## v2.1.0 (November 1, 2022)
11
+
12
+ ### Changed
13
+
14
+ - Update to build with React Native 0.70.
15
+
16
+ ## v2.0.0 (December 16, 2021)
17
+
18
+ ### Changed
19
+
20
+ - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
21
+
22
+ ## Package Migration Notice
23
+
24
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
25
+
26
+ ---
27
+
28
+ ## v2.0.0 (November 3, 2021)
29
+
30
+ ### Changed
31
+
32
+ - Updated to use latest APIs from `@pxblue/react-native-components`.
33
+
34
+ ## v1.3.1 (October 1, 2021)
35
+
36
+ ### Fixed
37
+
38
+ - Added dependency for `@pxblue/react-native-vector-icons`
39
+
40
+ ## v1.3.0 (September 30, 2021)
41
+
42
+ ### Changed
43
+ - Upgrade PX Blue packages
44
+
45
+ ## v1.2.0 (July 26, 2021)
46
+
47
+ ### Changed
48
+ - Updated version of react-native-modal dependency to 12.0.2
49
+
50
+ ## v1.1.0 (March 31, 2021)
51
+
52
+ ### Changed
53
+ - Updated dependencies to use latest packages.
54
+
55
+ ### Fixed
56
+ - Jest configuration allows default tests to pass.
57
+
58
+ ## v1.0.0 (March 1, 2021)
59
+
60
+ ### Added
61
+ - Initial blank template for TypeScript projects
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/react-native-template-blank-typescript",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.1-alpha.0",
4
4
  "author": "brightlayer-ui <brightlayer-ui@eaton.com>",
5
5
  "keywords": [
6
6
  "react native",
@@ -9,7 +9,7 @@
9
9
  "Brightlayer UI",
10
10
  "cli"
11
11
  ],
12
- "description": "The base template for React Native projects created with the Brightlayer UI CLI.",
12
+ "description": "The base template for React Native projects created with the React Native CLI.",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/etn-ccis/blui-react-native-cli-templates.git"
package/template/App.tsx CHANGED
@@ -73,12 +73,18 @@ const OpenURLButton = (props: any): JSX.Element => {
73
73
  const defaultStyles = styles(theme);
74
74
 
75
75
  const handlePress = useCallback(async () => {
76
- await Linking.openURL(url);
76
+ try {
77
+ await Linking.openURL(url);
78
+ } catch (error) {
79
+ console.error('Failed to open URL:', error);
80
+ }
77
81
  }, [url]);
78
82
 
79
83
  return (
80
84
  <Button
81
- onPress={(): Promise<void> => handlePress()}
85
+ onPress={() => {
86
+ handlePress().catch((error) => console.error('Failed to open URL:', error));
87
+ }}
82
88
  labelStyle={defaultStyles.openURLButtonText}
83
89
  uppercase={false}
84
90
  >
@@ -76,8 +76,10 @@ GEM
76
76
  netrc (0.11.0)
77
77
  nkf (0.2.0)
78
78
  public_suffix (4.0.7)
79
- rexml (3.2.6)
79
+ rexml (3.2.8)
80
+ strscan (>= 3.0.9)
80
81
  ruby-macho (2.5.1)
82
+ strscan (3.1.0)
81
83
  typhoeus (1.4.1)
82
84
  ethon (>= 0.9.0)
83
85
  tzinfo (2.0.6)
@@ -1,25 +1,25 @@
1
1
  {
2
- "migIndex": 1,
3
- "data": [
4
- {
5
- "path": "assets/fonts/OpenSans-Bold.ttf",
6
- "sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
7
- },
8
- {
9
- "path": "assets/fonts/OpenSans-ExtraBold.ttf",
10
- "sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
11
- },
12
- {
13
- "path": "assets/fonts/OpenSans-Light.ttf",
14
- "sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
15
- },
16
- {
17
- "path": "assets/fonts/OpenSans-Regular.ttf",
18
- "sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
19
- },
20
- {
21
- "path": "assets/fonts/OpenSans-SemiBold.ttf",
22
- "sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
23
- }
24
- ]
2
+ "migIndex": 1,
3
+ "data": [
4
+ {
5
+ "path": "assets/fonts/OpenSans-Bold.ttf",
6
+ "sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
7
+ },
8
+ {
9
+ "path": "assets/fonts/OpenSans-ExtraBold.ttf",
10
+ "sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
11
+ },
12
+ {
13
+ "path": "assets/fonts/OpenSans-Light.ttf",
14
+ "sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
15
+ },
16
+ {
17
+ "path": "assets/fonts/OpenSans-Regular.ttf",
18
+ "sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
19
+ },
20
+ {
21
+ "path": "assets/fonts/OpenSans-SemiBold.ttf",
22
+ "sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
23
+ }
24
+ ]
25
25
  }
@@ -1,25 +1,25 @@
1
1
  {
2
- "migIndex": 1,
3
- "data": [
4
- {
5
- "path": "assets/fonts/OpenSans-Bold.ttf",
6
- "sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
7
- },
8
- {
9
- "path": "assets/fonts/OpenSans-ExtraBold.ttf",
10
- "sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
11
- },
12
- {
13
- "path": "assets/fonts/OpenSans-Light.ttf",
14
- "sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
15
- },
16
- {
17
- "path": "assets/fonts/OpenSans-Regular.ttf",
18
- "sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
19
- },
20
- {
21
- "path": "assets/fonts/OpenSans-SemiBold.ttf",
22
- "sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
23
- }
24
- ]
2
+ "migIndex": 1,
3
+ "data": [
4
+ {
5
+ "path": "assets/fonts/OpenSans-Bold.ttf",
6
+ "sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
7
+ },
8
+ {
9
+ "path": "assets/fonts/OpenSans-ExtraBold.ttf",
10
+ "sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
11
+ },
12
+ {
13
+ "path": "assets/fonts/OpenSans-Light.ttf",
14
+ "sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
15
+ },
16
+ {
17
+ "path": "assets/fonts/OpenSans-Regular.ttf",
18
+ "sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
19
+ },
20
+ {
21
+ "path": "assets/fonts/OpenSans-SemiBold.ttf",
22
+ "sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
23
+ }
24
+ ]
25
25
  }
@@ -1,60 +1,16 @@
1
1
  {
2
2
  "compilerOptions": {
3
- /* Basic Options */
4
- "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
5
- "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
6
- "lib": ["es6"] /* Specify library files to be included in the compilation. */,
7
- "allowJs": true /* Allow javascript files to be compiled. */,
8
- // "checkJs": true, /* Report errors in .js files. */
9
- "jsx": "react-native" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
10
- // "declaration": true, /* Generates corresponding '.d.ts' file. */
11
- // "sourceMap": true, /* Generates corresponding '.map' file. */
12
- // "outFile": "./", /* Concatenate and emit output to single file. */
13
- // "outDir": "./", /* Redirect output structure to the directory. */
14
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
15
- // "removeComments": true, /* Do not emit comments to output. */
16
- "noEmit": true /* Do not emit outputs. */,
17
- // "incremental": true, /* Enable incremental compilation */
18
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
19
- // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
20
- "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
21
-
22
- /* Strict Type-Checking Options */
23
- "strict": true /* Enable all strict type-checking options. */,
24
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
25
- // "strictNullChecks": true, /* Enable strict null checks. */
26
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
27
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
28
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
29
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
30
-
31
- /* Additional Checks */
32
- // "noUnusedLocals": true, /* Report errors on unused locals. */
33
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
34
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
35
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
36
-
37
- /* Module Resolution Options */
38
- "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
39
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
40
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
41
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
42
- // "typeRoots": [], /* List of folders to include type definitions from. */
43
- // "types": [], /* Type declaration files to be included in compilation. */
44
- "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
45
- "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
46
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
47
- "skipLibCheck": true /* Skip type checking of declaration files. */
48
-
49
- /* Source Map Options */
50
- // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
51
- // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */
52
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
53
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
54
-
55
- /* Experimental Options */
56
- // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
57
- // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
3
+ "outDir": "dist",
4
+ "declaration": true,
5
+ "declarationDir": "dist",
6
+ "module": "ESNext",
7
+ "target": "ES5",
8
+ "lib": ["ESNext", "DOM"],
9
+ "jsx": "react",
10
+ "moduleResolution": "node",
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "strict": true
58
14
  },
59
15
  "exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
60
16
  }