@granite-js/react-native 1.0.32 → 1.0.34
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,35 @@
|
|
|
1
1
|
# @granite-js/react-native
|
|
2
2
|
|
|
3
|
+
## 1.0.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1cf5e91: remove default margin
|
|
8
|
+
- @granite-js/blur-view@1.0.34
|
|
9
|
+
- @granite-js/brownfield-module@1.0.34
|
|
10
|
+
- @granite-js/cli@1.0.34
|
|
11
|
+
- @granite-js/jest@1.0.34
|
|
12
|
+
- @granite-js/mpack@1.0.34
|
|
13
|
+
- @granite-js/native@1.0.34
|
|
14
|
+
- @granite-js/plugin-core@1.0.34
|
|
15
|
+
- @granite-js/style-utils@1.0.34
|
|
16
|
+
- @granite-js/video@1.0.34
|
|
17
|
+
|
|
18
|
+
## 1.0.33
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 39e17bb: Fix horizontal `IntersectionObserver` ratio calculation
|
|
23
|
+
- @granite-js/blur-view@1.0.33
|
|
24
|
+
- @granite-js/brownfield-module@1.0.33
|
|
25
|
+
- @granite-js/cli@1.0.33
|
|
26
|
+
- @granite-js/jest@1.0.33
|
|
27
|
+
- @granite-js/mpack@1.0.33
|
|
28
|
+
- @granite-js/native@1.0.33
|
|
29
|
+
- @granite-js/plugin-core@1.0.33
|
|
30
|
+
- @granite-js/style-utils@1.0.33
|
|
31
|
+
- @granite-js/video@1.0.33
|
|
32
|
+
|
|
3
33
|
## 1.0.32
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@granite-js/react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"description": "The Granite Framework",
|
|
5
5
|
"bin": {
|
|
6
6
|
"granite": "./bin/cli.js"
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"@babel/core": "7.28.5",
|
|
92
92
|
"@babel/preset-env": "7.28.5",
|
|
93
93
|
"@babel/preset-typescript": "7.28.5",
|
|
94
|
-
"@granite-js/native": "1.0.
|
|
95
|
-
"@granite-js/vitest": "1.0.
|
|
94
|
+
"@granite-js/native": "1.0.34",
|
|
95
|
+
"@granite-js/vitest": "1.0.34",
|
|
96
96
|
"@testing-library/dom": "^10.4.0",
|
|
97
97
|
"@testing-library/react": "^16.1.0",
|
|
98
98
|
"@types/babel__core": "^7",
|
|
@@ -114,21 +114,21 @@
|
|
|
114
114
|
"zod": "^4.1.12"
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
|
-
"@granite-js/native": "1.0.
|
|
117
|
+
"@granite-js/native": "1.0.34",
|
|
118
118
|
"@types/react": "*",
|
|
119
119
|
"brick-module": "*",
|
|
120
120
|
"react": "*",
|
|
121
121
|
"react-native": "*"
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@granite-js/blur-view": "1.0.
|
|
125
|
-
"@granite-js/brownfield-module": "1.0.
|
|
126
|
-
"@granite-js/cli": "1.0.
|
|
127
|
-
"@granite-js/jest": "1.0.
|
|
128
|
-
"@granite-js/mpack": "1.0.
|
|
129
|
-
"@granite-js/plugin-core": "1.0.
|
|
130
|
-
"@granite-js/style-utils": "1.0.
|
|
131
|
-
"@granite-js/video": "1.0.
|
|
124
|
+
"@granite-js/blur-view": "1.0.34",
|
|
125
|
+
"@granite-js/brownfield-module": "1.0.34",
|
|
126
|
+
"@granite-js/cli": "1.0.34",
|
|
127
|
+
"@granite-js/jest": "1.0.34",
|
|
128
|
+
"@granite-js/mpack": "1.0.34",
|
|
129
|
+
"@granite-js/plugin-core": "1.0.34",
|
|
130
|
+
"@granite-js/style-utils": "1.0.34",
|
|
131
|
+
"@granite-js/video": "1.0.34",
|
|
132
132
|
"@standard-schema/spec": "^1.0.0",
|
|
133
133
|
"es-toolkit": "^1.39.8",
|
|
134
134
|
"react-native-url-polyfill": "3.0.0"
|
|
@@ -159,12 +159,12 @@ class IntersectionObserver {
|
|
|
159
159
|
if (horizontal) {
|
|
160
160
|
const visibleTargetMinX = Math.max(contentOffset.x - (rootMargin.left || 0), targetLayout.x);
|
|
161
161
|
const visibleTargetMaxX = Math.min(
|
|
162
|
-
contentOffsetWithLayout + (rootMargin.
|
|
162
|
+
contentOffsetWithLayout + (rootMargin.right || 0),
|
|
163
163
|
targetLayout.x + targetLayout.width
|
|
164
164
|
);
|
|
165
|
-
const
|
|
165
|
+
const visibleWidth = Math.max(visibleTargetMaxX - visibleTargetMinX, 0);
|
|
166
166
|
|
|
167
|
-
intersectionRatio =
|
|
167
|
+
intersectionRatio = visibleWidth / targetLayout.width;
|
|
168
168
|
isIntersecting =
|
|
169
169
|
contentOffsetWithLayout + (rootMargin.right || 0) >= targetLayout.x &&
|
|
170
170
|
contentOffset.x - (rootMargin.left || 0) <= targetLayout.x + targetLayout.width;
|