stream-engine-widgets 0.3.12 → 0.3.13
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/README.md +66 -70
- package/dist/{ArrowForwardIosRounded-BaL-VMC4.js → ArrowForwardIosRounded-Bug0UD4Z.js} +2 -2
- package/dist/ArrowForwardIosRounded-Bug0UD4Z.js.map +1 -0
- package/dist/{PlayArrowRounded-CG2LwYPS.js → PlayArrowRounded-DDn8lR83.js} +2 -2
- package/dist/PlayArrowRounded-DDn8lR83.js.map +1 -0
- package/dist/blaze-widget-COvQjzxN.js +536 -0
- package/dist/blaze-widget-COvQjzxN.js.map +1 -0
- package/dist/{gallery-Dk7FoKQ2.js → gallery-Bj7HaEKS.js} +3 -3
- package/dist/{gallery-Dk7FoKQ2.js.map → gallery-Bj7HaEKS.js.map} +1 -1
- package/dist/{index-BeFaEXM_.js → index-DRXk8TB6.js} +58 -19
- package/dist/index-DRXk8TB6.js.map +1 -0
- package/dist/{matchItem-D6W9Cr3B.js → matchItem-Dbtm7f0H.js} +2 -2
- package/dist/{matchItem-D6W9Cr3B.js.map → matchItem-Dbtm7f0H.js.map} +1 -1
- package/dist/{matches-C6g1gy0F.js → matches-BYGBQOdB.js} +4 -4
- package/dist/{matches-C6g1gy0F.js.map → matches-BYGBQOdB.js.map} +1 -1
- package/dist/{matchesStandalone-DDPE5Vcj.js → matchesStandalone-fkyfgYtI.js} +4 -4
- package/dist/{matchesStandalone-DDPE5Vcj.js.map → matchesStandalone-fkyfgYtI.js.map} +1 -1
- package/dist/{player-DSRAIfjr.js → player-BpFZSk7h.js} +2 -2
- package/dist/{player-DSRAIfjr.js.map → player-BpFZSk7h.js.map} +1 -1
- package/dist/{poster-DQmetrXx.js → poster-gBj_BEdS.js} +3 -3
- package/dist/{poster-DQmetrXx.js.map → poster-gBj_BEdS.js.map} +1 -1
- package/dist/{posterItem-CFXC6RCV.js → posterItem-COVgC8zh.js} +4 -4
- package/dist/{posterItem-CFXC6RCV.js.map → posterItem-COVgC8zh.js.map} +1 -1
- package/dist/{scroll-4h77WnpF.js → scroll-DcdnfMG4.js} +4 -4
- package/dist/{scroll-4h77WnpF.js.map → scroll-DcdnfMG4.js.map} +1 -1
- package/dist/{stateTimeIndicator-B6Cv9jW3.js → stateTimeIndicator-CpCIHbFB.js} +2 -2
- package/dist/{stateTimeIndicator-B6Cv9jW3.js.map → stateTimeIndicator-CpCIHbFB.js.map} +1 -1
- package/dist/{story-rQunpEu2.js → story-CH4qV2PF.js} +4 -4
- package/dist/story-CH4qV2PF.js.map +1 -0
- package/dist/stream-engine-widgets.css +711 -0
- package/dist/stream-engine-widgets.js +1 -1
- package/dist/{useMediaQuery-DQ9iT8Fo.js → useMediaQuery-C8rqxnyT.js} +4 -4
- package/dist/{useMediaQuery-DQ9iT8Fo.js.map → useMediaQuery-C8rqxnyT.js.map} +1 -1
- package/package.json +5 -1
- package/dist/ArrowForwardIosRounded-BaL-VMC4.js.map +0 -1
- package/dist/PlayArrowRounded-CG2LwYPS.js.map +0 -1
- package/dist/index-BeFaEXM_.js.map +0 -1
- package/dist/story-rQunpEu2.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
###
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
This
|
|
67
|
-
|
|
68
|
-
### `npm run build` fails to minify
|
|
69
|
-
|
|
70
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
1
|
+
# Stream Engine Widgets
|
|
2
|
+
|
|
3
|
+
This package contains web components for the Stream Engine platform, including the Blaze widget integration.
|
|
4
|
+
|
|
5
|
+
## Local Development
|
|
6
|
+
|
|
7
|
+
### Setup for Local Development
|
|
8
|
+
|
|
9
|
+
1. **Build in Watch Mode**
|
|
10
|
+
```bash
|
|
11
|
+
cd packages/widgets
|
|
12
|
+
npm run build:watch
|
|
13
|
+
```
|
|
14
|
+
This will build the widgets and watch for changes, rebuilding automatically when files are modified.
|
|
15
|
+
|
|
16
|
+
2. **Serve the Built Files**
|
|
17
|
+
In a separate terminal:
|
|
18
|
+
```bash
|
|
19
|
+
cd packages/widgets
|
|
20
|
+
npx serve dist -p 5173 --cors
|
|
21
|
+
```
|
|
22
|
+
This serves the built files with CORS enabled, making them available at `http://localhost:5173`.
|
|
23
|
+
|
|
24
|
+
### Using in Channel Front
|
|
25
|
+
|
|
26
|
+
In your channel front application, configure the widget source to use the local build:
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
// In SectionContent.js or similar
|
|
30
|
+
<script
|
|
31
|
+
type="module"
|
|
32
|
+
src={process.env.NODE_ENV === 'development'
|
|
33
|
+
? "http://localhost:5173/stream-engine-widgets.js"
|
|
34
|
+
: `https://cdn.jsdelivr.net/npm/stream-engine-widgets@${process.env.NEXT_PUBLIC_VF_WIDGET_VERSION || "latest"}/dist/stream-engine-widgets.js`}
|
|
35
|
+
></script>
|
|
36
|
+
<link
|
|
37
|
+
type="text/css"
|
|
38
|
+
rel="stylesheet"
|
|
39
|
+
href={process.env.NODE_ENV === 'development'
|
|
40
|
+
? "http://localhost:5173/stream-engine-widgets.css"
|
|
41
|
+
: `https://cdn.jsdelivr.net/npm/stream-engine-widgets@${process.env.NEXT_PUBLIC_VF_WIDGET_VERSION || "latest"}/dist/stream-engine-widgets.css`}
|
|
42
|
+
></link>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Development Workflow
|
|
46
|
+
|
|
47
|
+
1. Start the build watch mode
|
|
48
|
+
2. Start the file server
|
|
49
|
+
3. Run your channel front application
|
|
50
|
+
4. Make changes to widget code
|
|
51
|
+
5. Changes will automatically rebuild and be available in your app
|
|
52
|
+
|
|
53
|
+
### Debugging
|
|
54
|
+
|
|
55
|
+
- Check the browser console for any loading errors
|
|
56
|
+
- Ensure both the build watch and server are running
|
|
57
|
+
- Verify the correct URLs are being used in development mode
|
|
58
|
+
- Use browser dev tools to inspect the web component
|
|
59
|
+
|
|
60
|
+
### Production Build
|
|
61
|
+
|
|
62
|
+
For production builds:
|
|
63
|
+
```bash
|
|
64
|
+
npm run build
|
|
65
|
+
```
|
|
66
|
+
This will create optimized builds in the `dist` directory.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-
|
|
1
|
+
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-DRXk8TB6.js';
|
|
2
2
|
|
|
3
3
|
const ArrowBackIosRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
4
4
|
d: "M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"
|
|
@@ -9,4 +9,4 @@ const ArrowForwardIosRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx
|
|
|
9
9
|
}), 'ArrowForwardIosRounded');
|
|
10
10
|
|
|
11
11
|
export { ArrowBackIosRounded as A, ArrowForwardIosRounded as a };
|
|
12
|
-
//# sourceMappingURL=ArrowForwardIosRounded-
|
|
12
|
+
//# sourceMappingURL=ArrowForwardIosRounded-Bug0UD4Z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowForwardIosRounded-Bug0UD4Z.js","sources":["../../../node_modules/.pnpm/@mui+icons-material@5.16.7_@mui+material@5.16.7_@types+react@18.3.12_react@18.2.0/node_modules/@mui/icons-material/esm/ArrowBackIosRounded.js","../../../node_modules/.pnpm/@mui+icons-material@5.16.7_@mui+material@5.16.7_@types+react@18.3.12_react@18.2.0/node_modules/@mui/icons-material/esm/ArrowForwardIosRounded.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76\"\n}), 'ArrowBackIosRounded');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76\"\n}), 'ArrowForwardIosRounded');"],"names":["_jsx"],"mappings":";;AAIA,4BAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,qBAAqB,CAAC;;ACF1B,+BAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,wBAAwB,CAAC;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-
|
|
1
|
+
import { c as createSvgIcon, j as jsxRuntimeExports } from './index-DRXk8TB6.js';
|
|
2
2
|
|
|
3
3
|
const PlayArrowRounded = createSvgIcon( /*#__PURE__*/jsxRuntimeExports.jsx("path", {
|
|
4
4
|
d: "M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"
|
|
5
5
|
}), 'PlayArrowRounded');
|
|
6
6
|
|
|
7
7
|
export { PlayArrowRounded as P };
|
|
8
|
-
//# sourceMappingURL=PlayArrowRounded-
|
|
8
|
+
//# sourceMappingURL=PlayArrowRounded-DDn8lR83.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayArrowRounded-DDn8lR83.js","sources":["../../../node_modules/.pnpm/@mui+icons-material@5.16.7_@mui+material@5.16.7_@types+react@18.3.12_react@18.2.0/node_modules/@mui/icons-material/esm/PlayArrowRounded.js"],"sourcesContent":["\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82\"\n}), 'PlayArrowRounded');"],"names":["_jsx"],"mappings":";;AAIA,yBAAe,aAAa,eAAeA,qBAAI,CAAC,MAAM,EAAE;AACxD,EAAE,CAAC,EAAE;AACL,CAAC,CAAC,EAAE,kBAAkB,CAAC;;;;","x_google_ignoreList":[0]}
|