@granite-js/react-native 0.1.9 → 0.1.11

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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @granite-js/react-native
2
2
 
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [12f568f]
8
+ - Updated dependencies [d3a2b58]
9
+ - @granite-js/mpack@0.1.11
10
+ - @granite-js/cli@0.1.11
11
+ - @granite-js/plugin-core@0.1.11
12
+ - @granite-js/image@0.1.11
13
+ - @granite-js/jest@0.1.11
14
+ - @granite-js/lottie@0.1.11
15
+ - @granite-js/native@0.1.11
16
+ - @granite-js/style-utils@0.1.11
17
+
18
+ ## 0.1.10
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [9438be5]
23
+ - @granite-js/plugin-core@0.1.10
24
+ - @granite-js/cli@0.1.10
25
+ - @granite-js/mpack@0.1.10
26
+ - @granite-js/image@0.1.10
27
+ - @granite-js/jest@0.1.10
28
+ - @granite-js/lottie@0.1.10
29
+ - @granite-js/native@0.1.10
30
+ - @granite-js/style-utils@0.1.10
31
+
3
32
  ## 0.1.9
4
33
 
5
34
  ### Patch Changes
package/config.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from '@granite-js/cli';
1
+ export * from '@granite-js/plugin-core';
2
2
  export { Config as MpackConfig } from '@granite-js/mpack';
package/config.js CHANGED
@@ -1,4 +1,4 @@
1
- const { defineConfig } = require('@granite-js/cli');
1
+ const { defineConfig } = require('@granite-js/plugin-core');
2
2
 
3
3
  module.exports = {
4
4
  defineConfig,
@@ -58,10 +58,12 @@ type VideoProps = ComponentProps<typeof AnimatedRNVideo>;
58
58
  * }
59
59
  * ```
60
60
  */
61
- declare const Video: import("react").ForwardRefExoticComponent<Omit<import("react-native-video").VideoProperties, "onAudioFocusChanged"> & {
61
+ declare const VideoImpl: import("react").ForwardRefExoticComponent<Omit<import("react-native-video").VideoProperties, "onAudioFocusChanged"> & {
62
62
  onAudioFocusChanged?: (event: {
63
63
  hasAudioFocus: boolean;
64
64
  }) => void;
65
65
  } & import("react").RefAttributes<VideoRef>>;
66
- export { Video };
66
+ export declare const Video: typeof VideoImpl & {
67
+ isAvailable: boolean;
68
+ };
67
69
  export type { VideoRef, VideoProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granite-js/react-native",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "The Granite Framework",
5
5
  "bin": {
6
6
  "granite": "./bin/cli.js"
@@ -56,7 +56,7 @@
56
56
  "@babel/core": "^7.24.9",
57
57
  "@babel/preset-env": "^7.24.8",
58
58
  "@babel/preset-typescript": "^7.24.7",
59
- "@granite-js/native": "0.1.9",
59
+ "@granite-js/native": "0.1.11",
60
60
  "@testing-library/dom": "^10.4.0",
61
61
  "@testing-library/react": "^16.1.0",
62
62
  "@types/babel__core": "^7",
@@ -82,12 +82,13 @@
82
82
  "react-native": "*"
83
83
  },
84
84
  "dependencies": {
85
- "@granite-js/cli": "0.1.9",
86
- "@granite-js/image": "0.1.9",
87
- "@granite-js/jest": "0.1.9",
88
- "@granite-js/lottie": "0.1.9",
89
- "@granite-js/mpack": "0.1.9",
90
- "@granite-js/style-utils": "0.1.9",
85
+ "@granite-js/cli": "0.1.11",
86
+ "@granite-js/image": "0.1.11",
87
+ "@granite-js/jest": "0.1.11",
88
+ "@granite-js/lottie": "0.1.11",
89
+ "@granite-js/mpack": "0.1.11",
90
+ "@granite-js/plugin-core": "0.1.11",
91
+ "@granite-js/style-utils": "0.1.11",
91
92
  "es-toolkit": "^1.39.8",
92
93
  "react-native-url-polyfill": "1.3.0"
93
94
  }
@@ -62,7 +62,7 @@ type VideoProps = ComponentProps<typeof AnimatedRNVideo>;
62
62
  * }
63
63
  * ```
64
64
  */
65
- const Video = forwardRef<VideoRef, instance.VideoNativeProps>((props, ref) => {
65
+ const VideoImpl = forwardRef<VideoRef, instance.VideoNativeProps>((props, ref) => {
66
66
  const [isFocused, setIsFocused] = useState(props.muted || props.paused);
67
67
  const visible = useVisibility();
68
68
 
@@ -93,12 +93,9 @@ const Video = forwardRef<VideoRef, instance.VideoNativeProps>((props, ref) => {
93
93
  );
94
94
  });
95
95
 
96
- Object.defineProperty(Video, 'isAvailable', {
97
- value: instance.isAvailable,
98
- enumerable: true,
99
- writable: false,
96
+ export const Video = Object.defineProperty(VideoImpl, 'isAvailable', {
97
+ get: () => instance.isAvailable,
100
98
  configurable: false,
101
- });
99
+ }) as typeof VideoImpl & { isAvailable: boolean };
102
100
 
103
- export { Video };
104
101
  export type { VideoRef, VideoProps };