@stream-io/video-react-sdk 0.0.1-alpha.18 → 0.0.1-alpha.20

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
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.0.1-alpha.20](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.19...@stream-io/video-react-sdk-0.0.1-alpha.20) (2023-05-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * StreamTheme component and docs ([#477](https://github.com/GetStream/stream-video-js/issues/477)) ([440de24](https://github.com/GetStream/stream-video-js/commit/440de246d0a510f99a93ea34df6d03a9127c8d32))
11
+
12
+
13
+
14
+ ## [0.0.1-alpha.19](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.18...@stream-io/video-react-sdk-0.0.1-alpha.19) (2023-05-09)
15
+
16
+
17
+ ### Reverts
18
+
19
+ * Revert "chore: Avoid non-atomic pushes resulting in invalid version tags" ([24be283](https://github.com/GetStream/stream-video-js/commit/24be28300a5f5d452338457d60b1e34682027be6))
20
+
21
+
22
+
5
23
  ## [0.0.1-alpha.18](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.0.1-alpha.17...@stream-io/video-react-sdk-0.0.1-alpha.18) (2023-05-09)
6
24
 
7
25
 
@@ -0,0 +1,5 @@
1
+ import { ElementType, HTMLProps, PropsWithChildren } from 'react';
2
+ export type StreamThemeProps = HTMLProps<HTMLElement> & {
3
+ as?: ElementType;
4
+ };
5
+ export declare const StreamTheme: ({ as: Component, className, children, ...props }: PropsWithChildren<StreamThemeProps>) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import clsx from 'clsx';
14
+ export const StreamTheme = (_a) => {
15
+ var { as: Component = 'div', className, children } = _a, props = __rest(_a, ["as", "className", "children"]);
16
+ return (_jsx(Component, Object.assign({}, props, { className: clsx('str-video', className) }, { children: children })));
17
+ };
18
+ //# sourceMappingURL=StreamTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamTheme.js","sourceRoot":"","sources":["../../../../src/components/StreamTheme/StreamTheme.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAMxB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAKU,EAAE,EAAE;QALd,EAC1B,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,SAAS,EACT,QAAQ,OAE4B,EADjC,KAAK,cAJkB,+BAK3B,CADS;IAER,OAAO,CACL,KAAC,SAAS,oBAAK,KAAK,IAAE,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,gBAC1D,QAAQ,IACC,CACb,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './StreamTheme';
@@ -0,0 +1,2 @@
1
+ export * from './StreamTheme';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/StreamTheme/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from './Avatar';
2
2
  export * from './Button';
3
3
  export * from './CallControls';
4
- export * from '../core/components/CallLayout';
5
4
  export * from './CallParticipantsList';
6
5
  export * from './CallRecordingList';
7
6
  export * from './DeviceSettings';
@@ -11,6 +10,7 @@ export * from './Notification';
11
10
  export * from './Permissions';
12
11
  export * from './StreamCall';
13
12
  export * from './StreamMeeting';
13
+ export * from './StreamTheme';
14
14
  export * from './Search';
15
15
  export * from './Tooltip';
16
16
  export * from './Video';
@@ -1,7 +1,6 @@
1
1
  export * from './Avatar';
2
2
  export * from './Button';
3
3
  export * from './CallControls';
4
- export * from '../core/components/CallLayout';
5
4
  export * from './CallParticipantsList';
6
5
  export * from './CallRecordingList';
7
6
  export * from './DeviceSettings';
@@ -11,6 +10,7 @@ export * from './Notification';
11
10
  export * from './Permissions';
12
11
  export * from './StreamCall';
13
12
  export * from './StreamMeeting';
13
+ export * from './StreamTheme';
14
14
  export * from './Search';
15
15
  export * from './Tooltip';
16
16
  export * from './Video';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
package/package.json CHANGED
@@ -25,9 +25,9 @@
25
25
  "@floating-ui/react": "^0.22.0",
26
26
  "@nivo/core": "^0.80.0",
27
27
  "@nivo/line": "^0.80.0",
28
- "@stream-io/i18n": "^0.0.1-alpha.10",
29
- "@stream-io/video-client": "^0.0.1-alpha.127",
30
- "@stream-io/video-react-bindings": "^0.0.1-alpha.16",
28
+ "@stream-io/i18n": "^0.0.1-alpha.11",
29
+ "@stream-io/video-client": "^0.0.1-alpha.128",
30
+ "@stream-io/video-react-bindings": "^0.0.1-alpha.17",
31
31
  "clsx": "^1.2.1",
32
32
  "rxjs": "~7.5.7"
33
33
  },
@@ -36,7 +36,7 @@
36
36
  "react-dom": "^18.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@stream-io/video-styling": "^0.0.1-alpha.3",
39
+ "@stream-io/video-styling": "^0.0.1-alpha.4",
40
40
  "@types/rimraf": "^3.0.2",
41
41
  "react": "^18.2.0",
42
42
  "react-dom": "^18.2.0",
@@ -45,5 +45,5 @@
45
45
  "typedoc": "^0.23.24",
46
46
  "typescript": "^4.9.5"
47
47
  },
48
- "version": "0.0.1-alpha.18"
48
+ "version": "0.0.1-alpha.20"
49
49
  }
@@ -0,0 +1,19 @@
1
+ import { ElementType, HTMLProps, PropsWithChildren } from 'react';
2
+ import clsx from 'clsx';
3
+
4
+ export type StreamThemeProps = HTMLProps<HTMLElement> & {
5
+ as?: ElementType;
6
+ };
7
+
8
+ export const StreamTheme = ({
9
+ as: Component = 'div',
10
+ className,
11
+ children,
12
+ ...props
13
+ }: PropsWithChildren<StreamThemeProps>) => {
14
+ return (
15
+ <Component {...props} className={clsx('str-video', className)}>
16
+ {children}
17
+ </Component>
18
+ );
19
+ };
@@ -0,0 +1 @@
1
+ export * from './StreamTheme';
@@ -1,7 +1,6 @@
1
1
  export * from './Avatar';
2
2
  export * from './Button';
3
3
  export * from './CallControls';
4
- export * from '../core/components/CallLayout';
5
4
  export * from './CallParticipantsList';
6
5
  export * from './CallRecordingList';
7
6
  export * from './DeviceSettings';
@@ -11,6 +10,7 @@ export * from './Notification';
11
10
  export * from './Permissions';
12
11
  export * from './StreamCall';
13
12
  export * from './StreamMeeting';
13
+ export * from './StreamTheme';
14
14
  export * from './Search';
15
15
  export * from './Tooltip';
16
16
  export * from './Video';