@apolitical/component-library 1.9.5 → 1.10.0-beta.1
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/{4TNE5QTO-4f78f6bd.mjs → 4TNE5QTO-04c56612.mjs} +1 -1
- package/{4TNE5QTO-b7979539.js → 4TNE5QTO-7341e8bc.js} +1 -1
- package/context/{react-query/react-query.provider.d.ts → cache/cache.provider.d.ts} +2 -2
- package/context/cache/index.d.ts +1 -0
- package/context/flags/flags.provider.d.ts +8 -0
- package/context/flags/index.d.ts +1 -0
- package/context/global/global.providers.d.ts +10 -0
- package/context/global/index.d.ts +1 -0
- package/context/index.d.ts +3 -1
- package/context/intl/intl.provider.d.ts +4 -2
- package/hooks/index.d.ts +0 -1
- package/index-5476c4fc.js +69 -0
- package/index-aeeb4f98.mjs +15320 -0
- package/index.js +1 -1
- package/index.mjs +70 -69
- package/package.json +2 -2
- package/context/react-query/index.d.ts +0 -1
- package/hooks/use-feature-flag.d.ts +0 -5
- package/index-43f784e7.mjs +0 -23314
- package/index-47aea727.js +0 -101
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-5476c4fc.js");require("react");require("react/jsx-runtime");exports.ASSETS_BUCKET=e.ASSETS_BUCKET;exports.ActivitiesFeed=e.ActivitiesFeed;exports.ActivitySection=e.ActivitySection;exports.AddPost=e.AddPost;exports.BannerSection=e.bannerSection;exports.Breadcrumbs=e.Breadcrumbs;exports.Button=e.Button;exports.ButtonWrapper=e.ButtonWrapper;exports.CacheProvider=e.CacheProvider;exports.CollapsibleSection=e.CollapsibleSection;exports.Columns=e.Columns;exports.CommunityDetails=e.CommunityDetails;exports.Contributors=e.Contributors;exports.ConversationContext=e.ConversationContext;exports.CookieBanner=e.CookieBanner;exports.DiscussionConversation=e.Conversation;exports.DiscussionForm=e.Form;exports.DiscussionLikes=e.Likes;exports.DiscussionPost=e.Post;exports.DiscussionThread=e.Thread;exports.Divider=e.Divider;exports.DownloadSection=e.DownloadSection;exports.EMAILS=e.EMAILS;exports.EmailHelperTextBox=e.EmailHelperTextBox;exports.EmptyStateBox=e.EmptyStateBox;exports.Filters=e.Filters;exports.FlagsProvider=e.FlagsProvider;exports.Footer=e.Footer;exports.FullWidthSection=e.FullWidthSection;exports.GlobalProviders=e.GlobalProviders;exports.Header=e.Header;exports.HelperTextBox=e.HelperTextBox;exports.HiddenFromScreenReaders=e.HiddenFromScreenReaders;exports.HideShowTextBox=e.HideShowTextBox;exports.HighlightedTextBox=e.HighlightedTextBoxWrapper;exports.IntlProvider=e.IntlProvider;exports.JoinButton=e.JoinButton;exports.LanguageSwitcher=e.LanguageSwitcher;exports.Link=e.Link;exports.LoadMore=e.LoadMore;exports.LoadingBlock=e.loadingBlock;exports.LoadingPlaceholder=e.LoadingPlaceholder;exports.LoadingState=e.LoadingState;exports.Logo=e.Logo;exports.LogoSection=e.LogoSection;exports.MarkdownText=e.MarkdownText;exports.MarketingBox=e.MarketingBlock;exports.Member=e.Member;exports.MembersList=e.MembersList;exports.Modal=e.Modal;exports.MoreMenu=e.MoreMenu;exports.NUMBER_OF_USERS=e.NUMBER_OF_USERS;exports.Overlay=e.Overlay;exports.PageLayout=e.PageLayout;exports.PasswordRules=e.passwordRules;exports.Pill=e.Pill;exports.ProfilePicture=e.ProfilePicture;exports.ProgressBar=e.ProgressBar;exports.Rating=e.Rating;exports.RepliesFeed=e.RepliesFeed;exports.ResponsesHeading=e.ResponsesHeading;exports.ResponsiveImage=e.ResponsiveImage;exports.SearchForm=e.SearchForm;exports.Span=e.Span;exports.StatusBanner=e.StatusBanner;exports.Tags=e.Tags;exports.Tooltip=e.Tooltip;exports.UserContext=e.UserContext;exports.UserProvider=e.UserProvider;exports.VisuallyHidden=e.VisuallyHidden;exports.addAriaProps=e.addAriaProps;exports.getMember=e.getMember;exports.headerData=e.headerData;exports.mapGetStreamData=e.mapGetSteamData;exports.useCurrentPath=e.useCurrentPath;exports.useEffectAfterMount=e.useEffectAfterMount;exports.useScreenWidth=e.useScreenWidth;exports.useScrollListener=e.useScrollListener;exports.useScrollToHash=e.useScrollToHash;
|
package/index.mjs
CHANGED
|
@@ -1,83 +1,84 @@
|
|
|
1
|
-
import { O as
|
|
1
|
+
import { O as r, a7 as t, a9 as i, _ as n, G as d, aD as l, ae as u, af as c, T as S, aN as g, ap as m, K as B, aW as p, a1 as P, ar as x, a0 as L, a2 as h, a3 as v, a4 as C, a6 as M, ag as T, aK as D, Q as F, aa as H, aO as R, aE as E, U as b, as as A, aL as k, W as y, at as U, aP as f, H as w, aQ as W, aR as G, X as I, L as O, aF as _, ah as J, aG as K, av as N, aw as V, ax as Q, aI as X, aM as Y, aS as Z, J as j, aX as q, N as z, aA as $, aH as aa, R as sa, aB as ea, aq as oa, ab as ra, aU as ta, aZ as ia, ay as na, ac as da, a8 as la, a5 as ua, ai as ca, ad as Sa, aT as ga, aV as ma, aJ as Ba, aj as pa, Y as Pa, Z as xa, V as La, aC as ha, aY as va, au as Ca, az as Ma, ak as Ta, al as Da, am as Fa, an as Ha, ao as Ra } from "./index-aeeb4f98.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
r as ASSETS_BUCKET,
|
|
6
|
+
t as ActivitiesFeed,
|
|
7
7
|
i as ActivitySection,
|
|
8
8
|
n as AddPost,
|
|
9
9
|
d as BannerSection,
|
|
10
10
|
l as Breadcrumbs,
|
|
11
11
|
u as Button,
|
|
12
12
|
c as ButtonWrapper,
|
|
13
|
-
S as
|
|
14
|
-
g as
|
|
15
|
-
m as
|
|
16
|
-
B as
|
|
17
|
-
p as
|
|
13
|
+
S as CacheProvider,
|
|
14
|
+
g as CollapsibleSection,
|
|
15
|
+
m as Columns,
|
|
16
|
+
B as CommunityDetails,
|
|
17
|
+
p as Contributors,
|
|
18
|
+
P as ConversationContext,
|
|
18
19
|
x as CookieBanner,
|
|
19
20
|
L as DiscussionConversation,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
I as
|
|
40
|
-
O as
|
|
41
|
-
_ as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Q as
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
j as
|
|
51
|
-
q as
|
|
52
|
-
z as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
ta as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
xa as
|
|
73
|
-
La as
|
|
74
|
-
|
|
75
|
-
|
|
21
|
+
h as DiscussionForm,
|
|
22
|
+
v as DiscussionLikes,
|
|
23
|
+
C as DiscussionPost,
|
|
24
|
+
M as DiscussionThread,
|
|
25
|
+
T as Divider,
|
|
26
|
+
D as DownloadSection,
|
|
27
|
+
F as EMAILS,
|
|
28
|
+
H as EmailHelperTextBox,
|
|
29
|
+
R as EmptyStateBox,
|
|
30
|
+
E as Filters,
|
|
31
|
+
b as FlagsProvider,
|
|
32
|
+
A as Footer,
|
|
33
|
+
k as FullWidthSection,
|
|
34
|
+
y as GlobalProviders,
|
|
35
|
+
U as Header,
|
|
36
|
+
f as HelperTextBox,
|
|
37
|
+
w as HiddenFromScreenReaders,
|
|
38
|
+
W as HideShowTextBox,
|
|
39
|
+
G as HighlightedTextBox,
|
|
40
|
+
I as IntlProvider,
|
|
41
|
+
O as JoinButton,
|
|
42
|
+
_ as LanguageSwitcher,
|
|
43
|
+
J as Link,
|
|
44
|
+
K as LoadMore,
|
|
45
|
+
N as LoadingBlock,
|
|
46
|
+
V as LoadingPlaceholder,
|
|
47
|
+
Q as LoadingState,
|
|
48
|
+
X as Logo,
|
|
49
|
+
Y as LogoSection,
|
|
50
|
+
Z as MarkdownText,
|
|
51
|
+
j as MarketingBox,
|
|
52
|
+
q as Member,
|
|
53
|
+
z as MembersList,
|
|
54
|
+
$ as Modal,
|
|
55
|
+
aa as MoreMenu,
|
|
56
|
+
sa as NUMBER_OF_USERS,
|
|
57
|
+
ea as Overlay,
|
|
58
|
+
oa as PageLayout,
|
|
59
|
+
ra as PasswordRules,
|
|
60
|
+
ta as Pill,
|
|
61
|
+
ia as ProfilePicture,
|
|
62
|
+
na as ProgressBar,
|
|
63
|
+
da as Rating,
|
|
64
|
+
la as RepliesFeed,
|
|
65
|
+
ua as ResponsesHeading,
|
|
66
|
+
ca as ResponsiveImage,
|
|
67
|
+
Sa as SearchForm,
|
|
68
|
+
ga as Span,
|
|
69
|
+
ma as StatusBanner,
|
|
70
|
+
Ba as Tags,
|
|
71
|
+
pa as Tooltip,
|
|
72
|
+
Pa as UserContext,
|
|
73
|
+
xa as UserProvider,
|
|
74
|
+
La as VisuallyHidden,
|
|
75
|
+
ha as addAriaProps,
|
|
76
|
+
va as getMember,
|
|
77
|
+
Ca as headerData,
|
|
76
78
|
Ma as mapGetStreamData,
|
|
77
79
|
Ta as useCurrentPath,
|
|
78
|
-
|
|
79
|
-
Fa as
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Ha as useScrollToHash
|
|
80
|
+
Da as useEffectAfterMount,
|
|
81
|
+
Fa as useScreenWidth,
|
|
82
|
+
Ha as useScrollListener,
|
|
83
|
+
Ra as useScrollToHash
|
|
83
84
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/component-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0-beta.1",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"./style.css": "./style.css"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@apolitical/sdk": "7.4.4",
|
|
15
14
|
"@tanstack/query-core": "5.0.0",
|
|
16
15
|
"@tanstack/react-query": "5.0.0",
|
|
17
16
|
"@tanstack/react-query-devtools": "5.0.0",
|
|
@@ -20,6 +19,7 @@
|
|
|
20
19
|
"lodash.isequal": "4.5.0",
|
|
21
20
|
"lodash.set": "4.3.2",
|
|
22
21
|
"markdown-to-jsx": "7.3.2",
|
|
22
|
+
"posthog-js": "1.87.6",
|
|
23
23
|
"react": "18.2.0",
|
|
24
24
|
"react-cookie": "6.1.1",
|
|
25
25
|
"react-dom": "18.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './react-query.provider';
|