@alexandregme/zljs 3.17.0 → 3.19.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.
- package/CHANGELOG.md +36 -1
- package/dist/{chunk-W44HHGBY.js → chunk-4JXA6DG6.js} +299 -155
- package/dist/index.d.ts +60 -14
- package/dist/index.js +3 -1
- package/dist/next/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,39 @@ A change that needs action in an app has a **Migration** note. When updating, re
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [3.19.0] - 2026-11-20
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `Sidebar` and `TopNav`, and so `Navigation`, show a share button: it shares the address of the app, so the user can send it to someone who then logs in and asks for access. On a phone a tap opens the share dialog of the browser. In a browser with no share dialog a click copies the address and a success toast says so. In `Sidebar` it has its own line over the user, and collapsed it shows only its icon. In `TopNav` it is the first line of the account panel. `share` takes its texts (`label`, `copiedMessage` and `errorMessage`) and what goes with the address: `title`, by default the title of the page, and `text`. The address is always the origin of the page, the app itself
|
|
16
|
+
- `ShareAppButton`, the button `Sidebar` and `TopNav` use, for an app that puts the share somewhere else, and the type `ShareAppButtonProps`. `label` is its text and is required
|
|
17
|
+
- `iconOnly` on `InstallAppButton` and `ShareAppButton`: it shows the icon alone, with `label` as the accessible name, for a place with no room for the text, such as a collapsed sidebar
|
|
18
|
+
- `Icon` has the `Share2` icon
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- `InstallAppButton` shows its `label` beside the icon, and `label` is now required: it had the default `Install app` and was only the accessible name of an icon button. `iconOnly` gives the icon alone back
|
|
23
|
+
- The account panel of `TopNav` has two rows. The install button left the row of the user and the logout button: it now has its own line over them, after the share button, and shows its `label` beside the icon
|
|
24
|
+
|
|
25
|
+
#### Migration
|
|
26
|
+
|
|
27
|
+
An app that renders `InstallAppButton` itself, outside `TopNav` and `Navigation`:
|
|
28
|
+
|
|
29
|
+
- Pass `label`, or `tsc` fails on the missing prop: `<InstallAppButton label="Install app" … />`. Find where with `grep -rn "<InstallAppButton" app src pages`
|
|
30
|
+
- The button now shows the text. Where only the icon fits, also pass `iconOnly`
|
|
31
|
+
|
|
32
|
+
An app that uses `Sidebar`, `TopNav` or `Navigation` gets the share button when it updates:
|
|
33
|
+
|
|
34
|
+
- An app in another language passes `share={{ label, copiedMessage, errorMessage }}`, or the button and its toasts are in English. Find where with `grep -rnE "<(Sidebar|TopNav|Navigation)" app src pages`
|
|
35
|
+
- The toasts need a `Toaster` in the app, the same one the logout error already needs
|
|
36
|
+
- The address shared is the origin of the page, the app itself. An app that wants a text to go with it, such as how to ask for access, passes `share={{ text }}`
|
|
37
|
+
|
|
38
|
+
## [3.18.0] - 2026-11-19
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- `Toaster`: `toast.error` and `toast.warning` (and the `useToastStore` toasts of those types) show a `Copy` button when the message is text. It copies the message and its text `description`, then reads `Copied` and keeps the toast open. An `action` passed by the app replaces it
|
|
43
|
+
|
|
11
44
|
## [3.17.0] - 2026-11-19
|
|
12
45
|
|
|
13
46
|
### Added
|
|
@@ -571,7 +604,9 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
|
|
|
571
604
|
|
|
572
605
|
The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
|
|
573
606
|
|
|
574
|
-
[Unreleased]: https://github.com/alexandregme/zljs/compare/v3.
|
|
607
|
+
[Unreleased]: https://github.com/alexandregme/zljs/compare/v3.19.0...HEAD
|
|
608
|
+
[3.19.0]: https://github.com/alexandregme/zljs/compare/v3.18.0...v3.19.0
|
|
609
|
+
[3.18.0]: https://github.com/alexandregme/zljs/compare/v3.17.0...v3.18.0
|
|
575
610
|
[3.17.0]: https://github.com/alexandregme/zljs/compare/v3.16.0...v3.17.0
|
|
576
611
|
[3.16.0]: https://github.com/alexandregme/zljs/compare/v3.15.0...v3.16.0
|
|
577
612
|
[3.15.0]: https://github.com/alexandregme/zljs/compare/v3.14.0...v3.15.0
|
|
@@ -382,6 +382,101 @@ var Heading = ({ children, level = 1, color }) => {
|
|
|
382
382
|
return /* @__PURE__ */ jsx5(Tag, { className: heading({ level, color }), children });
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
+
// features/toaster/state/toast.store.ts
|
|
386
|
+
import { create } from "zustand";
|
|
387
|
+
import { devtools } from "zustand/middleware";
|
|
388
|
+
|
|
389
|
+
// features/toaster/state/toast.const.ts
|
|
390
|
+
var toastInitialState = {
|
|
391
|
+
toasts: []
|
|
392
|
+
};
|
|
393
|
+
var toastDevtools = { name: "zljs", store: "toast" };
|
|
394
|
+
|
|
395
|
+
// features/toaster/state/toast.store.ts
|
|
396
|
+
var toastId = 0;
|
|
397
|
+
var useToastStore = create()(
|
|
398
|
+
devtools(
|
|
399
|
+
(set, get) => ({
|
|
400
|
+
...toastInitialState,
|
|
401
|
+
addToast: (message, type = "error") => {
|
|
402
|
+
const id = ++toastId;
|
|
403
|
+
set(
|
|
404
|
+
(s) => ({ toasts: [...s.toasts, { id, message, type }] }),
|
|
405
|
+
false,
|
|
406
|
+
"addToast"
|
|
407
|
+
);
|
|
408
|
+
return id;
|
|
409
|
+
},
|
|
410
|
+
removeToast: (id) => set(
|
|
411
|
+
(s) => ({ toasts: s.toasts.filter((t) => t.id !== id) }),
|
|
412
|
+
false,
|
|
413
|
+
"removeToast"
|
|
414
|
+
),
|
|
415
|
+
success: (message) => get().addToast(message, "success"),
|
|
416
|
+
error: (message) => get().addToast(message, "error"),
|
|
417
|
+
info: (message) => get().addToast(message, "info"),
|
|
418
|
+
warning: (message) => get().addToast(message, "warning")
|
|
419
|
+
}),
|
|
420
|
+
toastDevtools
|
|
421
|
+
)
|
|
422
|
+
);
|
|
423
|
+
|
|
424
|
+
// features/app/components/share-app-button/share-app-button.const.ts
|
|
425
|
+
var SHARE_APP_CANCELLED = "AbortError";
|
|
426
|
+
|
|
427
|
+
// features/app/components/share-app-button/share-app-button.tsx
|
|
428
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
429
|
+
var ShareAppButton = ({
|
|
430
|
+
label,
|
|
431
|
+
iconOnly = false,
|
|
432
|
+
size = "md",
|
|
433
|
+
title: title2,
|
|
434
|
+
text: text2,
|
|
435
|
+
copiedMessage = "Link copied",
|
|
436
|
+
errorMessage = "Could not share the link"
|
|
437
|
+
}) => {
|
|
438
|
+
const copy = async (address) => {
|
|
439
|
+
try {
|
|
440
|
+
await navigator.clipboard.writeText(address);
|
|
441
|
+
useToastStore.getState().success(copiedMessage);
|
|
442
|
+
} catch {
|
|
443
|
+
useToastStore.getState().error(errorMessage);
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const shareOrCopy = async () => {
|
|
447
|
+
const address = window.location.origin;
|
|
448
|
+
if (typeof navigator.share !== "function") {
|
|
449
|
+
await copy(address);
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
try {
|
|
453
|
+
await navigator.share({
|
|
454
|
+
title: title2 ?? document.title,
|
|
455
|
+
text: text2,
|
|
456
|
+
url: address
|
|
457
|
+
});
|
|
458
|
+
} catch (reason) {
|
|
459
|
+
if (reason.name !== SHARE_APP_CANCELLED) {
|
|
460
|
+
await copy(address);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
const share = () => {
|
|
465
|
+
void shareOrCopy();
|
|
466
|
+
};
|
|
467
|
+
return /* @__PURE__ */ jsx6(
|
|
468
|
+
Button,
|
|
469
|
+
{
|
|
470
|
+
color: "ghost",
|
|
471
|
+
size,
|
|
472
|
+
icon: "Share2",
|
|
473
|
+
"aria-label": iconOnly ? label : void 0,
|
|
474
|
+
onClick: share,
|
|
475
|
+
children: !iconOnly && label
|
|
476
|
+
}
|
|
477
|
+
);
|
|
478
|
+
};
|
|
479
|
+
|
|
385
480
|
// features/app/state/app.const.ts
|
|
386
481
|
var appInitialState = {
|
|
387
482
|
fetchingCalls: 0,
|
|
@@ -391,10 +486,10 @@ var appInitialState = {
|
|
|
391
486
|
var appDevtools = { name: "zljs", store: "app" };
|
|
392
487
|
|
|
393
488
|
// features/app/state/app.store.ts
|
|
394
|
-
import { create } from "zustand";
|
|
395
|
-
import { devtools } from "zustand/middleware";
|
|
396
|
-
var useAppStore =
|
|
397
|
-
|
|
489
|
+
import { create as create2 } from "zustand";
|
|
490
|
+
import { devtools as devtools2 } from "zustand/middleware";
|
|
491
|
+
var useAppStore = create2()(
|
|
492
|
+
devtools2(
|
|
398
493
|
(set, get) => ({
|
|
399
494
|
...appInitialState,
|
|
400
495
|
startFetching: () => set(
|
|
@@ -440,7 +535,7 @@ var useAppStore = create()(
|
|
|
440
535
|
);
|
|
441
536
|
|
|
442
537
|
// features/app/components/connected-modal/connected-modal.tsx
|
|
443
|
-
import { jsx as
|
|
538
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
444
539
|
var ConnectedModal = ({
|
|
445
540
|
modalId,
|
|
446
541
|
title: title2,
|
|
@@ -454,7 +549,7 @@ var ConnectedModal = ({
|
|
|
454
549
|
const close = () => {
|
|
455
550
|
closeModal(modalId);
|
|
456
551
|
};
|
|
457
|
-
return /* @__PURE__ */
|
|
552
|
+
return /* @__PURE__ */ jsx7(
|
|
458
553
|
Modal,
|
|
459
554
|
{
|
|
460
555
|
open,
|
|
@@ -468,45 +563,6 @@ var ConnectedModal = ({
|
|
|
468
563
|
);
|
|
469
564
|
};
|
|
470
565
|
|
|
471
|
-
// features/toaster/state/toast.store.ts
|
|
472
|
-
import { create as create2 } from "zustand";
|
|
473
|
-
import { devtools as devtools2 } from "zustand/middleware";
|
|
474
|
-
|
|
475
|
-
// features/toaster/state/toast.const.ts
|
|
476
|
-
var toastInitialState = {
|
|
477
|
-
toasts: []
|
|
478
|
-
};
|
|
479
|
-
var toastDevtools = { name: "zljs", store: "toast" };
|
|
480
|
-
|
|
481
|
-
// features/toaster/state/toast.store.ts
|
|
482
|
-
var toastId = 0;
|
|
483
|
-
var useToastStore = create2()(
|
|
484
|
-
devtools2(
|
|
485
|
-
(set, get) => ({
|
|
486
|
-
...toastInitialState,
|
|
487
|
-
addToast: (message, type = "error") => {
|
|
488
|
-
const id = ++toastId;
|
|
489
|
-
set(
|
|
490
|
-
(s) => ({ toasts: [...s.toasts, { id, message, type }] }),
|
|
491
|
-
false,
|
|
492
|
-
"addToast"
|
|
493
|
-
);
|
|
494
|
-
return id;
|
|
495
|
-
},
|
|
496
|
-
removeToast: (id) => set(
|
|
497
|
-
(s) => ({ toasts: s.toasts.filter((t) => t.id !== id) }),
|
|
498
|
-
false,
|
|
499
|
-
"removeToast"
|
|
500
|
-
),
|
|
501
|
-
success: (message) => get().addToast(message, "success"),
|
|
502
|
-
error: (message) => get().addToast(message, "error"),
|
|
503
|
-
info: (message) => get().addToast(message, "info"),
|
|
504
|
-
warning: (message) => get().addToast(message, "warning")
|
|
505
|
-
}),
|
|
506
|
-
toastDevtools
|
|
507
|
-
)
|
|
508
|
-
);
|
|
509
|
-
|
|
510
566
|
// features/auth/state/auth.store.ts
|
|
511
567
|
import { create as create3 } from "zustand";
|
|
512
568
|
import { devtools as devtools3 } from "zustand/middleware";
|
|
@@ -579,7 +635,7 @@ var signOutModal = tv6({
|
|
|
579
635
|
});
|
|
580
636
|
|
|
581
637
|
// features/auth/components/sign-out/sign-out-modal.tsx
|
|
582
|
-
import { jsx as
|
|
638
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
583
639
|
var SignOutModal = ({
|
|
584
640
|
title: title2 = "Sign out?",
|
|
585
641
|
confirmLabel = "Sign out",
|
|
@@ -589,7 +645,7 @@ var SignOutModal = ({
|
|
|
589
645
|
}) => {
|
|
590
646
|
const { signOut } = useAuth();
|
|
591
647
|
const closeModal = useAppStore((s) => s.closeModal);
|
|
592
|
-
const { actions } = signOutModal();
|
|
648
|
+
const { actions: actions2 } = signOutModal();
|
|
593
649
|
const stay = () => {
|
|
594
650
|
closeModal(SIGN_OUT_MODAL_ID);
|
|
595
651
|
};
|
|
@@ -607,23 +663,23 @@ var SignOutModal = ({
|
|
|
607
663
|
closeModal(SIGN_OUT_MODAL_ID);
|
|
608
664
|
signOutOfApp().catch(showError);
|
|
609
665
|
};
|
|
610
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ jsx8(
|
|
611
667
|
ConnectedModal,
|
|
612
668
|
{
|
|
613
669
|
modalId: SIGN_OUT_MODAL_ID,
|
|
614
670
|
title: title2,
|
|
615
671
|
size: "xs",
|
|
616
672
|
color: "danger",
|
|
617
|
-
children: /* @__PURE__ */ jsxs3("div", { className:
|
|
618
|
-
/* @__PURE__ */
|
|
619
|
-
/* @__PURE__ */
|
|
673
|
+
children: /* @__PURE__ */ jsxs3("div", { className: actions2(), children: [
|
|
674
|
+
/* @__PURE__ */ jsx8(Button, { color: "ghost", onClick: stay, children: cancelLabel }),
|
|
675
|
+
/* @__PURE__ */ jsx8(Button, { color: "danger", onClick: leave, children: confirmLabel })
|
|
620
676
|
] })
|
|
621
677
|
}
|
|
622
678
|
);
|
|
623
679
|
};
|
|
624
680
|
|
|
625
681
|
// features/auth/components/sign-out/sign-out-button.tsx
|
|
626
|
-
import { Fragment as Fragment3, jsx as
|
|
682
|
+
import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
627
683
|
var SignOutButton = ({
|
|
628
684
|
label = "Sign out",
|
|
629
685
|
size = "md",
|
|
@@ -638,7 +694,7 @@ var SignOutButton = ({
|
|
|
638
694
|
openModal(SIGN_OUT_MODAL_ID);
|
|
639
695
|
};
|
|
640
696
|
return /* @__PURE__ */ jsxs4(Fragment3, { children: [
|
|
641
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ jsx9(
|
|
642
698
|
Button,
|
|
643
699
|
{
|
|
644
700
|
color: "ghost",
|
|
@@ -648,7 +704,7 @@ var SignOutButton = ({
|
|
|
648
704
|
onClick: ask
|
|
649
705
|
}
|
|
650
706
|
),
|
|
651
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ jsx9(
|
|
652
708
|
SignOutModal,
|
|
653
709
|
{
|
|
654
710
|
title: confirmTitle,
|
|
@@ -702,7 +758,7 @@ var link = tv7({
|
|
|
702
758
|
});
|
|
703
759
|
|
|
704
760
|
// core/next/link/link.tsx
|
|
705
|
-
import { jsx as
|
|
761
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
706
762
|
var Link = ({
|
|
707
763
|
children,
|
|
708
764
|
href,
|
|
@@ -713,7 +769,7 @@ var Link = ({
|
|
|
713
769
|
"aria-label": ariaLabel,
|
|
714
770
|
onClick
|
|
715
771
|
}) => {
|
|
716
|
-
return /* @__PURE__ */
|
|
772
|
+
return /* @__PURE__ */ jsx10(
|
|
717
773
|
NextLink,
|
|
718
774
|
{
|
|
719
775
|
href,
|
|
@@ -750,6 +806,9 @@ var header2 = tv8({
|
|
|
750
806
|
var section = tv8({
|
|
751
807
|
base: "grid gap-1 p-2"
|
|
752
808
|
});
|
|
809
|
+
var actions = tv8({
|
|
810
|
+
base: "shrink-0 grid p-2 [&>button]:h-10 [&>button]:justify-start [&>button]:px-3 [&>button]:overflow-hidden [&>button]:whitespace-nowrap"
|
|
811
|
+
});
|
|
753
812
|
var footer = tv8({
|
|
754
813
|
base: "shrink-0 h-16 p-3 flex items-center gap-3",
|
|
755
814
|
variants: {
|
|
@@ -769,7 +828,7 @@ var toggleButton = tv8({
|
|
|
769
828
|
});
|
|
770
829
|
|
|
771
830
|
// core/sidebar/sidebar.tsx
|
|
772
|
-
import { Fragment as Fragment4, jsx as
|
|
831
|
+
import { Fragment as Fragment4, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
773
832
|
var getInitials = (name) => {
|
|
774
833
|
const parts = name.trim().split(/\s+/);
|
|
775
834
|
if (parts.length >= 2) {
|
|
@@ -787,6 +846,7 @@ var Sidebar = ({
|
|
|
787
846
|
homeHref = "/",
|
|
788
847
|
homeLabel,
|
|
789
848
|
navLabel = "Main navigation",
|
|
849
|
+
share = {},
|
|
790
850
|
logout = {},
|
|
791
851
|
onLogout
|
|
792
852
|
}) => {
|
|
@@ -798,7 +858,7 @@ var Sidebar = ({
|
|
|
798
858
|
setCollapsed(!collapsed);
|
|
799
859
|
};
|
|
800
860
|
return /* @__PURE__ */ jsxs5("aside", { className: sidebar({ collapsed }), children: [
|
|
801
|
-
homeHref && /* @__PURE__ */
|
|
861
|
+
homeHref && /* @__PURE__ */ jsx11("div", { className: header2(), children: /* @__PURE__ */ jsxs5(
|
|
802
862
|
Link,
|
|
803
863
|
{
|
|
804
864
|
href: homeHref,
|
|
@@ -807,12 +867,12 @@ var Sidebar = ({
|
|
|
807
867
|
active: homeHref === activeHref,
|
|
808
868
|
"aria-label": homeLabel || "Home",
|
|
809
869
|
children: [
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
homeLabel && !collapsed && /* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ jsx11(Icon, { name: "Home" }),
|
|
871
|
+
homeLabel && !collapsed && /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: homeLabel })
|
|
812
872
|
]
|
|
813
873
|
}
|
|
814
874
|
) }),
|
|
815
|
-
/* @__PURE__ */
|
|
875
|
+
/* @__PURE__ */ jsx11("nav", { "aria-label": navLabel, className: nav(), children: sections.map((sectionData, i) => /* @__PURE__ */ jsx11("div", { className: section(), children: sectionData.items.map((sidebarItem) => /* @__PURE__ */ jsxs5(
|
|
816
876
|
Link,
|
|
817
877
|
{
|
|
818
878
|
href: sidebarItem.href,
|
|
@@ -821,21 +881,32 @@ var Sidebar = ({
|
|
|
821
881
|
active: sidebarItem.href === activeHref,
|
|
822
882
|
"aria-label": sidebarItem.label,
|
|
823
883
|
children: [
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
!collapsed && /* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ jsx11(Icon, { name: sidebarItem.icon }),
|
|
885
|
+
!collapsed && /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: sidebarItem.label })
|
|
826
886
|
]
|
|
827
887
|
},
|
|
828
888
|
sidebarItem.href
|
|
829
889
|
)) }, i)) }),
|
|
890
|
+
/* @__PURE__ */ jsx11("div", { className: actions(), children: /* @__PURE__ */ jsx11(
|
|
891
|
+
ShareAppButton,
|
|
892
|
+
{
|
|
893
|
+
label: share.label ?? "Share app",
|
|
894
|
+
iconOnly: collapsed,
|
|
895
|
+
title: share.title,
|
|
896
|
+
text: share.text,
|
|
897
|
+
copiedMessage: share.copiedMessage,
|
|
898
|
+
errorMessage: share.errorMessage
|
|
899
|
+
}
|
|
900
|
+
) }),
|
|
830
901
|
/* @__PURE__ */ jsxs5("div", { className: footer({ collapsed }), children: [
|
|
831
902
|
!collapsed && /* @__PURE__ */ jsxs5(Fragment4, { children: [
|
|
832
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ jsx11("div", { "aria-hidden": "true", className: avatar(), children: initials }),
|
|
833
904
|
/* @__PURE__ */ jsxs5("div", { className: userInfo(), children: [
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: user.name }),
|
|
906
|
+
/* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: user.email })
|
|
836
907
|
] })
|
|
837
908
|
] }),
|
|
838
|
-
/* @__PURE__ */
|
|
909
|
+
/* @__PURE__ */ jsx11(
|
|
839
910
|
SignOutButton,
|
|
840
911
|
{
|
|
841
912
|
label: logout.label,
|
|
@@ -847,7 +918,7 @@ var Sidebar = ({
|
|
|
847
918
|
}
|
|
848
919
|
)
|
|
849
920
|
] }),
|
|
850
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ jsx11("div", { className: toggleButton(), children: /* @__PURE__ */ jsx11(
|
|
851
922
|
Button,
|
|
852
923
|
{
|
|
853
924
|
color: "ghost",
|
|
@@ -864,10 +935,11 @@ var Sidebar = ({
|
|
|
864
935
|
var INSTALL_APP_MODAL_ID = "zljs-install-app";
|
|
865
936
|
|
|
866
937
|
// features/app/components/install-app-button/install-app-button.tsx
|
|
867
|
-
import { Fragment as Fragment5, jsx as
|
|
938
|
+
import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
868
939
|
var InstallAppButton = ({
|
|
869
940
|
way,
|
|
870
|
-
label
|
|
941
|
+
label,
|
|
942
|
+
iconOnly = false,
|
|
871
943
|
size = "md",
|
|
872
944
|
instructionsTitle = "Install this app",
|
|
873
945
|
instructions = "Tap the Share button of the browser, then Add to Home Screen.",
|
|
@@ -882,17 +954,18 @@ var InstallAppButton = ({
|
|
|
882
954
|
}
|
|
883
955
|
};
|
|
884
956
|
return /* @__PURE__ */ jsxs6(Fragment5, { children: [
|
|
885
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ jsx12(
|
|
886
958
|
Button,
|
|
887
959
|
{
|
|
888
960
|
color: "ghost",
|
|
889
961
|
size,
|
|
890
962
|
icon: "Download",
|
|
891
|
-
"aria-label": label,
|
|
892
|
-
onClick: install
|
|
963
|
+
"aria-label": iconOnly ? label : void 0,
|
|
964
|
+
onClick: install,
|
|
965
|
+
children: !iconOnly && label
|
|
893
966
|
}
|
|
894
967
|
),
|
|
895
|
-
way === "instructions" && /* @__PURE__ */
|
|
968
|
+
way === "instructions" && /* @__PURE__ */ jsx12(
|
|
896
969
|
ConnectedModal,
|
|
897
970
|
{
|
|
898
971
|
modalId: INSTALL_APP_MODAL_ID,
|
|
@@ -992,14 +1065,18 @@ var topNav = tv9({
|
|
|
992
1065
|
// the page layers on itself (a filter over a map), and under a modal.
|
|
993
1066
|
menu: "absolute inset-x-0 top-full z-40 max-h-[calc(100dvh-3.5rem)] divide-y divide-neutral-600/50 overflow-y-auto border-t border-neutral-600/50 bg-neutral-800 shadow-lg",
|
|
994
1067
|
section: "grid gap-1 p-2",
|
|
995
|
-
|
|
1068
|
+
// Two rows: what the user can do with the app, then who is logged in.
|
|
1069
|
+
account: "absolute inset-x-0 top-full z-40 divide-y divide-neutral-600/50 border-t border-neutral-600/50 bg-neutral-800 shadow-lg",
|
|
1070
|
+
// One action per line, each as tall and as far from the edge as a link of the menu.
|
|
1071
|
+
actions: "grid gap-1 p-2 [&>button]:h-10 [&>button]:justify-start [&>button]:px-3",
|
|
1072
|
+
profile: "flex items-center gap-3 p-3",
|
|
996
1073
|
// Text takes no className, so the cut of a long name or email is set from here.
|
|
997
1074
|
user: "flex min-w-0 flex-1 flex-col text-white [&>*]:truncate"
|
|
998
1075
|
}
|
|
999
1076
|
});
|
|
1000
1077
|
|
|
1001
1078
|
// core/top-nav/top-nav.tsx
|
|
1002
|
-
import { jsx as
|
|
1079
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1003
1080
|
var TopNav = ({
|
|
1004
1081
|
sections,
|
|
1005
1082
|
user,
|
|
@@ -1009,6 +1086,7 @@ var TopNav = ({
|
|
|
1009
1086
|
navLabel = "Main navigation",
|
|
1010
1087
|
menuLabel = "Menu",
|
|
1011
1088
|
accountLabel = "Account",
|
|
1089
|
+
share = {},
|
|
1012
1090
|
install = {},
|
|
1013
1091
|
logout = {},
|
|
1014
1092
|
onLogout
|
|
@@ -1051,7 +1129,7 @@ var TopNav = ({
|
|
|
1051
1129
|
};
|
|
1052
1130
|
return /* @__PURE__ */ jsxs7("header", { className: styles.base(), onPointerDown: markPressInside, children: [
|
|
1053
1131
|
/* @__PURE__ */ jsxs7("div", { className: styles.bar(), children: [
|
|
1054
|
-
hasLinks ? /* @__PURE__ */
|
|
1132
|
+
hasLinks ? /* @__PURE__ */ jsx13(
|
|
1055
1133
|
Button,
|
|
1056
1134
|
{
|
|
1057
1135
|
color: "ghost",
|
|
@@ -1061,8 +1139,8 @@ var TopNav = ({
|
|
|
1061
1139
|
"aria-expanded": menuOpen,
|
|
1062
1140
|
onClick: toggleMenu
|
|
1063
1141
|
}
|
|
1064
|
-
) : /* @__PURE__ */
|
|
1065
|
-
/* @__PURE__ */
|
|
1142
|
+
) : /* @__PURE__ */ jsx13("span", { "aria-hidden": "true", className: styles.spacer() }),
|
|
1143
|
+
/* @__PURE__ */ jsx13("div", { className: styles.home(), children: homeHref && /* @__PURE__ */ jsxs7(
|
|
1066
1144
|
Link,
|
|
1067
1145
|
{
|
|
1068
1146
|
href: homeHref,
|
|
@@ -1072,12 +1150,12 @@ var TopNav = ({
|
|
|
1072
1150
|
"aria-label": homeLabel || "Home",
|
|
1073
1151
|
onClick: close,
|
|
1074
1152
|
children: [
|
|
1075
|
-
/* @__PURE__ */
|
|
1076
|
-
homeLabel && /* @__PURE__ */
|
|
1153
|
+
/* @__PURE__ */ jsx13(Icon, { name: "Home" }),
|
|
1154
|
+
homeLabel && /* @__PURE__ */ jsx13(Text, { as: "span", variant: "caption", children: homeLabel })
|
|
1077
1155
|
]
|
|
1078
1156
|
}
|
|
1079
1157
|
) }),
|
|
1080
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ jsx13(
|
|
1081
1159
|
Button,
|
|
1082
1160
|
{
|
|
1083
1161
|
color: "ghost",
|
|
@@ -1090,35 +1168,48 @@ var TopNav = ({
|
|
|
1090
1168
|
)
|
|
1091
1169
|
] }),
|
|
1092
1170
|
accountOpen && /* @__PURE__ */ jsxs7("div", { className: styles.account(), children: [
|
|
1093
|
-
/* @__PURE__ */ jsxs7("div", { className: styles.
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
|
|
1171
|
+
/* @__PURE__ */ jsxs7("div", { className: styles.actions(), children: [
|
|
1172
|
+
/* @__PURE__ */ jsx13(
|
|
1173
|
+
ShareAppButton,
|
|
1174
|
+
{
|
|
1175
|
+
label: share.label ?? "Share app",
|
|
1176
|
+
title: share.title,
|
|
1177
|
+
text: share.text,
|
|
1178
|
+
copiedMessage: share.copiedMessage,
|
|
1179
|
+
errorMessage: share.errorMessage
|
|
1180
|
+
}
|
|
1181
|
+
),
|
|
1182
|
+
installApp.way && /* @__PURE__ */ jsx13(
|
|
1183
|
+
InstallAppButton,
|
|
1184
|
+
{
|
|
1185
|
+
way: installApp.way,
|
|
1186
|
+
label: install.label ?? "Install app",
|
|
1187
|
+
instructionsTitle: install.instructionsTitle,
|
|
1188
|
+
instructions: install.instructions,
|
|
1189
|
+
onPrompt: installApp.prompt
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1096
1192
|
] }),
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
cancelLabel: logout.cancelLabel,
|
|
1116
|
-
errorMessage: logout.errorMessage,
|
|
1117
|
-
onSignOut: onLogout
|
|
1118
|
-
}
|
|
1119
|
-
)
|
|
1193
|
+
/* @__PURE__ */ jsxs7("div", { className: styles.profile(), children: [
|
|
1194
|
+
/* @__PURE__ */ jsxs7("div", { className: styles.user(), children: [
|
|
1195
|
+
/* @__PURE__ */ jsx13(Text, { as: "span", variant: "caption", children: user.name }),
|
|
1196
|
+
/* @__PURE__ */ jsx13(Text, { as: "span", variant: "caption", children: user.email })
|
|
1197
|
+
] }),
|
|
1198
|
+
/* @__PURE__ */ jsx13(
|
|
1199
|
+
SignOutButton,
|
|
1200
|
+
{
|
|
1201
|
+
size: "lg",
|
|
1202
|
+
label: logout.label,
|
|
1203
|
+
confirmTitle: logout.confirmTitle,
|
|
1204
|
+
confirmLabel: logout.confirmLabel,
|
|
1205
|
+
cancelLabel: logout.cancelLabel,
|
|
1206
|
+
errorMessage: logout.errorMessage,
|
|
1207
|
+
onSignOut: onLogout
|
|
1208
|
+
}
|
|
1209
|
+
)
|
|
1210
|
+
] })
|
|
1120
1211
|
] }),
|
|
1121
|
-
menuOpen && /* @__PURE__ */
|
|
1212
|
+
menuOpen && /* @__PURE__ */ jsx13("nav", { "aria-label": navLabel, className: styles.menu(), children: sections.map((section2, i) => /* @__PURE__ */ jsx13("div", { className: styles.section(), children: section2.items.map((item) => /* @__PURE__ */ jsxs7(
|
|
1122
1213
|
Link,
|
|
1123
1214
|
{
|
|
1124
1215
|
href: item.href,
|
|
@@ -1128,8 +1219,8 @@ var TopNav = ({
|
|
|
1128
1219
|
"aria-label": item.label,
|
|
1129
1220
|
onClick: close,
|
|
1130
1221
|
children: [
|
|
1131
|
-
/* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */
|
|
1222
|
+
/* @__PURE__ */ jsx13(Icon, { name: item.icon }),
|
|
1223
|
+
/* @__PURE__ */ jsx13(Text, { as: "span", variant: "caption", children: item.label })
|
|
1133
1224
|
]
|
|
1134
1225
|
},
|
|
1135
1226
|
item.href
|
|
@@ -1137,9 +1228,15 @@ var TopNav = ({
|
|
|
1137
1228
|
] });
|
|
1138
1229
|
};
|
|
1139
1230
|
|
|
1140
|
-
// features/toaster/components/toaster/
|
|
1141
|
-
import {
|
|
1142
|
-
|
|
1231
|
+
// features/toaster/components/toaster/toast.tsx
|
|
1232
|
+
import { toast as sonnerToast } from "sonner";
|
|
1233
|
+
|
|
1234
|
+
// features/toaster/components/toaster/toaster-copy-button.tsx
|
|
1235
|
+
import { useState as useState4 } from "react";
|
|
1236
|
+
|
|
1237
|
+
// features/toaster/components/toaster/toaster.const.ts
|
|
1238
|
+
var toasterCopyLabel = "Copy";
|
|
1239
|
+
var toasterCopiedLabel = "Copied";
|
|
1143
1240
|
|
|
1144
1241
|
// features/toaster/components/toaster/toaster.styles.ts
|
|
1145
1242
|
import { tv as tv10 } from "tailwind-variants";
|
|
@@ -1147,7 +1244,9 @@ var focusOutline = "focus-visible:outline-2! focus-visible:outline-offset-2! foc
|
|
|
1147
1244
|
var toaster = tv10({
|
|
1148
1245
|
slots: {
|
|
1149
1246
|
toast: focusOutline,
|
|
1150
|
-
closeButton: focusOutline
|
|
1247
|
+
closeButton: focusOutline,
|
|
1248
|
+
// Sonner pushes its own action button to the end; this does the same for ours.
|
|
1249
|
+
copyButton: "ms-auto shrink-0"
|
|
1151
1250
|
}
|
|
1152
1251
|
});
|
|
1153
1252
|
var toasterColors = {
|
|
@@ -1165,8 +1264,52 @@ var toasterColors = {
|
|
|
1165
1264
|
"--error-border": "color-mix(in oklab, var(--color-zl-danger) 30%, white)"
|
|
1166
1265
|
};
|
|
1167
1266
|
|
|
1267
|
+
// features/toaster/components/toaster/toaster-copy-button.tsx
|
|
1268
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1269
|
+
var ToasterCopyButton = ({ text: text2 }) => {
|
|
1270
|
+
const [copied, setCopied] = useState4(false);
|
|
1271
|
+
const { copyButton } = toaster();
|
|
1272
|
+
const copy = () => navigator.clipboard.writeText(text2).then(
|
|
1273
|
+
() => setCopied(true),
|
|
1274
|
+
// Without permission the browser refuses, and the button stays on Copy.
|
|
1275
|
+
() => void 0
|
|
1276
|
+
);
|
|
1277
|
+
return /* @__PURE__ */ jsx14("span", { className: copyButton(), children: /* @__PURE__ */ jsx14(
|
|
1278
|
+
Button,
|
|
1279
|
+
{
|
|
1280
|
+
color: "ghost",
|
|
1281
|
+
size: "sm",
|
|
1282
|
+
icon: copied ? "Check" : void 0,
|
|
1283
|
+
onClick: copy,
|
|
1284
|
+
children: copied ? toasterCopiedLabel : toasterCopyLabel
|
|
1285
|
+
}
|
|
1286
|
+
) });
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
// features/toaster/components/toaster/toast.tsx
|
|
1290
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1291
|
+
var copyText = (message, description2) => typeof description2 === "string" ? `${message}
|
|
1292
|
+
${description2}` : message;
|
|
1293
|
+
var withCopy = (show) => (message, data) => show(
|
|
1294
|
+
message,
|
|
1295
|
+
typeof message === "string" ? {
|
|
1296
|
+
action: /* @__PURE__ */ jsx15(ToasterCopyButton, { text: copyText(message, data?.description) }),
|
|
1297
|
+
...data
|
|
1298
|
+
} : data
|
|
1299
|
+
);
|
|
1300
|
+
var toast = Object.assign(
|
|
1301
|
+
(...args) => sonnerToast(...args),
|
|
1302
|
+
sonnerToast,
|
|
1303
|
+
{
|
|
1304
|
+
error: withCopy(sonnerToast.error),
|
|
1305
|
+
warning: withCopy(sonnerToast.warning)
|
|
1306
|
+
}
|
|
1307
|
+
);
|
|
1308
|
+
|
|
1168
1309
|
// features/toaster/components/toaster/toaster.tsx
|
|
1169
|
-
import {
|
|
1310
|
+
import { useEffect as useEffect3 } from "react";
|
|
1311
|
+
import { Toaster as SonnerToaster } from "sonner";
|
|
1312
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1170
1313
|
var Toaster = () => {
|
|
1171
1314
|
const toasts = useToastStore((s) => s.toasts);
|
|
1172
1315
|
const removeToast = useToastStore((s) => s.removeToast);
|
|
@@ -1177,7 +1320,7 @@ var Toaster = () => {
|
|
|
1177
1320
|
removeToast(t.id);
|
|
1178
1321
|
});
|
|
1179
1322
|
}, [toasts, removeToast]);
|
|
1180
|
-
return /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ jsx16(
|
|
1181
1324
|
SonnerToaster,
|
|
1182
1325
|
{
|
|
1183
1326
|
position: "bottom-right",
|
|
@@ -1194,9 +1337,6 @@ var Toaster = () => {
|
|
|
1194
1337
|
);
|
|
1195
1338
|
};
|
|
1196
1339
|
|
|
1197
|
-
// features/toaster/components/toaster/index.ts
|
|
1198
|
-
import { toast as toast2 } from "sonner";
|
|
1199
|
-
|
|
1200
1340
|
// core/spinner/spinner.const.ts
|
|
1201
1341
|
var spinnerIcons = {
|
|
1202
1342
|
circle: "LoaderCircle",
|
|
@@ -1211,19 +1351,19 @@ var spinner = tv11({
|
|
|
1211
1351
|
});
|
|
1212
1352
|
|
|
1213
1353
|
// core/spinner/spinner.tsx
|
|
1214
|
-
import { jsx as
|
|
1354
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1215
1355
|
var Spinner = ({
|
|
1216
1356
|
variant = "circle",
|
|
1217
1357
|
size = "md",
|
|
1218
1358
|
label = "Loading"
|
|
1219
|
-
}) => /* @__PURE__ */
|
|
1359
|
+
}) => /* @__PURE__ */ jsx17(
|
|
1220
1360
|
"span",
|
|
1221
1361
|
{
|
|
1222
1362
|
"data-testid": "spinner",
|
|
1223
1363
|
role: "status",
|
|
1224
1364
|
"aria-label": label,
|
|
1225
1365
|
className: spinner(),
|
|
1226
|
-
children: /* @__PURE__ */
|
|
1366
|
+
children: /* @__PURE__ */ jsx17(Icon, { name: spinnerIcons[variant], size })
|
|
1227
1367
|
}
|
|
1228
1368
|
);
|
|
1229
1369
|
|
|
@@ -1234,15 +1374,15 @@ var loader = tv12({
|
|
|
1234
1374
|
});
|
|
1235
1375
|
|
|
1236
1376
|
// features/app/components/loader/loader.tsx
|
|
1237
|
-
import { jsx as
|
|
1377
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1238
1378
|
var Loader = ({ label = "Loading" }) => {
|
|
1239
1379
|
const fetching = useAppStore((s) => s.fetching);
|
|
1240
1380
|
if (!fetching) return null;
|
|
1241
|
-
return /* @__PURE__ */
|
|
1381
|
+
return /* @__PURE__ */ jsx18("div", { className: loader(), children: /* @__PURE__ */ jsx18(Spinner, { size: "lg", label }) });
|
|
1242
1382
|
};
|
|
1243
1383
|
|
|
1244
1384
|
// features/app/components/navigation/navigation.tsx
|
|
1245
|
-
import { jsx as
|
|
1385
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1246
1386
|
var Navigation = ({
|
|
1247
1387
|
mode = "auto",
|
|
1248
1388
|
sections,
|
|
@@ -1256,6 +1396,7 @@ var Navigation = ({
|
|
|
1256
1396
|
navLabel,
|
|
1257
1397
|
menuLabel,
|
|
1258
1398
|
accountLabel,
|
|
1399
|
+
share,
|
|
1259
1400
|
install,
|
|
1260
1401
|
logout,
|
|
1261
1402
|
onLogout
|
|
@@ -1266,7 +1407,7 @@ var Navigation = ({
|
|
|
1266
1407
|
return null;
|
|
1267
1408
|
}
|
|
1268
1409
|
if (desktop) {
|
|
1269
|
-
return /* @__PURE__ */
|
|
1410
|
+
return /* @__PURE__ */ jsx19(
|
|
1270
1411
|
Sidebar,
|
|
1271
1412
|
{
|
|
1272
1413
|
sections,
|
|
@@ -1278,12 +1419,13 @@ var Navigation = ({
|
|
|
1278
1419
|
homeHref,
|
|
1279
1420
|
homeLabel,
|
|
1280
1421
|
navLabel,
|
|
1422
|
+
share,
|
|
1281
1423
|
logout,
|
|
1282
1424
|
onLogout
|
|
1283
1425
|
}
|
|
1284
1426
|
);
|
|
1285
1427
|
}
|
|
1286
|
-
return /* @__PURE__ */
|
|
1428
|
+
return /* @__PURE__ */ jsx19(
|
|
1287
1429
|
TopNav,
|
|
1288
1430
|
{
|
|
1289
1431
|
sections,
|
|
@@ -1294,6 +1436,7 @@ var Navigation = ({
|
|
|
1294
1436
|
navLabel,
|
|
1295
1437
|
menuLabel,
|
|
1296
1438
|
accountLabel,
|
|
1439
|
+
share,
|
|
1297
1440
|
install,
|
|
1298
1441
|
logout,
|
|
1299
1442
|
onLogout
|
|
@@ -1302,7 +1445,7 @@ var Navigation = ({
|
|
|
1302
1445
|
};
|
|
1303
1446
|
|
|
1304
1447
|
// core/state/redux/redux-provider/redux-provider.tsx
|
|
1305
|
-
import { useState as
|
|
1448
|
+
import { useState as useState5 } from "react";
|
|
1306
1449
|
import { Provider } from "react-redux";
|
|
1307
1450
|
|
|
1308
1451
|
// core/state/redux/store/store.ts
|
|
@@ -1335,7 +1478,7 @@ var createReduxStore = ({
|
|
|
1335
1478
|
};
|
|
1336
1479
|
|
|
1337
1480
|
// core/state/redux/redux-provider/redux-provider.tsx
|
|
1338
|
-
import { jsx as
|
|
1481
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1339
1482
|
var ReduxProvider = ({
|
|
1340
1483
|
children,
|
|
1341
1484
|
reducers = {},
|
|
@@ -1343,7 +1486,7 @@ var ReduxProvider = ({
|
|
|
1343
1486
|
preloadedState = {},
|
|
1344
1487
|
coreReducers = {}
|
|
1345
1488
|
}) => {
|
|
1346
|
-
const [store] =
|
|
1489
|
+
const [store] = useState5(
|
|
1347
1490
|
() => createReduxStore({
|
|
1348
1491
|
reducers,
|
|
1349
1492
|
middlewares,
|
|
@@ -1351,7 +1494,7 @@ var ReduxProvider = ({
|
|
|
1351
1494
|
coreReducers
|
|
1352
1495
|
})
|
|
1353
1496
|
);
|
|
1354
|
-
return /* @__PURE__ */
|
|
1497
|
+
return /* @__PURE__ */ jsx20(Provider, { store, children });
|
|
1355
1498
|
};
|
|
1356
1499
|
|
|
1357
1500
|
// core/state/zustand/router/router.utils.ts
|
|
@@ -1443,7 +1586,7 @@ var card = tv13({
|
|
|
1443
1586
|
});
|
|
1444
1587
|
|
|
1445
1588
|
// core/card/card.tsx
|
|
1446
|
-
import { jsx as
|
|
1589
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1447
1590
|
var Card = ({
|
|
1448
1591
|
children,
|
|
1449
1592
|
title: title2,
|
|
@@ -1455,8 +1598,8 @@ var Card = ({
|
|
|
1455
1598
|
const messageColor = color === "none" ? "muted" : "none";
|
|
1456
1599
|
return /* @__PURE__ */ jsxs8("div", { "data-testid": "card", className: base(), children: [
|
|
1457
1600
|
(title2 || message) && /* @__PURE__ */ jsxs8("div", { className: header3(), children: [
|
|
1458
|
-
title2 && /* @__PURE__ */
|
|
1459
|
-
message && /* @__PURE__ */
|
|
1601
|
+
title2 && /* @__PURE__ */ jsx21(Heading, { level: titleLevel, children: title2 }),
|
|
1602
|
+
message && /* @__PURE__ */ jsx21(Text, { color: messageColor, children: message })
|
|
1460
1603
|
] }),
|
|
1461
1604
|
children
|
|
1462
1605
|
] });
|
|
@@ -1471,7 +1614,7 @@ var accessPending = tv14({
|
|
|
1471
1614
|
});
|
|
1472
1615
|
|
|
1473
1616
|
// features/auth/components/access-pending/access-pending.tsx
|
|
1474
|
-
import { jsx as
|
|
1617
|
+
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1475
1618
|
var AccessPending = ({
|
|
1476
1619
|
title: title2 = "Waiting for approval",
|
|
1477
1620
|
message = "Your access to this app has not been approved yet.",
|
|
@@ -1486,9 +1629,9 @@ var AccessPending = ({
|
|
|
1486
1629
|
if (!user) {
|
|
1487
1630
|
return null;
|
|
1488
1631
|
}
|
|
1489
|
-
return /* @__PURE__ */
|
|
1490
|
-
/* @__PURE__ */
|
|
1491
|
-
/* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ jsx22(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsxs9("div", { className: account(), children: [
|
|
1633
|
+
/* @__PURE__ */ jsx22(Text, { variant: "caption", color: "muted", children: user.email }),
|
|
1634
|
+
/* @__PURE__ */ jsx22(
|
|
1492
1635
|
SignOutButton,
|
|
1493
1636
|
{
|
|
1494
1637
|
label: signOutLabel,
|
|
@@ -1503,7 +1646,7 @@ var AccessPending = ({
|
|
|
1503
1646
|
|
|
1504
1647
|
// features/auth/components/auth-provider/auth-provider.tsx
|
|
1505
1648
|
import { useEffect as useEffect4 } from "react";
|
|
1506
|
-
import { Fragment as Fragment6, jsx as
|
|
1649
|
+
import { Fragment as Fragment6, jsx as jsx23 } from "react/jsx-runtime";
|
|
1507
1650
|
var AuthProvider = ({
|
|
1508
1651
|
adapter,
|
|
1509
1652
|
appId,
|
|
@@ -1520,7 +1663,7 @@ var AuthProvider = ({
|
|
|
1520
1663
|
reset();
|
|
1521
1664
|
};
|
|
1522
1665
|
}, [adapter, appId, configure, setSession, reset]);
|
|
1523
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsx23(Fragment6, { children });
|
|
1524
1667
|
};
|
|
1525
1668
|
|
|
1526
1669
|
// features/auth/components/login/login.const.ts
|
|
@@ -1542,7 +1685,7 @@ var login = tv15({
|
|
|
1542
1685
|
});
|
|
1543
1686
|
|
|
1544
1687
|
// features/auth/components/login/login.tsx
|
|
1545
|
-
import { jsx as
|
|
1688
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1546
1689
|
var LoginProviderButton = ({
|
|
1547
1690
|
id,
|
|
1548
1691
|
label,
|
|
@@ -1551,7 +1694,7 @@ var LoginProviderButton = ({
|
|
|
1551
1694
|
const signIn = () => {
|
|
1552
1695
|
onSignIn(id);
|
|
1553
1696
|
};
|
|
1554
|
-
return /* @__PURE__ */
|
|
1697
|
+
return /* @__PURE__ */ jsx24(Button, { size: "lg", fullWidth: true, onClick: signIn, children: label });
|
|
1555
1698
|
};
|
|
1556
1699
|
var Login = ({
|
|
1557
1700
|
vendor,
|
|
@@ -1569,9 +1712,9 @@ var Login = ({
|
|
|
1569
1712
|
useToastStore.getState().error(errorMessage);
|
|
1570
1713
|
});
|
|
1571
1714
|
};
|
|
1572
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx24(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsx24("div", { className: options(), children: providers.map((provider) => {
|
|
1573
1716
|
const id = String(provider);
|
|
1574
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx24(
|
|
1575
1718
|
LoginProviderButton,
|
|
1576
1719
|
{
|
|
1577
1720
|
id,
|
|
@@ -1584,7 +1727,7 @@ var Login = ({
|
|
|
1584
1727
|
};
|
|
1585
1728
|
|
|
1586
1729
|
// features/auth/components/authorized/authorized.tsx
|
|
1587
|
-
import { Fragment as Fragment7, jsx as
|
|
1730
|
+
import { Fragment as Fragment7, jsx as jsx25 } from "react/jsx-runtime";
|
|
1588
1731
|
var Authorized = ({
|
|
1589
1732
|
children,
|
|
1590
1733
|
roles,
|
|
@@ -1593,18 +1736,18 @@ var Authorized = ({
|
|
|
1593
1736
|
}) => {
|
|
1594
1737
|
const { status, user, role } = useAuth();
|
|
1595
1738
|
if (status === "loading") return null;
|
|
1596
|
-
if (!user) return /* @__PURE__ */
|
|
1739
|
+
if (!user) return /* @__PURE__ */ jsx25(Login, { ...login2 });
|
|
1597
1740
|
const hasRole = !roles || role !== null && roles.includes(role);
|
|
1598
|
-
if (!user.hasAccess || !hasRole) return /* @__PURE__ */
|
|
1599
|
-
return /* @__PURE__ */
|
|
1741
|
+
if (!user.hasAccess || !hasRole) return /* @__PURE__ */ jsx25(AccessPending, { ...accessPending2 });
|
|
1742
|
+
return /* @__PURE__ */ jsx25(Fragment7, { children });
|
|
1600
1743
|
};
|
|
1601
1744
|
|
|
1602
1745
|
// features/providers/components/zustand-providers/zustand-providers.tsx
|
|
1603
|
-
import { Fragment as Fragment8, jsx as
|
|
1746
|
+
import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1604
1747
|
var ZustandProviders = ({ children, auth }) => /* @__PURE__ */ jsxs10(Fragment8, { children: [
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
/* @__PURE__ */
|
|
1607
|
-
auth ? /* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ jsx26(Loader, {}),
|
|
1749
|
+
/* @__PURE__ */ jsx26(Toaster, {}),
|
|
1750
|
+
auth ? /* @__PURE__ */ jsx26(AuthProvider, { adapter: auth.adapter, appId: auth.appId, children }) : children
|
|
1608
1751
|
] });
|
|
1609
1752
|
|
|
1610
1753
|
export {
|
|
@@ -1613,10 +1756,11 @@ export {
|
|
|
1613
1756
|
Text,
|
|
1614
1757
|
Modal,
|
|
1615
1758
|
Heading,
|
|
1759
|
+
useToastStore,
|
|
1760
|
+
ShareAppButton,
|
|
1616
1761
|
appInitialState,
|
|
1617
1762
|
useAppStore,
|
|
1618
1763
|
ConnectedModal,
|
|
1619
|
-
useToastStore,
|
|
1620
1764
|
getAuthSession,
|
|
1621
1765
|
useAuth,
|
|
1622
1766
|
SignOutButton,
|
|
@@ -1626,8 +1770,8 @@ export {
|
|
|
1626
1770
|
useInstallApp,
|
|
1627
1771
|
useIsDesktop,
|
|
1628
1772
|
TopNav,
|
|
1773
|
+
toast,
|
|
1629
1774
|
Toaster,
|
|
1630
|
-
toast2 as toast,
|
|
1631
1775
|
Spinner,
|
|
1632
1776
|
Loader,
|
|
1633
1777
|
Navigation,
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, ChangeEvent, FormEvent, HTMLInputAutoCompleteAttribute, FocusEvent, KeyboardEvent, Ref } from 'react';
|
|
3
3
|
import { S as SemanticColor, D as DataColor, A as AuxiliaryColor, R as ReduxProviderProps, a as AuthSession, b as AuthConfig, c as AuthAdapter, d as AuthStatus, e as AuthUser, Z as ZustandProvidersProps } from './zustand-providers.interface-CeC8U2hM.js';
|
|
4
4
|
export { FormInput, FormInputProps, FormProvider, FormProviderProps } from './rhf/index.js';
|
|
5
|
-
|
|
5
|
+
import { toast as toast$1 } from 'sonner';
|
|
6
6
|
import * as zustand from 'zustand';
|
|
7
7
|
import { Store, Reducer } from '@reduxjs/toolkit';
|
|
8
8
|
import 'react-hook-form';
|
|
@@ -12,7 +12,7 @@ import 'react-hook-form';
|
|
|
12
12
|
*/
|
|
13
13
|
type Size = "sm" | "md" | "lg";
|
|
14
14
|
|
|
15
|
-
declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "Download", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "Settings", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify", "SiGithub"];
|
|
15
|
+
declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "Download", "Share2", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "Settings", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify", "SiGithub"];
|
|
16
16
|
|
|
17
17
|
type IconName = (typeof iconNames)[number];
|
|
18
18
|
interface IconProps {
|
|
@@ -243,6 +243,32 @@ interface TextProps {
|
|
|
243
243
|
|
|
244
244
|
declare const Text: ({ children, as: Tag, variant, color, }: TextProps) => react.JSX.Element;
|
|
245
245
|
|
|
246
|
+
interface ShareAppButtonProps {
|
|
247
|
+
/** The text of the button. With `iconOnly`, its accessible name. */
|
|
248
|
+
label: string;
|
|
249
|
+
/**
|
|
250
|
+
* Shows the icon alone, for a place with no room for the text, such as a
|
|
251
|
+
* collapsed sidebar.
|
|
252
|
+
*/
|
|
253
|
+
iconOnly?: boolean;
|
|
254
|
+
/** The size of the button. `lg` is for a touch screen. */
|
|
255
|
+
size?: Size;
|
|
256
|
+
/**
|
|
257
|
+
* The title of what is shared. By default the title of the page. The address
|
|
258
|
+
* is always the origin of the page: where the app starts, whatever page the
|
|
259
|
+
* user is on.
|
|
260
|
+
*/
|
|
261
|
+
title?: string;
|
|
262
|
+
/** A text that goes with the address, such as how to ask for access. */
|
|
263
|
+
text?: string;
|
|
264
|
+
/** The toast shown when the address is copied instead of shared. */
|
|
265
|
+
copiedMessage?: string;
|
|
266
|
+
/** The toast shown when the address could be neither shared nor copied. */
|
|
267
|
+
errorMessage?: string;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
declare const ShareAppButton: ({ label, iconOnly, size, title, text, copiedMessage, errorMessage, }: ShareAppButtonProps) => react.JSX.Element;
|
|
271
|
+
|
|
246
272
|
interface SignOutButtonProps {
|
|
247
273
|
/** The accessible name of the icon button. */
|
|
248
274
|
label?: string;
|
|
@@ -290,6 +316,12 @@ interface SidebarProps {
|
|
|
290
316
|
homeLabel?: string;
|
|
291
317
|
/** The accessible name of the navigation. */
|
|
292
318
|
navLabel?: string;
|
|
319
|
+
/**
|
|
320
|
+
* The share button, over the user: its texts (`label`, `copiedMessage` and
|
|
321
|
+
* `errorMessage`) and what goes with the address of the app (`title` and
|
|
322
|
+
* `text`).
|
|
323
|
+
*/
|
|
324
|
+
share?: Partial<Omit<ShareAppButtonProps, "iconOnly" | "size">>;
|
|
293
325
|
/**
|
|
294
326
|
* The texts of the logout button and of the modal it opens: `label`,
|
|
295
327
|
* `confirmTitle`, `confirmLabel`, `cancelLabel` and `errorMessage`.
|
|
@@ -302,7 +334,7 @@ interface SidebarProps {
|
|
|
302
334
|
onLogout: () => void | Promise<void>;
|
|
303
335
|
}
|
|
304
336
|
|
|
305
|
-
declare const Sidebar: ({ sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, logout, onLogout, }: SidebarProps) => react.JSX.Element;
|
|
337
|
+
declare const Sidebar: ({ sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, share, logout, onLogout, }: SidebarProps) => react.JSX.Element;
|
|
306
338
|
|
|
307
339
|
interface TabsItem {
|
|
308
340
|
/** Unique among the tabs. `defaultTab` and `onChange` use it. */
|
|
@@ -365,9 +397,14 @@ interface InstallAppButtonProps {
|
|
|
365
397
|
* `onPrompt` on a click, and `instructions` opens a modal with the steps.
|
|
366
398
|
*/
|
|
367
399
|
way: InstallAppWay;
|
|
368
|
-
/** The
|
|
369
|
-
label
|
|
370
|
-
/**
|
|
400
|
+
/** The text of the button. With `iconOnly`, its accessible name. */
|
|
401
|
+
label: string;
|
|
402
|
+
/**
|
|
403
|
+
* Shows the icon alone, for a place with no room for the text, such as a
|
|
404
|
+
* collapsed sidebar.
|
|
405
|
+
*/
|
|
406
|
+
iconOnly?: boolean;
|
|
407
|
+
/** The size of the button. `lg` is for a touch screen. */
|
|
371
408
|
size?: Size;
|
|
372
409
|
/** The title of the modal with the steps. */
|
|
373
410
|
instructionsTitle?: string;
|
|
@@ -380,7 +417,7 @@ interface InstallAppButtonProps {
|
|
|
380
417
|
onPrompt: () => void;
|
|
381
418
|
}
|
|
382
419
|
|
|
383
|
-
declare const InstallAppButton: ({ way, label, size, instructionsTitle, instructions, onPrompt, }: InstallAppButtonProps) => react.JSX.Element;
|
|
420
|
+
declare const InstallAppButton: ({ way, label, iconOnly, size, instructionsTitle, instructions, onPrompt, }: InstallAppButtonProps) => react.JSX.Element;
|
|
384
421
|
|
|
385
422
|
interface TopNavProps {
|
|
386
423
|
/**
|
|
@@ -399,12 +436,19 @@ interface TopNavProps {
|
|
|
399
436
|
menuLabel?: string;
|
|
400
437
|
/** The accessible name of the account button. */
|
|
401
438
|
accountLabel?: string;
|
|
439
|
+
/**
|
|
440
|
+
* The share button, the first line of the account panel: its texts (`label`,
|
|
441
|
+
* `copiedMessage` and `errorMessage`) and what goes with the address of the
|
|
442
|
+
* app (`title` and `text`).
|
|
443
|
+
*/
|
|
444
|
+
share?: Partial<Omit<ShareAppButtonProps, "iconOnly" | "size">>;
|
|
402
445
|
/**
|
|
403
446
|
* The texts of the install button and of the modal with its steps: `label`,
|
|
404
|
-
* `instructionsTitle` and `instructions`. The button
|
|
405
|
-
* button, only in a browser that can put the app on the
|
|
447
|
+
* `instructionsTitle` and `instructions`. The button has its own line over the
|
|
448
|
+
* user and the logout button, only in a browser that can put the app on the
|
|
449
|
+
* home screen.
|
|
406
450
|
*/
|
|
407
|
-
install?: Pick<InstallAppButtonProps, "label" | "instructionsTitle" | "instructions"
|
|
451
|
+
install?: Partial<Pick<InstallAppButtonProps, "label" | "instructionsTitle" | "instructions">>;
|
|
408
452
|
/**
|
|
409
453
|
* The texts of the logout button and of the modal it opens: `label`,
|
|
410
454
|
* `confirmTitle`, `confirmLabel`, `cancelLabel` and `errorMessage`.
|
|
@@ -417,7 +461,7 @@ interface TopNavProps {
|
|
|
417
461
|
onLogout: () => void | Promise<void>;
|
|
418
462
|
}
|
|
419
463
|
|
|
420
|
-
declare const TopNav: ({ sections, user, activeHref, homeHref, homeLabel, navLabel, menuLabel, accountLabel, install, logout, onLogout, }: TopNavProps) => react.JSX.Element;
|
|
464
|
+
declare const TopNav: ({ sections, user, activeHref, homeHref, homeLabel, navLabel, menuLabel, accountLabel, share, install, logout, onLogout, }: TopNavProps) => react.JSX.Element;
|
|
421
465
|
|
|
422
466
|
type TagColor = Exclude<SemanticColor, "none"> | AuxiliaryColor;
|
|
423
467
|
interface TagProps {
|
|
@@ -433,6 +477,8 @@ declare const Tag: ({ children, color, size, onRemove, removeLabel, }: TagProps)
|
|
|
433
477
|
|
|
434
478
|
declare const Toaster: () => react.JSX.Element;
|
|
435
479
|
|
|
480
|
+
declare const toast: typeof toast$1;
|
|
481
|
+
|
|
436
482
|
type ToastType = "success" | "error" | "info" | "warning";
|
|
437
483
|
interface Toast {
|
|
438
484
|
id: number;
|
|
@@ -498,7 +544,7 @@ interface NavigationProps extends SidebarProps, Pick<TopNavProps, "menuLabel" |
|
|
|
498
544
|
mode?: NavigationMode;
|
|
499
545
|
}
|
|
500
546
|
|
|
501
|
-
declare const Navigation: ({ mode, sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, menuLabel, accountLabel, install, logout, onLogout, }: NavigationProps) => react.JSX.Element | null;
|
|
547
|
+
declare const Navigation: ({ mode, sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, menuLabel, accountLabel, share, install, logout, onLogout, }: NavigationProps) => react.JSX.Element | null;
|
|
502
548
|
|
|
503
549
|
interface AppState {
|
|
504
550
|
fetchingCalls: number;
|
|
@@ -727,5 +773,5 @@ declare const useAuth: () => UseAuthResult;
|
|
|
727
773
|
|
|
728
774
|
declare const ZustandProviders: ({ children, auth }: ZustandProvidersProps) => react.JSX.Element;
|
|
729
775
|
|
|
730
|
-
export { AccessPending, AuthAdapter, AuthProvider, AuthSession, Authorized, AuxiliaryColor, Button, Card, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, InstallAppButton, Loader, Login, Modal, Navigation, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, Sidebar, SignOutButton, Spinner, StatsCard, Tabs, Tag, Text, TextArea, Toaster, TopNav, WhatsAppButton, ZustandProviders, ZustandProvidersProps, appInitialState, getAuthSession, splitURLasPath, useAppStore, useAuth, useInstallApp, useIsDesktop, usePageStore, useRouterStore, useToastStore };
|
|
731
|
-
export type { AppState, AuthorizedProps, ButtonColor, ButtonProps, ButtonVariant, CardProps, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, InstallApp, InstallAppButtonProps, InstallAppWay, LoaderProps, LoginProvider, LoginVendor, ModalProps, NavigationMode, NavigationProps, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TabsItem, TabsProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, TopNavProps, WhatsAppButtonProps };
|
|
776
|
+
export { AccessPending, AuthAdapter, AuthProvider, AuthSession, Authorized, AuxiliaryColor, Button, Card, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, InstallAppButton, Loader, Login, Modal, Navigation, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, ShareAppButton, Sidebar, SignOutButton, Spinner, StatsCard, Tabs, Tag, Text, TextArea, Toaster, TopNav, WhatsAppButton, ZustandProviders, ZustandProvidersProps, appInitialState, getAuthSession, splitURLasPath, toast, useAppStore, useAuth, useInstallApp, useIsDesktop, usePageStore, useRouterStore, useToastStore };
|
|
777
|
+
export type { AppState, AuthorizedProps, ButtonColor, ButtonProps, ButtonVariant, CardProps, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, InstallApp, InstallAppButtonProps, InstallAppWay, LoaderProps, LoginProvider, LoginVendor, ModalProps, NavigationMode, NavigationProps, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, ShareAppButtonProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TabsItem, TabsProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, TopNavProps, WhatsAppButtonProps };
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Modal,
|
|
15
15
|
Navigation,
|
|
16
16
|
ReduxProvider,
|
|
17
|
+
ShareAppButton,
|
|
17
18
|
Sidebar,
|
|
18
19
|
SignOutButton,
|
|
19
20
|
Spinner,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
usePageStore,
|
|
33
34
|
useRouterStore,
|
|
34
35
|
useToastStore
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4JXA6DG6.js";
|
|
36
37
|
import {
|
|
37
38
|
Error,
|
|
38
39
|
FormInput,
|
|
@@ -794,6 +795,7 @@ export {
|
|
|
794
795
|
Radio,
|
|
795
796
|
ReduxProvider,
|
|
796
797
|
Select,
|
|
798
|
+
ShareAppButton,
|
|
797
799
|
Sidebar,
|
|
798
800
|
SignOutButton,
|
|
799
801
|
Spinner,
|
package/dist/next/index.js
CHANGED