@streamlayer/react 0.10.0 → 0.10.2
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 +247 -130
- package/lib/esm/index.js +247 -130
- package/lib/index.d.ts +75 -10
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ declare module "packages/react-ui/src/lib/theme/theme" {
|
|
|
76
76
|
BG_TRANSPARENT_USER_CONTAINER: string;
|
|
77
77
|
BLUE_PRIMARY: string;
|
|
78
78
|
RED_PRIMARY: string;
|
|
79
|
+
RED_SECONDARY: string;
|
|
79
80
|
BLUE_QUESTION_ACTION_BTN: string;
|
|
80
81
|
WHITE: string;
|
|
81
82
|
GREY_1: string;
|
|
@@ -274,6 +275,9 @@ declare module "packages/react-ui/src/lib/gamification/question-list/index" {
|
|
|
274
275
|
}
|
|
275
276
|
export const QuestionList: React.FC<QuestionListProps>;
|
|
276
277
|
}
|
|
278
|
+
declare module "packages/react-ui/src/utils/common" {
|
|
279
|
+
export const abbreviate: (name: string) => string;
|
|
280
|
+
}
|
|
277
281
|
declare module "packages/react-ui/src/lib/gamification/user-statistics/components/statistics/styles" {
|
|
278
282
|
export const Container: import("@emotion/styled").StyledComponent<{
|
|
279
283
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -369,6 +373,10 @@ declare module "packages/react-ui/src/lib/gamification/user-statistics/styles" {
|
|
|
369
373
|
theme?: import("@emotion/react").Theme | undefined;
|
|
370
374
|
as?: import("react").ElementType<any> | undefined;
|
|
371
375
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
376
|
+
export const UserAccountBtn: import("@emotion/styled").StyledComponent<{
|
|
377
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
378
|
+
as?: import("react").ElementType<any> | undefined;
|
|
379
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
372
380
|
}
|
|
373
381
|
declare module "packages/react-ui/src/lib/gamification/user-statistics/index" {
|
|
374
382
|
interface UserStatisticsProps {
|
|
@@ -382,6 +390,7 @@ declare module "packages/react-ui/src/lib/gamification/user-statistics/index" {
|
|
|
382
390
|
correct: number;
|
|
383
391
|
incorrect: number;
|
|
384
392
|
successRate?: number;
|
|
393
|
+
toggleAccountPage: (flag: boolean) => void;
|
|
385
394
|
}
|
|
386
395
|
export const UserStatistics: React.FC<UserStatisticsProps>;
|
|
387
396
|
}
|
|
@@ -1450,6 +1459,7 @@ declare module "packages/react-ui/src/lib/demo/components/UserSummary" {
|
|
|
1450
1459
|
import type { Gamification } from "packages/feature-gamification/src/index";
|
|
1451
1460
|
export const UserSummary: React.FC<{
|
|
1452
1461
|
store: ReturnType<Exclude<Gamification['userSummary'], undefined>['getStore']>;
|
|
1462
|
+
toggleAccountPage: (flag: boolean) => void;
|
|
1453
1463
|
}>;
|
|
1454
1464
|
}
|
|
1455
1465
|
declare module "packages/react-ui/src/lib/demo/components/QuestionsList" {
|
|
@@ -1597,12 +1607,69 @@ declare module "packages/react-ui/src/lib/demo/components/InPlayGame" {
|
|
|
1597
1607
|
};
|
|
1598
1608
|
export const InPlayGame: React.FC<InPlayGameType>;
|
|
1599
1609
|
}
|
|
1610
|
+
declare module "packages/react-ui/src/lib/gamification/user-account/styles" {
|
|
1611
|
+
export const Container: import("@emotion/styled").StyledComponent<{
|
|
1612
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1613
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1614
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1615
|
+
export const ContentWrap: import("@emotion/styled").StyledComponent<{
|
|
1616
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1617
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1618
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
1619
|
+
export const UserContainer: import("@emotion/styled").StyledComponent<{
|
|
1620
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1621
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1622
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1623
|
+
export const UserAvatar: import("@emotion/styled").StyledComponent<{
|
|
1624
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1625
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1626
|
+
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
1627
|
+
export const UserName: import("@emotion/styled").StyledComponent<{
|
|
1628
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1629
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1630
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
1631
|
+
export const BackBtn: import("@emotion/styled").StyledComponent<{
|
|
1632
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1633
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1634
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
1635
|
+
export const LogoutBtn: import("@emotion/styled").StyledComponent<{
|
|
1636
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1637
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1638
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
1639
|
+
export const LogoutIcon: import("@emotion/styled").StyledComponent<{
|
|
1640
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1641
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1642
|
+
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
1643
|
+
export const AvatarPlaceholder: import("@emotion/styled").StyledComponent<{
|
|
1644
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1645
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1646
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1647
|
+
}
|
|
1648
|
+
declare module "packages/react-ui/src/lib/gamification/user-account/index" {
|
|
1649
|
+
import type { Gamification } from "packages/feature-gamification/src/index";
|
|
1650
|
+
interface UserAccountProps {
|
|
1651
|
+
store: ReturnType<Exclude<Gamification['userSummary'], undefined>['getStore']>;
|
|
1652
|
+
toggleAccountPage: (flag: boolean) => void;
|
|
1653
|
+
logout: () => void;
|
|
1654
|
+
}
|
|
1655
|
+
export const UserAccount: React.FC<UserAccountProps>;
|
|
1656
|
+
}
|
|
1657
|
+
declare module "packages/react-ui/src/lib/demo/components/Account" {
|
|
1658
|
+
import type { Gamification } from "packages/feature-gamification/src/index";
|
|
1659
|
+
type AccountProps = {
|
|
1660
|
+
store: ReturnType<Exclude<Gamification['userSummary'], undefined>['getStore']>;
|
|
1661
|
+
toggleAccountPage: (flag: boolean) => void;
|
|
1662
|
+
logout: () => void;
|
|
1663
|
+
};
|
|
1664
|
+
export const Account: React.FC<AccountProps>;
|
|
1665
|
+
}
|
|
1600
1666
|
declare module "packages/react-ui/src/lib/demo/components/index" {
|
|
1601
1667
|
export { UserSummary } from "packages/react-ui/src/lib/demo/components/UserSummary";
|
|
1602
1668
|
export { QuestionsList } from "packages/react-ui/src/lib/demo/components/QuestionsList";
|
|
1603
1669
|
export { Question } from "packages/react-ui/src/lib/demo/components/Question";
|
|
1604
1670
|
export { Notifications } from "packages/react-ui/src/lib/demo/components/Notifications";
|
|
1605
1671
|
export { InPlayGame } from "packages/react-ui/src/lib/demo/components/InPlayGame";
|
|
1672
|
+
export { Account } from "packages/react-ui/src/lib/demo/components/Account";
|
|
1606
1673
|
}
|
|
1607
1674
|
declare module "packages/react-ui/src/lib/demo/styles" {
|
|
1608
1675
|
export const DemoContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1617,6 +1684,14 @@ declare module "packages/react-ui/src/lib/demo/styles" {
|
|
|
1617
1684
|
theme?: import("@emotion/react").Theme | undefined;
|
|
1618
1685
|
as?: import("react").ElementType<any> | undefined;
|
|
1619
1686
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1687
|
+
export const QuestionsContainer: import("@emotion/styled").StyledComponent<{
|
|
1688
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1689
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1690
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1691
|
+
export const AccountContainer: import("@emotion/styled").StyledComponent<{
|
|
1692
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
1693
|
+
as?: import("react").ElementType<any> | undefined;
|
|
1694
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1620
1695
|
}
|
|
1621
1696
|
declare module "packages/react-ui/src/lib/demo/Gamification" {
|
|
1622
1697
|
import type { StreamLayerSDK } from "packages/sdk-web-interfaces/src/index";
|
|
@@ -1707,16 +1782,6 @@ declare module "@streamlayer/react/app/useStreamLayerApp" {
|
|
|
1707
1782
|
}
|
|
1708
1783
|
export const useStreamLayerApp: (sdkKey: string, plugins?: Set<StreamLayerPlugin>, production?: boolean) => StreamLayerSDK | null;
|
|
1709
1784
|
}
|
|
1710
|
-
declare module "packages/react/src/environments/environment.prod" {
|
|
1711
|
-
export const environment: {
|
|
1712
|
-
production: boolean;
|
|
1713
|
-
};
|
|
1714
|
-
}
|
|
1715
|
-
declare module "packages/react/src/environments/environment" {
|
|
1716
|
-
export const environment: {
|
|
1717
|
-
production: boolean;
|
|
1718
|
-
};
|
|
1719
|
-
}
|
|
1720
1785
|
/// <amd-module name="@streamlayer/react/app/provider" />
|
|
1721
1786
|
declare module "@streamlayer/react/app/provider" {
|
|
1722
1787
|
import type { StreamLayerSDK, StreamLayerPlugin } from "packages/sdk-web-interfaces/src/index";
|