@finsweet/webflow-apps-utils 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/router/Link.svelte +166 -0
- package/dist/router/Link.svelte.d.ts +26 -0
- package/dist/router/README.md +397 -0
- package/dist/router/Route.svelte +82 -0
- package/dist/router/Route.svelte.d.ts +24 -0
- package/dist/router/Router.svelte +71 -0
- package/dist/router/Router.svelte.d.ts +20 -0
- package/dist/router/hooks.svelte.d.ts +77 -0
- package/dist/router/hooks.svelte.js +148 -0
- package/dist/router/index.svelte.d.ts +107 -0
- package/dist/router/index.svelte.js +400 -0
- package/dist/stores/breakpoints.d.ts +10 -0
- package/dist/stores/breakpoints.js +2 -0
- package/dist/stores/componentInjectErrors.d.ts +1 -0
- package/dist/stores/componentInjectErrors.js +2 -0
- package/dist/stores/forms.d.ts +110 -0
- package/dist/stores/forms.js +307 -0
- package/dist/stores/globalStore.d.ts +10 -0
- package/dist/stores/globalStore.js +10 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/index.js +7 -0
- package/dist/stores/router.d.ts +4 -0
- package/dist/stores/router.js +5 -0
- package/dist/stores/showConfirmActionModal.d.ts +1 -0
- package/dist/stores/showConfirmActionModal.js +2 -0
- package/dist/stores/siteInfo.d.ts +13 -0
- package/dist/stores/siteInfo.js +2 -0
- package/dist/types/auth.d.ts +40 -0
- package/dist/types/auth.js +1 -0
- package/dist/types/customCode.d.ts +16 -0
- package/dist/types/customCode.js +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/license.d.ts +5 -0
- package/dist/types/license.js +1 -0
- package/dist/types/webflow.d.ts +125 -0
- package/dist/types/webflow.js +1 -0
- package/dist/types/window.d.ts +14 -0
- package/dist/types/window.js +1 -0
- package/dist/ui/components/ButtonGroup.svelte +106 -0
- package/dist/ui/components/ButtonGroup.svelte.d.ts +28 -0
- package/dist/ui/components/Checkbox.svelte +94 -0
- package/dist/ui/components/Checkbox.svelte.d.ts +36 -0
- package/dist/ui/components/Copy.svelte +329 -0
- package/dist/ui/components/Copy.svelte.d.ts +35 -0
- package/dist/ui/components/CustomModal.svelte +192 -0
- package/dist/ui/components/CustomModal.svelte.d.ts +45 -0
- package/dist/ui/components/DisableInEditMode.svelte +66 -0
- package/dist/ui/components/DisableInEditMode.svelte.d.ts +33 -0
- package/dist/ui/components/Divider.svelte +31 -0
- package/dist/ui/components/Divider.svelte.d.ts +31 -0
- package/dist/ui/components/Header.svelte +30 -0
- package/dist/ui/components/Header.svelte.d.ts +20 -0
- package/dist/ui/components/Iframe.svelte +89 -0
- package/dist/ui/components/Iframe.svelte.d.ts +40 -0
- package/dist/ui/components/ImageUpload.svelte +213 -0
- package/dist/ui/components/ImageUpload.svelte.d.ts +42 -0
- package/dist/ui/components/InjectComponent.svelte +297 -0
- package/dist/ui/components/InjectComponent.svelte.d.ts +27 -0
- package/dist/ui/components/Loader.svelte +68 -0
- package/dist/ui/components/Loader.svelte.d.ts +24 -0
- package/dist/ui/components/LoadingScreen.svelte +71 -0
- package/dist/ui/components/LoadingScreen.svelte.d.ts +26 -0
- package/dist/ui/components/Modal.svelte +139 -0
- package/dist/ui/components/Modal.svelte.d.ts +42 -0
- package/dist/ui/components/Navbar.svelte +132 -0
- package/dist/ui/components/Navbar.svelte.d.ts +29 -0
- package/dist/ui/components/NoSettingsNeeded.svelte +31 -0
- package/dist/ui/components/NoSettingsNeeded.svelte.d.ts +18 -0
- package/dist/ui/components/Notification.svelte +193 -0
- package/dist/ui/components/Notification.svelte.d.ts +64 -0
- package/dist/ui/components/PlusMinusButton.svelte +91 -0
- package/dist/ui/components/PlusMinusButton.svelte.d.ts +22 -0
- package/dist/ui/components/PreviewBar.svelte +40 -0
- package/dist/ui/components/PreviewBar.svelte.d.ts +20 -0
- package/dist/ui/components/ScrollableContent.svelte +18 -0
- package/dist/ui/components/ScrollableContent.svelte.d.ts +31 -0
- package/dist/ui/components/Section.svelte +97 -0
- package/dist/ui/components/Section.svelte.d.ts +50 -0
- package/dist/ui/components/SelectBodyOrDivBlock.svelte +26 -0
- package/dist/ui/components/SelectBodyOrDivBlock.svelte.d.ts +26 -0
- package/dist/ui/components/Spacer.svelte +9 -0
- package/dist/ui/components/Spacer.svelte.d.ts +22 -0
- package/dist/ui/components/SpinnerPlusMinus.svelte +75 -0
- package/dist/ui/components/SpinnerPlusMinus.svelte.d.ts +23 -0
- package/dist/ui/components/SpinnerUpDown.svelte +194 -0
- package/dist/ui/components/SpinnerUpDown.svelte.d.ts +31 -0
- package/dist/ui/components/Tabs.svelte +71 -0
- package/dist/ui/components/Tabs.svelte.d.ts +26 -0
- package/dist/ui/components/ToggleItem.svelte +29 -0
- package/dist/ui/components/ToggleItem.svelte.d.ts +28 -0
- package/dist/ui/components/ToggleList.svelte +57 -0
- package/dist/ui/components/ToggleList.svelte.d.ts +39 -0
- package/dist/ui/components/breakpoints/BreakpointItem.svelte +84 -0
- package/dist/ui/components/breakpoints/BreakpointItem.svelte.d.ts +37 -0
- package/dist/ui/components/breakpoints/breakpointOptions.d.ts +12 -0
- package/dist/ui/components/breakpoints/breakpointOptions.js +38 -0
- package/dist/ui/components/breakpoints/index.d.ts +3 -0
- package/dist/ui/components/breakpoints/index.js +3 -0
- package/dist/ui/components/button/Button.stories.svelte +275 -0
- package/dist/ui/components/button/Button.stories.svelte.d.ts +27 -0
- package/dist/ui/components/button/Button.svelte +389 -0
- package/dist/ui/components/button/Button.svelte.d.ts +84 -0
- package/dist/ui/components/button/index.d.ts +2 -0
- package/dist/ui/components/button/index.js +1 -0
- package/dist/ui/components/button/types.d.ts +23 -0
- package/dist/ui/components/button/types.js +1 -0
- package/dist/ui/components/buttons/FooterButton.svelte +277 -0
- package/dist/ui/components/buttons/FooterButton.svelte.d.ts +10 -0
- package/dist/ui/components/buttons/index.d.ts +5 -0
- package/dist/ui/components/buttons/index.js +5 -0
- package/dist/ui/components/buttons/types.d.ts +28 -0
- package/dist/ui/components/buttons/types.js +1 -0
- package/dist/ui/components/clickable/Clickable.stories.svelte +213 -0
- package/dist/ui/components/clickable/Clickable.stories.svelte.d.ts +27 -0
- package/dist/ui/components/clickable/Clickable.svelte +93 -0
- package/dist/ui/components/clickable/Clickable.svelte.d.ts +4 -0
- package/dist/ui/components/clickable/index.d.ts +2 -0
- package/dist/ui/components/clickable/index.js +1 -0
- package/dist/ui/components/clickable/types.d.ts +17 -0
- package/dist/ui/components/clickable/types.js +1 -0
- package/dist/ui/components/index.d.ts +46 -0
- package/dist/ui/components/index.js +46 -0
- package/dist/ui/components/input/Input.stories.d.ts +109 -0
- package/dist/ui/components/input/Input.stories.js +337 -0
- package/dist/ui/components/input/Input.svelte +422 -0
- package/dist/ui/components/input/Input.svelte.d.ts +4 -0
- package/dist/ui/components/input/index.d.ts +2 -0
- package/dist/ui/components/input/index.js +1 -0
- package/dist/ui/components/input/types.d.ts +109 -0
- package/dist/ui/components/input/types.js +1 -0
- package/dist/ui/components/layout/ExampleLayout.svelte +538 -0
- package/dist/ui/components/layout/ExampleLayout.svelte.d.ts +3 -0
- package/dist/ui/components/layout/Layout.stories.svelte +24 -0
- package/dist/ui/components/layout/Layout.stories.svelte.d.ts +18 -0
- package/dist/ui/components/layout/Layout.svelte +551 -0
- package/dist/ui/components/layout/Layout.svelte.d.ts +30 -0
- package/dist/ui/components/layout/common/EditModeMessage.svelte +59 -0
- package/dist/ui/components/layout/common/EditModeMessage.svelte.d.ts +3 -0
- package/dist/ui/components/layout/common/index.d.ts +1 -0
- package/dist/ui/components/layout/common/index.js +1 -0
- package/dist/ui/components/layout/index.d.ts +3 -0
- package/dist/ui/components/layout/index.js +2 -0
- package/dist/ui/components/layout/types.d.ts +59 -0
- package/dist/ui/components/layout/types.js +1 -0
- package/dist/ui/components/select/Select.stories.d.ts +94 -0
- package/dist/ui/components/select/Select.stories.js +396 -0
- package/dist/ui/components/select/Select.svelte +705 -0
- package/dist/ui/components/select/Select.svelte.d.ts +11 -0
- package/dist/ui/components/select/index.d.ts +2 -0
- package/dist/ui/components/select/index.js +1 -0
- package/dist/ui/components/select/types.d.ts +94 -0
- package/dist/ui/components/select/types.js +1 -0
- package/dist/ui/components/switch/Switch.stories.d.ts +58 -0
- package/dist/ui/components/switch/Switch.stories.js +198 -0
- package/dist/ui/components/switch/Switch.svelte +220 -0
- package/dist/ui/components/switch/Switch.svelte.d.ts +4 -0
- package/dist/ui/components/switch/index.d.ts +2 -0
- package/dist/ui/components/switch/index.js +1 -0
- package/dist/ui/components/switch/types.d.ts +47 -0
- package/dist/ui/components/switch/types.js +1 -0
- package/dist/ui/components/text/README.md +73 -0
- package/dist/ui/components/text/Text.stories.svelte +203 -0
- package/dist/ui/components/text/Text.stories.svelte.d.ts +27 -0
- package/dist/ui/components/text/Text.svelte +778 -0
- package/dist/ui/components/text/Text.svelte.d.ts +8 -0
- package/dist/ui/components/text/index.d.ts +3 -0
- package/dist/ui/components/text/index.js +2 -0
- package/dist/ui/components/text/types.d.ts +46 -0
- package/dist/ui/components/text/types.js +1 -0
- package/dist/ui/components/tooltip/Tooltip.stories.svelte +128 -0
- package/dist/ui/components/tooltip/Tooltip.stories.svelte.d.ts +27 -0
- package/dist/ui/components/tooltip/Tooltip.svelte +463 -0
- package/dist/ui/components/tooltip/Tooltip.svelte.d.ts +7 -0
- package/dist/ui/components/tooltip/index.d.ts +2 -0
- package/dist/ui/components/tooltip/index.js +1 -0
- package/dist/ui/components/tooltip/types.d.ts +114 -0
- package/dist/ui/components/tooltip/types.js +1 -0
- package/dist/ui/icons/AccordionDownArrow.svelte +8 -0
- package/dist/ui/icons/AccordionDownArrow.svelte.d.ts +26 -0
- package/dist/ui/icons/AccordionUpArrow.svelte +8 -0
- package/dist/ui/icons/AccordionUpArrow.svelte.d.ts +26 -0
- package/dist/ui/icons/AccountIcon.svelte +14 -0
- package/dist/ui/icons/AccountIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ArrowIcon.svelte +6 -0
- package/dist/ui/icons/ArrowIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BackIcon.svelte +8 -0
- package/dist/ui/icons/BackIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BodyIcon.svelte +8 -0
- package/dist/ui/icons/BodyIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BookmarkIcon.svelte +13 -0
- package/dist/ui/icons/BookmarkIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BoxAddIcon.svelte +8 -0
- package/dist/ui/icons/BoxAddIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BrushIcon.svelte +10 -0
- package/dist/ui/icons/BrushIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BuilderEditIcon.svelte +12 -0
- package/dist/ui/icons/BuilderEditIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BuilderIcon.svelte +14 -0
- package/dist/ui/icons/BuilderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CMSIcon.svelte +8 -0
- package/dist/ui/icons/CMSIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckCircleIcon.svelte +8 -0
- package/dist/ui/icons/CheckCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckCircleOutlinedIcon.svelte +15 -0
- package/dist/ui/icons/CheckCircleOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckIcon.svelte +9 -0
- package/dist/ui/icons/CheckIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckboxCheckedIcon.svelte +15 -0
- package/dist/ui/icons/CheckboxCheckedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ChevronIcon.svelte +8 -0
- package/dist/ui/icons/ChevronIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ChevronRightIcon.svelte +8 -0
- package/dist/ui/icons/ChevronRightIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CircleIcon.svelte +3 -0
- package/dist/ui/icons/CircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CloseCircleIcon.svelte +6 -0
- package/dist/ui/icons/CloseCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CloseIcon.svelte +8 -0
- package/dist/ui/icons/CloseIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CodeIcon.svelte +8 -0
- package/dist/ui/icons/CodeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ComponentsIcon.svelte +7 -0
- package/dist/ui/icons/ComponentsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CookieIcon.svelte +15 -0
- package/dist/ui/icons/CookieIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CopyIcon.svelte +19 -0
- package/dist/ui/icons/CopyIcon.svelte.d.ts +20 -0
- package/dist/ui/icons/CrossIcon.svelte +4 -0
- package/dist/ui/icons/CrossIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/DOMElement.svelte +19 -0
- package/dist/ui/icons/DOMElement.svelte.d.ts +28 -0
- package/dist/ui/icons/DeleteIcon.svelte +8 -0
- package/dist/ui/icons/DeleteIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/DeleteOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/DeleteOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Desktop.svelte +19 -0
- package/dist/ui/icons/Desktop.svelte.d.ts +21 -0
- package/dist/ui/icons/DesktopWithStar.svelte +21 -0
- package/dist/ui/icons/DesktopWithStar.svelte.d.ts +21 -0
- package/dist/ui/icons/DivBlock.svelte +14 -0
- package/dist/ui/icons/DivBlock.svelte.d.ts +28 -0
- package/dist/ui/icons/EditIcon.svelte +15 -0
- package/dist/ui/icons/EditIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ExpertIcon.svelte +16 -0
- package/dist/ui/icons/ExpertIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/EyeCancelIcon.svelte +12 -0
- package/dist/ui/icons/EyeCancelIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/EyeIcon.svelte +12 -0
- package/dist/ui/icons/EyeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FavouriteIcon.svelte +6 -0
- package/dist/ui/icons/FavouriteIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FileUploadIcon.svelte +18 -0
- package/dist/ui/icons/FileUploadIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FilterIcon.svelte +8 -0
- package/dist/ui/icons/FilterIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FinsweetLibraryIcon.svelte +21 -0
- package/dist/ui/icons/FinsweetLibraryIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FinsweetLogoIcon.svelte +20 -0
- package/dist/ui/icons/FinsweetLogoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderIcon.svelte +6 -0
- package/dist/ui/icons/FolderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/FolderOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderPlusIcon.svelte +10 -0
- package/dist/ui/icons/FolderPlusIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FreeComponentIcon.svelte +8 -0
- package/dist/ui/icons/FreeComponentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/GlobeIcon.svelte +14 -0
- package/dist/ui/icons/GlobeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HandPointUpIcon.svelte +9 -0
- package/dist/ui/icons/HandPointUpIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HeartIcon.svelte +8 -0
- package/dist/ui/icons/HeartIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HeartIconOutlined.svelte +8 -0
- package/dist/ui/icons/HeartIconOutlined.svelte.d.ts +26 -0
- package/dist/ui/icons/HelpAltIcon.svelte +23 -0
- package/dist/ui/icons/HelpAltIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HelpIcon.svelte +16 -0
- package/dist/ui/icons/HelpIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HomeIcon.svelte +8 -0
- package/dist/ui/icons/HomeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/InfoIcon.svelte +14 -0
- package/dist/ui/icons/InfoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ListIcon.svelte +18 -0
- package/dist/ui/icons/ListIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/LockIcon.svelte +13 -0
- package/dist/ui/icons/LockIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/MessageIcon.svelte +10 -0
- package/dist/ui/icons/MessageIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/MobileLandscape.svelte +20 -0
- package/dist/ui/icons/MobileLandscape.svelte.d.ts +21 -0
- package/dist/ui/icons/MobilePortrait.svelte +20 -0
- package/dist/ui/icons/MobilePortrait.svelte.d.ts +21 -0
- package/dist/ui/icons/NavigatorIcon.svelte +8 -0
- package/dist/ui/icons/NavigatorIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/OpenBookIcon.svelte +8 -0
- package/dist/ui/icons/OpenBookIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageDraftIcon.svelte +8 -0
- package/dist/ui/icons/PageDraftIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageIcon.svelte +9 -0
- package/dist/ui/icons/PageIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageLockedIcon.svelte +8 -0
- package/dist/ui/icons/PageLockedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/PageOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageSectionIcon.svelte +10 -0
- package/dist/ui/icons/PageSectionIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Pencil.svelte +12 -0
- package/dist/ui/icons/Pencil.svelte.d.ts +20 -0
- package/dist/ui/icons/PencilOutlinedIcon.svelte +15 -0
- package/dist/ui/icons/PencilOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PinIcon.svelte +8 -0
- package/dist/ui/icons/PinIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PlayIcon.svelte +8 -0
- package/dist/ui/icons/PlayIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PlusIcon.svelte +8 -0
- package/dist/ui/icons/PlusIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PreviewEyeIcon.svelte +12 -0
- package/dist/ui/icons/PreviewEyeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ProfileIcon.svelte +12 -0
- package/dist/ui/icons/ProfileIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PublishCancelIcon.svelte +8 -0
- package/dist/ui/icons/PublishCancelIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PublishIcon.svelte +12 -0
- package/dist/ui/icons/PublishIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/RefreshIcon.svelte +10 -0
- package/dist/ui/icons/RefreshIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/RepairIcon.svelte +10 -0
- package/dist/ui/icons/RepairIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SaveIcon.svelte +14 -0
- package/dist/ui/icons/SaveIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SearchIcon.svelte +8 -0
- package/dist/ui/icons/SearchIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SelectIcon.svelte +7 -0
- package/dist/ui/icons/SelectIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SettingsIcon.svelte +8 -0
- package/dist/ui/icons/SettingsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SidebarToggleIcon.svelte +28 -0
- package/dist/ui/icons/SidebarToggleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SliderAppIcon.svelte +14 -0
- package/dist/ui/icons/SliderAppIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SquareCheckIcon.svelte +3 -0
- package/dist/ui/icons/SquareCheckIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StarIcon.svelte +6 -0
- package/dist/ui/icons/StarIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StarOutlinedIcon.svelte +6 -0
- package/dist/ui/icons/StarOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StaticContentIcon.svelte +8 -0
- package/dist/ui/icons/StaticContentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SubtractIcon.svelte +9 -0
- package/dist/ui/icons/SubtractIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TabNewIcon.svelte +6 -0
- package/dist/ui/icons/TabNewIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TableAppIcon.svelte +19 -0
- package/dist/ui/icons/TableAppIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Tablet.svelte +20 -0
- package/dist/ui/icons/Tablet.svelte.d.ts +21 -0
- package/dist/ui/icons/TabletPreview.svelte +20 -0
- package/dist/ui/icons/TabletPreview.svelte.d.ts +21 -0
- package/dist/ui/icons/TabsIcon.svelte +17 -0
- package/dist/ui/icons/TabsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ThreeDotsIcon.svelte +14 -0
- package/dist/ui/icons/ThreeDotsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TimesIcon.svelte +4 -0
- package/dist/ui/icons/TimesIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ToolTipInfoCircleIcon.svelte +11 -0
- package/dist/ui/icons/ToolTipInfoCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TooltipInfoCircleFilled.svelte +13 -0
- package/dist/ui/icons/TooltipInfoCircleFilled.svelte.d.ts +26 -0
- package/dist/ui/icons/TooltipInfoSquaredIcon.svelte +16 -0
- package/dist/ui/icons/TooltipInfoSquaredIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TriangleDownIcon.svelte +7 -0
- package/dist/ui/icons/TriangleDownIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TriangleDownIconToggle.svelte +21 -0
- package/dist/ui/icons/TriangleDownIconToggle.svelte.d.ts +20 -0
- package/dist/ui/icons/UndoIcon.svelte +6 -0
- package/dist/ui/icons/UndoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/UploadFileIcon.svelte +10 -0
- package/dist/ui/icons/UploadFileIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningCircleIcon.svelte +7 -0
- package/dist/ui/icons/WarningCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningCircleOutlineIcon.svelte +14 -0
- package/dist/ui/icons/WarningCircleOutlineIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningTriangleIcon.svelte +6 -0
- package/dist/ui/icons/WarningTriangleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningTriangleOutlineIcon.svelte +14 -0
- package/dist/ui/icons/WarningTriangleOutlineIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowComponentIcon.svelte +14 -0
- package/dist/ui/icons/WebflowComponentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowComponentOutlinedIcon.svelte +10 -0
- package/dist/ui/icons/WebflowComponentOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowInsightsIcon.svelte +6 -0
- package/dist/ui/icons/WebflowInsightsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WizedLogoIcon.svelte +39 -0
- package/dist/ui/icons/WizedLogoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/XL.svelte +19 -0
- package/dist/ui/icons/XL.svelte.d.ts +21 -0
- package/dist/ui/icons/XXL.svelte +19 -0
- package/dist/ui/icons/XXL.svelte.d.ts +21 -0
- package/dist/ui/icons/XXXL.svelte +19 -0
- package/dist/ui/icons/XXXL.svelte.d.ts +21 -0
- package/dist/ui/icons/apps/FsConsentIcon.svelte +22 -0
- package/dist/ui/icons/apps/FsConsentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsCursorIcon.svelte +12 -0
- package/dist/ui/icons/apps/FsCursorIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsExampleIcon.svelte +10 -0
- package/dist/ui/icons/apps/FsExampleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsInstagramFeedIcon.svelte +27 -0
- package/dist/ui/icons/apps/FsInstagramFeedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsMarqueeIcon.svelte +13 -0
- package/dist/ui/icons/apps/FsMarqueeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsNumberCountIcon.svelte +46 -0
- package/dist/ui/icons/apps/FsNumberCountIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsSliderIcon.svelte +13 -0
- package/dist/ui/icons/apps/FsSliderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTablesIcon.svelte +19 -0
- package/dist/ui/icons/apps/FsTablesIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTabsIcon.svelte +24 -0
- package/dist/ui/icons/apps/FsTabsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTooltipIcon.svelte +12 -0
- package/dist/ui/icons/apps/FsTooltipIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsYouTubeFeedIcon.svelte +43 -0
- package/dist/ui/icons/apps/FsYouTubeFeedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/index.d.ts +15 -0
- package/dist/ui/icons/apps/index.js +15 -0
- package/dist/ui/icons/index.d.ts +120 -0
- package/dist/ui/icons/index.js +120 -0
- package/dist/ui/index.css +494 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +2 -0
- package/dist/utils/api/checkIfAppModeIsDesign.d.ts +5 -0
- package/dist/utils/api/checkIfAppModeIsDesign.js +20 -0
- package/dist/utils/api/clipboard/handlePaste.d.ts +46 -0
- package/dist/utils/api/clipboard/handlePaste.js +53 -0
- package/dist/utils/api/clipboard/index.d.ts +1 -0
- package/dist/utils/api/clipboard/index.js +1 -0
- package/dist/utils/api/copyPaste/index.d.ts +18 -0
- package/dist/utils/api/copyPaste/index.js +1 -0
- package/dist/utils/api/getAllAssets.d.ts +12 -0
- package/dist/utils/api/getAllAssets.js +21 -0
- package/dist/utils/api/getFinsweetComponentsEnvironment.d.ts +9 -0
- package/dist/utils/api/getFinsweetComponentsEnvironment.js +70 -0
- package/dist/utils/api/index.d.ts +6 -0
- package/dist/utils/api/index.js +6 -0
- package/dist/utils/api/insertWithXSCP.d.ts +5 -0
- package/dist/utils/api/insertWithXSCP.js +13 -0
- package/dist/utils/auth/crossWindowLogin.d.ts +2 -0
- package/dist/utils/auth/crossWindowLogin.js +49 -0
- package/dist/utils/auth/index.d.ts +61 -0
- package/dist/utils/auth/index.js +196 -0
- package/dist/utils/browser-storage/index.d.ts +2 -0
- package/dist/utils/browser-storage/index.js +2 -0
- package/dist/utils/browser-storage/localStorage.d.ts +24 -0
- package/dist/utils/browser-storage/localStorage.js +56 -0
- package/dist/utils/browser-storage/sessionStorage.d.ts +24 -0
- package/dist/utils/browser-storage/sessionStorage.js +56 -0
- package/dist/utils/constants.d.ts +61 -0
- package/dist/utils/constants.js +73 -0
- package/dist/utils/custom-code/api.d.ts +17 -0
- package/dist/utils/custom-code/api.js +41 -0
- package/dist/utils/custom-code/index.d.ts +1 -0
- package/dist/utils/custom-code/index.js +1 -0
- package/dist/utils/helpers/cleanupTooltipMessage.d.ts +5 -0
- package/dist/utils/helpers/cleanupTooltipMessage.js +25 -0
- package/dist/utils/helpers/goto.d.ts +7 -0
- package/dist/utils/helpers/goto.js +35 -0
- package/dist/utils/helpers/index.d.ts +5 -0
- package/dist/utils/helpers/index.js +5 -0
- package/dist/utils/helpers/noop.d.ts +4 -0
- package/dist/utils/helpers/noop.js +7 -0
- package/dist/utils/helpers/numbers.d.ts +27 -0
- package/dist/utils/helpers/numbers.js +61 -0
- package/dist/utils/helpers/objectsToModuleExports.d.ts +9 -0
- package/dist/utils/helpers/objectsToModuleExports.js +13 -0
- package/dist/utils/helpers/trimText.d.ts +15 -0
- package/dist/utils/helpers/trimText.js +33 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/logger/index.d.ts +19 -0
- package/dist/utils/logger/index.js +41 -0
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.d.ts +6 -0
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.js +19 -0
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.d.ts +8 -0
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.js +21 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.js +25 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.d.ts +6 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.js +26 -0
- package/dist/utils/webflow-canvas/attributes/index.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/index.js +7 -0
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.js +37 -0
- package/dist/utils/webflow-canvas/attributes/setStyles.d.ts +10 -0
- package/dist/utils/webflow-canvas/attributes/setStyles.js +36 -0
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.d.ts +11 -0
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.js +61 -0
- package/dist/utils/webflow-canvas/findInstanceElement.d.ts +32 -0
- package/dist/utils/webflow-canvas/findInstanceElement.js +144 -0
- package/dist/utils/webflow-canvas/getAllPages.d.ts +29 -0
- package/dist/utils/webflow-canvas/getAllPages.js +93 -0
- package/dist/utils/webflow-canvas/getSiteStagingUrl.d.ts +7 -0
- package/dist/utils/webflow-canvas/getSiteStagingUrl.js +14 -0
- package/dist/utils/webflow-canvas/index.d.ts +3 -0
- package/dist/utils/webflow-canvas/index.js +3 -0
- package/package.json +107 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap');
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* custom scrollbar related */
|
|
5
|
+
--sb-track-color: #1e1e1e;
|
|
6
|
+
--sb-thumb-color: #373737;
|
|
7
|
+
--sb-size: 6px;
|
|
8
|
+
|
|
9
|
+
/* Webflow colors */
|
|
10
|
+
--background1: #292929;
|
|
11
|
+
--black: #000000;
|
|
12
|
+
--background2: #353535;
|
|
13
|
+
--background3: #404040;
|
|
14
|
+
--background4: #373737;
|
|
15
|
+
--background5: #404040;
|
|
16
|
+
--backgroundInactive: #292929;
|
|
17
|
+
--backgroundInverse: #e8e8e8;
|
|
18
|
+
--backgroundInput: rgba(0, 0, 0, 0.22);
|
|
19
|
+
--Background-background4: #2b2b2b;
|
|
20
|
+
|
|
21
|
+
--actionPrimaryBackground: #006acc;
|
|
22
|
+
--actionPrimaryBackgroundHover: #187cd9;
|
|
23
|
+
--actionSecondaryBackground:
|
|
24
|
+
linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.1) 100%),
|
|
25
|
+
var(--background3);
|
|
26
|
+
--actionSecondaryBackgroundHover: linear-gradient(
|
|
27
|
+
180deg,
|
|
28
|
+
rgba(255, 255, 255, 0.18) 0%,
|
|
29
|
+
rgba(255, 255, 255, 0.16) 100%
|
|
30
|
+
);
|
|
31
|
+
--actionPrimaryText: #ffffff;
|
|
32
|
+
--actionPrimaryTextHover: #ffffff;
|
|
33
|
+
--actionSecondaryText: #e0e0e0;
|
|
34
|
+
--actionSecondaryTextHover: #e0e0e0;
|
|
35
|
+
|
|
36
|
+
--defaultLightHover: rgba(255, 255, 255, 0.05);
|
|
37
|
+
--defaultLightActive: rgba(255, 255, 255, 0.03);
|
|
38
|
+
|
|
39
|
+
--border1: rgba(255, 255, 255, 0.13);
|
|
40
|
+
--border2: rgba(255, 255, 255, 0.16);
|
|
41
|
+
--border3: rgba(255, 255, 255, 0.19);
|
|
42
|
+
/* removing token --border4 */
|
|
43
|
+
|
|
44
|
+
--text1: #ffffff;
|
|
45
|
+
--text2: rgba(255, 255, 255, 0.67);
|
|
46
|
+
--text3: rgba(255, 255, 255, 0.67);
|
|
47
|
+
--text-text-2: #ababab;
|
|
48
|
+
--text-text-1: #d9d9d9;
|
|
49
|
+
|
|
50
|
+
--action-action-secondary-background: #484848;
|
|
51
|
+
|
|
52
|
+
--text4: #696969;
|
|
53
|
+
--textInactive: rgba(255, 255, 255, 0.5);
|
|
54
|
+
--textInverse: #000000;
|
|
55
|
+
|
|
56
|
+
--blueText: #8ac2ff;
|
|
57
|
+
--blueIcon: #8ac2ff;
|
|
58
|
+
--blueBorder: #007df0;
|
|
59
|
+
|
|
60
|
+
--greenBackground: #007a41;
|
|
61
|
+
--greenBackgroundHover: #0d8a4f;
|
|
62
|
+
--greenText: #79e09c;
|
|
63
|
+
--greenIcon: #79e09c;
|
|
64
|
+
--greenBorder: #259d4d;
|
|
65
|
+
--yellowBackground: #946b00;
|
|
66
|
+
|
|
67
|
+
--yellowBackgroundHover: #af7f00;
|
|
68
|
+
--yellowText: #f3c831;
|
|
69
|
+
--yellowIcon: #f3c831;
|
|
70
|
+
--yellowBorder: #ffd301;
|
|
71
|
+
|
|
72
|
+
--redBackground: #cf313b;
|
|
73
|
+
--redBackgroundHover: #cb3535;
|
|
74
|
+
--redText: #ff8a8a;
|
|
75
|
+
--redIcon: #ff8a8a;
|
|
76
|
+
--redBorder: #e42f3a;
|
|
77
|
+
|
|
78
|
+
--orangeBackground: #bf4707;
|
|
79
|
+
--orangeBackgroundHover: #c95616;
|
|
80
|
+
--orangeText: #ffbc86;
|
|
81
|
+
--orangeIcon: #ffbc86;
|
|
82
|
+
--orangeBorder: #df640c;
|
|
83
|
+
|
|
84
|
+
--purpleBackground: #734ce0;
|
|
85
|
+
--purpleBackgroundHover: #815beb;
|
|
86
|
+
--purpleText: #c4afff;
|
|
87
|
+
--purpleIcon: #c4afff;
|
|
88
|
+
--purpleBorder: #875ffd;
|
|
89
|
+
|
|
90
|
+
/* Box shadows for buttons and inputs */
|
|
91
|
+
--boxShadows-action-colored:
|
|
92
|
+
0px 0.5px 1px 0px rgba(0, 0, 0, 0.8), 0px 0.5px 0.5px 0px rgba(255, 255, 255, 0.2) inset;
|
|
93
|
+
--boxShadows-action-secondary:
|
|
94
|
+
0px 0.5px 1px rgba(0, 0, 0, 0.8), inset 0px 0.5px 0.5px rgba(255, 255, 255, 0.12);
|
|
95
|
+
--boxShadows-input-inner:
|
|
96
|
+
0px 1px 1px -1px rgba(0, 0, 0, 0.13) inset, 0px 3px 3px -3px rgba(0, 0, 0, 0.17) inset,
|
|
97
|
+
0px 4px 4px -4px rgba(0, 0, 0, 0.17) inset, 0px 8px 8px -8px rgba(0, 0, 0, 0.17) inset,
|
|
98
|
+
0px 12px 12px -12px rgba(0, 0, 0, 0.13) inset, 0px 16px 16px -16px rgba(0, 0, 0, 0.13) inset;
|
|
99
|
+
|
|
100
|
+
--boxShadows-menu:
|
|
101
|
+
0px 12px 24px 8px rgba(0, 0, 0, 0.08), 0px 8px 16px 4px rgba(0, 0, 0, 0.08),
|
|
102
|
+
0px 4px 8px 2px rgba(0, 0, 0, 0.08), 0px 2px 6px 0px rgba(0, 0, 0, 0.08),
|
|
103
|
+
0px -0.5px 0.5px 0px rgba(0, 0, 0, 0.12) inset,
|
|
104
|
+
0px 0.5px 0.5px 0px rgba(255, 255, 255, 0.12) inset;
|
|
105
|
+
|
|
106
|
+
/* TYPOGRAPHY */
|
|
107
|
+
--font-stack: 'Inter', sans-serif;
|
|
108
|
+
|
|
109
|
+
--input-inner-shadow:
|
|
110
|
+
0px 1px 1px -1px rgba(0, 0, 0, 0.13) inset, 0px 3px 3px -3px rgba(0, 0, 0, 0.17) inset,
|
|
111
|
+
0px 4px 4px -4px rgba(0, 0, 0, 0.17) inset, 0px 8px 8px -8px rgba(0, 0, 0, 0.17) inset,
|
|
112
|
+
0px 12px 12px -12px rgba(0, 0, 0, 0.13) inset, 0px 16px 16px -16px rgba(0, 0, 0, 0.13) inset;
|
|
113
|
+
|
|
114
|
+
--menu-shadow:
|
|
115
|
+
0px 12px 24px 8px rgba(0, 0, 0, 0.08), 0px 8px 16px 4px rgba(0, 0, 0, 0.08),
|
|
116
|
+
0px 4px 8px 2px rgba(0, 0, 0, 0.08), 0px 2px 6px 0px rgba(0, 0, 0, 0.08),
|
|
117
|
+
0px -0.5px 0.5px 0px rgba(0, 0, 0, 0.12) inset,
|
|
118
|
+
0px 0.5px 0.5px 0px rgba(255, 255, 255, 0.12) inset;
|
|
119
|
+
|
|
120
|
+
--font-size-small: 11.5px;
|
|
121
|
+
--font-size-small-letter-spacing: -0.115px;
|
|
122
|
+
--font-size-large: 12.5px;
|
|
123
|
+
--font-weight-normal: 400;
|
|
124
|
+
--font-weight-medium: 600;
|
|
125
|
+
--border-radius: 4px;
|
|
126
|
+
|
|
127
|
+
/* Hover effect */
|
|
128
|
+
--hoverColor: rgba(255, 255, 255, 0.14);
|
|
129
|
+
|
|
130
|
+
/* NONWEBFLOW VARIABLES */
|
|
131
|
+
--padding-tiny: 2px;
|
|
132
|
+
--padding-small: 4px;
|
|
133
|
+
--padding-regular: 8px;
|
|
134
|
+
--padding-large: 12px;
|
|
135
|
+
|
|
136
|
+
/* spacing */
|
|
137
|
+
--spacing-12: 12px;
|
|
138
|
+
--space-space-1: 4px;
|
|
139
|
+
--spacing-16: 16px;
|
|
140
|
+
--spacing-8: 8px;
|
|
141
|
+
--spacing-4: 4px;
|
|
142
|
+
--spacing-32: 32px;
|
|
143
|
+
--spacing-24: 24px;
|
|
144
|
+
|
|
145
|
+
/* Finsweet Components: super app specific sizes */
|
|
146
|
+
--components-navbar-height: 43px;
|
|
147
|
+
--left-sidebar-width: 274px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
*,
|
|
151
|
+
*::before,
|
|
152
|
+
*::after {
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
html,
|
|
157
|
+
body,
|
|
158
|
+
#app {
|
|
159
|
+
height: 100%;
|
|
160
|
+
background: var(--background1);
|
|
161
|
+
/* Prevents layout shift when scrollbar appears, does not work in Safari browsers */
|
|
162
|
+
/* scrollbar-gutter: stable; */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
body {
|
|
166
|
+
margin: 0;
|
|
167
|
+
/* color: var(--text-text-1, #d9d9d9); */
|
|
168
|
+
color: var(--text1);
|
|
169
|
+
|
|
170
|
+
font-size: var(--font-size-large);
|
|
171
|
+
font-family:
|
|
172
|
+
Inter,
|
|
173
|
+
-apple-system,
|
|
174
|
+
BlinkMacSystemFont,
|
|
175
|
+
'Segoe UI',
|
|
176
|
+
Roboto,
|
|
177
|
+
Oxygen-Sans,
|
|
178
|
+
Ubuntu,
|
|
179
|
+
Cantarell,
|
|
180
|
+
'Helvetica Neue',
|
|
181
|
+
Helvetica,
|
|
182
|
+
Arial,
|
|
183
|
+
'Apple Color Emoji',
|
|
184
|
+
'Segoe UI Emoji',
|
|
185
|
+
'Segoe UI Symbol',
|
|
186
|
+
sans-serif;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
button,
|
|
190
|
+
span,
|
|
191
|
+
h1,
|
|
192
|
+
h2,
|
|
193
|
+
h3,
|
|
194
|
+
h4,
|
|
195
|
+
h5,
|
|
196
|
+
p,
|
|
197
|
+
div,
|
|
198
|
+
input,
|
|
199
|
+
textarea,
|
|
200
|
+
select,
|
|
201
|
+
option,
|
|
202
|
+
label,
|
|
203
|
+
a {
|
|
204
|
+
font-family:
|
|
205
|
+
Inter,
|
|
206
|
+
-apple-system,
|
|
207
|
+
BlinkMacSystemFont,
|
|
208
|
+
'Segoe UI',
|
|
209
|
+
Roboto,
|
|
210
|
+
Oxygen-Sans,
|
|
211
|
+
Ubuntu,
|
|
212
|
+
Cantarell,
|
|
213
|
+
'Helvetica Neue',
|
|
214
|
+
Helvetica,
|
|
215
|
+
Arial,
|
|
216
|
+
'Apple Color Emoji',
|
|
217
|
+
'Segoe UI Emoji',
|
|
218
|
+
'Segoe UI Symbol',
|
|
219
|
+
sans-serif;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
a {
|
|
223
|
+
color: inherit;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
h1 {
|
|
227
|
+
font-size: var(--font-size-large);
|
|
228
|
+
font-weight: 400;
|
|
229
|
+
margin-bottom: 1rem;
|
|
230
|
+
margin-block-start: 4px;
|
|
231
|
+
margin-block-end: 4px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
h2 {
|
|
235
|
+
font-size: var(--font-size-small);
|
|
236
|
+
color: white;
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
margin-block-start: 4px;
|
|
239
|
+
margin-block-end: 4px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
h3 {
|
|
243
|
+
font-size: var(--font-size-tiny);
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
margin-bottom: 1rem;
|
|
246
|
+
margin-block-start: 4px;
|
|
247
|
+
margin-block-end: 4px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
form {
|
|
251
|
+
display: block;
|
|
252
|
+
margin-top: 0em;
|
|
253
|
+
margin-block-end: 0em;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
label {
|
|
257
|
+
display: block;
|
|
258
|
+
font-size: var(--font-size-small);
|
|
259
|
+
font-weight: 400;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Global Disabled state */
|
|
263
|
+
.disabled,
|
|
264
|
+
.login-required {
|
|
265
|
+
cursor: not-allowed !important;
|
|
266
|
+
opacity: 0.75 !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* simplebar */
|
|
270
|
+
.simplebar-content {
|
|
271
|
+
position: relative;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.simplebar-mask {
|
|
275
|
+
z-index: auto !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
input {
|
|
279
|
+
/* Remove default appearance for some browsers */
|
|
280
|
+
-webkit-appearance: none;
|
|
281
|
+
-moz-appearance: none;
|
|
282
|
+
appearance: none;
|
|
283
|
+
|
|
284
|
+
/* Remove default border and padding for all browsers */
|
|
285
|
+
border: var(--border3) 1px solid;
|
|
286
|
+
border-radius: var(--border-radius, 4px);
|
|
287
|
+
padding: var(--padding-small);
|
|
288
|
+
margin: 0;
|
|
289
|
+
|
|
290
|
+
/* Set font styles to inherit from parent */
|
|
291
|
+
font-family: inherit;
|
|
292
|
+
font-size: inherit;
|
|
293
|
+
color: var(--text2);
|
|
294
|
+
|
|
295
|
+
/* Remove the default background */
|
|
296
|
+
background: var(--background1);
|
|
297
|
+
|
|
298
|
+
/* Remove the highlight when focused (outline: none is generally discouraged due to accessibility concerns,
|
|
299
|
+
so use it carefully and provide alternative focus styles) */
|
|
300
|
+
outline: none;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Placeholder */
|
|
304
|
+
|
|
305
|
+
input::placeholder {
|
|
306
|
+
/* Chrome, Firefox, Opera, Safari */
|
|
307
|
+
color: var(--text3) !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
input::-webkit-input-placeholder {
|
|
311
|
+
/* Chrome/Safari/Opera */
|
|
312
|
+
color: var(--text3) !important;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
input::-moz-placeholder {
|
|
316
|
+
/* Firefox */
|
|
317
|
+
color: var(--text3) !important;
|
|
318
|
+
opacity: 1;
|
|
319
|
+
/* Firefox sometimes reduces opacity */
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
input:-ms-input-placeholder {
|
|
323
|
+
/* IE/Edge */
|
|
324
|
+
color: var(--text3) !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
textarea {
|
|
328
|
+
/* Remove default appearance for some browsers */
|
|
329
|
+
-webkit-appearance: none;
|
|
330
|
+
-moz-appearance: none;
|
|
331
|
+
appearance: none;
|
|
332
|
+
|
|
333
|
+
/* Remove default border and padding for all browsers */
|
|
334
|
+
padding: var(--padding-regular);
|
|
335
|
+
margin: 0;
|
|
336
|
+
|
|
337
|
+
/* Set font styles to inherit from parent */
|
|
338
|
+
font-family: inherit;
|
|
339
|
+
font-size: inherit;
|
|
340
|
+
color: var(--text2);
|
|
341
|
+
|
|
342
|
+
/* Remove the default background */
|
|
343
|
+
background: var(--background1);
|
|
344
|
+
|
|
345
|
+
/* border */
|
|
346
|
+
border: 1px solid;
|
|
347
|
+
border-color: var(--border3);
|
|
348
|
+
border-radius: var(--border-radius);
|
|
349
|
+
|
|
350
|
+
/* Remove the highlight when focused (outline:one is generally discouraged due to accessibility concerns,
|
|
351
|
+
so use it carefully and provide alternative focus styles) */
|
|
352
|
+
outline: none;
|
|
353
|
+
|
|
354
|
+
resize: none;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
input[type='checkbox'] {
|
|
358
|
+
/* The default appearance must be removed for custom styles */
|
|
359
|
+
-webkit-appearance: none;
|
|
360
|
+
-moz-appearance: none;
|
|
361
|
+
appearance: none;
|
|
362
|
+
|
|
363
|
+
/* Customize the checkbox */
|
|
364
|
+
width: 12px;
|
|
365
|
+
height: 12px;
|
|
366
|
+
background: var(--background5);
|
|
367
|
+
border-radius: var(--border-radius);
|
|
368
|
+
vertical-align: middle;
|
|
369
|
+
position: relative;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Checkmark style */
|
|
373
|
+
input[type='checkbox']:checked::before {
|
|
374
|
+
content: '';
|
|
375
|
+
display: block;
|
|
376
|
+
width: 9px;
|
|
377
|
+
height: 5px;
|
|
378
|
+
border-style: solid;
|
|
379
|
+
border-color: var(--text1);
|
|
380
|
+
border-width: 0 0 2px 2px;
|
|
381
|
+
position: absolute;
|
|
382
|
+
top: 50%;
|
|
383
|
+
left: 50%;
|
|
384
|
+
transform: translate(-50%, -60%) rotate(-45deg);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* Chrome, Safari, Edge, Opera */
|
|
388
|
+
input::-webkit-outer-spin-button,
|
|
389
|
+
input::-webkit-inner-spin-button {
|
|
390
|
+
-webkit-appearance: none;
|
|
391
|
+
margin: 0;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* Firefox */
|
|
395
|
+
/* input[type="number"] {
|
|
396
|
+
-moz-appearance: textfield;
|
|
397
|
+
} */
|
|
398
|
+
|
|
399
|
+
.button {
|
|
400
|
+
/* Reset */
|
|
401
|
+
all: unset;
|
|
402
|
+
box-sizing: border-box;
|
|
403
|
+
|
|
404
|
+
/* Layout */
|
|
405
|
+
display: inline-flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
justify-content: center;
|
|
408
|
+
position: relative;
|
|
409
|
+
gap: 2px;
|
|
410
|
+
|
|
411
|
+
/* Styling */
|
|
412
|
+
padding: 4px;
|
|
413
|
+
border-radius: var(--border-radius, 4px);
|
|
414
|
+
font-family: var(--font-stack, Inter, sans-serif);
|
|
415
|
+
font-weight: var(--font-weight-normal, 400);
|
|
416
|
+
line-height: 16px;
|
|
417
|
+
letter-spacing: -0.115px;
|
|
418
|
+
text-align: center;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
user-select: none;
|
|
421
|
+
transition: all 0.2s ease;
|
|
422
|
+
|
|
423
|
+
/* Primary button styling */
|
|
424
|
+
background: var(--actionPrimaryBackground);
|
|
425
|
+
color: var(--actionPrimaryText);
|
|
426
|
+
|
|
427
|
+
/* Shadow */
|
|
428
|
+
box-shadow:
|
|
429
|
+
0px 29px 23px -16px rgba(255, 255, 255, 0.04) inset,
|
|
430
|
+
0px 0.5px 0.5px 0px rgba(255, 255, 255, 0.2) inset,
|
|
431
|
+
0px 0.5px 1px 0px #000;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.button:hover:not(:disabled) {
|
|
435
|
+
background: var(--actionPrimaryBackgroundHover);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.button:disabled {
|
|
439
|
+
cursor: not-allowed;
|
|
440
|
+
opacity: 0.4;
|
|
441
|
+
pointer-events: none;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.flex {
|
|
445
|
+
display: flex;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.flex-vertical {
|
|
449
|
+
display: flex;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.tiny-label {
|
|
454
|
+
color: var(--text2);
|
|
455
|
+
font-size: var(--font-size-tiny);
|
|
456
|
+
padding-top: 4px;
|
|
457
|
+
padding-bottom: 4px;
|
|
458
|
+
text-align: center;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/*
|
|
462
|
+
The following styles are for the notification component
|
|
463
|
+
*/
|
|
464
|
+
.notification-wrapper {
|
|
465
|
+
display: flex;
|
|
466
|
+
padding: 8px;
|
|
467
|
+
flex-direction: column;
|
|
468
|
+
align-items: flex-start;
|
|
469
|
+
gap: 10px;
|
|
470
|
+
align-self: stretch;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* Pure CSS Scrollbar */
|
|
474
|
+
|
|
475
|
+
::-webkit-scrollbar {
|
|
476
|
+
width: var(--sb-size);
|
|
477
|
+
height: var(--sb-size);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
::-webkit-scrollbar-track {
|
|
481
|
+
background: var(--sb-track-color);
|
|
482
|
+
border-radius: 4px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
::-webkit-scrollbar-thumb {
|
|
486
|
+
background: var(--sb-thumb-color);
|
|
487
|
+
border-radius: 4px;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
491
|
+
body {
|
|
492
|
+
scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
|
|
493
|
+
}
|
|
494
|
+
}
|
package/dist/ui/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if the app mode is design
|
|
3
|
+
* @returns {Promise<boolean>}
|
|
4
|
+
*/
|
|
5
|
+
export const checkIfAppModeIsDesign = async () => {
|
|
6
|
+
const capabilities = await webflow.canForAppMode([
|
|
7
|
+
webflow.appModes.canDesign,
|
|
8
|
+
webflow.appModes.canEdit
|
|
9
|
+
]);
|
|
10
|
+
if (capabilities.canDesign) {
|
|
11
|
+
// Proceed with the action
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
// Provide feedback to the user
|
|
15
|
+
await webflow.notify({
|
|
16
|
+
type: 'Error',
|
|
17
|
+
message: 'This action cannot be performed right now. Ensure you are working in the Primary Locale, on the Main Branch, and in design mode.'
|
|
18
|
+
});
|
|
19
|
+
return false;
|
|
20
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type FsCopyPasteComponent = {
|
|
2
|
+
meta: {
|
|
3
|
+
droppedLinks: number;
|
|
4
|
+
dynBindRemovedCount: number;
|
|
5
|
+
dynListBindRemovedCount: number;
|
|
6
|
+
paginationRemovedCount: number;
|
|
7
|
+
universalBindingsRemovedCount: number;
|
|
8
|
+
unlinkedSymbolCount: number;
|
|
9
|
+
};
|
|
10
|
+
type: string;
|
|
11
|
+
payload: {
|
|
12
|
+
nodes: PastedNodes[];
|
|
13
|
+
styles: {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string | 'class';
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
type PastedNodes = {
|
|
20
|
+
children: string[];
|
|
21
|
+
classes: string[];
|
|
22
|
+
tag: string;
|
|
23
|
+
type: string;
|
|
24
|
+
data: {
|
|
25
|
+
xattr: Attr[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Process pasted component
|
|
30
|
+
* @param component
|
|
31
|
+
* @param strict - if true, check for exact match, else check for any child
|
|
32
|
+
*/
|
|
33
|
+
export declare const processPastedComponent: (pasteData: FsCopyPasteComponent, component: string) => {
|
|
34
|
+
data: FsCopyPasteComponent;
|
|
35
|
+
key: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Handle pasting of Webflow components
|
|
39
|
+
* @param e
|
|
40
|
+
* @param strict - if true, check for exact match, else check for any child
|
|
41
|
+
*/
|
|
42
|
+
export declare const handlePasteXSCP: (e: ClipboardEvent, component: string) => {
|
|
43
|
+
data: FsCopyPasteComponent;
|
|
44
|
+
key: string;
|
|
45
|
+
} | undefined;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { getLogger } from '../../logger';
|
|
2
|
+
const logger = getLogger('webflow-apps-ui-utils');
|
|
3
|
+
/**
|
|
4
|
+
* Process pasted component
|
|
5
|
+
* @param component
|
|
6
|
+
* @param strict - if true, check for exact match, else check for any child
|
|
7
|
+
*/
|
|
8
|
+
export const processPastedComponent = (pasteData, component) => {
|
|
9
|
+
const valid = pasteData?.payload?.nodes?.some((node) => node?.data?.xattr?.some((attr) => {
|
|
10
|
+
if (component === 'consent') {
|
|
11
|
+
// consent is kinda different
|
|
12
|
+
const bannerFound = attr.name.includes(`fs-consent-element`) && attr.value === 'banner';
|
|
13
|
+
const wrapperFound = attr.name.includes(`fs-consent-element`) && attr.value === 'wrapper';
|
|
14
|
+
return bannerFound || wrapperFound;
|
|
15
|
+
}
|
|
16
|
+
return attr.name.includes(`fs-${component}-instance`);
|
|
17
|
+
}));
|
|
18
|
+
if (valid) {
|
|
19
|
+
return { data: pasteData, key: component };
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Handle pasting of Webflow components
|
|
24
|
+
* @param e
|
|
25
|
+
* @param strict - if true, check for exact match, else check for any child
|
|
26
|
+
*/
|
|
27
|
+
export const handlePasteXSCP = (e, component) => {
|
|
28
|
+
if (!e.clipboardData?.types.includes('application/json'))
|
|
29
|
+
return;
|
|
30
|
+
const data = e.clipboardData?.getData('application/json');
|
|
31
|
+
const clipboard = JSON.parse(data);
|
|
32
|
+
if (clipboard?.type === '@webflow/XscpData') {
|
|
33
|
+
try {
|
|
34
|
+
const data = e.clipboardData.getData('application/json');
|
|
35
|
+
const clipboard = JSON.parse(data);
|
|
36
|
+
if (clipboard?.type === '@webflow/XscpData') {
|
|
37
|
+
return processPastedComponent(clipboard, component);
|
|
38
|
+
}
|
|
39
|
+
webflow.notify({
|
|
40
|
+
type: 'Error',
|
|
41
|
+
message: 'Invalid! You can only paste valid Finsweet Components.'
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
logger.error({}, 'handlePasteXSCP', error);
|
|
46
|
+
webflow.notify({
|
|
47
|
+
type: 'Error',
|
|
48
|
+
message: 'Invalid! You can only paste valid Finsweet Components.'
|
|
49
|
+
});
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './handlePaste';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './handlePaste';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CopyPasteComponent = {
|
|
2
|
+
meta: object;
|
|
3
|
+
type: string;
|
|
4
|
+
payload: {
|
|
5
|
+
nodes: PastedNodes[];
|
|
6
|
+
styles: PastedStyles[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
type PastedStyles = {
|
|
10
|
+
name: string;
|
|
11
|
+
comb: '&' | string;
|
|
12
|
+
};
|
|
13
|
+
type PastedNodes = {
|
|
14
|
+
data: {
|
|
15
|
+
xattr: Attr[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get all assets from the Webflow Canvas
|
|
3
|
+
* @returns
|
|
4
|
+
*/
|
|
5
|
+
export const getAllAssets = async () => {
|
|
6
|
+
const assets = await webflow.getAllAssets();
|
|
7
|
+
const assetPromises = assets.map(async (asset) => {
|
|
8
|
+
const url = await asset.getUrl();
|
|
9
|
+
const name = await asset.getName();
|
|
10
|
+
const mimeType = await asset.getMimeType();
|
|
11
|
+
const altText = (await asset.getAltText()) ?? '';
|
|
12
|
+
return {
|
|
13
|
+
name,
|
|
14
|
+
url,
|
|
15
|
+
mimeType,
|
|
16
|
+
altText,
|
|
17
|
+
asset
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
return await Promise.all(assetPromises);
|
|
21
|
+
};
|