@streamlayer/web-os 0.4.2 → 0.4.3
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/lib/cjs/gamification-feature2.js +1 -1
- package/lib/cjs/index2.js +3 -3
- package/lib/classic/cjs/classic2.js +2 -2
- package/lib/classic/cjs/gamification-feature3.js +1 -1
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/es/classic2.js +11 -11
- package/lib/classic/es/gamification-feature3.js +2 -2
- package/lib/classic/es/index2.js +11 -11
- package/lib/classic/es/index3.js +1 -1
- package/lib/es/gamification-feature2.js +2 -2
- package/lib/es/index2.js +61 -61
- package/package.json +16 -16
|
@@ -8226,7 +8226,7 @@ const aR = ({
|
|
|
8226
8226
|
p = true;
|
|
8227
8227
|
};
|
|
8228
8228
|
const W8 = zb(e10, n, l, {
|
|
8229
|
-
version: "1.21.
|
|
8229
|
+
version: "1.21.3",
|
|
8230
8230
|
onDeepLinkHandled: o,
|
|
8231
8231
|
videoPlayerController: i,
|
|
8232
8232
|
onContentActivate: a,
|
|
@@ -8588,7 +8588,7 @@ const J = $5, S5 = () => [
|
|
|
8588
8588
|
(e10) => {
|
|
8589
8589
|
window.requestAnimationFrame(() => e10());
|
|
8590
8590
|
}
|
|
8591
|
-
], k5 =
|
|
8591
|
+
], k5 = React36__default.useTransition || S5, V5 = {
|
|
8592
8592
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
8593
8593
|
WHITE: "#FFFFFF",
|
|
8594
8594
|
BLUE: "#2d6ffd",
|
|
@@ -10604,8 +10604,8 @@ function ls() {
|
|
|
10604
10604
|
return Math.abs(G - n1);
|
|
10605
10605
|
}
|
|
10606
10606
|
if (x3 === "edges") {
|
|
10607
|
-
var b1 = Math.min(X, Q8), c1 = Math.min(z, u1), $1 = Math.max(X, Q8), B1 = Math.max(z, u1),
|
|
10608
|
-
return Math.min(
|
|
10607
|
+
var b1 = Math.min(X, Q8), c1 = Math.min(z, u1), $1 = Math.max(X, Q8), B1 = Math.max(z, u1), O1 = Math.abs(b1 - c1), S1 = Math.abs($1 - B1);
|
|
10608
|
+
return Math.min(O1, S1);
|
|
10609
10609
|
}
|
|
10610
10610
|
var C2 = [Math.abs(z - X), Math.abs(z - Q8), Math.abs(u1 - X), Math.abs(u1 - Q8)];
|
|
10611
10611
|
return Math.min.apply(Math, C2);
|
|
@@ -10616,8 +10616,8 @@ function ls() {
|
|
|
10616
10616
|
return F.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(U.focusKey, " relative to ").concat(x3, " is"), z, u1, G), F.log("smartNavigate", "priority for ".concat(U.focusKey, " relative to ").concat(x3, " is"), n1), F.visualDebugger && (F.visualDebugger.drawPoint(t1.a.x, t1.a.y, "yellow", 6), F.visualDebugger.drawPoint(t1.b.x, t1.b.y, "yellow", 6)), n1;
|
|
10617
10617
|
});
|
|
10618
10618
|
}, T2.prototype.init = function(h2) {
|
|
10619
|
-
var b3 = this, I = h2 === void 0 ? {} : h2, x3 = I.debug, F = x3 !== void 0 && x3, q5 = I.visualDebug, B5 = q5 !== void 0 && q5, U = I.nativeMode, t1 = U !== void 0 && U, e1 = I.throttle, X = e1 === void 0 ? 0 : e1, Q8 = I.throttleKeypresses, z = Q8 !== void 0 && Q8, u1 = I.useGetBoundingClientRect, G = u1 !== void 0 && u1, n1 = I.shouldFocusDOMNode, b1 = n1 !== void 0 && n1, c1 = I.domNodeFocusOptions, $1 = c1 === void 0 ? {} : c1, B1 = I.shouldUseNativeEvents,
|
|
10620
|
-
if (!this.enabled && (this.domNodeFocusOptions = $1, this.enabled = true, this.nativeMode = t1, this.throttleKeypresses = z, this.useGetBoundingClientRect = G, this.shouldFocusDOMNode = b1 && !t1, this.shouldUseNativeEvents =
|
|
10619
|
+
var b3 = this, I = h2 === void 0 ? {} : h2, x3 = I.debug, F = x3 !== void 0 && x3, q5 = I.visualDebug, B5 = q5 !== void 0 && q5, U = I.nativeMode, t1 = U !== void 0 && U, e1 = I.throttle, X = e1 === void 0 ? 0 : e1, Q8 = I.throttleKeypresses, z = Q8 !== void 0 && Q8, u1 = I.useGetBoundingClientRect, G = u1 !== void 0 && u1, n1 = I.shouldFocusDOMNode, b1 = n1 !== void 0 && n1, c1 = I.domNodeFocusOptions, $1 = c1 === void 0 ? {} : c1, B1 = I.shouldUseNativeEvents, O1 = B1 !== void 0 && B1, S1 = I.rtl, C2 = S1 !== void 0 && S1, h1 = I.distanceCalculationMethod, _1 = h1 === void 0 ? "corners" : h1, it2 = I.customDistanceCalculationFunction, $7 = it2 === void 0 ? void 0 : it2;
|
|
10620
|
+
if (!this.enabled && (this.domNodeFocusOptions = $1, this.enabled = true, this.nativeMode = t1, this.throttleKeypresses = z, this.useGetBoundingClientRect = G, this.shouldFocusDOMNode = b1 && !t1, this.shouldUseNativeEvents = O1, this.writingDirection = C2 ? C1.default.RTL : C1.default.LTR, this.distanceCalculationMethod = _1, this.customDistanceCalculationFunction = $7, this.debug = F, !this.nativeMode && (Number.isInteger(X) && X > 0 && (this.throttle = X), this.bindEventHandlers(), B5))) {
|
|
10621
10621
|
this.visualDebugger = new I1.default(this.writingDirection);
|
|
10622
10622
|
var st2 = function() {
|
|
10623
10623
|
requestAnimationFrame(function() {
|
|
@@ -10769,12 +10769,12 @@ function ls() {
|
|
|
10769
10769
|
var b3 = h2.focusKey, I = h2.node, x3 = h2.parentFocusKey, F = h2.onEnterPress, q5 = h2.onEnterRelease, B5 = h2.onArrowPress, U = h2.onArrowRelease, t1 = h2.onFocus, e1 = h2.onBlur, X = h2.saveLastFocusedChild, Q8 = h2.trackChildren, z = h2.onUpdateFocus, u1 = h2.onUpdateHasFocusedChild, G = h2.preferredChildFocusKey, n1 = h2.autoRestoreFocus, b1 = h2.forceFocus, c1 = h2.focusable, $1 = h2.isFocusBoundary, B1 = h2.focusBoundaryDirections;
|
|
10770
10770
|
if (this.focusableComponents[b3] = { focusKey: b3, node: I, parentFocusKey: x3, onEnterPress: F, onEnterRelease: q5, onArrowPress: B5, onArrowRelease: U, onFocus: t1, onBlur: e1, onUpdateFocus: z, onUpdateHasFocusedChild: u1, saveLastFocusedChild: X, trackChildren: Q8, preferredChildFocusKey: G, focusable: c1, isFocusBoundary: $1, focusBoundaryDirections: B1, autoRestoreFocus: n1, forceFocus: b1, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: I }, layoutUpdated: false }, I || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[b3]), !this.nativeMode) {
|
|
10771
10771
|
this.updateLayout(b3), this.log("addFocusable", "Component added: ", this.focusableComponents[b3]), b3 === this.focusKey && this.setFocus(G || b3);
|
|
10772
|
-
for (var
|
|
10773
|
-
if (
|
|
10772
|
+
for (var O1 = this.focusableComponents[this.focusKey]; O1; ) {
|
|
10773
|
+
if (O1.parentFocusKey === b3) {
|
|
10774
10774
|
this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
|
|
10775
10775
|
break;
|
|
10776
10776
|
}
|
|
10777
|
-
|
|
10777
|
+
O1 = this.focusableComponents[O1.parentFocusKey];
|
|
10778
10778
|
}
|
|
10779
10779
|
}
|
|
10780
10780
|
}, T2.prototype.removeFocusable = function(h2) {
|
|
@@ -10981,14 +10981,14 @@ function ls() {
|
|
|
10981
10981
|
x3(h1, B5, _1);
|
|
10982
10982
|
}, [B5, x3]), z = (0, _6.useCallback)(function(h1, _1) {
|
|
10983
10983
|
q5(h1, B5, _1);
|
|
10984
|
-
}, [B5, q5]), u1 = (0, _6.useRef)(null), G = (0, _6.useState)(false), n1 = G[0], b1 = G[1], c1 = (0, _6.useState)(false), $1 = c1[0], B1 = c1[1],
|
|
10984
|
+
}, [B5, q5]), u1 = (0, _6.useRef)(null), G = (0, _6.useState)(false), n1 = G[0], b1 = G[1], c1 = (0, _6.useState)(false), $1 = c1[0], B1 = c1[1], O1 = (0, H.useFocusContext)(), S1 = (0, _6.useMemo)(function() {
|
|
10985
10985
|
return x1 || (0, k2.default)("sn:focusable-item-");
|
|
10986
10986
|
}, [x1]), C2 = (0, _6.useCallback)(function(h1) {
|
|
10987
10987
|
h1 === void 0 && (h1 = {}), V.SpatialNavigation.setFocus(S1, h1);
|
|
10988
10988
|
}, [S1]);
|
|
10989
10989
|
return (0, _6.useEffect)(function() {
|
|
10990
10990
|
var h1 = u1.current;
|
|
10991
|
-
return V.SpatialNavigation.addFocusable({ focusKey: S1, node: h1, parentFocusKey:
|
|
10991
|
+
return V.SpatialNavigation.addFocusable({ focusKey: S1, node: h1, parentFocusKey: O1, preferredChildFocusKey: Y, onEnterPress: U, onEnterRelease: t1, onArrowPress: e1, onArrowRelease: X, onFocus: Q8, onBlur: z, onUpdateFocus: function(_1) {
|
|
10992
10992
|
return _1 === void 0 && (_1 = false), b1(_1);
|
|
10993
10993
|
}, onUpdateHasFocusedChild: function(_1) {
|
|
10994
10994
|
return _1 === void 0 && (_1 = false), B1(_1);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { t as tsEnum, e as enumDesc, f as fileDesc, c as file_streamlayer_analytics_v1_common_analytics_common, d as file_google_protobuf_timestamp, A as A$2, s as styled_default, i as i$5, I as I$4, j as s$3, B as B1, k as f$2, u as useStore, l as r$5, S as S$1, O, m as b$2, R as R$1, D, w as wt, p as p$6, n as useTransition, o as l$6, q as cx_default, v as S$2, x as m$5, y as d$3, z as n$4, C as C$2 } from "./index3.js";
|
|
3
|
-
import { useRef, useState, useCallback, useEffect } from "react";
|
|
4
|
-
import "nanostores";
|
|
5
3
|
import "@noriginmedia/norigin-spatial-navigation";
|
|
4
|
+
import { useRef, useState, useCallback, useEffect } from "react";
|
|
6
5
|
import "react-countdown-circle-timer";
|
|
7
6
|
import { createPortal } from "react-dom";
|
|
8
7
|
import "react-countup";
|
|
8
|
+
import "nanostores";
|
|
9
9
|
import "lodash.throttle";
|
|
10
10
|
import Xn from "react-infinite-scroller";
|
|
11
11
|
const file_streamlayer_analytics_v1_invitations_invitations = /* @__PURE__ */ fileDesc("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnMvaW52aXRhdGlvbnMucHJvdG8SJHN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucyLhAgoXVG90YWxJbnZpdGF0aW9uc1JlcXVlc3QSYAoGZmlsdGVyGAEgASgLMlAuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchrjAQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBJMCgpjYXRlZ29yaWVzGAMgAygOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kIrABChhUb3RhbEludml0YXRpb25zUmVzcG9uc2USXgoEZGF0YRgBIAMoCzJQLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zUmVzcG9uc2UuVG90YWxSZXNwb25zZURhdGEaNAoRVG90YWxSZXNwb25zZURhdGESEAoIZXZlbnRfaWQYASABKAQSDQoFY291bnQYAiABKAQiqQIKJVRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QScQoGZmlsdGVyGAEgASgLMmEuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25z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dHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnM7c2xfaW52aXRhdGlvbnOiAgZTTF9BUEliBnByb3RvMw", [file_streamlayer_analytics_v1_common_analytics_common, file_google_protobuf_timestamp]);
|
package/lib/classic/es/index2.js
CHANGED
|
@@ -8226,7 +8226,7 @@ const aR = ({
|
|
|
8226
8226
|
p = true;
|
|
8227
8227
|
};
|
|
8228
8228
|
const W7 = zb(e5, n, l, {
|
|
8229
|
-
version: "1.21.
|
|
8229
|
+
version: "1.21.3",
|
|
8230
8230
|
onDeepLinkHandled: o,
|
|
8231
8231
|
videoPlayerController: i,
|
|
8232
8232
|
onContentActivate: a,
|
|
@@ -8588,7 +8588,7 @@ const J = V7, O7 = () => [
|
|
|
8588
8588
|
(e5) => {
|
|
8589
8589
|
window.requestAnimationFrame(() => e5());
|
|
8590
8590
|
}
|
|
8591
|
-
], H7 =
|
|
8591
|
+
], H7 = React36__default.useTransition || O7, D7 = {
|
|
8592
8592
|
BLUE_QUESTION_ACTION_BTN: "#1589ee",
|
|
8593
8593
|
WHITE: "#FFFFFF",
|
|
8594
8594
|
BLUE: "#2d6ffd",
|
|
@@ -10605,8 +10605,8 @@ function vs() {
|
|
|
10605
10605
|
return Math.abs(G - n1);
|
|
10606
10606
|
}
|
|
10607
10607
|
if (R === "edges") {
|
|
10608
|
-
var b1 = Math.min(X, Q7), c1 = Math.min(z, u1), k1 = Math.max(X, Q7), P1 = Math.max(z, u1),
|
|
10609
|
-
return Math.min(
|
|
10608
|
+
var b1 = Math.min(X, Q7), c1 = Math.min(z, u1), k1 = Math.max(X, Q7), P1 = Math.max(z, u1), N1 = Math.abs(b1 - c1), M1 = Math.abs(k1 - P1);
|
|
10609
|
+
return Math.min(N1, M1);
|
|
10610
10610
|
}
|
|
10611
10611
|
var h22 = [Math.abs(z - X), Math.abs(z - Q7), Math.abs(u1 - X), Math.abs(u1 - Q7)];
|
|
10612
10612
|
return Math.min.apply(Math, h22);
|
|
@@ -10617,8 +10617,8 @@ function vs() {
|
|
|
10617
10617
|
return V.log("smartNavigate", "distance (primary, secondary, total weighted) for ".concat(U.focusKey, " relative to ").concat(R, " is"), z, u1, G), V.log("smartNavigate", "priority for ".concat(U.focusKey, " relative to ").concat(R, " is"), n1), V.visualDebugger && (V.visualDebugger.drawPoint(t1.a.x, t1.a.y, "yellow", 6), V.visualDebugger.drawPoint(t1.b.x, t1.b.y, "yellow", 6)), n1;
|
|
10618
10618
|
});
|
|
10619
10619
|
}, x2.prototype.init = function(h2) {
|
|
10620
|
-
var b3 = this, I = h2 === void 0 ? {} : h2, R = I.debug, V = R !== void 0 && R, q10 = I.visualDebug, B6 = q10 !== void 0 && q10, U = I.nativeMode, t1 = U !== void 0 && U, e1 = I.throttle, X = e1 === void 0 ? 0 : e1, Q7 = I.throttleKeypresses, z = Q7 !== void 0 && Q7, u1 = I.useGetBoundingClientRect, G = u1 !== void 0 && u1, n1 = I.shouldFocusDOMNode, b1 = n1 !== void 0 && n1, c1 = I.domNodeFocusOptions, k1 = c1 === void 0 ? {} : c1, P1 = I.shouldUseNativeEvents,
|
|
10621
|
-
if (!this.enabled && (this.domNodeFocusOptions = k1, this.enabled = true, this.nativeMode = t1, this.throttleKeypresses = z, this.useGetBoundingClientRect = G, this.shouldFocusDOMNode = b1 && !t1, this.shouldUseNativeEvents =
|
|
10620
|
+
var b3 = this, I = h2 === void 0 ? {} : h2, R = I.debug, V = R !== void 0 && R, q10 = I.visualDebug, B6 = q10 !== void 0 && q10, U = I.nativeMode, t1 = U !== void 0 && U, e1 = I.throttle, X = e1 === void 0 ? 0 : e1, Q7 = I.throttleKeypresses, z = Q7 !== void 0 && Q7, u1 = I.useGetBoundingClientRect, G = u1 !== void 0 && u1, n1 = I.shouldFocusDOMNode, b1 = n1 !== void 0 && n1, c1 = I.domNodeFocusOptions, k1 = c1 === void 0 ? {} : c1, P1 = I.shouldUseNativeEvents, N1 = P1 !== void 0 && P1, M1 = I.rtl, h22 = M1 !== void 0 && M1, h1 = I.distanceCalculationMethod, E1 = h1 === void 0 ? "corners" : h1, at2 = I.customDistanceCalculationFunction, Vn2 = at2 === void 0 ? void 0 : at2;
|
|
10621
|
+
if (!this.enabled && (this.domNodeFocusOptions = k1, this.enabled = true, this.nativeMode = t1, this.throttleKeypresses = z, this.useGetBoundingClientRect = G, this.shouldFocusDOMNode = b1 && !t1, this.shouldUseNativeEvents = N1, this.writingDirection = h22 ? C1.default.RTL : C1.default.LTR, this.distanceCalculationMethod = E1, this.customDistanceCalculationFunction = Vn2, this.debug = V, !this.nativeMode && (Number.isInteger(X) && X > 0 && (this.throttle = X), this.bindEventHandlers(), B6))) {
|
|
10622
10622
|
this.visualDebugger = new I1.default(this.writingDirection);
|
|
10623
10623
|
var ot2 = function() {
|
|
10624
10624
|
requestAnimationFrame(function() {
|
|
@@ -10770,12 +10770,12 @@ function vs() {
|
|
|
10770
10770
|
var b3 = h2.focusKey, I = h2.node, R = h2.parentFocusKey, V = h2.onEnterPress, q10 = h2.onEnterRelease, B6 = h2.onArrowPress, U = h2.onArrowRelease, t1 = h2.onFocus, e1 = h2.onBlur, X = h2.saveLastFocusedChild, Q7 = h2.trackChildren, z = h2.onUpdateFocus, u1 = h2.onUpdateHasFocusedChild, G = h2.preferredChildFocusKey, n1 = h2.autoRestoreFocus, b1 = h2.forceFocus, c1 = h2.focusable, k1 = h2.isFocusBoundary, P1 = h2.focusBoundaryDirections;
|
|
10771
10771
|
if (this.focusableComponents[b3] = { focusKey: b3, node: I, parentFocusKey: R, onEnterPress: V, onEnterRelease: q10, onArrowPress: B6, onArrowRelease: U, onFocus: t1, onBlur: e1, onUpdateFocus: z, onUpdateHasFocusedChild: u1, saveLastFocusedChild: X, trackChildren: Q7, preferredChildFocusKey: G, focusable: c1, isFocusBoundary: k1, focusBoundaryDirections: P1, autoRestoreFocus: n1, forceFocus: b1, lastFocusedChildKey: null, layout: { x: 0, y: 0, width: 0, height: 0, left: 0, top: 0, right: 0, bottom: 0, node: I }, layoutUpdated: false }, I || console.warn('Component added without a node reference. This will result in its coordinates being empty and may cause lost focus. Check the "ref" passed to "useFocusable": ', this.focusableComponents[b3]), !this.nativeMode) {
|
|
10772
10772
|
this.updateLayout(b3), this.log("addFocusable", "Component added: ", this.focusableComponents[b3]), b3 === this.focusKey && this.setFocus(G || b3);
|
|
10773
|
-
for (var
|
|
10774
|
-
if (
|
|
10773
|
+
for (var N1 = this.focusableComponents[this.focusKey]; N1; ) {
|
|
10774
|
+
if (N1.parentFocusKey === b3) {
|
|
10775
10775
|
this.updateParentsHasFocusedChild(this.focusKey, {}), this.updateParentsLastFocusedChild(this.focusKey);
|
|
10776
10776
|
break;
|
|
10777
10777
|
}
|
|
10778
|
-
|
|
10778
|
+
N1 = this.focusableComponents[N1.parentFocusKey];
|
|
10779
10779
|
}
|
|
10780
10780
|
}
|
|
10781
10781
|
}, x2.prototype.removeFocusable = function(h2) {
|
|
@@ -10982,14 +10982,14 @@ function vs() {
|
|
|
10982
10982
|
R(h1, B6, E1);
|
|
10983
10983
|
}, [B6, R]), z = (0, E6.useCallback)(function(h1, E1) {
|
|
10984
10984
|
q10(h1, B6, E1);
|
|
10985
|
-
}, [B6, q10]), u1 = (0, E6.useRef)(null), G = (0, E6.useState)(false), n1 = G[0], b1 = G[1], c1 = (0, E6.useState)(false), k1 = c1[0], P1 = c1[1],
|
|
10985
|
+
}, [B6, q10]), u1 = (0, E6.useRef)(null), G = (0, E6.useState)(false), n1 = G[0], b1 = G[1], c1 = (0, E6.useState)(false), k1 = c1[0], P1 = c1[1], N1 = (0, N.useFocusContext)(), M1 = (0, E6.useMemo)(function() {
|
|
10986
10986
|
return S1 || (0, k3.default)("sn:focusable-item-");
|
|
10987
10987
|
}, [S1]), h22 = (0, E6.useCallback)(function(h1) {
|
|
10988
10988
|
h1 === void 0 && (h1 = {}), F.SpatialNavigation.setFocus(M1, h1);
|
|
10989
10989
|
}, [M1]);
|
|
10990
10990
|
return (0, E6.useEffect)(function() {
|
|
10991
10991
|
var h1 = u1.current;
|
|
10992
|
-
return F.SpatialNavigation.addFocusable({ focusKey: M1, node: h1, parentFocusKey:
|
|
10992
|
+
return F.SpatialNavigation.addFocusable({ focusKey: M1, node: h1, parentFocusKey: N1, preferredChildFocusKey: Y, onEnterPress: U, onEnterRelease: t1, onArrowPress: e1, onArrowRelease: X, onFocus: Q7, onBlur: z, onUpdateFocus: function(E1) {
|
|
10993
10993
|
return E1 === void 0 && (E1 = false), b1(E1);
|
|
10994
10994
|
}, onUpdateHasFocusedChild: function(E1) {
|
|
10995
10995
|
return E1 === void 0 && (E1 = false), P1(E1);
|
package/lib/classic/es/index3.js
CHANGED
|
@@ -8253,7 +8253,7 @@ const legacyUseTransition = () => {
|
|
|
8253
8253
|
}
|
|
8254
8254
|
];
|
|
8255
8255
|
};
|
|
8256
|
-
const useTransition =
|
|
8256
|
+
const useTransition = React36__default.useTransition || legacyUseTransition;
|
|
8257
8257
|
var cx = function cx2() {
|
|
8258
8258
|
const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
|
|
8259
8259
|
const atomicClasses = {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as i, jsx as s, Fragment as C } from "react/jsx-runtime";
|
|
2
2
|
import { t as z, e as w, f as T, a as H, b as j, A as Y, s as a, i as W, I as U, c as $, B as h, d as f, u, r as L, S as K, O as D, g as q, R as O, D as P, w as _, p as ss, h as es, l as as, j as ns, k as ls, m as ts, n as is, o as os, C as rs } from "./index2.js";
|
|
3
|
-
import { useRef as G, useState as Z, useCallback as x, useEffect as R } from "react";
|
|
4
|
-
import "nanostores";
|
|
5
3
|
import "@noriginmedia/norigin-spatial-navigation";
|
|
4
|
+
import { useRef as G, useState as Z, useCallback as x, useEffect as R } from "react";
|
|
6
5
|
import "react-countdown-circle-timer";
|
|
7
6
|
import { createPortal as cs } from "react-dom";
|
|
8
7
|
import "react-countup";
|
|
8
|
+
import "nanostores";
|
|
9
9
|
import "lodash.throttle";
|
|
10
10
|
import ds from "react-infinite-scroller";
|
|
11
11
|
const ps = /* @__PURE__ */ T("CjZzdHJlYW1sYXllci9hbmFseXRpY3MvdjEvaW52aXRhdGlvbnMvaW52aXRhdGlvbnMucHJvdG8SJHN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucyLhAgoXVG90YWxJbnZpdGF0aW9uc1JlcXVlc3QSYAoGZmlsdGVyGAEgASgLMlAuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNSZXF1ZXN0LlRvdGFsUmVxdWVzdEZpbHRlchrjAQoSVG90YWxSZXF1ZXN0RmlsdGVyEjcKBnBlcmlvZBgBIAEoCzInLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5jb21tb24uUGVyaW9kEhEKCWV2ZW50X2lkcxgCIAMoBBJMCgpjYXRlZ29yaWVzGAMgAygOMjguc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLkludml0YXRpb25DYXRlZ29yeRIzCgRraW5kGAQgASgOMiUuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmNvbW1vbi5LaW5kIrABChhUb3RhbEludml0YXRpb25zUmVzcG9uc2USXgoEZGF0YRgBIAMoCzJQLnN0cmVhbWxheWVyLmFuYWx5dGljcy52MS5pbnZpdGF0aW9ucy5Ub3RhbEludml0YXRpb25zUmVzcG9uc2UuVG90YWxSZXNwb25zZURhdGEaNAoRVG90YWxSZXNwb25zZURhdGESEAoIZXZlbnRfaWQYASABKAQSDQoFY291bnQYAiABKAQiqQIKJVRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QScQoGZmlsdGVyGAEgASgLMmEuc3RyZWFtbGF5ZXIuYW5hbHl0aWNzLnYxLmludml0YXRpb25zLlRvdGFsSW52aXRhdGlvbnNTZW50QnlUaW1lbGluZVJlcXVlc3QuVG90YWxCeVRpbWVMaW5lRmlsdGVyGowBCh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vMw", [H, j]), ms = /* @__PURE__ */ w(ps, 1), B = /* @__PURE__ */ z(ms), bs = (e, n, l) => {
|