@teamvortexsoftware/vortex-react-native 0.0.9 → 0.0.10

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.
@@ -23,7 +23,7 @@ export declare function useVortexInvite({ widgetId, environmentId, vortexApiHost
23
23
  themeColors: import("../utils/themeUtils").ThemeColors;
24
24
  themeStyles: Record<string, Record<string, string | number>>;
25
25
  has: import("../utils/themeUtils").FeatureFlags;
26
- options: import("@teamvortexsoftware/vortex-core").WidgetConfigurationConfigurationProps;
26
+ options: {};
27
27
  inviteLoading: boolean;
28
28
  showSuccessMessage: boolean;
29
29
  handleInviteClick: (contentTokens?: Attributes) => Promise<void>;
package/package.json CHANGED
@@ -2,15 +2,11 @@
2
2
  "name": "@teamvortexsoftware/vortex-react-native",
3
3
  "description": "",
4
4
  "author": "@teamvortexsoftware",
5
- "version": "0.0.9",
5
+ "version": "0.0.10",
6
6
  "files": [
7
- "dist",
8
- "plugin",
9
- "plugin.js"
7
+ "dist"
10
8
  ],
11
- "main": "./plugin/withVortexReactNative.js",
12
9
  "exports": {
13
- ".": "./plugin.js",
14
10
  "./runtime": "./dist/index.js"
15
11
  },
16
12
  "expo": {
@@ -1,74 +0,0 @@
1
- const { withInfoPlist, withProjectBuildGradle, IOSConfig, withDangerousMod } = require('@expo/config-plugins');
2
- const fs = require('fs');
3
- const path = require('path');
4
-
5
- const customFonts = [
6
- "FontAwesome6_Brands.ttf",
7
- "FontAwesome6_Regular.ttf",
8
- "FontAwesome6_Solid.ttf",
9
- ];
10
-
11
- // iOS integration
12
- const withIosFonts = (config) => {
13
- return withInfoPlist(config, (modConfig) => {
14
- console.log('[withVortexReactNative] Adding custom fonts to iOS Info.plist');
15
-
16
- const existingFonts = Array.isArray(modConfig.modResults.UIAppFonts)
17
- ? modConfig.modResults.UIAppFonts
18
- : [];
19
-
20
- modConfig.modResults.UIAppFonts = Array.from(new Set([...existingFonts, ...customFonts]));
21
-
22
- return modConfig;
23
- });
24
- };
25
-
26
- // Android integration
27
- const withAndroidFonts = (config) => {
28
- // Copy fonts to Android assets directory
29
- return withDangerousMod(config, [
30
- 'android',
31
- async (config) => {
32
- console.log('[withVortexReactNative] Setting up fonts for Android');
33
-
34
- const projectRoot = config.modRequest.projectRoot;
35
- const fontsDirectory = path.resolve(projectRoot, 'node_modules/react-native-vector-icons/Fonts');
36
- const assetsDirectory = path.resolve(projectRoot, 'android/app/src/main/assets/fonts');
37
-
38
- // Ensure the assets directory exists
39
- if (!fs.existsSync(assetsDirectory)) {
40
- fs.mkdirSync(assetsDirectory, { recursive: true });
41
- }
42
-
43
- // Copy each font file to the assets directory
44
- for (const font of customFonts) {
45
- const sourcePath = path.resolve(fontsDirectory, font);
46
- const destPath = path.resolve(assetsDirectory, font);
47
-
48
- if (fs.existsSync(sourcePath)) {
49
- fs.copyFileSync(sourcePath, destPath);
50
- console.log(`[withVortexReactNative] Copied ${font} to Android assets`);
51
- } else {
52
- console.warn(`[withVortexReactNative] Font file not found: ${sourcePath}`);
53
- }
54
- }
55
-
56
- return config;
57
- },
58
- ]);
59
- };
60
-
61
- // Main plugin function
62
- const withVortexReactNative = (config) => {
63
- console.log('[withVortexReactNative] plugin running');
64
-
65
- // Apply iOS configuration
66
- config = withIosFonts(config);
67
-
68
- // Apply Android configuration
69
- config = withAndroidFonts(config);
70
-
71
- return config;
72
- };
73
-
74
- module.exports = withVortexReactNative;
package/plugin.js DELETED
@@ -1,2 +0,0 @@
1
- // plugin.js
2
- module.exports = require('./plugin/withVortexReactNative');