@logora/debate 0.2.5 → 0.3.0

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.
@@ -3,12 +3,12 @@ import { VoteContext as H } from "../vote_provider/VoteProvider.js";
3
3
  import { useAuth as I } from "../../auth/use_auth/useAuth.js";
4
4
  import { useDataProvider as L } from "../../data/data_provider/useDataProvider.js";
5
5
  import { useAuthRequired as O } from "../../hooks/use_auth_required/useAuthRequired.js";
6
- const K = (b, d, x, S, w = null) => {
7
- const { votes: f } = B(H), { isLoggedIn: i } = I(), V = L(), [D, h] = n(!1), [A, T] = n(!0), [_, m] = n(), [r, g] = n(x), [u, v] = n(S), [q, s] = n(!1), [y, C] = n(!1), j = O();
6
+ const K = (x, d, S, q, w = null) => {
7
+ const { votes: f } = B(H), { isLoggedIn: i } = I(), V = L(), [D, h] = n(!1), [A, T] = n(!0), [_, m] = n(), [r, g] = n(S), [u, v] = n(q), [y, s] = n(!1), [C, b] = n(!1), j = O();
8
8
  E(() => {
9
- if (!y && i && Object.keys(f).length > 0 && d in f) {
9
+ if (!C && i && Object.keys(f).length > 0 && d in f) {
10
10
  const e = f[d];
11
- C(!0), h(!!e), T(e?.is_upvote), m(e?.id);
11
+ b(!0), h(!!e), T(e?.is_upvote), m(e?.id);
12
12
  }
13
13
  }, [f, i]);
14
14
  const c = (e) => {
@@ -20,7 +20,7 @@ const K = (b, d, x, S, w = null) => {
20
20
  const t = e ? r - 1 : r, o = e ? u : u - 1;
21
21
  w?.(e, !1, t, o), e ? g((a) => a - 1) : v((a) => a - 1);
22
22
  }, k = (e) => {
23
- if (D)
23
+ if (b(!0), D)
24
24
  if (A === e)
25
25
  l(e), s(!0), V.delete("votes", _).then(
26
26
  (t) => {
@@ -47,7 +47,7 @@ const K = (b, d, x, S, w = null) => {
47
47
  else {
48
48
  const t = {
49
49
  voteable_id: d,
50
- voteable_type: b,
50
+ voteable_type: x,
51
51
  is_upvote: e
52
52
  };
53
53
  c(e), s(!0), V.create("votes", t).then(
@@ -66,7 +66,7 @@ const K = (b, d, x, S, w = null) => {
66
66
  activeVote: D,
67
67
  voteSide: A,
68
68
  handleVote: (e) => {
69
- q || (i ? k(e) : j({ loginAction: "vote" }));
69
+ y || (i ? k(e) : j({ loginAction: "vote" }));
70
70
  }
71
71
  };
72
72
  };
package/dist/index.js CHANGED
@@ -1,68 +1,68 @@
1
- import * as o from "./components/icons/bild_icons/index.js";
2
- import * as r from "./components/icons/hero_icons/index.js";
3
- import * as e from "./components/icons/krone_icons/index.js";
4
- import * as t from "./components/icons/regular_icons/index.js";
5
- import * as x from "./components/icons/spiegel_icons/index.js";
1
+ import * as o from "./components/icons/regular_icons/index.js";
2
+ import * as r from "./components/icons/bild_icons/index.js";
3
+ import * as e from "./components/icons/spiegel_icons/index.js";
4
+ import * as t from "./components/icons/hero_icons/index.js";
5
+ import * as x from "./components/icons/krone_icons/index.js";
6
6
  import { ActionBar as f } from "./components/list/paginated_list/action_bar/ActionBar.js";
7
7
  import { AdUnit as a } from "./components/ad/ad_unit/AdUnit.js";
8
- import { AnnouncementDialog as i } from "./components/dialog/announcement_dialog/AnnouncementDialog.js";
8
+ import { AnnouncementDialog as s } from "./components/dialog/announcement_dialog/AnnouncementDialog.js";
9
9
  import { Argument as l } from "./components/argument/argument/Argument.js";
10
10
  import { ArgumentSummaryBox as g } from "./components/summary/argument_summary_box/ArgumentSummaryBox.js";
11
11
  import { AuthContext as B } from "./components/auth/use_auth/AuthContext.js";
12
12
  import { AuthInitializer as S } from "./components/auth/auth_initializer/AuthInitializer.js";
13
- import { AuthProvider as A, withAuth as I } from "./components/auth/use_auth/AuthProvider.js";
14
- import { AuthorBox as P } from "./components/user/author_box/AuthorBox.js";
15
- import { Avatar as L } from "./components/user/avatar/Avatar.js";
13
+ import { AuthProvider as h, withAuth as I } from "./components/auth/use_auth/AuthProvider.js";
14
+ import { AuthorBox as L } from "./components/user/author_box/AuthorBox.js";
15
+ import { Avatar as v } from "./components/user/avatar/Avatar.js";
16
16
  import { AvatarSelector as M } from "./components/user/avatar_selector/AvatarSelector.js";
17
17
  import { BackLink as D } from "./components/action/back_link/BackLink.js";
18
18
  import { BadgeBox as U } from "./components/gamification/badge_box/BadgeBox.js";
19
19
  import { BoxSkeleton as V } from "./components/skeleton/box_skeleton/BoxSkeleton.js";
20
20
  import { Button as E } from "./components/action/button/Button.js";
21
- import { CheckBox as y } from "./components/icons/krone_icons/CheckBox.js";
22
- import { ConfigContext as G, ConfigProvider as O } from "./components/data/config_provider/ConfigProvider.js";
23
- import { ConfirmModal as _ } from "./components/dialog/confirm_modal/ConfirmModal.js";
24
- import { ConsultationBox as K } from "./components/consultation/consultation_box/ConsultationBox.js";
25
- import { ContentFooter as W } from "./components/user_content/content_footer/ContentFooter.js";
26
- import { ContentHeader as j } from "./components/user_content/content_header/ContentHeader.js";
27
- import { ContextSourceBox as Q } from "./components/source/context_source_box/ContextSourceBox.js";
28
- import { ContextSourceList as Z } from "./components/source/context_source_list/ContextSourceList.js";
29
- import { Countdown as ro } from "./components/dialog/countdown/Countdown.js";
30
- import { DataProviderContext as to } from "./components/data/data_provider/DataProviderContext.js";
31
- import { DebateBox as mo } from "./components/debate/debate_box/DebateBox.js";
32
- import { DialogBox as fo } from "./components/dialog/dialog_box/DialogBox.js";
33
- import { Drawer as ao } from "./components/dialog/drawer/Drawer.js";
34
- import { Dropdown as io } from "./components/dialog/dropdown/Dropdown.js";
35
- import { EMAIL_CONSENT_STORAGE_KEY as lo, useAuthActions as go } from "./components/auth/use_auth/useAuthActions.js";
36
- import { EmbedHeader as Bo } from "./components/embed/embed_header/EmbedHeader.js";
37
- import { ExpandableText as So } from "./components/text/expandable_text/ExpandableText.js";
38
- import { FacebookLoginButton as Ao } from "./components/auth/facebook_login_button/FacebookLoginButton.js";
39
- import { FollowButton as To } from "./components/follow/follow_button/FollowButton.js";
40
- import { Form as vo } from "./components/forms/form/form.js";
41
- import { FormContext as Fo } from "./components/forms/form/form-context.js";
42
- import { GoogleLoginButton as ko } from "./components/auth/google_login_button/GoogleLoginButton.js";
43
- import { HashScroll as Ro } from "./components/tools/hash_scroll/HashScroll.js";
44
- import { Icon as wo } from "./components/icons/icon/Icon.js";
45
- import { IconContext as bo, IconProvider as Eo } from "./components/icons/icon_provider/IconProvider.js";
46
- import { IconTextLink as yo } from "./components/action/icon_text_link/IconTextLink.js";
47
- import { HiddenCheckbox as Go } from "./components/input/checkbox/hidden/hidden-checkbox.js";
48
- import { InputProvider as $o } from "./components/input/input_provider/InputProvider.js";
49
- import { IntlContext as qo } from "./components/intl/intl_provider/IntlContext.js";
50
- import { IntlProvider as zo } from "./components/intl/intl_provider/IntlProvider.js";
51
- import { KeywordBox as Yo } from "./components/summary/keyword_box/KeywordBox.js";
52
- import { LANGUAGES as Jo, getLocaleIcon as Qo, getLocaleName as Xo } from "./components/util/lang_emojis/langEmojis.js";
53
- import { LineChart as or } from "./components/chart/line_chart/LineChart.js";
21
+ import { ConfigContext as y, ConfigProvider as H } from "./components/data/config_provider/ConfigProvider.js";
22
+ import { ConfirmModal as O } from "./components/dialog/confirm_modal/ConfirmModal.js";
23
+ import { ConsultationBox as _ } from "./components/consultation/consultation_box/ConsultationBox.js";
24
+ import { ContentFooter as K } from "./components/user_content/content_footer/ContentFooter.js";
25
+ import { ContentHeader as W } from "./components/user_content/content_header/ContentHeader.js";
26
+ import { ContextSourceBox as j } from "./components/source/context_source_box/ContextSourceBox.js";
27
+ import { ContextSourceList as Q } from "./components/source/context_source_list/ContextSourceList.js";
28
+ import { Countdown as Z } from "./components/dialog/countdown/Countdown.js";
29
+ import { DataProviderContext as ro } from "./components/data/data_provider/DataProviderContext.js";
30
+ import { DebateBox as to } from "./components/debate/debate_box/DebateBox.js";
31
+ import { DialogBox as mo } from "./components/dialog/dialog_box/DialogBox.js";
32
+ import { Drawer as fo } from "./components/dialog/drawer/Drawer.js";
33
+ import { Dropdown as ao } from "./components/dialog/dropdown/Dropdown.js";
34
+ import { EMAIL_CONSENT_STORAGE_KEY as so, useAuthActions as uo } from "./components/auth/use_auth/useAuthActions.js";
35
+ import { EmbedHeader as go } from "./components/embed/embed_header/EmbedHeader.js";
36
+ import { ExpandableText as Bo } from "./components/text/expandable_text/ExpandableText.js";
37
+ import { FacebookLoginButton as So } from "./components/auth/facebook_login_button/FacebookLoginButton.js";
38
+ import { FollowButton as ho } from "./components/follow/follow_button/FollowButton.js";
39
+ import { Form as To } from "./components/forms/form/form.js";
40
+ import { FormContext as Po } from "./components/forms/form/form-context.js";
41
+ import { GoogleLoginButton as Fo } from "./components/auth/google_login_button/GoogleLoginButton.js";
42
+ import { HashScroll as ko } from "./components/tools/hash_scroll/HashScroll.js";
43
+ import { Icon as Ro } from "./components/icons/icon/Icon.js";
44
+ import { IconContext as wo, IconProvider as Vo } from "./components/icons/icon_provider/IconProvider.js";
45
+ import { IconTextLink as Eo } from "./components/action/icon_text_link/IconTextLink.js";
46
+ import { HiddenCheckbox as yo } from "./components/input/checkbox/hidden/hidden-checkbox.js";
47
+ import { InputProvider as Go } from "./components/input/input_provider/InputProvider.js";
48
+ import { IntlContext as $o } from "./components/intl/intl_provider/IntlContext.js";
49
+ import { IntlProvider as qo } from "./components/intl/intl_provider/IntlProvider.js";
50
+ import { KeywordBox as zo } from "./components/summary/keyword_box/KeywordBox.js";
51
+ import { LANGUAGES as Yo, getLocaleIcon as jo, getLocaleName as Jo } from "./components/util/lang_emojis/langEmojis.js";
52
+ import { LineChart as Xo } from "./components/chart/line_chart/LineChart.js";
53
+ import { Link as or } from "./components/action/link/Link.js";
54
54
  import { ListProvider as er } from "./components/list/list_provider/ListProvider.js";
55
55
  import { Loader as xr } from "./components/progress/loader/Loader.js";
56
56
  import { Location as pr } from "./components/util/location/Location.js";
57
57
  import { LoginForm as nr } from "./components/auth/login_form/LoginForm.js";
58
- import { Message as sr } from "./components/input/text_input/message.js";
58
+ import { Message as ir } from "./components/input/text_input/message.js";
59
59
  import { Modal as ur } from "./components/dialog/modal/Modal.js";
60
60
  import { ModalContext as dr, ModalProvider as gr } from "./components/dialog/modal/ModalProvider.js";
61
61
  import { NavbarButton as Br } from "./components/navbar/navbar_button/NavbarButton.js";
62
62
  import { NavbarModal as Sr } from "./components/navbar/navbar_modal/NavbarModal.js";
63
- import { NotificationItem as Ar } from "./components/notification/notification_item/NotificationItem.js";
63
+ import { NotificationItem as hr } from "./components/notification/notification_item/NotificationItem.js";
64
64
  import { OAuth2Button as Tr } from "./components/auth/oauth2_button/OAuth2Button.js";
65
- import { PaginatedList as vr } from "./components/list/paginated_list/PaginatedList.js";
65
+ import { PaginatedList as Pr } from "./components/list/paginated_list/PaginatedList.js";
66
66
  import { Pagination as Fr } from "./components/list/pagination/Pagination.js";
67
67
  import { PieChart as kr } from "./components/chart/pie_chart/PieChart.js";
68
68
  import { PointBox as Rr } from "./components/gamification/point_box/PointBox.js";
@@ -82,14 +82,14 @@ import { SignupForm as te } from "./components/auth/signup_form/SignupForm.js";
82
82
  import { SocialAuthForm as me } from "./components/auth/social_auth_form/SocialAuthForm.js";
83
83
  import { SourceBox as fe } from "./components/source/source_box/SourceBox.js";
84
84
  import { SourceListItem as ae } from "./components/source/source_list_item/SourceListItem.js";
85
- import { SourceModal as ie } from "./components/source/source_modal/SourceModal.js";
85
+ import { SourceModal as se } from "./components/source/source_modal/SourceModal.js";
86
86
  import { SuggestionBanner as le } from "./components/suggestion/suggestion_banner/SuggestionBanner.js";
87
87
  import { SuggestionBox as ge } from "./components/suggestion/suggestion_box/SuggestionBox.js";
88
88
  import { SuggestionInput as Be } from "./components/suggestion/suggestion_input/SuggestionInput.js";
89
89
  import { SuggestionVoteBox as Se } from "./components/vote/suggestion_vote_box/SuggestionVoteBox.js";
90
- import { Summary as Ae } from "./components/summary/summary/Summary.js";
90
+ import { Summary as he } from "./components/summary/summary/Summary.js";
91
91
  import { SummaryBox as Te } from "./components/summary/summary_box/SummaryBox.js";
92
- import { SummaryContentBox as ve } from "./components/user_content/summary_content_box/SummaryContentBox.js";
92
+ import { SummaryContentBox as Pe } from "./components/user_content/summary_content_box/SummaryContentBox.js";
93
93
  import { Tag as Fe } from "./components/tag/tag/Tag.js";
94
94
  import { TextInput as ke } from "./components/input/text_input/TextInput.js";
95
95
  import { Toast as Re } from "./components/dialog/toast/Toast.js";
@@ -108,14 +108,14 @@ import { UserContentSkeleton as rt } from "./components/skeleton/user_content_sk
108
108
  import { VoteBox as tt } from "./components/vote/vote_box/VoteBox.js";
109
109
  import { VoteButton as mt } from "./components/vote/vote_button/VoteButton.js";
110
110
  import { VoteContext as ft, VoteProvider as nt } from "./components/vote/vote_provider/VoteProvider.js";
111
- import { VotePaginatedList as st } from "./components/list/paginated_list/VotePaginatedList.js";
111
+ import { VotePaginatedList as it } from "./components/list/paginated_list/VotePaginatedList.js";
112
112
  import { WithAd as ut } from "./components/ad/with_ad/WithAd.js";
113
113
  import { authTokenHandler as dt } from "./components/auth/use_auth/authTokenHandler.js";
114
114
  import { classes as ct, getAccent as Bt } from "./components/input/text_input/color-accent.js";
115
115
  import { dataProvider as St } from "./components/data/data_provider/DataProvider.js";
116
- import { extractFormData as At } from "./components/forms/form/extract-form-data.js";
117
- import { getTranslatedContent as Tt, useTranslatedContent as Pt } from "./components/translation/translated_content/useTranslatedContent.js";
118
- import { httpClient as Lt } from "./components/data/axios_client/httpClient.js";
116
+ import { extractFormData as ht } from "./components/forms/form/extract-form-data.js";
117
+ import { getTranslatedContent as Tt, useTranslatedContent as Lt } from "./components/translation/translated_content/useTranslatedContent.js";
118
+ import { httpClient as vt } from "./components/data/axios_client/httpClient.js";
119
119
  import { lexicalToHtml as Mt } from "./components/input/text_editor/lexicalToHtml.js";
120
120
  import { makeStorage as Dt } from "./components/auth/use_auth/AuthStorage.js";
121
121
  import { uniqueBy as Ut } from "./components/util/unique_by/uniqueBy.js";
@@ -134,15 +134,15 @@ import { useFormContext as ex } from "./components/forms/form/use-form-context.j
134
134
  import { useFormValidation as xx } from "./components/forms/use_form_validation/useFormValidation.js";
135
135
  import { useGoogleAdManager as px } from "./components/ad/use_google_ad_manager/useGoogleAdManager.js";
136
136
  import { useInput as nx } from "./components/input/input_provider/useInput.js";
137
- import { useList as sx } from "./components/list/list_provider/useList.js";
137
+ import { useList as ix } from "./components/list/list_provider/useList.js";
138
138
  import { useLocale as ux } from "./components/intl/intl_provider/useLocale.js";
139
139
  import { useMatomo as dx } from "./components/hooks/use_matomo/useMatomo.js";
140
140
  import { useModal as cx } from "./components/dialog/modal/useModal.js";
141
141
  import { useRelativeTime as Cx } from "./components/hooks/use_relative_time/useRelativeTime.js";
142
- import { useReportContent as hx } from "./components/user_content/use_report_content/useReportContent.js";
142
+ import { useReportContent as Ax } from "./components/user_content/use_report_content/useReportContent.js";
143
143
  import { useResponsive as Ix } from "./components/hooks/use_responsive/useResponsive.js";
144
- import { useRichContent as Px } from "./components/argument/argument/useRichContent.js";
145
- import { useRoutes as Lx } from "./components/data/config_provider/useRoutes.js";
144
+ import { useRichContent as Lx } from "./components/argument/argument/useRichContent.js";
145
+ import { useRoutes as vx } from "./components/data/config_provider/useRoutes.js";
146
146
  import { useToast as Mx } from "./components/dialog/toast_provider/useToast.js";
147
147
  import { useUpdateUserInfo as Dx } from "./components/user/update_user_info_modal/useUpdateUserInfo.js";
148
148
  import { useVote as Ux } from "./components/vote/use_vote/useVote.js";
@@ -150,67 +150,67 @@ import { withConfig as Vx } from "./components/data/config_provider/withConfig.j
150
150
  export {
151
151
  f as ActionBar,
152
152
  a as AdUnit,
153
- i as AnnouncementDialog,
153
+ s as AnnouncementDialog,
154
154
  l as Argument,
155
155
  g as ArgumentSummaryBox,
156
156
  B as AuthContext,
157
157
  S as AuthInitializer,
158
- A as AuthProvider,
159
- P as AuthorBox,
160
- L as Avatar,
158
+ h as AuthProvider,
159
+ L as AuthorBox,
160
+ v as Avatar,
161
161
  M as AvatarSelector,
162
162
  D as BackLink,
163
163
  U as BadgeBox,
164
164
  V as BoxSkeleton,
165
165
  E as Button,
166
- y as CheckBox,
167
- G as ConfigContext,
168
- O as ConfigProvider,
169
- _ as ConfirmModal,
170
- K as ConsultationBox,
171
- W as ContentFooter,
172
- j as ContentHeader,
173
- Q as ContextSourceBox,
174
- Z as ContextSourceList,
175
- ro as Countdown,
176
- to as DataProviderContext,
177
- mo as DebateBox,
178
- fo as DialogBox,
179
- ao as Drawer,
180
- io as Dropdown,
181
- lo as EMAIL_CONSENT_STORAGE_KEY,
182
- Bo as EmbedHeader,
183
- So as ExpandableText,
184
- Ao as FacebookLoginButton,
185
- To as FollowButton,
186
- vo as Form,
187
- Fo as FormContext,
188
- ko as GoogleLoginButton,
189
- Ro as HashScroll,
190
- wo as Icon,
191
- bo as IconContext,
192
- Eo as IconProvider,
193
- yo as IconTextLink,
194
- Go as Input,
195
- $o as InputProvider,
196
- qo as IntlContext,
197
- zo as IntlProvider,
198
- Yo as KeywordBox,
199
- Jo as LANGUAGES,
200
- or as LineChart,
166
+ y as ConfigContext,
167
+ H as ConfigProvider,
168
+ O as ConfirmModal,
169
+ _ as ConsultationBox,
170
+ K as ContentFooter,
171
+ W as ContentHeader,
172
+ j as ContextSourceBox,
173
+ Q as ContextSourceList,
174
+ Z as Countdown,
175
+ ro as DataProviderContext,
176
+ to as DebateBox,
177
+ mo as DialogBox,
178
+ fo as Drawer,
179
+ ao as Dropdown,
180
+ so as EMAIL_CONSENT_STORAGE_KEY,
181
+ go as EmbedHeader,
182
+ Bo as ExpandableText,
183
+ So as FacebookLoginButton,
184
+ ho as FollowButton,
185
+ To as Form,
186
+ Po as FormContext,
187
+ Fo as GoogleLoginButton,
188
+ ko as HashScroll,
189
+ Ro as Icon,
190
+ wo as IconContext,
191
+ Vo as IconProvider,
192
+ Eo as IconTextLink,
193
+ yo as Input,
194
+ Go as InputProvider,
195
+ $o as IntlContext,
196
+ qo as IntlProvider,
197
+ zo as KeywordBox,
198
+ Yo as LANGUAGES,
199
+ Xo as LineChart,
200
+ or as Link,
201
201
  er as ListProvider,
202
202
  xr as Loader,
203
203
  pr as Location,
204
204
  nr as LoginForm,
205
- sr as Message,
205
+ ir as Message,
206
206
  ur as Modal,
207
207
  dr as ModalContext,
208
208
  gr as ModalProvider,
209
209
  Br as NavbarButton,
210
210
  Sr as NavbarModal,
211
- Ar as NotificationItem,
211
+ hr as NotificationItem,
212
212
  Tr as OAuth2Button,
213
- vr as PaginatedList,
213
+ Pr as PaginatedList,
214
214
  Fr as Pagination,
215
215
  kr as PieChart,
216
216
  Rr as PointBox,
@@ -230,14 +230,14 @@ export {
230
230
  me as SocialAuthForm,
231
231
  fe as SourceBox,
232
232
  ae as SourceListItem,
233
- ie as SourceModal,
233
+ se as SourceModal,
234
234
  le as SuggestionBanner,
235
235
  ge as SuggestionBox,
236
236
  Be as SuggestionInput,
237
237
  Se as SuggestionVoteBox,
238
- Ae as Summary,
238
+ he as Summary,
239
239
  Te as SummaryBox,
240
- ve as SummaryContentBox,
240
+ Pe as SummaryContentBox,
241
241
  Fe as Tag,
242
242
  ke as TextInput,
243
243
  Re as Toast,
@@ -256,28 +256,28 @@ export {
256
256
  tt as VoteBox,
257
257
  mt as VoteButton,
258
258
  ft as VoteContext,
259
- st as VotePaginatedList,
259
+ it as VotePaginatedList,
260
260
  nt as VoteProvider,
261
261
  ut as WithAd,
262
262
  dt as authTokenHandler,
263
- o as bildIcons,
263
+ r as bildIcons,
264
264
  ct as classes,
265
265
  St as dataProvider,
266
- At as extractFormData,
266
+ ht as extractFormData,
267
267
  Bt as getAccent,
268
- Qo as getLocaleIcon,
269
- Xo as getLocaleName,
268
+ jo as getLocaleIcon,
269
+ Jo as getLocaleName,
270
270
  Tt as getTranslatedContent,
271
- r as heroIcons,
272
- Lt as httpClient,
273
- e as kroneIcons,
271
+ t as heroIcons,
272
+ vt as httpClient,
273
+ x as kroneIcons,
274
274
  Mt as lexicalToHtml,
275
275
  Dt as makeStorage,
276
- t as regularIcons,
277
- x as spiegelIcons,
276
+ o as regularIcons,
277
+ e as spiegelIcons,
278
278
  Ut as uniqueBy,
279
279
  Vt as useAuth,
280
- go as useAuthActions,
280
+ uo as useAuthActions,
281
281
  Et as useAuthInterceptor,
282
282
  yt as useAuthRequired,
283
283
  Gt as useConfig,
@@ -292,17 +292,17 @@ export {
292
292
  xx as useFormValidation,
293
293
  px as useGoogleAdManager,
294
294
  nx as useInput,
295
- sx as useList,
295
+ ix as useList,
296
296
  ux as useLocale,
297
297
  dx as useMatomo,
298
298
  cx as useModal,
299
299
  Cx as useRelativeTime,
300
- hx as useReportContent,
300
+ Ax as useReportContent,
301
301
  Ix as useResponsive,
302
- Px as useRichContent,
303
- Lx as useRoutes,
302
+ Lx as useRichContent,
303
+ vx as useRoutes,
304
304
  Mx as useToast,
305
- Pt as useTranslatedContent,
305
+ Lt as useTranslatedContent,
306
306
  Dx as useUpdateUserInfo,
307
307
  Ux as useVote,
308
308
  I as withAuth,
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "styles"
11
12
  ],
12
13
  "sideEffects": [
13
14
  "**/*.css",
@@ -18,9 +19,22 @@
18
19
  "import": "./dist/index.js",
19
20
  "default": "./dist/index.js"
20
21
  },
22
+ "./styles/*": "./styles/_*.scss",
21
23
  "./package.json": "./package.json"
22
24
  },
23
25
  "author": "Logora <contact@logora.fr>",
26
+ "scripts": {
27
+ "build": "vite build --config vite.lib.config.mjs",
28
+ "dev": "storybook dev -p 6006",
29
+ "storybook": "storybook dev -p 6006",
30
+ "build-storybook": "storybook build",
31
+ "format": "npx @biomejs/biome format --write ./src",
32
+ "lint": "npx @biomejs/biome lint ./src",
33
+ "check": "npx @biomejs/biome check ./src",
34
+ "test": "vitest run",
35
+ "test:watch": "vitest",
36
+ "test:coverage": "vitest run --coverage"
37
+ },
24
38
  "repository": {
25
39
  "type": "git",
26
40
  "url": "git+https://github.com/Logora/interface.git"
@@ -97,17 +111,5 @@
97
111
  "react-dom": "^17.0.0 || ^18.0.0",
98
112
  "react-router": "^6.29.0",
99
113
  "react-router-dom": "^6.29.0"
100
- },
101
- "scripts": {
102
- "build": "vite build --config vite.lib.config.mjs",
103
- "dev": "storybook dev -p 6006",
104
- "storybook": "storybook dev -p 6006",
105
- "build-storybook": "storybook build",
106
- "format": "npx @biomejs/biome format --write ./src",
107
- "lint": "npx @biomejs/biome lint ./src",
108
- "check": "npx @biomejs/biome check ./src",
109
- "test": "vitest run",
110
- "test:watch": "vitest",
111
- "test:coverage": "vitest run --coverage"
112
114
  }
113
- }
115
+ }
@@ -0,0 +1 @@
1
+ @forward '../src/components/styles/display';
@@ -0,0 +1 @@
1
+ @forward '../src/components/styles/flex';
@@ -0,0 +1 @@
1
+ @forward '../src/components/styles/spacing';
@@ -0,0 +1 @@
1
+ @forward '../src/components/styles/tabs';
@@ -0,0 +1 @@
1
+ @forward '../src/components/styles/theme';