@player-ui/react 0.14.1--canary.720.27388 → 0.14.1--canary.720.27413

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.
@@ -1,690 +0,0 @@
1
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/index.tsx
2
- export * from "@player-ui/player";
3
-
4
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/player.tsx
5
- import React4 from "react";
6
- import { SyncWaterfallHook, AsyncParallelHook } from "tapable-ts";
7
- import { Subscribe, useSubscribedState } from "@player-ui/react-subscribe";
8
- import { Registry } from "@player-ui/partial-match-registry";
9
- import { Player } from "@player-ui/player";
10
- import { ErrorBoundary } from "react-error-boundary";
11
-
12
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/asset/index.tsx
13
- import React from "react";
14
- import leven from "leven";
15
- var AssetContext = React.createContext({});
16
- var ReactAsset = (props) => {
17
- const { registry } = React.useContext(AssetContext);
18
- let unwrapped;
19
- if ("type" in props && "id" in props) {
20
- unwrapped = props;
21
- } else if ("asset" in props) {
22
- unwrapped = props.asset;
23
- }
24
- if (!unwrapped) {
25
- throw Error(
26
- `Cannot determine asset type for props: ${JSON.stringify(props)}`
27
- );
28
- }
29
- if (typeof unwrapped !== "object") {
30
- throw Error(
31
- `Asset was not an object got (${typeof unwrapped}) instead: ${unwrapped}`
32
- );
33
- }
34
- if (unwrapped.type === void 0) {
35
- const info = unwrapped.id === void 0 ? JSON.stringify(props) : `id: ${unwrapped.id}`;
36
- throw Error(`Asset is missing type for ${info}`);
37
- }
38
- if (!registry || registry.isRegistryEmpty()) {
39
- throw Error(`No asset found in registry. This could happen for one of the following reasons:
40
-
41
- 1. You might have no assets registered or no plugins added to the Player instance.
42
-
43
- 2. You might have mismatching versions of React Asset Registry Context.
44
-
45
- See https://player-ui.github.io/latest/tools/cli#player-dependency-versions-check for tips about how to debug and fix this problem`);
46
- }
47
- const Impl = registry?.get(unwrapped);
48
- if (!Impl) {
49
- const matchList = [];
50
- registry.forEach((asset) => {
51
- matchList.push(asset.key);
52
- });
53
- const typeList = matchList.map(
54
- (match) => JSON.parse(JSON.stringify(match)).type
55
- );
56
- const similarType = typeList.reduce((prev, curr) => {
57
- const next = {
58
- value: leven(unwrapped.type, curr),
59
- type: curr
60
- };
61
- if (prev !== void 0 && prev.value < next.value) {
62
- return prev;
63
- }
64
- return next;
65
- }, void 0);
66
- throw Error(
67
- `No implementation found for id: ${unwrapped.id} type: ${unwrapped.type}. Did you mean ${similarType.type}?
68
-
69
- Registered Asset matching functions are listed below:
70
-
71
- ${JSON.stringify(matchList)}`
72
- );
73
- }
74
- return /* @__PURE__ */ React.createElement(Impl, { key: unwrapped.id, ...unwrapped });
75
- };
76
-
77
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/player-context.ts
78
- import React2 from "react";
79
- var PlayerContext = React2.createContext({});
80
- var usePlayer = () => {
81
- const { player } = React2.useContext(PlayerContext);
82
- return player;
83
- };
84
-
85
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/use-logger.ts
86
- import { NoopLogger } from "@player-ui/player";
87
- var noopLogger = new NoopLogger();
88
- function useLogger() {
89
- const player = usePlayer();
90
- return player?.logger ?? noopLogger;
91
- }
92
-
93
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/use-asset-props.tsx
94
- function useAssetProps(asset) {
95
- return {
96
- id: asset.id,
97
- "data-asset-type": asset.type
98
- };
99
- }
100
-
101
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/helpers.ts
102
- function trimSlashes(str) {
103
- return str.replace(/^\/+|\/+$/g, "");
104
- }
105
- function removeEmptyValuesFromObject(obj) {
106
- return Object.keys(obj).reduce(
107
- (acc, key) => {
108
- const value = obj[key];
109
- if (value !== null && value !== void 0) {
110
- acc[key] = value;
111
- }
112
- return acc;
113
- },
114
- {}
115
- );
116
- }
117
- function isEmptyObject(obj) {
118
- return Object.keys(obj).length === 0 && obj.constructor === Object;
119
- }
120
- function isFunction(maybeFn) {
121
- return Boolean(maybeFn instanceof Function || typeof maybeFn === "function");
122
- }
123
- function callOrReturn(maybeFn, fnArgs) {
124
- if (isFunction(maybeFn)) {
125
- return maybeFn(fnArgs);
126
- }
127
- return maybeFn;
128
- }
129
-
130
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/url.ts
131
- function buildUrl(url, params = {}) {
132
- const baseUrl = new URL(url);
133
- if (params && isEmptyObject(params)) {
134
- return baseUrl.toString();
135
- }
136
- Object.keys(params).forEach((key) => {
137
- const value = params[key];
138
- baseUrl.searchParams.append(key, String(value));
139
- });
140
- return baseUrl.toString();
141
- }
142
-
143
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/utils/shared-constants.tsx
144
- function useGetConstantByType(type, key) {
145
- const player = usePlayer();
146
- return player?.constantsController.getConstants(key, type);
147
- }
148
- function useGetConstant(key) {
149
- const player = usePlayer();
150
- return player?.constantsController.getConstants(key, "constants");
151
- }
152
-
153
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/app.tsx
154
- import React3 from "react";
155
- var ReactPlayer = ({ view }) => {
156
- return /* @__PURE__ */ React3.createElement(ReactAsset, { ...view });
157
- };
158
- var app_default = ReactPlayer;
159
-
160
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/plugins/onupdate-plugin.ts
161
- var OnUpdatePlugin = class {
162
- constructor(onUpdate) {
163
- this.name = "view-update";
164
- this.onUpdateCallback = onUpdate;
165
- }
166
- apply(player) {
167
- const updateTap = (updatedView) => {
168
- this.onUpdateCallback(updatedView);
169
- };
170
- const viewTap = (view) => {
171
- view.hooks.onUpdate.tap(this.name, updateTap);
172
- };
173
- player.hooks.view.tap(this.name, viewTap);
174
- const currentPlayerState = player.getState();
175
- if (currentPlayerState.status === "in-progress") {
176
- const { currentView } = currentPlayerState.controllers.view;
177
- if (currentView) {
178
- viewTap(currentView);
179
- const { lastUpdate } = currentView;
180
- if (lastUpdate) {
181
- this.onUpdateCallback(lastUpdate);
182
- }
183
- }
184
- }
185
- }
186
- };
187
-
188
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/player.tsx
189
- var WEB_PLAYER_VERSION = "__VERSION__";
190
- var COMMIT = "__GIT_COMMIT__";
191
- var _window = typeof window === "undefined" ? void 0 : window;
192
- var ReactPlayer2 = class {
193
- constructor(options) {
194
- this.assetRegistry = new Registry();
195
- this.hooks = {
196
- /**
197
- * A hook to create a React Component to be used for Player, regardless of the current flow state
198
- */
199
- webComponent: new SyncWaterfallHook(),
200
- /**
201
- * A hook to create a React Component that's used to render a specific view.
202
- * It will be called for each view update from the core player.
203
- * Typically this will just be `Asset`
204
- */
205
- playerComponent: new SyncWaterfallHook(),
206
- /**
207
- * A hook to execute async tasks before the view resets to undefined
208
- */
209
- onBeforeViewReset: new AsyncParallelHook()
210
- };
211
- this.viewUpdateSubscription = new Subscribe();
212
- this.options = options ?? {};
213
- const Devtools = _window?.__PLAYER_DEVTOOLS_PLUGIN;
214
- const onUpdatePlugin = new OnUpdatePlugin(
215
- this.viewUpdateSubscription.publish
216
- );
217
- const plugins = options?.plugins ?? [];
218
- if (Devtools) {
219
- plugins.push(new Devtools());
220
- }
221
- const playerPlugins = plugins.filter(
222
- (p) => Boolean(p.apply)
223
- );
224
- this.player = options?.player ?? new Player({ plugins: playerPlugins });
225
- plugins.forEach((plugin) => {
226
- if (plugin.applyReact) {
227
- plugin.applyReact(this);
228
- }
229
- });
230
- onUpdatePlugin.apply(this.player);
231
- this.Component = this.createReactPlayerComponent();
232
- this.reactPlayerInfo = {
233
- playerVersion: this.player.getVersion(),
234
- playerCommit: this.player.getCommit(),
235
- reactPlayerVersion: WEB_PLAYER_VERSION,
236
- reactPlayerCommit: COMMIT
237
- };
238
- }
239
- /** Returns the current version of the underlying core Player */
240
- getPlayerVersion() {
241
- return this.reactPlayerInfo.playerVersion;
242
- }
243
- /** Returns the git commit used to build this core Player version */
244
- getPlayerCommit() {
245
- return this.reactPlayerInfo.playerCommit;
246
- }
247
- /** Find instance of [Plugin] that has been registered to the web player */
248
- findPlugin(symbol) {
249
- return this.options.plugins?.find((el) => el.symbol === symbol);
250
- }
251
- /** Register and apply [Plugin] if one with the same symbol is not already registered. */
252
- registerPlugin(plugin) {
253
- if (!plugin.applyReact)
254
- return;
255
- plugin.applyReact(this);
256
- this.options.plugins?.push(plugin);
257
- }
258
- /** Returns the current version of the running React Player */
259
- getReactPlayerVersion() {
260
- return this.reactPlayerInfo.reactPlayerVersion;
261
- }
262
- /** Returns the git commit used to build the React Player version */
263
- getReactPlayerCommit() {
264
- return this.reactPlayerInfo.reactPlayerCommit;
265
- }
266
- createReactPlayerComponent() {
267
- const BaseComp = this.hooks.webComponent.call(this.createReactComp());
268
- const ReactPlayerComponent = (props) => {
269
- return /* @__PURE__ */ React4.createElement(
270
- ErrorBoundary,
271
- {
272
- fallbackRender: () => null,
273
- onError: (err) => {
274
- const playerState = this.player.getState();
275
- if (playerState.status === "in-progress") {
276
- playerState.fail(err);
277
- }
278
- }
279
- },
280
- /* @__PURE__ */ React4.createElement(PlayerContext.Provider, { value: { player: this.player } }, /* @__PURE__ */ React4.createElement(BaseComp, { ...props }))
281
- );
282
- };
283
- return ReactPlayerComponent;
284
- }
285
- createReactComp() {
286
- const ActualPlayerComp = this.hooks.playerComponent.call(app_default);
287
- const WebPlayerComponent = () => {
288
- const view = useSubscribedState(this.viewUpdateSubscription);
289
- this.viewUpdateSubscription.suspend();
290
- return /* @__PURE__ */ React4.createElement(
291
- AssetContext.Provider,
292
- {
293
- value: {
294
- registry: this.assetRegistry
295
- }
296
- },
297
- view && /* @__PURE__ */ React4.createElement(ActualPlayerComp, { view })
298
- );
299
- };
300
- return WebPlayerComponent;
301
- }
302
- /**
303
- * Call this method to force the ReactPlayer to wait for the next view-update before performing the next render.
304
- * If the `suspense` option is set, this will suspend while an update is pending, otherwise nothing will be rendered.
305
- */
306
- setWaitForNextViewUpdate() {
307
- const shouldCallResetHook = this.hooks.onBeforeViewReset.isUsed();
308
- return this.viewUpdateSubscription.reset(
309
- shouldCallResetHook ? this.hooks.onBeforeViewReset.call() : void 0
310
- );
311
- }
312
- start(flow) {
313
- this.setWaitForNextViewUpdate();
314
- return this.player.start(flow).finally(async () => {
315
- await this.setWaitForNextViewUpdate();
316
- });
317
- }
318
- };
319
- var WebPlayer = ReactPlayer2;
320
-
321
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/hooks.tsx
322
- import { NOT_STARTED_STATE } from "@player-ui/player";
323
- import React5 from "react";
324
-
325
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/plugins/tapstate-plugin.ts
326
- var StateTapPlugin = class {
327
- constructor(callback) {
328
- this.name = "statetap";
329
- this.callbackFunction = callback;
330
- }
331
- apply(player) {
332
- player.hooks.state.tap("usePlayer", (newPlayerState) => {
333
- this.callbackFunction(newPlayerState);
334
- });
335
- }
336
- };
337
-
338
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/hooks.tsx
339
- var useReactPlayer = (options) => {
340
- const [playerState, setPlayerState] = React5.useState(NOT_STARTED_STATE);
341
- const reactPlayer = React5.useMemo(() => {
342
- const rp = new ReactPlayer2({
343
- player: options?.player,
344
- plugins: [
345
- ...options?.plugins ?? [],
346
- new StateTapPlugin(setPlayerState)
347
- ]
348
- });
349
- return rp;
350
- }, []);
351
- const { player } = reactPlayer;
352
- return {
353
- reactPlayer,
354
- player,
355
- playerState
356
- };
357
- };
358
-
359
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/manager/managed-player.tsx
360
- import React6 from "react";
361
- import { useSyncExternalStore } from "use-sync-external-store/shim";
362
-
363
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/manager/request-time.tsx
364
- import { useCallback, useEffect, useRef, useMemo } from "react";
365
- import {
366
- MetricsCorePluginSymbol,
367
- RequestTimeWebPlugin
368
- } from "@player-ui/metrics-plugin";
369
- var useRequestTime = () => {
370
- const requestTimeRef = useRef({});
371
- useEffect(() => {
372
- return () => {
373
- requestTimeRef.current = {};
374
- };
375
- }, [requestTimeRef]);
376
- const getRequestTime = useCallback(() => {
377
- const { end, start } = requestTimeRef.current;
378
- if (end && start) {
379
- return end - start;
380
- }
381
- }, [requestTimeRef]);
382
- function withRequestTime(nextPromise) {
383
- const getTime = typeof performance === "undefined" ? Date : performance;
384
- requestTimeRef.current = { start: getTime.now() };
385
- return nextPromise.finally(() => {
386
- requestTimeRef.current = {
387
- ...requestTimeRef.current,
388
- end: getTime.now()
389
- };
390
- });
391
- }
392
- const RequestTimeMetricsPlugin = useMemo(() => {
393
- return {
394
- name: "RequestTimeMetricsPlugin",
395
- apply(player) {
396
- player.applyTo(
397
- MetricsCorePluginSymbol,
398
- (metricsCorePlugin) => {
399
- new RequestTimeWebPlugin(getRequestTime).apply(metricsCorePlugin);
400
- }
401
- );
402
- }
403
- };
404
- }, [getRequestTime]);
405
- return { withRequestTime, RequestTimeMetricsPlugin };
406
- };
407
-
408
- // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/react/player/src/manager/managed-player.tsx
409
- function identityMiddleware(next) {
410
- return next;
411
- }
412
- var ManagedState = class {
413
- constructor({
414
- middleware
415
- }) {
416
- this.middleware = middleware;
417
- this.callbacks = [];
418
- }
419
- /** Add a listener to state changes */
420
- addListener(callback) {
421
- this.callbacks.push(callback);
422
- return () => {
423
- this.callbacks = this.callbacks.filter((s) => s !== callback);
424
- };
425
- }
426
- /** start the managed flow */
427
- start(options) {
428
- const initialState = {
429
- value: "not_started",
430
- context: {
431
- playerConfig: options.playerConfig,
432
- reactPlayer: new ReactPlayer2(options.playerConfig),
433
- manager: options.manager
434
- }
435
- };
436
- this.setState(initialState);
437
- return this;
438
- }
439
- /** reset starts from nothing */
440
- reset() {
441
- if (this.state?.value === "error") {
442
- const { playerConfig, manager } = this.state.context;
443
- this.start({ playerConfig, manager });
444
- } else {
445
- throw new Error("Flow must be in error state to reset");
446
- }
447
- }
448
- /** restart starts from the last result */
449
- restart() {
450
- if (this.state?.value === "error") {
451
- const { playerConfig, manager, prevResult, reactPlayer } = this.state.context;
452
- this.setState({
453
- value: "completed",
454
- context: {
455
- playerConfig,
456
- manager,
457
- result: prevResult,
458
- reactPlayer
459
- }
460
- });
461
- } else {
462
- throw new Error("Flow must be in error state to restart");
463
- }
464
- }
465
- async setState(state) {
466
- this.state = state;
467
- this.callbacks.forEach((c) => {
468
- if (c && typeof c === "function") {
469
- c(this.state);
470
- }
471
- });
472
- const { manager, reactPlayer, playerConfig } = state.context;
473
- try {
474
- const nextState = await this.processState(state, {
475
- manager,
476
- reactPlayer,
477
- playerConfig
478
- });
479
- if (nextState) {
480
- this.setState(nextState);
481
- }
482
- } catch (e) {
483
- this.setState({
484
- value: "error",
485
- context: {
486
- manager,
487
- reactPlayer,
488
- playerConfig,
489
- error: e
490
- }
491
- });
492
- }
493
- }
494
- async processState(state, context) {
495
- if (state.value === "not_started" || state.value === "completed") {
496
- const prevResult = state.value === "completed" ? state.context.result : void 0;
497
- const middleware = this.middleware?.next ?? identityMiddleware;
498
- return {
499
- value: "pending",
500
- context: {
501
- ...context,
502
- prevResult,
503
- next: middleware(state.context.manager.next(prevResult))
504
- }
505
- };
506
- }
507
- if (state.value === "pending") {
508
- const nextResult = await state.context.next;
509
- if (nextResult.done) {
510
- return {
511
- value: "ended",
512
- context: {
513
- ...context,
514
- result: state.context.prevResult
515
- }
516
- };
517
- }
518
- return {
519
- value: "loaded",
520
- context: {
521
- ...context,
522
- prevResult: state.context.prevResult,
523
- flow: nextResult.value
524
- }
525
- };
526
- }
527
- if (state.value === "loaded") {
528
- return {
529
- value: "running",
530
- context: {
531
- ...context,
532
- flow: state.context.flow,
533
- prevResult: state.context.prevResult,
534
- result: state.context.reactPlayer.start(state.context.flow)
535
- }
536
- };
537
- }
538
- if (state.value === "running") {
539
- const result = await state.context.result;
540
- return {
541
- value: "completed",
542
- context: {
543
- ...context,
544
- result
545
- }
546
- };
547
- }
548
- }
549
- };
550
- var managedPlayerStateMachines = /* @__PURE__ */ new WeakMap();
551
- function createKey() {
552
- return {
553
- _key: Symbol("managed-player")
554
- };
555
- }
556
- var usePersistentStateMachine = (options) => {
557
- const mounted = React6.useRef(false);
558
- const previousManager = React6.useRef(options.manager);
559
- const keyRef = React6.useRef(createKey());
560
- const managedStateRef = React6.useRef(
561
- new ManagedState({ middleware: options.middleware })
562
- );
563
- if (!mounted.current) {
564
- managedPlayerStateMachines.set(keyRef.current, managedStateRef.current);
565
- mounted.current = true;
566
- }
567
- if (previousManager.current !== options.manager) {
568
- const oldManagedState = managedPlayerStateMachines.get(keyRef.current);
569
- if (oldManagedState) {
570
- const playerState = oldManagedState.state?.context.reactPlayer.player.getState();
571
- if (oldManagedState.state?.value === "running" && playerState?.status === "in-progress") {
572
- previousManager.current.terminate?.(
573
- playerState.controllers.data.serialize()
574
- );
575
- }
576
- }
577
- const newKey = createKey();
578
- const newManagedState = new ManagedState({
579
- middleware: options.middleware
580
- });
581
- managedPlayerStateMachines.set(newKey, newManagedState);
582
- keyRef.current = newKey;
583
- managedStateRef.current = newManagedState;
584
- previousManager.current = options.manager;
585
- }
586
- const managedState = managedPlayerStateMachines.get(keyRef.current) ?? managedStateRef.current;
587
- function subscription(callback) {
588
- if (managedState) {
589
- const unsub = managedState.addListener((s) => {
590
- callback(s);
591
- });
592
- return () => {
593
- if (managedState) {
594
- unsub();
595
- }
596
- };
597
- }
598
- return () => {
599
- };
600
- }
601
- function getSnapshot() {
602
- return managedState.state;
603
- }
604
- const state = useSyncExternalStore(
605
- subscription,
606
- getSnapshot,
607
- () => void 0
608
- );
609
- if (managedState.state === void 0) {
610
- managedState.start(options);
611
- }
612
- return { managedState, state };
613
- };
614
- var ManagedPlayer = (props) => {
615
- const { withRequestTime, RequestTimeMetricsPlugin } = useRequestTime();
616
- const { state, managedState } = usePersistentStateMachine({
617
- manager: props.manager,
618
- middleware: { next: withRequestTime },
619
- playerConfig: {
620
- plugins: [...props?.plugins ?? [], RequestTimeMetricsPlugin],
621
- player: props.player
622
- }
623
- });
624
- const previousState = React6.useRef();
625
- if (state?.value !== previousState.current?.value) {
626
- if (state?.value === "ended") {
627
- props.onComplete?.(state?.context.result);
628
- } else if (state?.value === "error") {
629
- props.onError?.(state?.context.error);
630
- } else if (state?.value === "running") {
631
- props.onStartedFlow?.();
632
- }
633
- }
634
- previousState.current = state;
635
- React6.useEffect(() => {
636
- return () => {
637
- const playerState = state?.context.reactPlayer.player.getState();
638
- if (state?.value === "running" && playerState?.status === "in-progress") {
639
- props.manager.terminate?.(playerState.controllers.data.serialize());
640
- }
641
- };
642
- }, [props.manager, state?.context.reactPlayer.player, state?.value]);
643
- if (state?.value === "error") {
644
- if (props.fallbackComponent) {
645
- return /* @__PURE__ */ React6.createElement(
646
- props.fallbackComponent,
647
- {
648
- reset: () => {
649
- managedState.reset();
650
- },
651
- retry: () => {
652
- managedState.restart();
653
- },
654
- error: state.context.error
655
- }
656
- );
657
- }
658
- if (!props.onError) {
659
- throw state.context.error;
660
- }
661
- }
662
- if (state?.context.reactPlayer) {
663
- const { Component } = state.context.reactPlayer;
664
- return /* @__PURE__ */ React6.createElement(Component, null);
665
- }
666
- return null;
667
- };
668
- export {
669
- AssetContext,
670
- ManagedPlayer,
671
- PlayerContext,
672
- ReactAsset,
673
- ReactPlayer2 as ReactPlayer,
674
- WebPlayer,
675
- buildUrl,
676
- callOrReturn,
677
- isEmptyObject,
678
- isFunction,
679
- removeEmptyValuesFromObject,
680
- trimSlashes,
681
- useAssetProps,
682
- useGetConstant,
683
- useGetConstantByType,
684
- useLogger,
685
- usePersistentStateMachine,
686
- usePlayer,
687
- useReactPlayer,
688
- useRequestTime
689
- };
690
- //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -6,13 +6,13 @@
6
6
  "types"
7
7
  ],
8
8
  "name": "@player-ui/react",
9
- "version": "0.14.1--canary.720.27388",
9
+ "version": "0.14.1--canary.720.27413",
10
10
  "main": "dist/cjs/index.cjs",
11
11
  "dependencies": {
12
- "@player-ui/metrics-plugin": "0.14.1--canary.720.27388",
13
- "@player-ui/partial-match-registry": "0.14.1--canary.720.27388",
14
- "@player-ui/player": "0.14.1--canary.720.27388",
15
- "@player-ui/react-subscribe": "0.14.1--canary.720.27388",
12
+ "@player-ui/metrics-plugin": "0.14.1--canary.720.27413",
13
+ "@player-ui/partial-match-registry": "0.14.1--canary.720.27413",
14
+ "@player-ui/player": "0.14.1--canary.720.27413",
15
+ "@player-ui/react-subscribe": "0.14.1--canary.720.27413",
16
16
  "react-error-boundary": "^3.1.3",
17
17
  "tapable-ts": "^0.2.3",
18
18
  "leven": "3.1.0",