@streamlayer/react 0.8.2 → 0.8.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/index.js +23 -31
- package/lib/esm/index.js +107 -115
- package/lib/index.d.ts +14 -1749
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -240,14 +240,6 @@ var init_process = __esm({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
// external-global-plugin:react
|
|
244
|
-
var require_react = __commonJS({
|
|
245
|
-
"external-global-plugin:react"(exports, module2) {
|
|
246
|
-
init_process();
|
|
247
|
-
module2.exports = window.React;
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
|
|
251
243
|
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
252
244
|
var require_react_is_development = __commonJS({
|
|
253
245
|
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
@@ -3867,7 +3859,7 @@ init_process();
|
|
|
3867
3859
|
|
|
3868
3860
|
// packages/react-ui/src/lib/gamification/inapp/index.tsx
|
|
3869
3861
|
init_process();
|
|
3870
|
-
var import_react =
|
|
3862
|
+
var import_react = require("react");
|
|
3871
3863
|
|
|
3872
3864
|
// packages/react-ui/src/assets/icons/icon-exit.svg
|
|
3873
3865
|
var icon_exit_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <rect width="24" height="24" rx="12" fill="white" fill-opacity="0.1"/>%0A <rect x="8.25" y="7" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(45 8.25 7)" fill="white"/>%0A <rect x="7" y="15.75" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(-45 7 15.75)" fill="white"/>%0A</svg>%0A';
|
|
@@ -3969,7 +3961,7 @@ var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
|
|
|
3969
3961
|
|
|
3970
3962
|
// packages/react-ui/src/lib/gamification/login/index.tsx
|
|
3971
3963
|
init_process();
|
|
3972
|
-
var import_react17 =
|
|
3964
|
+
var import_react17 = require("react");
|
|
3973
3965
|
|
|
3974
3966
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/min/index.js
|
|
3975
3967
|
init_process();
|
|
@@ -3983,13 +3975,13 @@ init_process();
|
|
|
3983
3975
|
|
|
3984
3976
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js
|
|
3985
3977
|
init_process();
|
|
3986
|
-
var import_react10 = __toESM(
|
|
3978
|
+
var import_react10 = __toESM(require("react"), 1);
|
|
3987
3979
|
var import_prop_types9 = __toESM(require_prop_types(), 1);
|
|
3988
3980
|
var import_classnames4 = __toESM(require_classnames(), 1);
|
|
3989
3981
|
|
|
3990
3982
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputSmart.js
|
|
3991
3983
|
init_process();
|
|
3992
|
-
var import_react3 = __toESM(
|
|
3984
|
+
var import_react3 = __toESM(require("react"), 1);
|
|
3993
3985
|
var import_prop_types2 = __toESM(require_prop_types(), 1);
|
|
3994
3986
|
|
|
3995
3987
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/react/index.js
|
|
@@ -3997,7 +3989,7 @@ init_process();
|
|
|
3997
3989
|
|
|
3998
3990
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/react/Input.js
|
|
3999
3991
|
init_process();
|
|
4000
|
-
var import_react2 = __toESM(
|
|
3992
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
4001
3993
|
var import_prop_types = __toESM(require_prop_types(), 1);
|
|
4002
3994
|
|
|
4003
3995
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/inputControl.js
|
|
@@ -9002,7 +8994,7 @@ var InputSmart_default = createInput();
|
|
|
9002
8994
|
|
|
9003
8995
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputBasic.js
|
|
9004
8996
|
init_process();
|
|
9005
|
-
var import_react5 = __toESM(
|
|
8997
|
+
var import_react5 = __toESM(require("react"), 1);
|
|
9006
8998
|
var import_prop_types3 = __toESM(require_prop_types(), 1);
|
|
9007
8999
|
var _excluded3 = ["value", "onChange", "country", "international", "withCountryCallingCode", "metadata", "inputComponent"];
|
|
9008
9000
|
function _extends3() {
|
|
@@ -9138,7 +9130,7 @@ function format2(prefix, value, country, metadata2) {
|
|
|
9138
9130
|
|
|
9139
9131
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountrySelect.js
|
|
9140
9132
|
init_process();
|
|
9141
|
-
var import_react6 = __toESM(
|
|
9133
|
+
var import_react6 = __toESM(require("react"), 1);
|
|
9142
9134
|
var import_prop_types4 = __toESM(require_prop_types(), 1);
|
|
9143
9135
|
var import_classnames = __toESM(require_classnames(), 1);
|
|
9144
9136
|
|
|
@@ -9329,7 +9321,7 @@ function getSelectedOption(options, value) {
|
|
|
9329
9321
|
|
|
9330
9322
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/Flag.js
|
|
9331
9323
|
init_process();
|
|
9332
|
-
var import_react7 = __toESM(
|
|
9324
|
+
var import_react7 = __toESM(require("react"), 1);
|
|
9333
9325
|
var import_prop_types5 = __toESM(require_prop_types(), 1);
|
|
9334
9326
|
var import_classnames2 = __toESM(require_classnames(), 1);
|
|
9335
9327
|
var _excluded5 = ["country", "countryName", "flags", "flagUrl"];
|
|
@@ -9413,7 +9405,7 @@ FlagComponent.propTypes = {
|
|
|
9413
9405
|
|
|
9414
9406
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InternationalIcon.js
|
|
9415
9407
|
init_process();
|
|
9416
|
-
var import_react8 = __toESM(
|
|
9408
|
+
var import_react8 = __toESM(require("react"), 1);
|
|
9417
9409
|
var import_prop_types6 = __toESM(require_prop_types(), 1);
|
|
9418
9410
|
var _excluded6 = ["aspectRatio"];
|
|
9419
9411
|
var _excluded23 = ["title"];
|
|
@@ -9671,7 +9663,7 @@ function getSupportedCountries(countries, metadata2) {
|
|
|
9671
9663
|
|
|
9672
9664
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountryIcon.js
|
|
9673
9665
|
init_process();
|
|
9674
|
-
var import_react9 = __toESM(
|
|
9666
|
+
var import_react9 = __toESM(require("react"), 1);
|
|
9675
9667
|
var import_prop_types7 = __toESM(require_prop_types(), 1);
|
|
9676
9668
|
var import_classnames3 = __toESM(require_classnames(), 1);
|
|
9677
9669
|
var _excluded7 = ["country", "label", "aspectRatio"];
|
|
@@ -11166,7 +11158,7 @@ function formatPhoneNumberIntl(value, metadata2) {
|
|
|
11166
11158
|
|
|
11167
11159
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.js
|
|
11168
11160
|
init_process();
|
|
11169
|
-
var import_react11 = __toESM(
|
|
11161
|
+
var import_react11 = __toESM(require("react"), 1);
|
|
11170
11162
|
|
|
11171
11163
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/locale/en.json.js
|
|
11172
11164
|
init_process();
|
|
@@ -15971,14 +15963,14 @@ var login = async (host, phone, code) => {
|
|
|
15971
15963
|
|
|
15972
15964
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/components/timer/index.tsx
|
|
15973
15965
|
init_process();
|
|
15974
|
-
var import_react16 =
|
|
15966
|
+
var import_react16 = require("react");
|
|
15975
15967
|
|
|
15976
15968
|
// node_modules/.pnpm/react-countdown-circle-timer@3.2.1_react@18.2.0/node_modules/react-countdown-circle-timer/lib/index.module.js
|
|
15977
15969
|
init_process();
|
|
15978
|
-
var import_react12 = __toESM(
|
|
15979
|
-
var import_react13 =
|
|
15980
|
-
var import_react14 =
|
|
15981
|
-
var import_react15 =
|
|
15970
|
+
var import_react12 = __toESM(require("react"));
|
|
15971
|
+
var import_react13 = require("react");
|
|
15972
|
+
var import_react14 = require("react");
|
|
15973
|
+
var import_react15 = require("react");
|
|
15982
15974
|
var G = typeof window == "undefined" ? import_react15.useEffect : import_react15.useLayoutEffect;
|
|
15983
15975
|
var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onComplete: s, onUpdate: r }) => {
|
|
15984
15976
|
let [i, c] = (0, import_react14.useState)(n), m = (0, import_react14.useRef)(0), p = (0, import_react14.useRef)(n), f = (0, import_react14.useRef)(n * -1e3), u = (0, import_react14.useRef)(null), a = (0, import_react14.useRef)(null), h = (0, import_react14.useRef)(null), w = (g) => {
|
|
@@ -20261,7 +20253,7 @@ var UserStatistics = ({
|
|
|
20261
20253
|
|
|
20262
20254
|
// packages/react-ui/src/lib/gamification/vote/index.tsx
|
|
20263
20255
|
init_process();
|
|
20264
|
-
var import_react18 =
|
|
20256
|
+
var import_react18 = require("react");
|
|
20265
20257
|
|
|
20266
20258
|
// packages/react-ui/src/assets/icons/icon-check.svg
|
|
20267
20259
|
var icon_check_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Checkmark">%0A<path id="Selected" fill-rule="evenodd" clip-rule="evenodd" d="M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z" fill="%2300BD60"/>%0A</g>%0A</svg>%0A';
|
|
@@ -20898,7 +20890,7 @@ var map = (value = {}) => {
|
|
|
20898
20890
|
};
|
|
20899
20891
|
|
|
20900
20892
|
// node_modules/.pnpm/@nanostores+react@0.7.1_nanostores@0.9.4_react@18.2.0/node_modules/@nanostores/react/index.js
|
|
20901
|
-
var import_react19 =
|
|
20893
|
+
var import_react19 = require("react");
|
|
20902
20894
|
function useStore(store2, opts = {}) {
|
|
20903
20895
|
let subscribe2 = (0, import_react19.useCallback)(
|
|
20904
20896
|
(onChange2) => opts.keys ? listenKeys(store2, opts.keys, onChange2) : store2.listen(onChange2),
|
|
@@ -20953,7 +20945,7 @@ var QuestionsList = ({ store: store2, openQuestion }) => {
|
|
|
20953
20945
|
// packages/react-ui/src/lib/demo/components/Question.tsx
|
|
20954
20946
|
init_process();
|
|
20955
20947
|
var import_styled14 = __toESM(require("@emotion/styled"), 1);
|
|
20956
|
-
var import_react23 =
|
|
20948
|
+
var import_react23 = require("react");
|
|
20957
20949
|
|
|
20958
20950
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/index.tsx
|
|
20959
20951
|
init_process();
|
|
@@ -21196,7 +21188,7 @@ var Question3 = ({ store: store2, closeQuestion, vote }) => {
|
|
|
21196
21188
|
|
|
21197
21189
|
// packages/react-ui/src/lib/demo/components/Notifications.tsx
|
|
21198
21190
|
init_process();
|
|
21199
|
-
var import_react25 =
|
|
21191
|
+
var import_react25 = require("react");
|
|
21200
21192
|
var import_jsx_runtime17 = require("@emotion/react/jsx-runtime");
|
|
21201
21193
|
var Notifications = ({ notificationsStore, openQuestion }) => {
|
|
21202
21194
|
const timeout = (0, import_react25.useRef)();
|
|
@@ -21343,7 +21335,7 @@ var import_jsx_runtime22 = require("@emotion/react/jsx-runtime");
|
|
|
21343
21335
|
var StreamLayerThemeProvider = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react28.ThemeProvider, { theme, children });
|
|
21344
21336
|
|
|
21345
21337
|
// packages/react/src/app/provider.tsx
|
|
21346
|
-
var import_react30 =
|
|
21338
|
+
var import_react30 = require("react");
|
|
21347
21339
|
|
|
21348
21340
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
21349
21341
|
init_process();
|
|
@@ -28331,7 +28323,7 @@ function StreamLayer(sdkKey, production = true) {
|
|
|
28331
28323
|
}
|
|
28332
28324
|
|
|
28333
28325
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
28334
|
-
var import_react29 =
|
|
28326
|
+
var import_react29 = require("react");
|
|
28335
28327
|
window.instance = null;
|
|
28336
28328
|
var useStreamLayerApp = (sdkKey, plugins, production) => {
|
|
28337
28329
|
const [sdk, setSdk] = (0, import_react29.useState)(null);
|
|
@@ -28389,7 +28381,7 @@ var StreamLayerProvider = ({
|
|
|
28389
28381
|
|
|
28390
28382
|
// packages/react/src/app/app.tsx
|
|
28391
28383
|
init_process();
|
|
28392
|
-
var import_react31 =
|
|
28384
|
+
var import_react31 = require("react");
|
|
28393
28385
|
var import_jsx_runtime24 = require("@emotion/react/jsx-runtime");
|
|
28394
28386
|
var useStreamLayer = () => {
|
|
28395
28387
|
const { sdk } = (0, import_react31.useContext)(StreamLayerContext3);
|