@stream-io/video-react-native-sdk 1.30.0 → 1.30.1-beta.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/dist/commonjs/contexts/ThemeContext.js +14 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js +13 -1
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/ios/StreamVideoReactNative.xcodeproj/project.xcworkspace/xcuserdata/santhoshvaiyapuri.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/StreamVideoReactNative.xcodeproj/xcuserdata/santhoshvaiyapuri.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +5 -7
- package/src/contexts/ThemeContext.tsx +20 -2
- package/src/version.ts +1 -1
|
@@ -5,14 +5,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useTheme = exports.mergeThemes = exports.ThemeProvider = exports.ThemeContext = exports.StreamTheme = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _lodash = _interopRequireDefault(require("lodash.merge"));
|
|
9
8
|
var _theme = require("../theme/theme");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
9
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
10
|
/**
|
|
13
11
|
* @deprecated Use StreamThemeInputValue instead.
|
|
14
12
|
*/
|
|
15
13
|
|
|
14
|
+
const isObject = value => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
15
|
+
const merge = (target, source) => {
|
|
16
|
+
for (const key in source) {
|
|
17
|
+
const sourceValue = source[key];
|
|
18
|
+
if (sourceValue === undefined) continue;
|
|
19
|
+
const targetValue = target[key];
|
|
20
|
+
if (isObject(sourceValue) && isObject(targetValue)) {
|
|
21
|
+
merge(targetValue, sourceValue);
|
|
22
|
+
} else {
|
|
23
|
+
target[key] = sourceValue;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
16
27
|
const mergeThemes = params => {
|
|
17
28
|
const {
|
|
18
29
|
style,
|
|
@@ -20,7 +31,7 @@ const mergeThemes = params => {
|
|
|
20
31
|
} = params;
|
|
21
32
|
const finalTheme = !theme || Object.keys(theme).length === 0 ? JSON.parse(JSON.stringify(_theme.defaultTheme)) : JSON.parse(JSON.stringify(theme));
|
|
22
33
|
if (style) {
|
|
23
|
-
(
|
|
34
|
+
merge(finalTheme, style);
|
|
24
35
|
}
|
|
25
36
|
return finalTheme;
|
|
26
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_theme","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isObject","value","Array","isArray","merge","target","source","key","sourceValue","undefined","targetValue","mergeThemes","params","style","theme","finalTheme","keys","length","JSON","parse","stringify","defaultTheme","exports","DEFAULT_BASE_CONTEXT_VALUE","ThemeContext","createContext","StreamTheme","props","children","mergedStyle","modifiedTheme","useMemo","createElement","Provider","ThemeProvider","useTheme","useContext","Error"],"sourceRoot":"../../../src","sources":["contexts/ThemeContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAA0D,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAW1D;AACA;AACA;;AAYA,MAAMkB,QAAQ,GAAIC,KAAc,IAC9B,OAAOA,KAAK,KAAK,QA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;IAAEhB,KAAK;IAAEC;EAAM,CAAC,GAAGa,KAAK;EAErD,MAAMG,aAAa,GAAG,IAAAC,cAAO,EAAC,MAAM;IAClC,IAAIF,WAAW,EAAE;MACf,OAAOA,WAAW;IACpB;IAEA,OAAOlB,WAAW,CAAC;MAAEE,KAAK;MAAEC;IAAM,CAAC,CAAC;EACtC,CAAC,EAAE,CAACe,WAAW,EAAEhB,KAAK,EAAEC,KAAK,CAAC,CAAC;EAE/B,oBACErC,MAAA,CAAAc,OAAA,CAAAyC,aAAA,CAACR,YAAY,CAACS,QAAQ;IAAChC,KAAK,EAAE6B;EAAc,GACzCF,QACoB,CAAC;AAE5B,CAAC;;AAED;AACA;AACA;AAFAN,OAAA,CAAAI,WAAA,GAAAA,WAAA;AAGO,MAAMQ,aAAa,GAAAZ,OAAA,CAAAY,aAAA,GAAGR,WAAW;AAEjC,MAAMS,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMrB,KAAK,GAAG,IAAAsB,iBAAU,EAACZ,YAAY,CAAC;EAEtC,IAAIV,KAAK,KAAKS,0BAA0B,EAAE;IACxC,MAAM,IAAIc,KAAK,CACb,sOACF,CAAC;EACH;EACA,OAAO;IAAEvB;EAAM,CAAC;AAClB,CAAC;AAACQ,OAAA,CAAAa,QAAA,GAAAA,QAAA","ignoreList":[]}
|
package/dist/commonjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,
|
|
1
|
+
{"version":3,"names":["version","exports"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":";;;;;;AAAO,MAAMA,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,eAAe","ignoreList":[]}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import React, { createContext, useContext, useMemo } from 'react';
|
|
2
|
-
import merge from 'lodash.merge';
|
|
3
2
|
import { defaultTheme } from '../theme/theme';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* @deprecated Use StreamThemeInputValue instead.
|
|
7
6
|
*/
|
|
8
7
|
|
|
8
|
+
const isObject = value => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
9
|
+
const merge = (target, source) => {
|
|
10
|
+
for (const key in source) {
|
|
11
|
+
const sourceValue = source[key];
|
|
12
|
+
if (sourceValue === undefined) continue;
|
|
13
|
+
const targetValue = target[key];
|
|
14
|
+
if (isObject(sourceValue) && isObject(targetValue)) {
|
|
15
|
+
merge(targetValue, sourceValue);
|
|
16
|
+
} else {
|
|
17
|
+
target[key] = sourceValue;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
9
21
|
export const mergeThemes = params => {
|
|
10
22
|
const {
|
|
11
23
|
style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useContext","useMemo","merge","
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useMemo","defaultTheme","isObject","value","Array","isArray","merge","target","source","key","sourceValue","undefined","targetValue","mergeThemes","params","style","theme","finalTheme","Object","keys","length","JSON","parse","stringify","DEFAULT_BASE_CONTEXT_VALUE","ThemeContext","StreamTheme","props","children","mergedStyle","modifiedTheme","createElement","Provider","ThemeProvider","useTheme","Error"],"sourceRoot":"../../../src","sources":["contexts/ThemeContext.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACVC,aAAa,EAEbC,UAAU,EACVC,OAAO,QACF,OAAO;AAEd,SAASC,YAAY,QAAoB,gBAAgB;;AAWzD;AACA;AACA;;AAYA,MAAMC,QAAQ,GAAIC,KAAc,IAC9B,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC;AAEtE,MAAMG,KAAK,GAAGA,CACZC,MAAS,EACTC,MAAsB,KACnB;EACH,KAAK,MAAMC,GAAG,IAAID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,CAACa,WAAW,EAAEd,KAAK,EAAEC,KAAK,CAAC,CAAC;EAE/B,oBACEnB,KAAA,CAAAkC,aAAA,CAACN,YAAY,CAACO,QAAQ;IAAC7B,KAAK,EAAE2B;EAAc,GACzCF,QACoB,CAAC;AAE5B,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMK,aAAa,GAAGP,WAAW;AAExC,OAAO,MAAMQ,QAAQ,GAAGA,CAAA,KAAM;EAC5B,MAAMlB,KAAK,GAAGjB,UAAU,CAAC0B,YAAY,CAAC;EAEtC,IAAIT,KAAK,KAAKQ,0BAA0B,EAAE;IACxC,MAAM,IAAIW,KAAK,CACb,sOACF,CAAC;EACH;EACA,OAAO;IAAEnB;EAAM,CAAC;AAClB,CAAC","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.30.0';
|
|
1
|
+
export const version = '1.30.1-beta.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAgB,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAsBF,eAAO,MAAM,WAAW,GAAI,QAAQ,kBAAkB,UAarD,CAAC;AAIF,eAAO,MAAM,YAAY,sBAExB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAChC,iBAAiB,CAAC,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAiBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,uFAAc,CAAC;AAEzC,eAAO,MAAM,QAAQ;;CASpB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.30.0";
|
|
1
|
+
export declare const version = "1.30.1-beta.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>StreamVideoReactNative.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-native-sdk",
|
|
3
|
-
"version": "1.30.0",
|
|
3
|
+
"version": "1.30.1-beta.0",
|
|
4
4
|
"description": "Stream Video SDK for React Native",
|
|
5
5
|
"author": "https://getstream.io",
|
|
6
6
|
"homepage": "https://getstream.io/video/docs/react-native/",
|
|
@@ -50,10 +50,9 @@
|
|
|
50
50
|
"!**/.*"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@stream-io/video-client": "1.44.
|
|
54
|
-
"@stream-io/video-react-bindings": "1.13.
|
|
53
|
+
"@stream-io/video-client": "1.44.1-beta.1",
|
|
54
|
+
"@stream-io/video-react-bindings": "1.13.10-beta.1",
|
|
55
55
|
"intl-pluralrules": "2.0.1",
|
|
56
|
-
"lodash.merge": "^4.6.2",
|
|
57
56
|
"react-native-url-polyfill": "^3.0.0",
|
|
58
57
|
"rxjs": "~7.8.2",
|
|
59
58
|
"text-encoding-polyfill": "0.6.7"
|
|
@@ -130,14 +129,13 @@
|
|
|
130
129
|
"@react-native-firebase/app": "^23.4.0",
|
|
131
130
|
"@react-native-firebase/messaging": "^23.4.0",
|
|
132
131
|
"@react-native/babel-preset": "^0.81.5",
|
|
133
|
-
"@stream-io/noise-cancellation-react-native": "
|
|
132
|
+
"@stream-io/noise-cancellation-react-native": "0.5.0",
|
|
134
133
|
"@stream-io/react-native-webrtc": "137.1.0",
|
|
135
|
-
"@stream-io/video-filters-react-native": "
|
|
134
|
+
"@stream-io/video-filters-react-native": "0.10.0",
|
|
136
135
|
"@testing-library/jest-native": "^5.4.3",
|
|
137
136
|
"@testing-library/react-native": "13.3.3",
|
|
138
137
|
"@tsconfig/node18": "^18.2.4",
|
|
139
138
|
"@types/jest": "^29.5.14",
|
|
140
|
-
"@types/lodash.merge": "^4.6.9",
|
|
141
139
|
"@types/react": "~19.1.17",
|
|
142
140
|
"@types/react-test-renderer": "^19.1.0",
|
|
143
141
|
"expo": "~54.0.12",
|
|
@@ -5,8 +5,6 @@ import React, {
|
|
|
5
5
|
useMemo,
|
|
6
6
|
} from 'react';
|
|
7
7
|
|
|
8
|
-
import merge from 'lodash.merge';
|
|
9
|
-
|
|
10
8
|
import { defaultTheme, type Theme } from '../theme/theme';
|
|
11
9
|
|
|
12
10
|
export type DeepPartial<T> = {
|
|
@@ -32,6 +30,26 @@ export type ThemeContextValue = {
|
|
|
32
30
|
theme: Theme;
|
|
33
31
|
};
|
|
34
32
|
|
|
33
|
+
const isObject = (value: unknown): value is Record<string, unknown> =>
|
|
34
|
+
typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
35
|
+
|
|
36
|
+
const merge = <T extends Record<string, unknown>>(
|
|
37
|
+
target: T,
|
|
38
|
+
source: DeepPartial<T>,
|
|
39
|
+
) => {
|
|
40
|
+
for (const key in source) {
|
|
41
|
+
const sourceValue = source[key];
|
|
42
|
+
if (sourceValue === undefined) continue;
|
|
43
|
+
|
|
44
|
+
const targetValue = target[key as keyof T];
|
|
45
|
+
if (isObject(sourceValue) && isObject(targetValue)) {
|
|
46
|
+
merge(targetValue, sourceValue as DeepPartial<Record<string, unknown>>);
|
|
47
|
+
} else {
|
|
48
|
+
target[key as keyof T] = sourceValue as T[keyof T];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
35
53
|
export const mergeThemes = (params: MergedThemesParams) => {
|
|
36
54
|
const { style, theme } = params;
|
|
37
55
|
const finalTheme = (
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.30.0';
|
|
1
|
+
export const version = '1.30.1-beta.0';
|