@layers-app/shared 0.2.7 → 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/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +39 -31
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +42 -34
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +53 -44
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +150 -50
- 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 +23 -23
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -1
- package/dist/components/AppContainer/types.d.ts +1 -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/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/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
- 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 +27 -26
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +2 -2
- 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 +119 -100
- 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/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TimezonePicker/index.d.ts.map +1 -1
- 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 +1 -1
- package/dist/helpers/showFeatureFeedback.d.ts.map +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useFeatureFeedback.d.ts.map +1 -1
- package/dist/hooks/useFeatureFeedback.js +1 -4
- 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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +364 -337
- 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.map +1 -1
- 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
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const e = { searchResults: "Search results", icons: "Icons", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols" } }, o = { label: "Image", change: "Change", description: "You can upload images up to 256×256 and up to 5mb." },
|
|
1
|
+
const e = { searchResults: "Search results", icons: "Icons", searchNoResults: "No results found", chooseColor: "Choose color", categories: { activity: "Activities", custom: "Custom", flags: "Flags", foods: "Food and drinks", frequent: "Recent", nature: "Animals and nature", objects: "Objects", people: "Emotions and people", places: "Travel and places", symbols: "Symbols" } }, o = { label: "Image", change: "Change", description: "You can upload images up to 256×256 and up to 5mb." }, a = { colorGradients: "Colors and gradients", jamesWebbTelescope: "Telescope", nasaArchive: "Planet", theIndianEdition: "Cyberpunk", theMetMuseum: "Museum", theMetMuseumPatterns: "Pattern", theMetMuseumJapanesePrints: "Nature", rijkmuseum: "Black hole" }, r = { gallery: "Gallery", upload: "Upload", uploadFile: "Upload file", maxFileSize: "Images wider than 1600px are recommended. Maximum file size: 5MB.", link: "Link", searchImages: "Search Image", pasteLink: "Paste an image link...", submitLink: "Apply", worksWithAnyImage: "Works with any image from the Internet", searchImage: "Search for an image…", searchGifs: "Search for GIFs…", noResult: "No image found for your query.", change: "Change cover", invalidLink: "Invalid link", position: "Reposition", dragSave: "Save position", dragCancel: "Cancel", photoBy: "By", googleDrive: "Google Drive", media: "Media" }, i = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Connect Google Drive", connectDescription: "Connect your Google Drive account to import files", disconnect: "Disconnect", openPicker: "Open Google Drive", importing: "Importing file...", importComplete: "File imported successfully", importFailed: "Failed to import file", retry: "Try again", description: "Import a file from your Google Drive", goToSettings: "Connect Google Drive in Settings to import files", searchFiles: "Search Google Drive" }, n = { color: "Color", background: "Background", colors: { standard: "Standard", gray: "Gray", brown: "Brown", orange: "Orange", yellow: "Yellow", green: "Green", blue: "Blue", purple: "Purple", pink: "Pink", red: "Red" } }, s = { save: "Save" }, t = "Remove", l = "Error", c = "Drag & drop an image or <choose>choose a file</choose> to upload", d = { dropFileHere: { image: "Drag & drop an image or <choose>choose a file</choose> to upload", video: "Drag & drop a video or <choose>choose a file</choose> to upload", audio: "Drag & drop an audio file or <choose>choose a file</choose> to upload", file: "Drag & drop a file or <choose>choose a file</choose> to upload", avatar: "Drag & drop an image or <choose>choose a file</choose> to upload" }, description: { image: "Images wider than 1600px are recommended. Maximum file size: {{maxSize}}MB.", video: "Maximum file size: {{maxSize}}MB.", audio: "Maximum file size: {{maxSize}}MB.", file: "Maximum file size: {{maxSize}}MB.", avatar: "Images wider than 256×256 px are recommended. Maximum file size: {{maxSize}}MB." }, errors: { typeIsNotAllowed: "This file type is not supported", shouldNotExceed: "File size should not exceed 5 MB.", doNotUploadMoreThanSingleFile: "Please upload no more than one file." } }, u = { download: "Download", zoomOut: "Zoom out", zoomIn: "Zoom in", close: "Close", fileError: "Upload failed. Please try again." }, m = { day_one: "{{count}} day ago", day_other: "{{count}} days ago", hour_one: "{{count}} hour ago", hour_other: "{{count}} hours ago", minute_one: "{{count}} minute ago", minute_other: "{{count}} minutes ago", second_one: "{{count}} second ago", second_other: "{{count}} seconds ago", justNow: "just now", shortDay: "{{count}}d ago.", shortHour: "{{count}}h ago.", shortMinute: "{{count}}m ago.", shortSecond: "{{count}}s ago.", shortJustNow: "now." }, g = {
|
|
2
2
|
emojiPicker: e,
|
|
3
3
|
uploadImage: o,
|
|
4
|
-
coverGroups:
|
|
5
|
-
changeCover:
|
|
6
|
-
externalDrive:
|
|
4
|
+
coverGroups: a,
|
|
5
|
+
changeCover: r,
|
|
6
|
+
externalDrive: i,
|
|
7
7
|
colorPicker: n,
|
|
8
|
-
customDrawer:
|
|
9
|
-
remove:
|
|
8
|
+
customDrawer: s,
|
|
9
|
+
remove: t,
|
|
10
10
|
errorMessage: l,
|
|
11
11
|
dropFileHere: c,
|
|
12
|
-
filePicker:
|
|
13
|
-
gallery:
|
|
12
|
+
filePicker: d,
|
|
13
|
+
gallery: u,
|
|
14
14
|
relativeTime: m
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
r as changeCover,
|
|
18
18
|
n as colorPicker,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
a as coverGroups,
|
|
20
|
+
s as customDrawer,
|
|
21
21
|
g as default,
|
|
22
22
|
c as dropFileHere,
|
|
23
23
|
e as emojiPicker,
|
|
24
24
|
l as errorMessage,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
i as externalDrive,
|
|
26
|
+
d as filePicker,
|
|
27
|
+
u as gallery,
|
|
28
28
|
m as relativeTime,
|
|
29
|
-
|
|
29
|
+
t as remove,
|
|
30
30
|
o as uploadImage
|
|
31
31
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, o = { label: "Imagen", change: "Cambiar", description: "Puedes subir imágenes de hasta 256×256 y hasta 5 MB." }, a = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: 5MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen
|
|
1
|
+
const e = { searchResults: "Resultados de búsqueda", icons: "Iconos", searchNoResults: "No se encontraron resultados", chooseColor: "Elegir color", categories: { activity: "Actividades", custom: "Personalizado", flags: "Banderas", foods: "Comida y bebidas", frequent: "Usados frecuentemente", nature: "Animales y naturaleza", objects: "Objetos", people: "Emociones y personas", places: "Viajes y lugares", symbols: "Símbolos" } }, o = { label: "Imagen", change: "Cambiar", description: "Puedes subir imágenes de hasta 256×256 y hasta 5 MB." }, a = { colorGradients: "Colores y degradados", jamesWebbTelescope: "Telescopio", nasaArchive: "Planeta", theIndianEdition: "Cyberpunk", theMetMuseum: "Museo", theMetMuseumPatterns: "Patrón", theMetMuseumJapanesePrints: "Naturaleza", rijkmuseum: "Agujero negro" }, r = { gallery: "Galería", upload: "Subir", uploadFile: "Subir archivo", maxFileSize: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: 5MB.", link: "Enlace", searchImages: "Buscar imagen", pasteLink: "Pegar enlace de imagen...", submitLink: "Aplicar", worksWithAnyImage: "Funciona con cualquier imagen de Internet", searchImage: "Buscar imagen…", searchGifs: "Buscar GIF…", noResult: "No se encontró ninguna imagen para tu búsqueda.", change: "Cambiar portada", invalidLink: "Enlace inválido", position: "Reposicionar", dragSave: "Guardar posición", dragCancel: "Cancelar", photoBy: "Por", googleDrive: "Google Drive", media: "Media" }, i = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Conectar Google Drive", connectDescription: "Conecta tu cuenta de Google Drive para importar archivos", disconnect: "Desconectar", openPicker: "Abrir Google Drive", importing: "Importando archivo...", importComplete: "Archivo importado exitosamente", importFailed: "Error al importar archivo", retry: "Intentar de nuevo", description: "Importar un archivo desde tu Google Drive", goToSettings: "Conecta Google Drive en Configuración para importar archivos", searchFiles: "Buscar en Google Drive" }, n = { color: "Color", background: "Fondo", colors: { standard: "Estándar", gray: "Gris", brown: "Marrón", orange: "Naranja", yellow: "Amarillo", green: "Verde", blue: "Azul", purple: "Púrpura", pink: "Rosa", red: "Rojo" } }, s = { save: "Guardar" }, c = "Eliminar", t = "Error", u = "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", l = { dropFileHere: { image: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo", video: "Arrastra y suelta un vídeo o <choose>elige un archivo</choose> para subirlo", audio: "Arrastra y suelta un archivo de audio o <choose>elige un archivo</choose> para subirlo", file: "Arrastra y suelta un archivo o <choose>elige un archivo</choose> para subirlo", avatar: "Arrastra y suelta una imagen o <choose>elige un archivo</choose> para subirlo" }, description: { image: "Se recomiendan imágenes de más de 1600px de ancho. Tamaño máximo de archivo: {{maxSize}}MB.", video: "Tamaño máximo de archivo: {{maxSize}}MB.", audio: "Tamaño máximo de archivo: {{maxSize}}MB.", file: "Tamaño máximo de archivo: {{maxSize}}MB.", avatar: "Se recomiendan imágenes de más de 256×256 px. Tamaño máximo de archivo: {{maxSize}}MB." }, errors: { typeIsNotAllowed: "Este tipo de archivo no es compatible", shouldNotExceed: "El tamaño del archivo no debe exceder 5 MB.", doNotUploadMoreThanSingleFile: "Por favor, carga no más de un archivo." } }, d = { download: "Descargar", zoomOut: "Alejar", zoomIn: "Acercar", close: "Cerrar", fileError: "La carga falló. Por favor, inténtalo de nuevo." }, m = { day_one: "hace {{count}} día", day_other: "hace {{count}} días", hour_one: "hace {{count}} hora", hour_other: "hace {{count}} horas", minute_one: "hace {{count}} minuto", minute_other: "hace {{count}} minutos", second_one: "hace {{count}} segundo", second_other: "hace {{count}} segundos", justNow: "ahora mismo", shortDay: "hace {{count}}d.", shortHour: "hace {{count}}h.", shortMinute: "hace {{count}}m.", shortSecond: "hace {{count}}s.", shortJustNow: "ahora." }, h = {
|
|
2
2
|
emojiPicker: e,
|
|
3
3
|
uploadImage: o,
|
|
4
4
|
coverGroups: a,
|
|
5
5
|
changeCover: r,
|
|
6
6
|
externalDrive: i,
|
|
7
7
|
colorPicker: n,
|
|
8
|
-
customDrawer:
|
|
9
|
-
remove:
|
|
8
|
+
customDrawer: s,
|
|
9
|
+
remove: c,
|
|
10
10
|
errorMessage: t,
|
|
11
|
-
dropFileHere:
|
|
12
|
-
filePicker:
|
|
13
|
-
gallery:
|
|
14
|
-
relativeTime:
|
|
11
|
+
dropFileHere: u,
|
|
12
|
+
filePicker: l,
|
|
13
|
+
gallery: d,
|
|
14
|
+
relativeTime: m
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
17
|
r as changeCover,
|
|
18
18
|
n as colorPicker,
|
|
19
19
|
a as coverGroups,
|
|
20
|
-
|
|
20
|
+
s as customDrawer,
|
|
21
21
|
h as default,
|
|
22
|
-
|
|
22
|
+
u as dropFileHere,
|
|
23
23
|
e as emojiPicker,
|
|
24
24
|
t as errorMessage,
|
|
25
25
|
i as externalDrive,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
l as filePicker,
|
|
27
|
+
d as gallery,
|
|
28
|
+
m as relativeTime,
|
|
29
|
+
c as remove,
|
|
30
30
|
o as uploadImage
|
|
31
31
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const
|
|
2
|
-
emojiPicker:
|
|
3
|
-
coverGroups:
|
|
1
|
+
const o = { searchResults: "Результаты поиска", searchNoResults: "Результаты не найдены", icons: "Иконки", chooseColor: "Выбрать цвет", categories: { activity: "Активности", custom: "Свои", flags: "Флаги", foods: "Еда и напитки", frequent: "Часто используемые", nature: "Животные и природа", objects: "Предметы", people: "Эмоции и люди", places: "Путешествия и места", symbols: "Символы" } }, e = { colorGradients: "Цвета и градиенты", jamesWebbTelescope: "Телескоп", nasaArchive: "Планета", theIndianEdition: "Киберпанк", theMetMuseum: "Музей", theMetMuseumPatterns: "Паттерн", theMetMuseumJapanesePrints: "Природа", rijkmuseum: "Черная дыра" }, t = { gallery: "Галерея", upload: "Загрузить", uploadFile: "Загрузить файл", maxFileSize: "Рекомендуются изображения шире 1600px. Максимальный размер файла: 5МБ.", link: "Ссылка", searchImages: "Поиск изображения", pasteLink: "Вставьте ссылку на изображение...", submitLink: "Применить", worksWithAnyImage: "Работает с любыми изображениями из Интернета", searchImage: "Поиск изображения…", searchGifs: "Поиск GIF…", noResult: "По вашему запросу изображений не найдено", change: "Изменить обложку", invalidLink: "Неверная ссылка", position: "Изменить Позицию", dragSave: "Сохранить", dragCancel: "Отменить", photoBy: "Автор", googleDrive: "Google Drive", media: "Медиа" }, n = { googleDrive: "Google Drive", oneDrive: "OneDrive", dropbox: "Dropbox", connect: "Подключить Google Drive", connectDescription: "Подключите Google Drive для импорта файлов", disconnect: "Отключить", openPicker: "Открыть Google Drive", importing: "Импорт файла...", importComplete: "Файл успешно импортирован", importFailed: "Не удалось импортировать файл", retry: "Попробовать снова", description: "Импортировать файл из Google Drive", goToSettings: "Подключите Google Drive в Настройках для импорта файлов", searchFiles: "Поиск в Google Drive" }, r = { label: "Изображение", change: "Изменить", description: "Вы можете загружать изображения размером до 256×256 и весом до 5 МБ." }, s = { color: "Цвет", background: "Подложка", colors: { standard: "Стандартный", gray: "Серый", brown: "Коричневый", orange: "Оранжевый", yellow: "Желтый", green: "Зеленый", blue: "Синий", purple: "Фиолетовый", pink: "Розовый", red: "Красный" } }, c = { save: "Сохранить" }, i = "Удалить", a = "Ошибка", u = "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", l = { dropFileHere: { image: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить", video: "Перетащите видео или <choose>выберите файл</choose>, чтобы загрузить", audio: "Перетащите аудиофайл или <choose>выберите файл</choose>, чтобы загрузить", file: "Перетащите файл или <choose>выберите файл</choose>, чтобы загрузить", avatar: "Перетащите изображение или <choose>выберите файл</choose>, чтобы загрузить" }, description: { image: "Рекомендуются изображения шире 1600px. Максимальный размер файла: {{maxSize}}МБ.", video: "Максимальный размер файла: {{maxSize}}МБ.", audio: "Максимальный размер файла: {{maxSize}}МБ.", file: "Максимальный размер файла: {{maxSize}}МБ.", avatar: "Рекомендуются изображения шире 256×256 px. Максимальный размер файла: {{maxSize}}МБ." }, errors: { typeIsNotAllowed: "Этот тип файла не поддерживается", shouldNotExceed: "Размер файла не должен превышать 5 МБ.", doNotUploadMoreThanSingleFile: "Пожалуйста, загрузите не более одного файла." } }, d = { download: "Скачать", zoomOut: "Уменьшить", zoomIn: "Приблизить", close: "Закрыть", fileError: "Загрузка не удалась. Попробуйте снова." }, h = { day_one: "{{count}} день назад", day_few: "{{count}} дня назад", day_many: "{{count}} дней назад", day_other: "{{count}} дней назад", hour_one: "{{count}} час назад", hour_few: "{{count}} часа назад", hour_many: "{{count}} часов назад", hour_other: "{{count}} часов назад", minute_one: "{{count}} минута назад", minute_few: "{{count}} минуты назад", minute_many: "{{count}} минут назад", minute_other: "{{count}} минут назад", second_one: "{{count}} секунда назад", second_few: "{{count}} секунды назад", second_many: "{{count}} секунд назад", second_other: "{{count}} секунд назад", justNow: "только что", shortDay: "{{count}}д назад.", shortHour: "{{count}}ч назад.", shortMinute: "{{count}}м назад.", shortSecond: "{{count}}с назад.", shortJustNow: "сейчас." }, m = {
|
|
2
|
+
emojiPicker: o,
|
|
3
|
+
coverGroups: e,
|
|
4
4
|
changeCover: t,
|
|
5
5
|
externalDrive: n,
|
|
6
6
|
uploadImage: r,
|
|
7
|
-
colorPicker:
|
|
7
|
+
colorPicker: s,
|
|
8
8
|
customDrawer: c,
|
|
9
|
-
remove:
|
|
9
|
+
remove: i,
|
|
10
10
|
errorMessage: a,
|
|
11
11
|
dropFileHere: u,
|
|
12
12
|
filePicker: l,
|
|
13
13
|
gallery: d,
|
|
14
|
-
relativeTime:
|
|
14
|
+
relativeTime: h
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
17
|
t as changeCover,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
s as colorPicker,
|
|
19
|
+
e as coverGroups,
|
|
20
20
|
c as customDrawer,
|
|
21
|
-
|
|
21
|
+
m as default,
|
|
22
22
|
u as dropFileHere,
|
|
23
|
-
|
|
23
|
+
o as emojiPicker,
|
|
24
24
|
a as errorMessage,
|
|
25
25
|
n as externalDrive,
|
|
26
26
|
l as filePicker,
|
|
27
27
|
d as gallery,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
h as relativeTime,
|
|
29
|
+
i as remove,
|
|
30
30
|
r as uploadImage
|
|
31
31
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { escapeHtml as n, getVideoEmbedUrl as
|
|
1
|
+
import { escapeHtml as n, getVideoEmbedUrl as x } from "./utils.js";
|
|
2
2
|
async function w(e, i) {
|
|
3
3
|
const t = [];
|
|
4
4
|
let a = 0;
|
|
@@ -7,32 +7,32 @@ async function w(e, i) {
|
|
|
7
7
|
if (l.type === "bulleted_list_item") {
|
|
8
8
|
const s = [];
|
|
9
9
|
for (; a < e.length && e[a].type === "bulleted_list_item"; )
|
|
10
|
-
s.push(await
|
|
10
|
+
s.push(await o(e[a], i)), a++;
|
|
11
11
|
t.push(`<ul class="dsd__theme__ul">${s.join("")}</ul>`);
|
|
12
12
|
continue;
|
|
13
13
|
}
|
|
14
14
|
if (l.type === "numbered_list_item") {
|
|
15
15
|
const s = [];
|
|
16
16
|
for (; a < e.length && e[a].type === "numbered_list_item"; )
|
|
17
|
-
s.push(await
|
|
17
|
+
s.push(await o(e[a], i)), a++;
|
|
18
18
|
t.push(`<ol class="dsd__theme__ol1">${s.join("")}</ol>`);
|
|
19
19
|
continue;
|
|
20
20
|
}
|
|
21
21
|
if (l.type === "checklist_item") {
|
|
22
22
|
const s = [];
|
|
23
23
|
for (; a < e.length && e[a].type === "checklist_item"; )
|
|
24
|
-
s.push(await
|
|
24
|
+
s.push(await o(e[a], i)), a++;
|
|
25
25
|
t.push(
|
|
26
26
|
`<ul __lexicallisttype="check" class="dsd__theme__checklist">${s.join("")}</ul>`
|
|
27
27
|
);
|
|
28
28
|
continue;
|
|
29
29
|
}
|
|
30
|
-
t.push(await
|
|
30
|
+
t.push(await o(l, i)), a++;
|
|
31
31
|
}
|
|
32
32
|
return t.join(`
|
|
33
33
|
`);
|
|
34
34
|
}
|
|
35
|
-
async function
|
|
35
|
+
async function o(e, i) {
|
|
36
36
|
let t = "";
|
|
37
37
|
if (e.children && e.children.length > 0 && (t = await w(e.children, i)), e.type === "image" && i?.onImageFound)
|
|
38
38
|
try {
|
|
@@ -44,43 +44,43 @@ async function d(e, i) {
|
|
|
44
44
|
case "paragraph":
|
|
45
45
|
return y(e, t);
|
|
46
46
|
case "heading":
|
|
47
|
-
return
|
|
47
|
+
return C(e);
|
|
48
48
|
case "bulleted_list_item":
|
|
49
|
-
return
|
|
49
|
+
return $(e, t, "ul");
|
|
50
50
|
case "numbered_list_item":
|
|
51
|
-
return
|
|
51
|
+
return $(e, t, "ol");
|
|
52
52
|
case "checklist_item":
|
|
53
53
|
return z(e, t);
|
|
54
54
|
case "quote":
|
|
55
|
-
return
|
|
55
|
+
return I(e, t);
|
|
56
56
|
case "callout":
|
|
57
57
|
return j(e, t);
|
|
58
58
|
case "toggle":
|
|
59
|
-
return
|
|
59
|
+
return H(e, t);
|
|
60
60
|
case "code":
|
|
61
|
-
return
|
|
61
|
+
return L(e, i);
|
|
62
62
|
case "divider":
|
|
63
63
|
return "<hr />";
|
|
64
64
|
case "image":
|
|
65
|
-
return L(e);
|
|
66
|
-
case "video":
|
|
67
65
|
return U(e);
|
|
68
|
-
case "
|
|
66
|
+
case "video":
|
|
69
67
|
return R(e);
|
|
70
|
-
case "
|
|
68
|
+
case "audio":
|
|
71
69
|
return q(e);
|
|
72
|
-
case "
|
|
70
|
+
case "file":
|
|
73
71
|
return A(e);
|
|
74
|
-
case "
|
|
72
|
+
case "embed":
|
|
75
73
|
return S(e);
|
|
76
|
-
case "
|
|
74
|
+
case "bookmark":
|
|
77
75
|
return B(e);
|
|
78
|
-
case "
|
|
76
|
+
case "table":
|
|
79
77
|
return E(e);
|
|
78
|
+
case "table_row":
|
|
79
|
+
return F(e);
|
|
80
80
|
case "column_list":
|
|
81
|
-
return
|
|
81
|
+
return T(e, t);
|
|
82
82
|
case "column":
|
|
83
|
-
return
|
|
83
|
+
return V(t);
|
|
84
84
|
case "child_docs":
|
|
85
85
|
return '<div data-child-docs="true"></div>';
|
|
86
86
|
default:
|
|
@@ -95,17 +95,17 @@ function r(e) {
|
|
|
95
95
|
return i.annotations?.color && a.push(`color: ${i.annotations.color}`), i.annotations?.backgroundColor && a.push(`background-color: ${i.annotations.backgroundColor}`), a.length > 0 && (t = `<span lexical-element="true" style="${a.join("; ")}">${t}</span>`), i.link && (t = `<a href="${n(i.link.url)}" class="dsd__theme__link">${t}</a>`), t;
|
|
96
96
|
}).join("");
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function c(e) {
|
|
99
99
|
return !e || e.length === 0 ? "" : `<p class="dsd__theme__paragraph" dir="ltr"><em class="dsd__theme__textItalic">${r(e)}</em></p>`;
|
|
100
100
|
}
|
|
101
101
|
function y(e, i) {
|
|
102
102
|
return `<p class="dsd__theme__paragraph" dir="ltr">${r(e.content)}</p>${i}`;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function C(e) {
|
|
105
105
|
const i = r(e.content);
|
|
106
106
|
return `<h${e.level} class="dsd__theme__h${e.level}" dir="ltr">${i}</h${e.level}>`;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function $(e, i, t) {
|
|
109
109
|
const a = r(e.content), s = i ? `<li class="dsd__theme__nestedListItem"><${t} class="${t === "ul" ? "dsd__theme__ul" : "dsd__theme__ol1"}">${i}</${t}></li>` : "";
|
|
110
110
|
return `<li class="dsd__theme__listItem" dir="ltr">${a}${s}</li>`;
|
|
111
111
|
}
|
|
@@ -113,41 +113,53 @@ function z(e, i) {
|
|
|
113
113
|
const t = r(e.content), a = e.checked ? "dsd__theme__listItemChecked" : "dsd__theme__listItemUnchecked", l = i ? `<ul __lexicallisttype="check" class="dsd__theme__checklist">${i}</ul>` : "";
|
|
114
114
|
return `<li class="${a}" dir="ltr" aria-checked="${e.checked}">${t}${l}</li>`;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function I(e, i) {
|
|
117
117
|
return `<blockquote class="dsd__theme__quote">${r(e.content)}${i}</blockquote>`;
|
|
118
118
|
}
|
|
119
119
|
function j(e, i) {
|
|
120
120
|
const t = n(e.emoji), a = `e=${encodeURIComponent(e.emoji)}`, l = r(e.content);
|
|
121
121
|
return `<div class="dsd__theme__callout-wrapper" data-type="${t}" style="background-color: ${e.backgroundColor}"><div class="callout-image" data-emoji="${n(a)}" data-emoji-char="${t}"></div><div class="dsd__theme__callout-container">${l}${i}</div></div>`;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function H(e, i) {
|
|
124
124
|
const t = r(e.title);
|
|
125
125
|
let a = "";
|
|
126
126
|
return e.headingLevel === 1 ? a = ' style="font-weight:700;font-size:1.875em;line-height:1.3;margin:0"' : e.headingLevel === 2 ? a = ' style="font-weight:600;font-size:1.5em;line-height:1.3;margin:0"' : e.headingLevel === 3 ? a = ' style="font-weight:600;font-size:1.25em;line-height:1.3;margin:0"' : e.headingLevel === 4 ? a = ' style="font-weight:600;font-size:1.125em;line-height:1.3;margin:0"' : e.headingLevel === 5 ? a = ' style="font-weight:600;font-size:1em;line-height:1.3;margin:0"' : e.headingLevel === 6 && (a = ' style="font-weight:600;font-size:0.875em;line-height:1.3;margin:0"'), `<details class="Collapsible__container"><summary class="Collapsible__title"${a}>${t}</summary><div class="Collapsible__content" data-lexical-collapsible-content="true">${i}</div></details>`;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
const t = (e.language || "").toLowerCase().trim()
|
|
128
|
+
function L(e, i) {
|
|
129
|
+
const t = (e.language || "").toLowerCase().trim();
|
|
130
|
+
if (t === "latex") {
|
|
131
|
+
const s = e.code.replace(/^\$\$\s*/, "").replace(/\s*\$\$$/, "").trim();
|
|
132
|
+
let d = "";
|
|
133
|
+
try {
|
|
134
|
+
d = btoa(unescape(encodeURIComponent(s)));
|
|
135
|
+
} catch {
|
|
136
|
+
d = "";
|
|
137
|
+
}
|
|
138
|
+
const u = encodeURIComponent(s);
|
|
139
|
+
return `<div class="editor-equation" data-lexical-equation="${d}" data-lexical-inline="false" data-lexical-equation-preview="${u}"></div>`;
|
|
140
|
+
}
|
|
141
|
+
const a = i?.normalizeLanguage?.(t) ?? t, l = a && a !== "plain" ? n(a) : "";
|
|
130
142
|
return '<pre class="dsd__theme__code"' + (l ? ` data-language="${l}" data-highlight-language="${l}"` : "") + ` data-collapsed="false">${n(e.code)}</pre>`;
|
|
131
143
|
}
|
|
132
|
-
function
|
|
144
|
+
function U(e) {
|
|
133
145
|
const i = e.caption && e.caption.length > 0 ? `<figcaption>${r(e.caption)}</figcaption>` : "";
|
|
134
146
|
return `<figure><img src="${n(e.url)}" alt="${n(e.alt || "")}" data-id="0" width="inherit" height="inherit" />` + i + "</figure>";
|
|
135
147
|
}
|
|
136
|
-
function
|
|
148
|
+
function R(e) {
|
|
137
149
|
if (!e.url)
|
|
138
150
|
return '<p class="dsd__theme__paragraph" dir="ltr"><em class="dsd__theme__textItalic">Video unavailable</em></p>';
|
|
139
|
-
const i =
|
|
151
|
+
const i = c(e.caption);
|
|
140
152
|
if (e.platform !== "link") {
|
|
141
|
-
const t =
|
|
153
|
+
const t = x(e.platform, e.videoId);
|
|
142
154
|
return `<iframe src="${n(t)}" data-lexical-platform="${n(e.platform)}" data-lexical-videoid="${n(e.videoId)}" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>` + i;
|
|
143
155
|
}
|
|
144
156
|
return `<video src="${n(e.url)}" data-lexical-platform="link" data-lexical-videoid="${n(e.url)}" controls width="100%" height="100%"></video>` + i;
|
|
145
157
|
}
|
|
146
|
-
function
|
|
147
|
-
const i =
|
|
158
|
+
function q(e) {
|
|
159
|
+
const i = c(e.caption);
|
|
148
160
|
return `<span class="audio-container" data-src="${n(e.url)}"><audio controls src="${n(e.url)}"></audio></span>` + i;
|
|
149
161
|
}
|
|
150
|
-
function
|
|
162
|
+
function A(e) {
|
|
151
163
|
const i = e.url.split("/").pop()?.split("?")[0]?.split(".").pop()?.toLowerCase() || "", a = {
|
|
152
164
|
pdf: "📄",
|
|
153
165
|
doc: "📝",
|
|
@@ -170,15 +182,15 @@ function q(e) {
|
|
|
170
182
|
jpeg: "🖼️",
|
|
171
183
|
gif: "🖼️",
|
|
172
184
|
svg: "🖼️"
|
|
173
|
-
}[i] || "📎", l =
|
|
185
|
+
}[i] || "📎", l = c(e.caption);
|
|
174
186
|
return `<span class="file-container" data-src="${n(e.url)}" width="100" height="100" style="justify-content: left"><div>${a} ${n(e.label)}</div></span>` + l;
|
|
175
187
|
}
|
|
176
|
-
function
|
|
188
|
+
function S(e) {
|
|
177
189
|
if (!e.url) return "";
|
|
178
|
-
const i =
|
|
190
|
+
const i = c(e.caption);
|
|
179
191
|
return `<iframe data-lexical-platform="${n(e.platform)}" data-lexical-embedid="${n(e.embedId)}" src="${n(e.url)}" width="100%" height="376px" frameborder="0" allowfullscreen></iframe>` + i;
|
|
180
192
|
}
|
|
181
|
-
function
|
|
193
|
+
function B(e) {
|
|
182
194
|
const i = e.label && e.label.length > 0 ? r(e.label) : n(e.url);
|
|
183
195
|
let t = "";
|
|
184
196
|
try {
|
|
@@ -188,26 +200,26 @@ function S(e) {
|
|
|
188
200
|
const a = t ? ` <em style="color:#9b9a97;font-size:0.85em">(${n(t)})</em>` : "";
|
|
189
201
|
return `<p class="dsd__theme__paragraph" dir="ltr"><a href="${n(e.url)}" target="_blank" rel="noopener noreferrer" class="dsd__theme__link">${i}</a>${a}</p>`;
|
|
190
202
|
}
|
|
191
|
-
function
|
|
203
|
+
function E(e) {
|
|
192
204
|
return `<div class="dsd__theme__table-scrollable-wrapper"><table class="dsd__theme__table">${(e.children || []).map((a, l) => {
|
|
193
205
|
const s = e.hasColumnHeader && l === 0;
|
|
194
|
-
return `<tr>${(a.cells || []).map((
|
|
195
|
-
const
|
|
196
|
-
return `<${
|
|
206
|
+
return `<tr>${(a.cells || []).map((u, _) => {
|
|
207
|
+
const h = r(u), g = h ? `<p class="dsd__theme__paragraph" dir="ltr">${h}</p>` : "", m = a.cellColors?.[_], v = m ? ` style="background-color: ${m}"` : "", p = s || e.hasRowHeader && _ === 0 && !s, f = p ? "th" : "td";
|
|
208
|
+
return `<${f} class="${p ? "dsd__theme__tableCellHeader" : "dsd__theme__tableCell"}"${v}>${g}</${f}>`;
|
|
197
209
|
}).join("")}</tr>`;
|
|
198
210
|
}).join("")}</table></div>`;
|
|
199
211
|
}
|
|
200
|
-
function
|
|
212
|
+
function F(e) {
|
|
201
213
|
return `<tr>${(e.cells || []).map((t) => {
|
|
202
214
|
const a = r(t);
|
|
203
215
|
return `<td class="dsd__theme__tableCell">${a ? `<p class="dsd__theme__paragraph" dir="ltr">${a}</p>` : ""}</td>`;
|
|
204
216
|
}).join("")}</tr>`;
|
|
205
217
|
}
|
|
206
|
-
function
|
|
218
|
+
function T(e, i) {
|
|
207
219
|
const t = e.children?.length || 2;
|
|
208
220
|
return `<div data-lexical-layout-container="true" class="dsd__theme__layoutContainer" style="grid-template-columns: ${Array(t).fill("1fr").join(" ")}">${i}</div>`;
|
|
209
221
|
}
|
|
210
|
-
function
|
|
222
|
+
function V(e) {
|
|
211
223
|
return '<div class="dsd__theme__layoutItem">' + e + '<div class="dsd__theme__layoutDivider"></div></div>';
|
|
212
224
|
}
|
|
213
225
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/contentImport/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO/C;AAID,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAqCtD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAWrE;AAID,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/contentImport/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO/C;AAID,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAqCtD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAWrE;AAID,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAmPtD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layersVisitData.d.ts","sourceRoot":"","sources":["../../src/lib/layersVisitData.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACrD;AAUD,wBAAgB,YAAY,IAAI,eAAe,CAW9C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAMxD;AAMD,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"layersVisitData.d.ts","sourceRoot":"","sources":["../../src/lib/layersVisitData.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CACrD;AAUD,wBAAgB,YAAY,IAAI,eAAe,CAW9C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,IAAI,CAMxD;AAMD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAG5E;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAItE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type FeatureProgressData = {
|
|
2
|
+
completedSteps: number[];
|
|
3
|
+
} | 'done';
|
|
4
|
+
interface FeatureProgressState {
|
|
5
|
+
features: Record<string, FeatureProgressData>;
|
|
6
|
+
activeTourFeatureKey: string | null;
|
|
7
|
+
}
|
|
8
|
+
interface FeatureProgressActions {
|
|
9
|
+
completeStep: (featureKey: string, step: number) => void;
|
|
10
|
+
finishFeatureFlow: (featureKey: string) => void;
|
|
11
|
+
resetFeatureFlow: (featureKey: string) => void;
|
|
12
|
+
setActiveTour: (tourFeatureKey: string | null) => void;
|
|
13
|
+
}
|
|
14
|
+
type FeatureProgressStore = FeatureProgressState & FeatureProgressActions;
|
|
15
|
+
export declare const useFeatureProgressStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<FeatureProgressStore>, "setState" | "persist"> & {
|
|
16
|
+
setState(partial: FeatureProgressStore | Partial<FeatureProgressStore> | ((state: FeatureProgressStore) => FeatureProgressStore | Partial<FeatureProgressStore>), replace?: false | undefined): unknown;
|
|
17
|
+
setState(state: FeatureProgressStore | ((state: FeatureProgressStore) => FeatureProgressStore), replace: true): unknown;
|
|
18
|
+
persist: {
|
|
19
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, {
|
|
20
|
+
features: Record<string, FeatureProgressData>;
|
|
21
|
+
}, unknown>>) => void;
|
|
22
|
+
clearStorage: () => void;
|
|
23
|
+
rehydrate: () => Promise<void> | void;
|
|
24
|
+
hasHydrated: () => boolean;
|
|
25
|
+
onHydrate: (fn: (state: FeatureProgressStore) => void) => () => void;
|
|
26
|
+
onFinishHydration: (fn: (state: FeatureProgressStore) => void) => () => void;
|
|
27
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<FeatureProgressStore, {
|
|
28
|
+
features: Record<string, FeatureProgressData>;
|
|
29
|
+
}, unknown>>;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
export declare const isFeatureDone: (featureKey: string) => boolean;
|
|
33
|
+
export declare const getFeatureCompletedSteps: (featureKey: string) => number[];
|
|
34
|
+
export declare const completeFeatureStep: (featureKey: string, step: number) => void;
|
|
35
|
+
export declare const finishFeatureFlow: (featureKey: string) => void;
|
|
36
|
+
export declare const resetFeatureFlow: (featureKey: string) => void;
|
|
37
|
+
export declare const setActiveFeatureTour: (tourFeatureKey: string | null) => void;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=featureProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureProgress.d.ts","sourceRoot":"","sources":["../../src/store/featureProgress.ts"],"names":[],"mappings":"AASA,KAAK,mBAAmB,GAAG;IAAE,cAAc,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,MAAM,CAAC;AAEjE,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC9C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,KAAK,oBAAoB,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;EAmDnC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,KAAG,OAGlD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,MAAM,KAAG,MAAM,EAInE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,MAAM,MAAM,KAAG,IAEtE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,KAAG,IAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,KAAG,IAErD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,MAAM,GAAG,IAAI,KAAG,IAEpE,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { create as f } from "zustand";
|
|
2
|
+
import { persist as p } from "zustand/middleware";
|
|
3
|
+
const F = "feature-progress", S = {
|
|
4
|
+
"graphView-getting-started": "graph"
|
|
5
|
+
}, o = f()(
|
|
6
|
+
p(
|
|
7
|
+
(e, t) => ({
|
|
8
|
+
features: {},
|
|
9
|
+
activeTourFeatureKey: null,
|
|
10
|
+
completeStep: (r, s) => {
|
|
11
|
+
const a = S[r];
|
|
12
|
+
if (a && t().activeTourFeatureKey === a) return;
|
|
13
|
+
const u = t().features[r];
|
|
14
|
+
if (u === "done") return;
|
|
15
|
+
const n = u?.completedSteps ?? [];
|
|
16
|
+
if (n.includes(s)) return;
|
|
17
|
+
const c = [...n, s];
|
|
18
|
+
e((i) => ({
|
|
19
|
+
features: {
|
|
20
|
+
...i.features,
|
|
21
|
+
[r]: { completedSteps: c }
|
|
22
|
+
}
|
|
23
|
+
}));
|
|
24
|
+
},
|
|
25
|
+
finishFeatureFlow: (r) => {
|
|
26
|
+
e((s) => ({
|
|
27
|
+
features: {
|
|
28
|
+
...s.features,
|
|
29
|
+
[r]: "done"
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
},
|
|
33
|
+
resetFeatureFlow: (r) => {
|
|
34
|
+
e((s) => {
|
|
35
|
+
const { [r]: a, ...u } = s.features;
|
|
36
|
+
return { features: u };
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
setActiveTour: (r) => {
|
|
40
|
+
e({ activeTourFeatureKey: r });
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
{
|
|
44
|
+
name: F,
|
|
45
|
+
partialize: (e) => ({ features: e.features })
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
), m = (e) => o.getState().features[e] === "done", d = (e) => {
|
|
49
|
+
const t = o.getState().features[e];
|
|
50
|
+
return !t || t === "done" ? [] : t.completedSteps;
|
|
51
|
+
}, w = (e, t) => {
|
|
52
|
+
o.getState().completeStep(e, t);
|
|
53
|
+
}, T = (e) => {
|
|
54
|
+
o.getState().finishFeatureFlow(e);
|
|
55
|
+
}, v = (e) => {
|
|
56
|
+
o.getState().resetFeatureFlow(e);
|
|
57
|
+
}, A = (e) => {
|
|
58
|
+
o.getState().setActiveTour(e);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
w as completeFeatureStep,
|
|
62
|
+
T as finishFeatureFlow,
|
|
63
|
+
d as getFeatureCompletedSteps,
|
|
64
|
+
m as isFeatureDone,
|
|
65
|
+
v as resetFeatureFlow,
|
|
66
|
+
A as setActiveFeatureTour,
|
|
67
|
+
o as useFeatureProgressStore
|
|
68
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plansModal.d.ts","sourceRoot":"","sources":["../../src/store/plansModal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plansModal.d.ts","sourceRoot":"","sources":["../../src/store/plansModal.ts"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,sBAAsB,yEAEhC,CAAC;AAEJ,eAAO,MAAM,kBAAkB,YAK9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAE/B,CAAC"}
|
package/dist/store/plansModal.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { create as t } from "zustand";
|
|
2
|
-
import { useAppContainerDataStore as
|
|
2
|
+
import { useAppContainerDataStore as s } from "../components/AppContainer/hooks/useAppContainerDataStore.js";
|
|
3
|
+
import { DEFAULT_MODE as r, getPlatformInfo as a } from "../helpers/platform.js";
|
|
3
4
|
const e = t(() => ({
|
|
4
5
|
opened: !1
|
|
5
|
-
})),
|
|
6
|
-
o.getState().
|
|
7
|
-
|
|
6
|
+
})), m = () => {
|
|
7
|
+
const o = s.getState().user.mode ?? r;
|
|
8
|
+
a(o).has("plans") && e.setState({ opened: !0 });
|
|
9
|
+
}, d = () => {
|
|
8
10
|
e.setState({ opened: !1 });
|
|
9
11
|
};
|
|
10
12
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
d as closeUserPlansModal,
|
|
14
|
+
m as openUserPlansModal,
|
|
13
15
|
e as useUserPlansModalStore
|
|
14
16
|
};
|