@hanzogui/react-native-media-driver 4.4.0 → 102.0.0-rc.41-hanzoai.1
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": "@hanzogui/react-native-media-driver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "102.0.0-rc.41-hanzoai.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"build": "
|
|
33
|
-
"watch": "
|
|
34
|
-
"clean": "
|
|
35
|
-
"clean:build": "
|
|
32
|
+
"build": "hanzogui-build",
|
|
33
|
+
"watch": "hanzogui-build --watch",
|
|
34
|
+
"clean": "hanzogui-build clean",
|
|
35
|
+
"clean:build": "hanzogui-build clean:build"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@hanzogui/web": "
|
|
38
|
+
"@hanzogui/web": "102.0.0-rc.41-hanzoai.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@hanzogui/build": "
|
|
41
|
+
"@hanzogui/build": "102.0.0-rc.41-hanzoai.1",
|
|
42
42
|
"react-native": "0.83.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
package/src/createMedia.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { matchMedia } from './matchMedia'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated you no longer need to call createMedia or import @hanzogui/react-native-media-driver at all.
|
|
8
|
-
*
|
|
8
|
+
* Hanzogui now automatically handles setting this up, you can just pass a plain object to createHanzogui.
|
|
9
9
|
*/
|
|
10
10
|
export function createMedia<
|
|
11
11
|
A extends {
|
|
12
12
|
[key: string]: MediaQueryObject
|
|
13
13
|
},
|
|
14
14
|
>(media: A): A {
|
|
15
|
-
// this should ideally return a diff object that is then passed to
|
|
15
|
+
// this should ideally return a diff object that is then passed to createHanzogui
|
|
16
16
|
// but works for now we dont really support swapping out media drivers
|
|
17
17
|
setupMatchMedia(matchMedia)
|
|
18
18
|
return media
|
package/types/createMedia.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MediaQueryObject } from "@hanzogui/web";
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated you no longer need to call createMedia or import @hanzogui/react-native-media-driver at all.
|
|
4
|
-
*
|
|
4
|
+
* Hanzogui now automatically handles setting this up, you can just pass a plain object to createHanzogui.
|
|
5
5
|
*/
|
|
6
6
|
export declare function createMedia<A extends {
|
|
7
7
|
[key: string]: MediaQueryObject;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
],
|
|
7
7
|
"version": 3,
|
|
8
8
|
"sourcesContent": [
|
|
9
|
-
"import type { MediaQueryObject } from '@hanzogui/web'\nimport { setupMatchMedia } from '@hanzogui/web'\n\nimport { matchMedia } from './matchMedia'\n\n/**\n * @deprecated you no longer need to call createMedia or import @hanzogui/react-native-media-driver at all.\n *
|
|
9
|
+
"import type { MediaQueryObject } from '@hanzogui/web'\nimport { setupMatchMedia } from '@hanzogui/web'\n\nimport { matchMedia } from './matchMedia'\n\n/**\n * @deprecated you no longer need to call createMedia or import @hanzogui/react-native-media-driver at all.\n * Hanzogui now automatically handles setting this up, you can just pass a plain object to createHanzogui.\n */\nexport function createMedia<\n A extends {\n [key: string]: MediaQueryObject\n },\n>(media: A): A {\n // this should ideally return a diff object that is then passed to createHanzogui\n // but works for now we dont really support swapping out media drivers\n setupMatchMedia(matchMedia)\n return media\n}\n"
|
|
10
10
|
]
|
|
11
11
|
}
|