@streamlayer/react 0.31.4 → 0.31.5
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-feature.js +1 -1
- package/lib/cjs/index3.js +1 -1
- package/lib/cjs/masters2.js +2 -2
- package/lib/cjs/points.js +1 -1
- package/lib/dist/cjs/gamification-feature.js +1 -1
- package/lib/dist/cjs/masters.js +13 -13
- package/lib/dist/es/gamification-feature.js +1 -1
- package/lib/dist/es/index.js +1 -1
- package/lib/dist/es/masters.js +390 -381
- package/lib/dist/index.d.ts +4 -0
- package/lib/es/gamification-feature.js +1 -1
- package/lib/es/index3.js +16 -6
- package/lib/es/masters2.js +647 -660
- package/lib/es/points.js +1 -1
- package/package.json +9 -9
package/lib/dist/index.d.ts
CHANGED
|
@@ -728,6 +728,10 @@ declare module "../../sdk-web-logger/src/index" {
|
|
|
728
728
|
import { pino, ChildLoggerOptions } from 'pino';
|
|
729
729
|
export const createLogger: (name: string, options?: ChildLoggerOptions) => pino.Logger<{
|
|
730
730
|
level: "trace";
|
|
731
|
+
enabled: boolean;
|
|
732
|
+
browser: {
|
|
733
|
+
write: (o: object) => void;
|
|
734
|
+
};
|
|
731
735
|
} & ChildLoggerOptions>;
|
|
732
736
|
export type Logger = ReturnType<typeof createLogger>;
|
|
733
737
|
}
|
|
@@ -4,7 +4,7 @@ import { useStore as k } from "@nanostores/react";
|
|
|
4
4
|
import { o as Ne, r as te, w as $e, A as Re, O as Qe, a as K, n as Ue, d as _e } from "./masters2.js";
|
|
5
5
|
import { QuestionType as z, QuestionStatus as Q, QuestionImages as $, PickHistoryStatus as P } from "@streamlayer/sdk-web-types";
|
|
6
6
|
import { useState as R, useCallback as F, useMemo as W, createElement as H, PureComponent as ye } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { d as Pe } from "./index3.js";
|
|
8
8
|
import "react-countup";
|
|
9
9
|
import { CountdownCircleTimer as qe } from "react-countdown-circle-timer";
|
|
10
10
|
import { E } from "./index2.js";
|
package/lib/es/index3.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const [,
|
|
5
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import p from "react-countup";
|
|
3
|
+
const u = ({ value: e = 0, decimals: t, duration: l = 1, preserveValue: o = !0, ...i }) => {
|
|
4
|
+
const [, r] = e.toString().split("."), n = t ?? ((r == null ? void 0 : r.length) || 0);
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
6
|
+
p,
|
|
7
|
+
{
|
|
8
|
+
end: e,
|
|
9
|
+
...i,
|
|
10
|
+
duration: l,
|
|
11
|
+
decimals: n,
|
|
12
|
+
enableScrollSpy: !1,
|
|
13
|
+
preserveValue: o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
6
16
|
};
|
|
7
17
|
export {
|
|
8
|
-
|
|
18
|
+
u as d
|
|
9
19
|
};
|