@layers-app/shared 0.2.6 → 0.2.8-test
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/dist/assets/svg/socials/instagram.svg.js +3 -3
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +21 -20
- package/dist/components/AppContainer/AppContainer.js +3 -3
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +40 -32
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +41 -33
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +58 -49
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +151 -51
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +46 -43
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +2 -1
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.d.ts +11 -0
- package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
- package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
- package/dist/components/FeatureProgress/constants.d.ts +4 -0
- package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
- package/dist/components/FeatureProgress/constants.js +4 -0
- package/dist/components/FeatureProgress/index.d.ts +3 -0
- package/dist/components/FeatureProgress/index.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +247 -229
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +59 -33
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +18 -15
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/api/giphyApi.js +10 -10
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/OneSlideLayput.js +39 -37
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +42 -42
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.js +13 -13
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.js +185 -183
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/ImageCropper/index.d.ts +1 -1
- package/dist/components/ImageCropper/index.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
- package/dist/components/ImageCropper/useCropInteraction.js +13 -2
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +45 -35
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -1
- package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
- package/dist/components/NavMenu/NavMenu.d.ts +2 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +128 -106
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +17 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
- package/dist/components/OnboardingTour/index.d.ts +4 -0
- package/dist/components/OnboardingTour/index.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
- package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/SocialLinkRow/index.d.ts.map +1 -1
- package/dist/components/SocialLinkRow/index.js +80 -58
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TimezonePicker/index.d.ts.map +1 -1
- package/dist/components/TimezonePicker/index.js +42 -41
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +11 -10
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +1 -1
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/platform.d.ts +14 -0
- package/dist/helpers/platform.d.ts.map +1 -0
- package/dist/helpers/platform.js +33 -0
- package/dist/helpers/showFeatureFeedback.d.ts +16 -0
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
- package/dist/helpers/showFeatureFeedback.js +109 -0
- package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +81 -113
- package/dist/helpers/showNotifications.module.css.js +10 -10
- package/dist/hooks/useFeatureFeedback.d.ts +23 -0
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
- package/dist/hooks/useFeatureFeedback.js +45 -0
- package/dist/hooks/usePlatform.d.ts +3 -0
- package/dist/hooks/usePlatform.d.ts.map +1 -0
- package/dist/hooks/usePlatform.js +10 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +373 -334
- package/dist/lang/locales/ui_en.json.js +15 -15
- package/dist/lang/locales/ui_es.json.js +13 -13
- package/dist/lang/locales/ui_ru.json.js +12 -12
- package/dist/lib/contentImport/lexicalSerializer.js +59 -47
- package/dist/lib/contentImport/utils.d.ts.map +1 -1
- package/dist/lib/layersVisitData.d.ts +13 -0
- package/dist/lib/layersVisitData.d.ts.map +1 -0
- package/dist/lib/layersVisitData.js +37 -0
- package/dist/store/featureProgress.d.ts +39 -0
- package/dist/store/featureProgress.d.ts.map +1 -0
- package/dist/store/featureProgress.js +68 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -6
- package/docs/README.md +499 -499
- package/package.json +75 -74
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{
|
|
3
|
+
path: "color-and-gradients",
|
|
4
|
+
id: "colorGradients",
|
|
5
|
+
url: "https://images.superfamous.com/36-Gradients",
|
|
6
|
+
items: [
|
|
7
|
+
"/gradients_2.webp",
|
|
8
|
+
"/gradients_3.webp",
|
|
9
|
+
"/gradients_4.webp",
|
|
10
|
+
"/gradients_5.webp",
|
|
11
|
+
"/gradients_8.webp",
|
|
12
|
+
"/gradients_10.webp",
|
|
13
|
+
"/gradients_11.webp",
|
|
14
|
+
"/solid_beige.webp",
|
|
15
|
+
"/solid_blue.webp",
|
|
16
|
+
"/solid_red.webp",
|
|
17
|
+
"/solid_yellow.webp"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
path: "indian-art",
|
|
22
|
+
id: "theIndianEdition",
|
|
23
|
+
url: "https://www.artisera.com/pages/fine-art",
|
|
24
|
+
items: [
|
|
25
|
+
"/5-acquatinte-01.jpg",
|
|
26
|
+
"/5-acquatinte-03.jpg",
|
|
27
|
+
"/5-acquatinte-04.jpg",
|
|
28
|
+
"/5-acquatinte-05.jpg",
|
|
29
|
+
"/1280px-Edwin_Lord_Weeks_-_The_Taj_Mahal_-_Walters_37316.jpg",
|
|
30
|
+
"/Ethnic-Serendipity-_-Acrylic-on-canvas-_48-x-84-inches-_-9600.jpg",
|
|
31
|
+
"/Raja_Ravi_Varma,_Galaxy_of_Musicians.jpg",
|
|
32
|
+
"/T12511_10.webp",
|
|
33
|
+
"/screen-2023-07-04-00-04-38.jpg"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
path: "james-webb-telescope",
|
|
38
|
+
id: "jamesWebbTelescope",
|
|
39
|
+
url: "https://webbtelescope.org",
|
|
40
|
+
items: ["/webb1.jpg", "/webb2.webp", "/webb3.jpg", "/webb4.jpg"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: "japanese-print",
|
|
44
|
+
id: "theMetMuseumJapanesePrints",
|
|
45
|
+
url: "https://www.metmuseum.org/art/the-collection",
|
|
46
|
+
items: [
|
|
47
|
+
"/woodcuts_1.jpg",
|
|
48
|
+
"/woodcuts_2.jpg",
|
|
49
|
+
"/woodcuts_3.jpg",
|
|
50
|
+
"/woodcuts_4.jpg",
|
|
51
|
+
"/woodcuts_5.jpg",
|
|
52
|
+
"/woodcuts_6.jpg",
|
|
53
|
+
"/woodcuts_7.jpg",
|
|
54
|
+
"/woodcuts_8.jpg",
|
|
55
|
+
"/woodcuts_9.jpg",
|
|
56
|
+
"/woodcuts_10.jpg",
|
|
57
|
+
"/woodcuts_11.jpg",
|
|
58
|
+
"/woodcuts_13.jpg",
|
|
59
|
+
"/woodcuts_14.jpg",
|
|
60
|
+
"/woodcuts_15.jpg",
|
|
61
|
+
"/woodcuts_16.jpg",
|
|
62
|
+
"/woodcuts_sekka_1.jpg",
|
|
63
|
+
"/woodcuts_sekka_2.jpg",
|
|
64
|
+
"/woodcuts_sekka_3.jpg"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
path: "met-museum",
|
|
69
|
+
id: "theMetMuseum",
|
|
70
|
+
url: "https://www.metmuseum.org/art/the-collection",
|
|
71
|
+
items: [
|
|
72
|
+
"/met_arnold_bocklin_1880.jpg",
|
|
73
|
+
"/met_bruegel_1565.jpg",
|
|
74
|
+
"/met_camille_pissarro_1896.jpg",
|
|
75
|
+
"/met_canaletto_1720.jpg",
|
|
76
|
+
"/met_cezanne_1890.jpg",
|
|
77
|
+
"/met_edgar_degas_1874.jpg",
|
|
78
|
+
"/met_emanuel_leutze.jpg",
|
|
79
|
+
"/met_fitz_henry_lane.jpg",
|
|
80
|
+
"/met_frederic_edwin_church_1871.jpg",
|
|
81
|
+
"/met_georges_seurat_1884.jpg",
|
|
82
|
+
"/met_gerome_1890.jpg",
|
|
83
|
+
"/met_goya_1789.jpg",
|
|
84
|
+
"/met_henri_rousseau_1907.webp",
|
|
85
|
+
"/met_henri_tl_1892.jpg",
|
|
86
|
+
"/met_henry_lerolle_1885.jpg",
|
|
87
|
+
"/met_horace_pippin.jpg",
|
|
88
|
+
"/met_jean_beraud.jpg",
|
|
89
|
+
"/met_john_singer_sargent_morocco.jpg",
|
|
90
|
+
"/met_joseph_hidley_1870.jpg",
|
|
91
|
+
"/met_jules_tavernier_1878.jpg",
|
|
92
|
+
"/met_klimt_1912.jpg",
|
|
93
|
+
"/met_paul_signac.jpg",
|
|
94
|
+
"/met_terracotta_funerary_plaque.jpg",
|
|
95
|
+
"/met_the_unicorn_in_captivity.jpg",
|
|
96
|
+
"/met_vincent_van_gogh_cradle.jpg",
|
|
97
|
+
"/met_vincent_van_gogh_ginoux.jpg",
|
|
98
|
+
"/met_vincent_van_gogh_irises.jpg",
|
|
99
|
+
"/met_vincent_van_gogh_oleanders.jpg",
|
|
100
|
+
"/met_william_turner_1835.jpg",
|
|
101
|
+
"/met_winslow_homer_maine_coast.jpg"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
path: "nasa-archive",
|
|
106
|
+
id: "nasaArchive",
|
|
107
|
+
url: "https://www.flickr.com/photos/nasacommons/",
|
|
108
|
+
items: [
|
|
109
|
+
"/nasa_bruce_mccandless_spacewalk.webp",
|
|
110
|
+
"/nasa_buzz_aldrin_on_the_moon.webp",
|
|
111
|
+
"/nasa_carina_nebula.jpg",
|
|
112
|
+
"/nasa_eagle_in_lunar_orbit.webp",
|
|
113
|
+
"/nasa_earth_grid.webp",
|
|
114
|
+
"/nasa_eva_during_skylab_3.webp",
|
|
115
|
+
"/nasa_fingerprints_of_water_on_the_sand.webp",
|
|
116
|
+
"/nasa_great_sandy_desert_australia.webp",
|
|
117
|
+
"/nasa_ibm_type_704.webp",
|
|
118
|
+
"/nasa_multi-axis_gimbal_rig.webp",
|
|
119
|
+
"/nasa_new_york_city_grid.webp",
|
|
120
|
+
"/nasa_reduced_gravity_walking_simulator.webp",
|
|
121
|
+
"/nasa_robert_stewart_spacewalk.jpg",
|
|
122
|
+
"/nasa_robert_stewart_spacewalk_2.jpg",
|
|
123
|
+
"/nasa_space_shuttle_challenger.jpg",
|
|
124
|
+
"/nasa_space_shuttle_columbia.jpg",
|
|
125
|
+
"/nasa_space_shuttle_columbia_and_sunrise.webp",
|
|
126
|
+
"/nasa_the_blue_marble.webp",
|
|
127
|
+
"/nasa_tim_peake_spacewalk.webp",
|
|
128
|
+
"/nasa_transonic_tunnel.webp",
|
|
129
|
+
"/nasa_wrights_first_flight.webp"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
path: "patterns",
|
|
134
|
+
id: "theMetMuseumPatterns",
|
|
135
|
+
url: "https://www.metmuseum.org/art/the-collection",
|
|
136
|
+
items: [
|
|
137
|
+
"/met_silk_kashan_carpet.webp",
|
|
138
|
+
"/met_william_morris_1875.webp",
|
|
139
|
+
"/met_william_morris_1877_willow.webp",
|
|
140
|
+
"/met_william_morris_1878.webp"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "rijks-museum",
|
|
145
|
+
id: "rijkmuseum",
|
|
146
|
+
url: "https://www.rijksmuseum.nl/en/rijksstudio?ii=0&p=0&from=2023-07-02T23%3A55%3A33.8008630Z",
|
|
147
|
+
items: [
|
|
148
|
+
"/rijksmuseum_avercamp_1608.webp",
|
|
149
|
+
"/rijksmuseum_avercamp_1620.webp",
|
|
150
|
+
"/rijksmuseum_claesz_1628.webp",
|
|
151
|
+
"/rijksmuseum_jan_lievens_1627.jpg",
|
|
152
|
+
"/rijksmuseum_jansz_1636.jpg",
|
|
153
|
+
"/rijksmuseum_jansz_1637.jpg",
|
|
154
|
+
"/rijksmuseum_jansz_1641.jpg",
|
|
155
|
+
"/rijksmuseum_jansz_1649.webp",
|
|
156
|
+
"/rijksmuseum_mignons_1660.webp",
|
|
157
|
+
"/rijksmuseum_rembrandt_1642.webp",
|
|
158
|
+
"/rijksmuseum_vermeer_the_milkmaid.jpg"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
export {
|
|
163
|
+
e as coverCollections
|
|
164
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_themeProvider_1fk4v_1", o = "_root_1fk4v_13", e = "_container_1fk4v_71", n = "_media_1fk4v_83", _ = "_background_1fk4v_91", s = "_stepRoot_1fk4v_117", c = "_content_1fk4v_207", i = "_mediaInner_1fk4v_337", a = "_stepTitle_1fk4v_663", r = "_stepDescription_1fk4v_709", d = "_stepIndicator_1fk4v_737", p = "_stepIndicatorIcon_1fk4v_771", l = "_focusBox_1fk4v_809", f = "_dropzone_1fk4v_827", k = "_allSlidesLayout_1fk4v_863", v = "_allSlidesLayoutStep_1fk4v_875", u = {
|
|
2
2
|
themeProvider: t,
|
|
3
3
|
root: o,
|
|
4
4
|
container: e,
|
|
@@ -6,32 +6,32 @@ const t = "_themeProvider_1lm79_1", o = "_root_1lm79_7", e = "_container_1lm79_3
|
|
|
6
6
|
background: _,
|
|
7
7
|
stepRoot: s,
|
|
8
8
|
content: c,
|
|
9
|
-
mediaInner:
|
|
10
|
-
stepTitle:
|
|
11
|
-
stepDescription:
|
|
12
|
-
stepIndicator:
|
|
13
|
-
stepIndicatorIcon:
|
|
14
|
-
focusBox:
|
|
15
|
-
dropzone:
|
|
16
|
-
allSlidesLayout:
|
|
17
|
-
allSlidesLayoutStep:
|
|
9
|
+
mediaInner: i,
|
|
10
|
+
stepTitle: a,
|
|
11
|
+
stepDescription: r,
|
|
12
|
+
stepIndicator: d,
|
|
13
|
+
stepIndicatorIcon: p,
|
|
14
|
+
focusBox: l,
|
|
15
|
+
dropzone: f,
|
|
16
|
+
allSlidesLayout: k,
|
|
17
|
+
allSlidesLayoutStep: v
|
|
18
18
|
};
|
|
19
19
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
k as allSlidesLayout,
|
|
21
|
+
v as allSlidesLayoutStep,
|
|
22
22
|
_ as background,
|
|
23
23
|
e as container,
|
|
24
24
|
c as content,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
u as default,
|
|
26
|
+
f as dropzone,
|
|
27
|
+
l as focusBox,
|
|
28
28
|
n as media,
|
|
29
|
-
|
|
29
|
+
i as mediaInner,
|
|
30
30
|
o as root,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
r as stepDescription,
|
|
32
|
+
d as stepIndicator,
|
|
33
|
+
p as stepIndicatorIcon,
|
|
34
34
|
s as stepRoot,
|
|
35
|
-
|
|
35
|
+
a as stepTitle,
|
|
36
36
|
t as themeProvider
|
|
37
37
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { AnimatePresence as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h } from "react";
|
|
3
|
+
import { createPortal as u } from "react-dom";
|
|
4
|
+
import { Stack as b, Flex as y } from "@mantine/core";
|
|
5
|
+
import { AnimatePresence as v, motion as k } from "framer-motion";
|
|
6
6
|
import { Copyright as S } from "../../Copyright/index.js";
|
|
7
7
|
import { animations as w } from "../helpers/slides.js";
|
|
8
|
-
import { useFormViewerStore as
|
|
9
|
-
import { startStepReselect as
|
|
10
|
-
import { Navigation as
|
|
11
|
-
import { getImageFilter as
|
|
8
|
+
import { useFormViewerStore as d } from "../store/formStore.js";
|
|
9
|
+
import { startStepReselect as x, themeReselect as F } from "../store/selectors.js";
|
|
10
|
+
import { Navigation as $ } from "./Navigation/Navigation.js";
|
|
11
|
+
import { getImageFilter as R, Step as j } from "./Step.js";
|
|
12
12
|
import { ProgressLine as A } from "./fields/ProgressLine.js";
|
|
13
13
|
import g from "../FormViewer.module.css.js";
|
|
14
14
|
import { useSteps as C } from "../hooks/useCreateFormContext.js";
|
|
15
|
-
import { useFormMobile as
|
|
15
|
+
import { useFormMobile as M } from "../hooks/useFormMobile.js";
|
|
16
16
|
import { useActiveStep as N } from "../hooks/useActiveStep.js";
|
|
17
|
-
const
|
|
17
|
+
const U = ({
|
|
18
18
|
NoStepSlot: m,
|
|
19
19
|
copyright: l
|
|
20
20
|
}) => {
|
|
21
|
-
const { useStore: a } =
|
|
22
|
-
return a(
|
|
23
|
-
|
|
21
|
+
const { useStore: a } = d();
|
|
22
|
+
return a(x) ? /* @__PURE__ */ e(P, { copyright: l }) : /* @__PURE__ */ e(
|
|
23
|
+
b,
|
|
24
24
|
{
|
|
25
25
|
align: "center",
|
|
26
26
|
justify: "center",
|
|
@@ -31,11 +31,11 @@ const T = ({
|
|
|
31
31
|
children: /* @__PURE__ */ e(m, {})
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
}, P =
|
|
35
|
-
const { anim: l } = C(), { ref: a } =
|
|
36
|
-
return /* @__PURE__ */ s(
|
|
37
|
-
|
|
38
|
-
/* @__PURE__ */ s(
|
|
34
|
+
}, P = h(({ copyright: m }) => {
|
|
35
|
+
const { anim: l } = C(), { ref: a, isMobile: o } = M(), { useStore: c } = d(), r = c((n) => n.config.settings), f = c((n) => n.editing), t = c(F), i = N();
|
|
36
|
+
return /* @__PURE__ */ s(p, { children: [
|
|
37
|
+
u(
|
|
38
|
+
/* @__PURE__ */ s(p, { children: [
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
40
|
"link",
|
|
41
41
|
{
|
|
@@ -70,7 +70,7 @@ const T = ({
|
|
|
70
70
|
"--bg-fit": t.background?.fit || "cover",
|
|
71
71
|
"--bg-image": t.background?.image ? `url(${t.background.image})` : "none",
|
|
72
72
|
"--bg-color": t.background?.color || "none",
|
|
73
|
-
"--bg-image-filter":
|
|
73
|
+
"--bg-image-filter": R({
|
|
74
74
|
brightness: t.background?.brightness || 100,
|
|
75
75
|
blur: t.background?.blur,
|
|
76
76
|
layout: "background"
|
|
@@ -78,7 +78,7 @@ const T = ({
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */ e(
|
|
81
|
+
/* @__PURE__ */ e(v, { mode: "wait", children: i && /* @__PURE__ */ e(
|
|
82
82
|
k.div,
|
|
83
83
|
{
|
|
84
84
|
style: {
|
|
@@ -91,43 +91,45 @@ const T = ({
|
|
|
91
91
|
transition: {
|
|
92
92
|
duration: 0.25
|
|
93
93
|
},
|
|
94
|
-
...w[
|
|
94
|
+
...w[r.slideAnimation][l],
|
|
95
95
|
animate: { opacity: 1, y: 0, x: 0 },
|
|
96
96
|
children: /* @__PURE__ */ e(
|
|
97
|
-
|
|
97
|
+
j,
|
|
98
98
|
{
|
|
99
|
-
step:
|
|
100
|
-
theme:
|
|
99
|
+
step: i,
|
|
100
|
+
theme: i.theme
|
|
101
101
|
},
|
|
102
|
-
|
|
102
|
+
i.id
|
|
103
103
|
)
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
i.id
|
|
106
106
|
) })
|
|
107
107
|
] }),
|
|
108
108
|
/* @__PURE__ */ s(
|
|
109
|
-
|
|
109
|
+
y,
|
|
110
110
|
{
|
|
111
|
-
pos: "absolute",
|
|
112
|
-
bottom: 24,
|
|
113
|
-
right: 24,
|
|
114
|
-
|
|
111
|
+
pos: o ? "relative" : "absolute",
|
|
112
|
+
bottom: o ? void 0 : 24,
|
|
113
|
+
right: o ? void 0 : 24,
|
|
114
|
+
justify: o ? "flex-end" : void 0,
|
|
115
|
+
p: o ? "8px 12px" : void 0,
|
|
116
|
+
onClick: f ? (n) => n.preventDefault() : void 0,
|
|
115
117
|
children: [
|
|
116
|
-
|
|
118
|
+
r.copyright && /* @__PURE__ */ e(
|
|
117
119
|
S,
|
|
118
120
|
{
|
|
119
121
|
size: "sm",
|
|
120
|
-
color:
|
|
122
|
+
color: i?.theme?.primaryColor,
|
|
121
123
|
title: m
|
|
122
124
|
}
|
|
123
125
|
),
|
|
124
|
-
|
|
126
|
+
r.navArrows && r.layout === "slides" && /* @__PURE__ */ e($, {})
|
|
125
127
|
]
|
|
126
128
|
}
|
|
127
129
|
),
|
|
128
|
-
|
|
130
|
+
r.progressBar && /* @__PURE__ */ e(A, {})
|
|
129
131
|
] });
|
|
130
132
|
});
|
|
131
133
|
export {
|
|
132
|
-
|
|
134
|
+
U as OneSlideLayout
|
|
133
135
|
};
|
package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
2
2
|
import { memo as L, useMemo as N } from "react";
|
|
3
|
-
import { useMantineTheme as _, parseThemeColor as x, Radio as z, alpha as p, Checkbox as
|
|
4
|
-
import { IconTrash as
|
|
5
|
-
import { useAsyncStatus as
|
|
6
|
-
import { combineClasses as
|
|
7
|
-
import { useFormViewerStore as
|
|
8
|
-
import { EditableContent as
|
|
3
|
+
import { useMantineTheme as _, parseThemeColor as x, Radio as z, alpha as p, Checkbox as P, Flex as A, ActionIcon as D } from "@mantine/core";
|
|
4
|
+
import { IconTrash as w, IconPhoto as B } from "@tabler/icons-react";
|
|
5
|
+
import { useAsyncStatus as H } from "../../../../../hooks/useAsyncStatus.js";
|
|
6
|
+
import { combineClasses as h, STATIC_CLASSES as a } from "../../../helpers/staticClasses.js";
|
|
7
|
+
import { useFormViewerStore as K } from "../../../store/formStore.js";
|
|
8
|
+
import { EditableContent as R } from "../EditableContent/EditableContent.js";
|
|
9
9
|
import u from "./SelectableCard.module.css.js";
|
|
10
|
-
import { FilePicker as
|
|
11
|
-
const
|
|
10
|
+
import { FilePicker as M } from "../../../../FilePicker/FilePicker.js";
|
|
11
|
+
const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGGw0zERUSw0knTNr", oo = L(
|
|
12
12
|
({
|
|
13
13
|
label: i,
|
|
14
14
|
active: r,
|
|
@@ -22,21 +22,21 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
22
22
|
theme: l,
|
|
23
23
|
onUpload: O
|
|
24
24
|
}) => {
|
|
25
|
-
const { useStore: S } =
|
|
25
|
+
const { useStore: S } = K(), b = S((d) => d.editing), f = _(), s = x({
|
|
26
26
|
color: l?.primaryColor || "",
|
|
27
|
-
theme:
|
|
28
|
-
}),
|
|
27
|
+
theme: f
|
|
28
|
+
}), k = N(() => c === "radio" ? /* @__PURE__ */ o(
|
|
29
29
|
z,
|
|
30
30
|
{
|
|
31
31
|
style: {
|
|
32
|
-
"--color":
|
|
33
|
-
"--color-shadow": p(
|
|
32
|
+
"--color": s.value,
|
|
33
|
+
"--color-shadow": p(s.value, 0.5)
|
|
34
34
|
},
|
|
35
35
|
classNames: {
|
|
36
|
-
radio:
|
|
36
|
+
radio: h(
|
|
37
37
|
u.radio,
|
|
38
|
-
|
|
39
|
-
r ?
|
|
38
|
+
a.RADIO,
|
|
39
|
+
r ? a.RADIO_SELECTED : ""
|
|
40
40
|
)
|
|
41
41
|
},
|
|
42
42
|
disabled: n,
|
|
@@ -47,19 +47,19 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
47
47
|
radius: "xl"
|
|
48
48
|
}
|
|
49
49
|
) : /* @__PURE__ */ o(
|
|
50
|
-
|
|
50
|
+
P,
|
|
51
51
|
{
|
|
52
52
|
styles: {
|
|
53
53
|
input: {
|
|
54
|
-
"--color":
|
|
55
|
-
"--color-shadow": p(
|
|
54
|
+
"--color": s.value,
|
|
55
|
+
"--color-shadow": p(s.value, 0.5)
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
classNames: {
|
|
59
|
-
input:
|
|
59
|
+
input: h(
|
|
60
60
|
u.checkbox,
|
|
61
|
-
|
|
62
|
-
r ?
|
|
61
|
+
a.CHECKBOX,
|
|
62
|
+
r ? a.CHECKBOX_SELECTED : ""
|
|
63
63
|
)
|
|
64
64
|
},
|
|
65
65
|
disabled: n,
|
|
@@ -70,31 +70,31 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
70
70
|
}
|
|
71
71
|
), [
|
|
72
72
|
r,
|
|
73
|
-
|
|
73
|
+
s.value,
|
|
74
74
|
n,
|
|
75
75
|
c,
|
|
76
76
|
l?.primaryColor,
|
|
77
77
|
l?.size
|
|
78
|
-
]),
|
|
79
|
-
"--text-color":
|
|
80
|
-
"--border-color":
|
|
81
|
-
"--bg-color": p(
|
|
82
|
-
},
|
|
78
|
+
]), y = {
|
|
79
|
+
"--text-color": s.value,
|
|
80
|
+
"--border-color": s.value,
|
|
81
|
+
"--bg-color": p(s.value, 0.05)
|
|
82
|
+
}, g = e || m, v = h(
|
|
83
83
|
u.card,
|
|
84
|
-
c === "radio" ?
|
|
85
|
-
r ? c === "radio" ?
|
|
84
|
+
c === "radio" ? a.MULTIPLE_CHOICE_OPTION : a.CHECKBOX,
|
|
85
|
+
r ? c === "radio" ? a.MULTIPLE_CHOICE_OPTION_SELECTED : a.CHECKBOX_SELECTED : ""
|
|
86
86
|
);
|
|
87
87
|
return /* @__PURE__ */ I(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
style:
|
|
90
|
+
style: y,
|
|
91
91
|
className: v,
|
|
92
92
|
"data-active": r,
|
|
93
93
|
"data-disabled": n,
|
|
94
|
-
onClick:
|
|
94
|
+
onClick: g ? void 0 : E,
|
|
95
95
|
"data-radius": l?.borderRadius,
|
|
96
96
|
children: [
|
|
97
|
-
|
|
97
|
+
b ? /* @__PURE__ */ o(
|
|
98
98
|
j,
|
|
99
99
|
{
|
|
100
100
|
hasImage: !!t,
|
|
@@ -105,10 +105,10 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
105
105
|
}
|
|
106
106
|
) : /* @__PURE__ */ o(T, { image: t }),
|
|
107
107
|
/* @__PURE__ */ I("div", { className: u.controls, children: [
|
|
108
|
-
C &&
|
|
109
|
-
|
|
108
|
+
C && k,
|
|
109
|
+
g ? /* @__PURE__ */ I(A, { miw: 0, flex: 1, children: [
|
|
110
110
|
e && /* @__PURE__ */ o(
|
|
111
|
-
|
|
111
|
+
R,
|
|
112
112
|
{
|
|
113
113
|
value: i,
|
|
114
114
|
placeholder: "Option",
|
|
@@ -117,7 +117,7 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
),
|
|
120
|
-
m && /* @__PURE__ */ o(
|
|
120
|
+
m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(w, { size: "1em" }) })
|
|
121
121
|
] }) : i
|
|
122
122
|
] })
|
|
123
123
|
]
|
|
@@ -131,7 +131,7 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
131
131
|
style: {
|
|
132
132
|
backgroundImage: `url(${i})`
|
|
133
133
|
},
|
|
134
|
-
children: !i && /* @__PURE__ */ o(
|
|
134
|
+
children: !i && /* @__PURE__ */ o(B, { size: 32, color: "var(--primary-color)" })
|
|
135
135
|
}
|
|
136
136
|
), j = ({
|
|
137
137
|
children: i,
|
|
@@ -140,16 +140,16 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
|
|
|
140
140
|
hasImage: C,
|
|
141
141
|
onUpload: t
|
|
142
142
|
}) => {
|
|
143
|
-
const { isLoading: E, onSubmit: c } =
|
|
143
|
+
const { isLoading: E, onSubmit: c } = H();
|
|
144
144
|
return /* @__PURE__ */ o(
|
|
145
|
-
|
|
145
|
+
M,
|
|
146
146
|
{
|
|
147
147
|
hasImage: C,
|
|
148
148
|
onChange: (e) => r?.({
|
|
149
149
|
image: e
|
|
150
150
|
}),
|
|
151
|
-
unsplashClientId:
|
|
152
|
-
giphyToken:
|
|
151
|
+
unsplashClientId: X,
|
|
152
|
+
giphyToken: F,
|
|
153
153
|
onRemove: n,
|
|
154
154
|
onUpload: (e, m) => c(async () => t?.(e, m)),
|
|
155
155
|
uploading: E,
|
package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_card_18zj4_1", c = "_image_18zj4_95", _ = "_controls_18zj4_119", s = "_radio_18zj4_163", t = "_checkbox_18zj4_173", a = {
|
|
2
2
|
card: o,
|
|
3
3
|
image: c,
|
|
4
|
-
controls:
|
|
5
|
-
radio:
|
|
6
|
-
checkbox:
|
|
4
|
+
controls: _,
|
|
5
|
+
radio: s,
|
|
6
|
+
checkbox: t
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
o as card,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
t as checkbox,
|
|
11
|
+
_ as controls,
|
|
12
|
+
a as default,
|
|
13
13
|
c as image,
|
|
14
|
-
|
|
14
|
+
s as radio
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useCreateFormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAO3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,YAAY,uCAExB,CAAC;AAEF,eAAO,MAAM,QAAQ,oBAAiC,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD,CAAC;
|
|
1
|
+
{"version":3,"file":"useCreateFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useCreateFormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAO3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,YAAY,uCAExB,CAAC;AAEF,eAAO,MAAM,QAAQ,oBAAiC,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD,CAAC;AA2GF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,iBAAiB,CAAC,yBAAyB,CAAC,4CAK9C,CAAC"}
|
|
@@ -34,26 +34,26 @@ const d = h(
|
|
|
34
34
|
}) => {
|
|
35
35
|
const { useStore: a, api: i } = A(), { currentSteps: l } = a(T), n = j(), [f, p] = b("next"), { getValidation: x } = y(), r = E({
|
|
36
36
|
initialValues: l?.reduce(
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
}),
|
|
37
|
+
(o, e) => (e.controls?.forEach((t) => {
|
|
38
|
+
o[t.id] = w[t.controlType];
|
|
39
|
+
}), o),
|
|
40
40
|
{
|
|
41
41
|
submissionId: crypto.randomUUID()
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
|
-
validate: l?.reduce((
|
|
44
|
+
validate: l?.reduce((o, e) => (e.controls?.forEach((t) => o[t.id] = x(t)), o), {}),
|
|
45
45
|
onValuesChange: u
|
|
46
46
|
}), c = m(() => {
|
|
47
47
|
if (!n || (n.controls || []).map((t) => r.validateField(t.id)).some((t) => t.hasError)) return;
|
|
48
|
-
const
|
|
49
|
-
p("next"), setTimeout(() => {
|
|
50
|
-
i.setActiveStepId(
|
|
51
|
-
}, 0),
|
|
48
|
+
const e = g(n, l, r);
|
|
49
|
+
p("next"), e && setTimeout(() => {
|
|
50
|
+
i.setActiveStepId(e.id);
|
|
51
|
+
}, 0), e?.isEnd && (s?.(r.getValues()), new F().addConfetti());
|
|
52
52
|
}, [n, i, l, r, s]), S = m(() => {
|
|
53
53
|
p("prev"), setTimeout(() => i.backActiveStep(), 0);
|
|
54
54
|
}, [i]), v = m(
|
|
55
|
-
(
|
|
56
|
-
r.setFieldValue(
|
|
55
|
+
(o, e) => {
|
|
56
|
+
r.setFieldValue(o, e), n?.autoSubmit && c();
|
|
57
57
|
},
|
|
58
58
|
[n?.autoSubmit, r, c]
|
|
59
59
|
);
|