@vev/silke 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +38 -74
- package/dist/index.js.LEGAL.txt +15 -34
- package/dist/styles.css +728 -548
- package/dist/{silke/src → types}/components/index.d.ts +3 -1
- package/dist/types/components/silke-action-box/index.d.ts +1 -0
- package/dist/types/components/silke-action-box/silke-action-box.d.ts +18 -0
- package/dist/types/components/silke-alert-banner/index.d.ts +1 -0
- package/dist/{silke/src/components/silke-notification/silke-notification.d.ts → types/components/silke-alert-banner/silke-alert-banner.d.ts} +4 -5
- package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-item.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-tags.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-autocomplete-field/silke-autocomplete-field.d.ts +1 -1
- package/dist/types/components/silke-autocomplete-field/silke-autocomplete-field.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-autocomplete-field/silke-autocomplete-popup.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-box/silke-box.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-breadcrumbs/silke-breadcrumb.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-breadcrumbs/silke-breadcrumbs.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-button/context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-button/silke-big-button.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-button/silke-button-set.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-button/silke-button.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-button/silke-confirmation-button.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-button/silke-dropdown-button.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-button/silke-file-select-button.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-card/silke-card-grid.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-checkbox/silke-checkbox.d.ts +1 -1
- package/dist/types/components/silke-code-editor/index.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-code-editor/silke-code-editor.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-code-snippet/silke-code-snippet.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-color-palettes/silke-color-palette.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-palettes/silke-color-palettes.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/color.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-info.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-picker-button.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-picker.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-color-space.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-hue-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-picker/silke-opacity-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-color-swatches/silke-swatches.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-conditions-input/silke-conditions-input-options.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-conditions-input/silke-conditions-input.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-conditions-input/silke-conditions-tag.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-conditions-input/utils.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-content-column/silke-content-column.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-context-menu/silke-context-menu-item.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-context-menu/silke-context-menu.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-css-number-field/index.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-css-number-field/silke-css-context.d.ts +6 -4
- package/dist/{silke/src → types}/components/silke-css-number-field/silke-css-number-field.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-divider/silke-divider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-drawer/silke-drawer.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-form/form-context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-form/silke-form.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/array-field-inline.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/array-field-modal.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/array-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/event-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/icon-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/image-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/layout-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/link-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/number-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/object-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/select-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/string-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/toggle-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/upload-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/fields/video-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-extended-fields-context.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-form-schema.d.ts +2 -4
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-context.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-form-schema/silke-schema-fields.d.ts +1 -2
- package/dist/types/components/silke-gradient-picker/silke-gradient-picker.d.ts +7 -0
- package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-position.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-slider.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon/silke-shape.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon/silke-stacked-icon.d.ts +1 -2
- package/dist/types/components/silke-icon-picker/emoji-tab.d.ts +2 -0
- package/dist/types/components/silke-icon-picker/icons-tab.d.ts +2 -0
- package/dist/{silke/src → types}/components/silke-icon-picker/silke-icon-picker.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-icon-picker/upload-tab.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-portal.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-image/silke-image-color-backdrop.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-image/silke-image.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-link/silke-link.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-list/silke-list-item.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-list/silke-list.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-list-card/silke-list-card.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-loader/silke-loader-overlay.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-loader/silke-loader.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-modal/silke-confirmation-modal.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-modal/silke-modal.d.ts +5 -4
- package/dist/{silke/src → types}/components/silke-object-field/silke-object-field.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-overflow-menu/silke-overflow-menu.d.ts +2 -2
- package/dist/{silke/src → types}/components/silke-popover/popover-context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-popover/silke-popover.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-progress-indicator/silke-progress-indicator.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-progress-indicator/silke-progress-step.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-radio-button/silke-radio-button-group.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-radio-button/silke-radio-button.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-search-field/silke-search-field.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-select-field/silke-select-field.d.ts +1 -2
- package/dist/types/components/silke-select-field/silke-select-field.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-skeleton/silke-skeleton.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-slider/silke-slider-point.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-slider/silke-slider.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-slider/slider-track.d.ts +1 -1
- package/dist/types/components/silke-sortable-list/index.d.ts +3 -0
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-item.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-list.d.ts +3 -2
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-nested-sortable-utils.d.ts +10 -1
- package/dist/types/components/silke-sortable-list/silke-nested-sortable-utils.spec.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-sortable-item-wrapper.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-sortable-list/silke-sortable-list.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-table/silke-table.d.ts +3 -1
- package/dist/{silke/src → types}/components/silke-table/table-row.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-table/table-types.d.ts +1 -0
- package/dist/types/components/silke-tabs/silke-tab.d.ts +13 -0
- package/dist/{silke/src → types}/components/silke-tabs/silke-tabs.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-tag/silke-tag.d.ts +8 -8
- package/dist/{silke/src → types}/components/silke-text/silke-text.d.ts +7 -6
- package/dist/{silke/src → types}/components/silke-text/silke-title.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-text-field/silke-text-field-outline.d.ts +3 -5
- package/dist/{silke/src → types}/components/silke-text-field/silke-text-field.d.ts +1 -0
- package/dist/{silke/src → types}/components/silke-text-field/text-field-context.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-theme-editor/silke-theme-editor.d.ts +1 -2
- package/dist/{silke/src → types}/components/silke-tile/silke-tile.d.ts +2 -2
- package/dist/types/components/silke-toast-notification/index.d.ts +1 -0
- package/dist/types/components/silke-toast-notification/silke-toast-notification.d.ts +21 -0
- package/dist/{silke/src → types}/components/silke-toggle/silke-toggle.d.ts +1 -1
- package/dist/types/components/silke-toolbar/silke-toolbar.d.ts +7 -0
- package/dist/{silke/src → types}/components/silke-tooltip/silke-definition-tooltip.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-tooltip/silke-icon-tooltip.d.ts +2 -1
- package/dist/{silke/src → types}/components/silke-tooltip/silke-interactive-tooltip.d.ts +1 -1
- package/dist/types/components/silke-tooltip/silke-shortcuts.d.ts +5 -0
- package/dist/{silke/src → types}/components/silke-tooltip/silke-tooltip.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-upload-field/silke-upload-field.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-variables-wrapper/silke-variables-wrapper-form.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-variables-wrapper/silke-variables-wrapper.d.ts +2 -11
- package/dist/{silke/src → types}/components/silke-virtual/silke-virtual-grid.d.ts +1 -1
- package/dist/{silke/src → types}/components/silke-virtual/silke-virtual-row.d.ts +1 -1
- package/dist/types/docs/app.d.ts +3 -0
- package/dist/{silke/src → types}/docs/components/code-block/code-block.d.ts +1 -2
- package/dist/{silke/src → types}/docs/components/state-table/state-table.d.ts +1 -2
- package/dist/{silke/src → types}/docs/docs-provider.d.ts +1 -1
- package/dist/types/docs/parser.d.ts +0 -0
- package/dist/{silke/src → types}/hooks/drag-and-drop/use-drag.d.ts +3 -2
- package/dist/{silke/src → types}/icons.d.ts +43 -25
- package/dist/types/jest/keys.d.ts +6 -0
- package/dist/{silke/src → types}/silke-theme-provider.d.ts +1 -1
- package/esbuild-sass-modules.mjs +1 -1
- package/jest.config.js +0 -2
- package/package.json +21 -19
- package/public/index.html +1 -1
- package/src/components/index.ts +3 -1
- package/src/components/silke-action-box/index.ts +1 -0
- package/src/components/silke-action-box/silke-action-box.mdx +152 -0
- package/src/components/silke-action-box/silke-action-box.scss +116 -0
- package/src/components/silke-action-box/silke-action-box.tsx +67 -0
- package/src/components/silke-alert-banner/index.ts +1 -0
- package/src/components/{silke-notification/silke-notification.mdx → silke-alert-banner/silke-alert-banner.mdx} +21 -42
- package/src/components/{silke-notification/silke-notification.scss → silke-alert-banner/silke-alert-banner.scss} +18 -53
- package/src/components/silke-alert-banner/silke-alert-banner.tsx +92 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.mdx +2 -2
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.spec.tsx +1 -1
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.tsx +11 -12
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +52 -51
- package/src/components/silke-button/silke-big-button.scss +0 -8
- package/src/components/silke-button/silke-big-button.tsx +0 -3
- package/src/components/silke-button/silke-button.mdx +2 -9
- package/src/components/silke-button/silke-button.scss +18 -25
- package/src/components/silke-button/silke-button.tsx +5 -5
- package/src/components/silke-button/silke-confirmation-button.tsx +4 -1
- package/src/components/silke-button/silke-file-select-button.tsx +2 -2
- package/src/components/silke-card/silke-card.scss +6 -0
- package/src/components/silke-card/silke-card.tsx +1 -0
- package/src/components/silke-checkbox/silke-checkbox.scss +2 -2
- package/src/components/silke-code-snippet/silke-code-snippet.tsx +5 -7
- package/src/components/silke-color-picker/color.ts +1 -1
- package/src/components/silke-color-picker/silke-color-info.tsx +12 -10
- package/src/components/silke-color-picker/silke-color-picker-button.tsx +1 -1
- package/src/components/silke-color-picker/silke-color-picker.tsx +2 -2
- package/src/components/silke-color-swatches/silke-color-swatch-button.tsx +1 -1
- package/src/components/silke-color-swatches/silke-swatches.tsx +19 -15
- package/src/components/silke-conditions-input/silke-conditions-input.tsx +4 -1
- package/src/components/silke-conditions-input/utils.ts +1 -6
- package/src/components/silke-context-menu/silke-context-menu.tsx +1 -1
- package/src/components/silke-css-number-field/index.ts +1 -0
- package/src/components/silke-css-number-field/silke-css-context.tsx +8 -3
- package/src/components/silke-css-number-field/silke-css-number-field.mdx +3 -3
- package/src/components/silke-css-number-field/silke-css-number-field.tsx +2 -2
- package/src/components/silke-form-schema/fields/array-field-inline.tsx +2 -2
- package/src/components/silke-form-schema/fields/array-field-modal.tsx +2 -2
- package/src/components/silke-form-schema/fields/event-field.tsx +3 -3
- package/src/components/silke-form-schema/fields/icon-field.tsx +0 -2
- package/src/components/silke-form-schema/fields/image-field.tsx +11 -7
- package/src/components/silke-form-schema/fields/link-field.tsx +1 -1
- package/src/components/silke-form-schema/fields/number-field.tsx +4 -4
- package/src/components/silke-form-schema/fields/select-field.tsx +6 -4
- package/src/components/silke-form-schema/fields/string-field.tsx +2 -2
- package/src/components/silke-form-schema/fields/styles.scss +35 -36
- package/src/components/silke-form-schema/fields/upload-field.tsx +1 -1
- package/src/components/silke-form-schema/fields/video-field.tsx +5 -4
- package/src/components/silke-form-schema/silke-form-schema.tsx +2 -3
- package/src/components/silke-form-schema/silke-schema-field.tsx +11 -5
- package/src/components/silke-gradient-picker/silke-gradient-picker.tsx +37 -7
- package/src/components/silke-gradient-picker/silke-gradient-position.tsx +1 -1
- package/src/components/silke-icon/silke-icon.scss +1 -1
- package/src/components/silke-icon-picker/emoji-tab.tsx +2 -2
- package/src/components/silke-iframe-portal/silke-iframe-portal.mdx +1 -1
- package/src/components/silke-modal/silke-confirmation-modal.tsx +3 -1
- package/src/components/silke-modal/silke-modal.mdx +41 -1
- package/src/components/silke-modal/silke-modal.scss +30 -20
- package/src/components/silke-modal/silke-modal.tsx +13 -9
- package/src/components/silke-navigation-link/silke-navigation-link.scss +1 -4
- package/src/components/silke-overflow-menu/silke-overflow-menu.mdx +33 -0
- package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +1 -1
- package/src/components/silke-search-field/silke-search-field.tsx +2 -2
- package/src/components/silke-select-field/silke-select-field.mdx +4 -4
- package/src/components/silke-select-field/silke-select-field.spec.tsx +1 -1
- package/src/components/silke-sortable-list/index.ts +1 -0
- package/src/components/silke-sortable-list/silke-nested-sortable-item.tsx +56 -35
- package/src/components/silke-sortable-list/silke-nested-sortable-list.scss +2 -6
- package/src/components/silke-sortable-list/silke-nested-sortable-list.tsx +4 -0
- package/src/components/silke-sortable-list/silke-nested-sortable-utils.ts +17 -4
- package/src/components/silke-sortable-list/silke-sortable-item-wrapper.tsx +1 -1
- package/src/components/silke-sortable-list/silke-sortable-list.mdx +18 -26
- package/src/components/silke-table/silke-table.mdx +23 -0
- package/src/components/silke-table/silke-table.tsx +14 -5
- package/src/components/silke-table/table-types.ts +1 -0
- package/src/components/silke-tabs/silke-tab.tsx +20 -2
- package/src/components/silke-tabs/silke-tabs.mdx +71 -0
- package/src/components/silke-tabs/silke-tabs.scss +37 -0
- package/src/components/silke-tabs/silke-tabs.tsx +1 -1
- package/src/components/silke-tag/silke-tag.mdx +28 -55
- package/src/components/silke-tag/silke-tag.scss +50 -41
- package/src/components/silke-tag/silke-tag.tsx +4 -13
- package/src/components/silke-text-field/silke-text-field-outline.tsx +10 -27
- package/src/components/silke-text-field/silke-text-field.mdx +2 -2
- package/src/components/silke-text-field/silke-text-field.scss +7 -17
- package/src/components/silke-text-field/silke-text-field.tsx +2 -0
- package/src/components/silke-theme-editor/silke-theme-editor.tsx +0 -1
- package/src/components/silke-tile/silke-tile.tsx +24 -29
- package/src/components/silke-toast-notification/index.ts +1 -0
- package/src/components/silke-toast-notification/silke-toast-notification.mdx +201 -0
- package/src/components/silke-toast-notification/silke-toast-notification.scss +110 -0
- package/src/components/{silke-notification/silke-notification.tsx → silke-toast-notification/silke-toast-notification.tsx} +27 -16
- package/src/components/silke-toolbar/silke-toolbar.tsx +5 -4
- package/src/components/silke-tooltip/silke-icon-tooltip.tsx +5 -3
- package/src/components/silke-tooltip/silke-shortcuts.tsx +8 -3
- package/src/components/silke-upload-field/silke-upload-field.tsx +20 -3
- package/src/components/silke-variables-wrapper/silke-variables-wrapper-form.tsx +2 -2
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.mdx +84 -12
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.scss +2 -2
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.tsx +42 -61
- package/src/docs/app.tsx +16 -13
- package/src/docs/components/code-block/code-block.scss +4 -1
- package/src/docs/components/code-block/code-block.tsx +10 -9
- package/src/hooks/drag-and-drop/use-drag.tsx +6 -1
- package/src/hooks/drag-and-drop/use-drop.tsx +2 -2
- package/src/icons.tsx +53 -27
- package/src/styles/core.scss +4 -0
- package/tsconfig.build.json +26 -4
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +25 -11
- package/webpack.docs.ts +1 -1
- package/dist/silke/src/components/silke-code-editor/index.d.ts +0 -3
- package/dist/silke/src/components/silke-gradient-picker/silke-gradient-picker.d.ts +0 -5
- package/dist/silke/src/components/silke-icon-picker/emoji-tab.d.ts +0 -3
- package/dist/silke/src/components/silke-icon-picker/icons-tab.d.ts +0 -3
- package/dist/silke/src/components/silke-notification/index.d.ts +0 -1
- package/dist/silke/src/components/silke-sortable-list/index.d.ts +0 -2
- package/dist/silke/src/components/silke-tabs/silke-tab.d.ts +0 -9
- package/dist/silke/src/components/silke-toolbar/silke-toolbar.d.ts +0 -7
- package/dist/silke/src/components/silke-tooltip/silke-shortcuts.d.ts +0 -6
- package/dist/silke/src/docs/app.d.ts +0 -4
- package/dist/utils/src/color/hex.d.ts +0 -2
- package/dist/utils/src/color/index.d.ts +0 -1
- package/dist/utils/src/constants.d.ts +0 -2
- package/dist/utils/src/css/computed-to-css.d.ts +0 -8
- package/dist/utils/src/css/computed.d.ts +0 -5
- package/dist/utils/src/css/index.d.ts +0 -4
- package/dist/utils/src/css/number-format.d.ts +0 -1
- package/dist/utils/src/css/utils.d.ts +0 -14
- package/dist/utils/src/index.d.ts +0 -8
- package/dist/utils/src/keyboard/hooks.d.ts +0 -7
- package/dist/utils/src/keyboard/index.d.ts +0 -4
- package/dist/utils/src/keyboard/keyboard.d.ts +0 -70
- package/dist/utils/src/keyboard/keys.d.ts +0 -4
- package/dist/utils/src/math/index.d.ts +0 -9
- package/dist/utils/src/mouse/index.d.ts +0 -3
- package/dist/utils/src/mouse/mouse-manager.d.ts +0 -51
- package/dist/utils/src/types/content.d.ts +0 -11
- package/dist/utils/src/types/context.d.ts +0 -77
- package/dist/utils/src/types/css.d.ts +0 -131
- package/dist/utils/src/types/editable-css.d.ts +0 -7
- package/dist/utils/src/types/emoji.d.ts +0 -28
- package/dist/utils/src/types/event.d.ts +0 -6
- package/dist/utils/src/types/icon.d.ts +0 -10
- package/dist/utils/src/types/index.d.ts +0 -18
- package/dist/utils/src/types/link.d.ts +0 -47
- package/dist/utils/src/types/manifest.d.ts +0 -56
- package/dist/utils/src/types/oauth.d.ts +0 -13
- package/dist/utils/src/types/project.d.ts +0 -23
- package/dist/utils/src/types/qwiker.d.ts +0 -46
- package/dist/utils/src/types/shape.d.ts +0 -20
- package/dist/utils/src/types/transition.d.ts +0 -15
- package/dist/utils/src/types/vev-plugin.d.ts +0 -90
- package/dist/utils/src/types/vev-props.d.ts +0 -181
- package/dist/utils/src/types/widget-manifest.d.ts +0 -70
- package/dist/utils/src/types/widget.d.ts +0 -36
- package/dist/utils/src/utils/generate-guid.d.ts +0 -1
- package/dist/utils/src/utils/index.d.ts +0 -9
- package/dist/utils/src/utils/internals/asciiToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/castSlice.d.ts +0 -11
- package/dist/utils/src/utils/internals/createCaseFirst.d.ts +0 -9
- package/dist/utils/src/utils/internals/getTag.d.ts +0 -9
- package/dist/utils/src/utils/internals/hasUnicode.d.ts +0 -9
- package/dist/utils/src/utils/internals/stringToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/unicodeToArray.d.ts +0 -9
- package/dist/utils/src/utils/internals/unicodeWords.d.ts +0 -9
- package/dist/utils/src/utils/internals/upperFirst.d.ts +0 -18
- package/dist/utils/src/utils/is-array.d.ts +0 -25
- package/dist/utils/src/utils/is-length.d.ts +0 -26
- package/dist/utils/src/utils/is-string.d.ts +0 -17
- package/dist/utils/src/utils/main-components.d.ts +0 -7
- package/dist/utils/src/utils/slice.d.ts +0 -22
- package/dist/utils/src/utils/start-case.d.ts +0 -22
- package/dist/utils/src/utils/string.d.ts +0 -5
- package/dist/utils/src/utils/variable.d.ts +0 -3
- package/dist/utils/src/utils/words.d.ts +0 -18
- package/src/components/silke-notification/index.ts +0 -1
- package/tsconfig.types.json +0 -19
- /package/dist/{silke/src → types}/components/silke-autocomplete-field/autocomplete-types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-autocomplete-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-box/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-breadcrumbs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-button/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-card/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-card/silke-card.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-checkbox/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-code-snippet/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-palettes/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-picker/hue.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/silke-color-swatch-button.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-color-swatches/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-conditions-input/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-conditions-input/types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-content-column/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-context-menu/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-context-menu/silke-contect-menu-hooks.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-css-number-field/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-divider/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-drawer/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form/form-types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/generate-image.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/generate-title.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/fields/utils/schema-util.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/iframe-handler.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/safe-eval/safe-eval.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-form-schema/schema-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-gradient-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-gradient-picker/silke-gradient-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon/silke-icon.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon-picker/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-icon-picker/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-context.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-css-link.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-iframe-portal/silke-iframe-script.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-image/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-link/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-list/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-list-card/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-loader/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-modal/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-navigation-link/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-navigation-link/silke-navigation-link.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-object-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-overflow-menu/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-popover/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-progress-indicator/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-radio-button/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-search-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-select-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-skeleton/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-slider/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-slider/silke-slider-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-table/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tabs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tag/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text/silke-text-types.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-text-field/silke-text-field-item.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-theme-editor/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tile/index.d.ts +0 -0
- /package/dist/{silke/src/components/silke-notification → types/components/silke-toast-notification}/confetti.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-toggle/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-toolbar/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tooltip/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-tooltip/utils.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-upload-field/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-variables-wrapper/index.d.ts +0 -0
- /package/dist/{silke/src → types}/components/silke-virtual/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/components/code-block/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/components/state-table/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/actions.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/constants.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/app/store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/action-decorator.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/action-utils.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/controller.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/dispatcher.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/data/flux/use-store.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/index.d.ts +0 -0
- /package/dist/{silke/src → types}/docs/ipsum-generator.d.ts +0 -0
- /package/dist/{silke/src → types}/helpers/copy-to-clipboard.d.ts +0 -0
- /package/dist/{silke/src → types}/helpers/key-code.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/drag-and-drop/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/drag-and-drop/use-drop.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/form/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/form/use-form-field.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/image-colors/use-image-colors.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/index.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-callback-ref.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-dragging.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-drop-zone.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-html-element.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-interval.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-mouse.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-parent-scroll.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-scroll.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-size.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-uniq-id.d.ts +0 -0
- /package/dist/{silke/src → types}/hooks/use-window-resize.d.ts +0 -0
- /package/dist/{silke/src → types}/index.d.ts +0 -0
- /package/dist/{silke/src → types}/main.d.ts +0 -0
- /package/src/components/{silke-notification → silke-toast-notification}/confetti.tsx +0 -0
- /package/{jest → src/jest}/keys.ts +0 -0
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ITransition } from './transition';
|
|
2
|
-
import { WidgetModel } from './widget';
|
|
3
|
-
export declare enum LinkMode {
|
|
4
|
-
PAGE = 0,
|
|
5
|
-
WIDGET = 1,
|
|
6
|
-
EXTERNAL = 2,
|
|
7
|
-
EMAIL = 3,
|
|
8
|
-
PHONE = 4,
|
|
9
|
-
FILE = 5
|
|
10
|
-
}
|
|
11
|
-
export type LinkPageValue = {
|
|
12
|
-
mode: LinkMode.PAGE;
|
|
13
|
-
page?: string;
|
|
14
|
-
target?: boolean;
|
|
15
|
-
} & ITransition;
|
|
16
|
-
export type LinkElementValue = {
|
|
17
|
-
mode: LinkMode.WIDGET;
|
|
18
|
-
widget?: WidgetModel;
|
|
19
|
-
};
|
|
20
|
-
export type LinkExternalValue = {
|
|
21
|
-
mode: LinkMode.EXTERNAL;
|
|
22
|
-
href?: string;
|
|
23
|
-
nofollow?: boolean;
|
|
24
|
-
sponsored?: boolean;
|
|
25
|
-
target?: boolean;
|
|
26
|
-
};
|
|
27
|
-
export type LinkEmailValue = {
|
|
28
|
-
mode: LinkMode.EMAIL;
|
|
29
|
-
email?: string;
|
|
30
|
-
subject?: string;
|
|
31
|
-
};
|
|
32
|
-
export type LinkPhoneValue = {
|
|
33
|
-
mode: LinkMode.PHONE;
|
|
34
|
-
phone?: string;
|
|
35
|
-
};
|
|
36
|
-
export type LinkFileValue = {
|
|
37
|
-
mode: LinkMode.FILE;
|
|
38
|
-
download?: string;
|
|
39
|
-
title?: string;
|
|
40
|
-
file?: {
|
|
41
|
-
name: string;
|
|
42
|
-
size: number;
|
|
43
|
-
type: string;
|
|
44
|
-
url: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export type LinkFieldValue = LinkPageValue | LinkElementValue | LinkExternalValue | LinkEmailValue | LinkPhoneValue | LinkFileValue;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { FSWidgetPkgManifest } from './widget-manifest';
|
|
3
|
-
import { EditableCSS } from './editable-css';
|
|
4
|
-
import { VevProps } from './vev-props';
|
|
5
|
-
import { SchemaContextModel } from './context';
|
|
6
|
-
import { VevEvent } from './event';
|
|
7
|
-
export type VevManifest = Partial<Omit<FSWidgetPkgManifest, 'type' | 'size' | 'icon'>> & {
|
|
8
|
-
name: string;
|
|
9
|
-
/** Override with specific widget key */
|
|
10
|
-
overrideKey?: string;
|
|
11
|
-
type?: 'standard' | 'section' | 'both' | 'action';
|
|
12
|
-
children?: {
|
|
13
|
-
name: string;
|
|
14
|
-
icon?: string;
|
|
15
|
-
};
|
|
16
|
-
props?: VevProps[];
|
|
17
|
-
editableCSS?: EditableCSS[];
|
|
18
|
-
interactions?: VevEvent[];
|
|
19
|
-
events?: VevEvent[];
|
|
20
|
-
size?: Size;
|
|
21
|
-
panelType?: 'inline';
|
|
22
|
-
description?: string;
|
|
23
|
-
widgetFuncName?: string;
|
|
24
|
-
shareWithAccount?: boolean;
|
|
25
|
-
icon?: string;
|
|
26
|
-
emptyState?: ManifestEmptyState;
|
|
27
|
-
component?: (props: {
|
|
28
|
-
context: SchemaContextModel;
|
|
29
|
-
value: any;
|
|
30
|
-
onChange: (value: any) => void;
|
|
31
|
-
}) => ReactNode;
|
|
32
|
-
};
|
|
33
|
-
export type ManifestEmptyState = {
|
|
34
|
-
linkText?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
action?: 'OPEN_CONTENT_CHILDREN' | 'OPEN_PROPERTIES' | 'OPEN_INTERACTIONS';
|
|
37
|
-
checkProperty: string;
|
|
38
|
-
};
|
|
39
|
-
export type VevManifests = {
|
|
40
|
-
key: string;
|
|
41
|
-
public?: boolean | number;
|
|
42
|
-
admin?: boolean;
|
|
43
|
-
shareWithAccount: boolean;
|
|
44
|
-
children: FSWidgetPkgManifest[];
|
|
45
|
-
};
|
|
46
|
-
type SizeValue = number | 'auto';
|
|
47
|
-
export type WidthHeight = SizeValue | {
|
|
48
|
-
value: SizeValue;
|
|
49
|
-
autoOnly?: boolean;
|
|
50
|
-
valueOnly?: boolean;
|
|
51
|
-
};
|
|
52
|
-
type Size = {
|
|
53
|
-
width: WidthHeight;
|
|
54
|
-
height: WidthHeight;
|
|
55
|
-
};
|
|
56
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface OAuthConfig {
|
|
2
|
-
authorizeConfig: {
|
|
3
|
-
url: string;
|
|
4
|
-
queryParams: Record<string, string>;
|
|
5
|
-
headers?: Record<string, string>;
|
|
6
|
-
};
|
|
7
|
-
exchangeConfig: {
|
|
8
|
-
url: string;
|
|
9
|
-
queryParams?: Record<string, string>;
|
|
10
|
-
body?: Record<string, string>;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LinkFieldValue } from './link';
|
|
2
|
-
export type IProjectMenu = {
|
|
3
|
-
/**
|
|
4
|
-
* Items in this menu
|
|
5
|
-
*/
|
|
6
|
-
children: IMenuItem[];
|
|
7
|
-
/**
|
|
8
|
-
* Name of the menu
|
|
9
|
-
*/
|
|
10
|
-
title: string;
|
|
11
|
-
key: string;
|
|
12
|
-
};
|
|
13
|
-
export type IMenuItem = {
|
|
14
|
-
key: string;
|
|
15
|
-
title: string;
|
|
16
|
-
settings?: {
|
|
17
|
-
hidden: boolean;
|
|
18
|
-
};
|
|
19
|
-
link?: {
|
|
20
|
-
mode: number;
|
|
21
|
-
} & LinkFieldValue;
|
|
22
|
-
children?: IMenuItem[];
|
|
23
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export type ResourceFileManifest = {
|
|
2
|
-
project: {
|
|
3
|
-
title: string;
|
|
4
|
-
key: string;
|
|
5
|
-
account: string;
|
|
6
|
-
};
|
|
7
|
-
created: string;
|
|
8
|
-
/**
|
|
9
|
-
* Files in the manifest
|
|
10
|
-
*/
|
|
11
|
-
files: ResourceFile[];
|
|
12
|
-
};
|
|
13
|
-
export type ResourceFile = {
|
|
14
|
-
/**
|
|
15
|
-
* Relative path of the resource
|
|
16
|
-
*/
|
|
17
|
-
path: string;
|
|
18
|
-
/**
|
|
19
|
-
* Checksum of the content
|
|
20
|
-
*/
|
|
21
|
-
checksum: string;
|
|
22
|
-
/**
|
|
23
|
-
* URL to the resource can be found at
|
|
24
|
-
*/
|
|
25
|
-
url: string;
|
|
26
|
-
/**
|
|
27
|
-
* Human readable name for debugging
|
|
28
|
-
*/
|
|
29
|
-
displayName?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Mime type of the content
|
|
32
|
-
*/
|
|
33
|
-
contentType: string;
|
|
34
|
-
/**
|
|
35
|
-
* Byte length of content
|
|
36
|
-
*/
|
|
37
|
-
contentLength: number;
|
|
38
|
-
/** *
|
|
39
|
-
* Immutable is true when the file is not expected to change.
|
|
40
|
-
* It is recommended to set cache-control headers to a long time for immutable files.
|
|
41
|
-
* If not set we recommend to set cache-control to 1 hour, but this depends on your setup
|
|
42
|
-
*/
|
|
43
|
-
immutable?: boolean;
|
|
44
|
-
gzipContentLength: number;
|
|
45
|
-
metadata?: Record<string, any>;
|
|
46
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type IPoint = {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
h: [IBezierPoint, IBezierPoint];
|
|
5
|
-
};
|
|
6
|
-
export type IBezierPoint = [number, number];
|
|
7
|
-
export type IShape = {
|
|
8
|
-
key: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
type: number;
|
|
11
|
-
original: string;
|
|
12
|
-
updated: number;
|
|
13
|
-
path: IShapePath;
|
|
14
|
-
tags?: string[];
|
|
15
|
-
};
|
|
16
|
-
export type IShapePath = [number, number, string];
|
|
17
|
-
export type SvgDimensions = {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ITweenAttr = [number, string, number, number];
|
|
2
|
-
export type ITween = {
|
|
3
|
-
opacity?: ITweenAttr;
|
|
4
|
-
scale?: ITweenAttr;
|
|
5
|
-
time?: number;
|
|
6
|
-
x?: ITweenAttr;
|
|
7
|
-
y?: ITweenAttr;
|
|
8
|
-
};
|
|
9
|
-
export type ITransition = {
|
|
10
|
-
timer?: number;
|
|
11
|
-
inFront?: boolean;
|
|
12
|
-
tweenIn?: ITween;
|
|
13
|
-
tweenOut?: ITween;
|
|
14
|
-
preset?: string;
|
|
15
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { VevProps } from './vev-props';
|
|
2
|
-
import { OAuthConfig } from './oauth';
|
|
3
|
-
type KeyPart = string | number | bigint | boolean | symbol;
|
|
4
|
-
export type EditorPluginKvKey = KeyPart[];
|
|
5
|
-
interface EditorPluginKvCommitResult {
|
|
6
|
-
ok: true;
|
|
7
|
-
versionstamp: string;
|
|
8
|
-
}
|
|
9
|
-
interface EditorPluginKvEntry<T> {
|
|
10
|
-
key: EditorPluginKvKey;
|
|
11
|
-
value: T;
|
|
12
|
-
versionstamp: string;
|
|
13
|
-
}
|
|
14
|
-
export interface EditorPluginKv {
|
|
15
|
-
set: (key: EditorPluginKvKey, value: unknown) => Promise<EditorPluginKvCommitResult>;
|
|
16
|
-
get: <T>(key: EditorPluginKvKey) => Promise<EditorPluginKvEntry<T>>;
|
|
17
|
-
delete: (key: EditorPluginKvKey) => Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export interface EditorPluginSettings {
|
|
20
|
-
form: VevProps[];
|
|
21
|
-
}
|
|
22
|
-
type ImageSizes = Record<number, string>;
|
|
23
|
-
type MetaData = Record<string, string>;
|
|
24
|
-
export interface BaseProjectAsset {
|
|
25
|
-
key: string;
|
|
26
|
-
mimeType: string;
|
|
27
|
-
updated: number;
|
|
28
|
-
url: string;
|
|
29
|
-
filename?: string;
|
|
30
|
-
metaData?: MetaData;
|
|
31
|
-
selfHosted?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface ProjectImageAsset extends BaseProjectAsset {
|
|
34
|
-
dimension?: {
|
|
35
|
-
width: number;
|
|
36
|
-
height: number;
|
|
37
|
-
};
|
|
38
|
-
thumb?: string;
|
|
39
|
-
imageSizes?: ImageSizes;
|
|
40
|
-
}
|
|
41
|
-
export interface ProjectVideoAsset extends BaseProjectAsset {
|
|
42
|
-
videoThumbnail?: string;
|
|
43
|
-
videoSample?: string;
|
|
44
|
-
dimension?: {
|
|
45
|
-
width: number;
|
|
46
|
-
height: number;
|
|
47
|
-
};
|
|
48
|
-
duration?: number;
|
|
49
|
-
state?: 'uploading' | 'encoding' | 'completed' | 'error' | 'preUpload';
|
|
50
|
-
additionalSources: Omit<ProjectVideoAsset, 'additionalSources'>[];
|
|
51
|
-
original?: {
|
|
52
|
-
path: string;
|
|
53
|
-
bucket: string;
|
|
54
|
-
url: string;
|
|
55
|
-
encodingProgress?: number;
|
|
56
|
-
width?: number;
|
|
57
|
-
height?: number;
|
|
58
|
-
duration?: number;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface ProjectAudioAsset extends BaseProjectAsset {
|
|
62
|
-
length: number;
|
|
63
|
-
}
|
|
64
|
-
export type ProjectAsset = BaseProjectAsset | ProjectImageAsset | ProjectVideoAsset;
|
|
65
|
-
export declare enum EditorPluginType {
|
|
66
|
-
ASSET_SOURCE = "asset-source"
|
|
67
|
-
}
|
|
68
|
-
export interface EditorPlugin<T> {
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
type: EditorPluginType;
|
|
72
|
-
form: VevProps[];
|
|
73
|
-
handler: (request: Request, env: Record<string, string>, kv: EditorPluginKv) => Promise<T | EditorPluginSettings>;
|
|
74
|
-
icon?: string;
|
|
75
|
-
oauthConfig?: OAuthConfig;
|
|
76
|
-
}
|
|
77
|
-
export type EditorPluginAssetSourceFilterField = {
|
|
78
|
-
label: string;
|
|
79
|
-
value: string;
|
|
80
|
-
fields: {
|
|
81
|
-
label: string;
|
|
82
|
-
value: string;
|
|
83
|
-
}[];
|
|
84
|
-
};
|
|
85
|
-
export type EditorPluginAssetSourceFilterFields = EditorPluginAssetSourceFilterField[];
|
|
86
|
-
export interface EditorPluginAssetSource extends EditorPlugin<ProjectAsset[] | EditorPluginAssetSourceFilterFields> {
|
|
87
|
-
type: EditorPluginType.ASSET_SOURCE;
|
|
88
|
-
}
|
|
89
|
-
export type VevPluginType = EditorPluginAssetSource;
|
|
90
|
-
export {};
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SchemaContextModel } from './context';
|
|
3
|
-
export type EvalCallback = {
|
|
4
|
-
type: '__eval__';
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
7
|
-
export type ImageType = {
|
|
8
|
-
url: string;
|
|
9
|
-
key: string;
|
|
10
|
-
};
|
|
11
|
-
export type VideoType = {
|
|
12
|
-
url: string;
|
|
13
|
-
key: string;
|
|
14
|
-
};
|
|
15
|
-
export type ShapeType = {
|
|
16
|
-
key: string;
|
|
17
|
-
name: string;
|
|
18
|
-
path: [number, number, string];
|
|
19
|
-
};
|
|
20
|
-
export type UploadType = {
|
|
21
|
-
size?: number;
|
|
22
|
-
name?: string;
|
|
23
|
-
url: string;
|
|
24
|
-
type?: string;
|
|
25
|
-
} | string;
|
|
26
|
-
type FieldComponent<T extends NativeTypes> = (props: SchemaFieldProps<SchemaFieldTypes[T]>) => ReactNode | null;
|
|
27
|
-
export type BaseField<Type extends NativeTypes, TsType> = {
|
|
28
|
-
type: Type;
|
|
29
|
-
valueType?: TsType;
|
|
30
|
-
name: string;
|
|
31
|
-
title?: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
storage?: 'project' | 'workspace' | 'account';
|
|
34
|
-
clearProps?: string[];
|
|
35
|
-
initialValue?: TsType | EvalCallback | ((context: Omit<SchemaContextModel, 'actions'>) => TsType | Promise<TsType>);
|
|
36
|
-
onChange?: (value: TsType, context: SchemaContextModel) => void | TsType | Promise<void | TsType> | EvalCallback;
|
|
37
|
-
validate?: (value: TsType, context: SchemaContextModel) => boolean | Promise<boolean>;
|
|
38
|
-
hidden?: boolean | ((context: SchemaContextModel) => boolean | Promise<boolean>);
|
|
39
|
-
component?: FieldComponent<Type>;
|
|
40
|
-
preview?: PreviewType | ((value: {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}) => PreviewType);
|
|
43
|
-
};
|
|
44
|
-
type PreviewType = {
|
|
45
|
-
title?: string;
|
|
46
|
-
image?: string | ReactNode;
|
|
47
|
-
};
|
|
48
|
-
export type SelectItem<T = any> = {
|
|
49
|
-
label: string;
|
|
50
|
-
value: T;
|
|
51
|
-
};
|
|
52
|
-
export type Suggestion = {
|
|
53
|
-
icon: React.ReactNode;
|
|
54
|
-
label: string;
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
export type StringField = BaseField<'string', string> & {
|
|
58
|
-
options?: {
|
|
59
|
-
suggestions?: Suggestion[];
|
|
60
|
-
type: 'text' | 'date' | 'email' | 'url' | 'password';
|
|
61
|
-
multiline?: boolean | number;
|
|
62
|
-
minLength?: number;
|
|
63
|
-
maxLength?: number;
|
|
64
|
-
placeholder?: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
export type NumberField = BaseField<'number', number> & {
|
|
68
|
-
options?: {
|
|
69
|
-
suggestions?: Suggestion[];
|
|
70
|
-
min?: number;
|
|
71
|
-
max?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The number visible is scaled by factor,
|
|
74
|
-
* @example if you want percent 0-1 set scale = 100
|
|
75
|
-
* */
|
|
76
|
-
scale?: number;
|
|
77
|
-
format?: string;
|
|
78
|
-
display?: 'input' | 'slider';
|
|
79
|
-
placeholder?: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
export type BooleanField = BaseField<'boolean', boolean>;
|
|
83
|
-
export type ImageField = BaseField<'image', ImageType>;
|
|
84
|
-
export type VideoField = BaseField<'video', VideoType>;
|
|
85
|
-
export type IconField = BaseField<'icon', ShapeType>;
|
|
86
|
-
export type SelectFieldItem = {
|
|
87
|
-
label: string;
|
|
88
|
-
value: any;
|
|
89
|
-
};
|
|
90
|
-
export type SelectField = BaseField<'select', any | any[]> & {
|
|
91
|
-
options: {
|
|
92
|
-
items: SelectFieldItem[] | ((context: SchemaContextModel) => SelectFieldItem[] | Promise<SelectFieldItem[]>);
|
|
93
|
-
multiselect?: boolean;
|
|
94
|
-
display?: 'checkbox' | 'radio' | 'dropdown' | 'autocomplete';
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
export type ObjectField = BaseField<'object', {
|
|
98
|
-
[key: string]: any;
|
|
99
|
-
}> & {
|
|
100
|
-
fields: VevProps[];
|
|
101
|
-
};
|
|
102
|
-
export type ArrayField = BaseField<'array', any[]> & ({
|
|
103
|
-
of: VevProps[] | 'string' | 'number';
|
|
104
|
-
} | {
|
|
105
|
-
of: 'object';
|
|
106
|
-
fields: VevProps[];
|
|
107
|
-
});
|
|
108
|
-
export type LinkField = BaseField<'link', {
|
|
109
|
-
/**
|
|
110
|
-
* Preset for what linkType the field should be.
|
|
111
|
-
* 0: Page, 1: Element, 2: External link, 3: Email, 4: Phone.
|
|
112
|
-
*/
|
|
113
|
-
mode: 0 | 2 | 3 | 4;
|
|
114
|
-
href?: string;
|
|
115
|
-
page?: string;
|
|
116
|
-
target?: boolean;
|
|
117
|
-
phone?: string;
|
|
118
|
-
email?: string;
|
|
119
|
-
}>;
|
|
120
|
-
export type LayoutField = Omit<BaseField<'layout', {
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
}>, 'name'> & {
|
|
123
|
-
fields: VevProps[];
|
|
124
|
-
name?: string;
|
|
125
|
-
options?: {
|
|
126
|
-
display: 'row' | 'column';
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
export type EventField = BaseField<'event', {
|
|
130
|
-
key: string;
|
|
131
|
-
args?: any;
|
|
132
|
-
}[]>;
|
|
133
|
-
export type UploadField = BaseField<'upload', UploadType> & {
|
|
134
|
-
accept?: string;
|
|
135
|
-
maxSize?: number;
|
|
136
|
-
};
|
|
137
|
-
export type WidgetSelectField = BaseField<'widgetSelect', string>;
|
|
138
|
-
export type MenuField = BaseField<'menu', string>;
|
|
139
|
-
export type VariableField = BaseField<'variable', string> & {
|
|
140
|
-
variableType?: 'color' | 'number' | 'font' | 'text';
|
|
141
|
-
};
|
|
142
|
-
export type DividerField = Omit<BaseField<'divider', string>, 'name'> & {
|
|
143
|
-
name?: string;
|
|
144
|
-
};
|
|
145
|
-
export type SchemaFieldTypes = {
|
|
146
|
-
string: StringField;
|
|
147
|
-
array: ArrayField;
|
|
148
|
-
object: ObjectField;
|
|
149
|
-
number: NumberField;
|
|
150
|
-
image: ImageField;
|
|
151
|
-
video: VideoField;
|
|
152
|
-
icon: IconField;
|
|
153
|
-
boolean: BooleanField;
|
|
154
|
-
select: SelectField;
|
|
155
|
-
link: LinkField;
|
|
156
|
-
layout: LayoutField;
|
|
157
|
-
event: EventField;
|
|
158
|
-
upload: UploadField;
|
|
159
|
-
widgetSelect: WidgetSelectField;
|
|
160
|
-
menu: MenuField;
|
|
161
|
-
variable: VariableField;
|
|
162
|
-
divider: DividerField;
|
|
163
|
-
};
|
|
164
|
-
export type NativeTypes = keyof SchemaFieldTypes;
|
|
165
|
-
export type VevProps = SchemaFieldTypes[NativeTypes];
|
|
166
|
-
export type Schema = VevProps[];
|
|
167
|
-
export type SchemaFieldProps<T extends VevProps> = {
|
|
168
|
-
label: string;
|
|
169
|
-
value: T['valueType'];
|
|
170
|
-
schema: T;
|
|
171
|
-
help?: string;
|
|
172
|
-
disabled?: boolean;
|
|
173
|
-
readonly?: boolean;
|
|
174
|
-
onChange: (value: NonNullable<T['valueType']> | null) => void;
|
|
175
|
-
context: SchemaContextModel;
|
|
176
|
-
};
|
|
177
|
-
export type SchemaFieldComponents = {
|
|
178
|
-
[P in keyof Partial<SchemaFieldTypes>]: FieldComponent<P>;
|
|
179
|
-
};
|
|
180
|
-
export declare function isPropsObject(vevProp: VevProps): vevProp is ObjectField;
|
|
181
|
-
export {};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { IEmojiIcon, IWidgetIcon, IWidgetMetaData, IWidgetRule, IWidgetType, WidgetDimensions, VevProps, ManifestEmptyState } from '.';
|
|
2
|
-
import { VevEvent } from './event';
|
|
3
|
-
export interface FSWidgetCore {
|
|
4
|
-
updated: number;
|
|
5
|
-
created: number;
|
|
6
|
-
deleted?: number;
|
|
7
|
-
deletedBy?: string;
|
|
8
|
-
key: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface FSWidgetPkgManifest extends FSWidgetPkgFile {
|
|
12
|
-
admin?: boolean;
|
|
13
|
-
categories?: string[];
|
|
14
|
-
/** File key of widgets form */
|
|
15
|
-
form?: string;
|
|
16
|
-
pkg?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Shared with account key
|
|
19
|
-
*/
|
|
20
|
-
account?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Shared with team key
|
|
23
|
-
*/
|
|
24
|
-
team?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Shared with workspace key
|
|
27
|
-
*/
|
|
28
|
-
workspace?: string;
|
|
29
|
-
widgetId: string;
|
|
30
|
-
widgetName?: string;
|
|
31
|
-
project?: string;
|
|
32
|
-
/** File key of widgets react component */
|
|
33
|
-
ts?: string;
|
|
34
|
-
type: IWidgetType[keyof IWidgetType];
|
|
35
|
-
public?: boolean | number;
|
|
36
|
-
inspector?: string;
|
|
37
|
-
transform?: Record<string, any>;
|
|
38
|
-
/** File key of widgets styles */
|
|
39
|
-
sass?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Tells if this widget is allowed to be edited in content editor
|
|
42
|
-
*/
|
|
43
|
-
inContent?: boolean;
|
|
44
|
-
static?: boolean;
|
|
45
|
-
settings?: any;
|
|
46
|
-
icons?: IWidgetIcon[];
|
|
47
|
-
icon?: IEmojiIcon;
|
|
48
|
-
/** Sizing for widgets. [width, height] */
|
|
49
|
-
size: WidgetDimensions;
|
|
50
|
-
metaData?: IWidgetMetaData[];
|
|
51
|
-
ruleList?: IWidgetRule[];
|
|
52
|
-
description?: string;
|
|
53
|
-
widgetFuncName?: string;
|
|
54
|
-
panelType?: 'inline';
|
|
55
|
-
shareWithAccount?: boolean;
|
|
56
|
-
formSchema?: VevProps[];
|
|
57
|
-
events?: VevEvent[];
|
|
58
|
-
interactions?: VevEvent[];
|
|
59
|
-
contentChildren?: ContentChildren;
|
|
60
|
-
emptyState?: ManifestEmptyState;
|
|
61
|
-
}
|
|
62
|
-
export type ContentChildren = {
|
|
63
|
-
name: string;
|
|
64
|
-
icon?: IEmojiIcon;
|
|
65
|
-
};
|
|
66
|
-
export interface FSWidgetPkgFile extends FSWidgetCore {
|
|
67
|
-
content: string;
|
|
68
|
-
dir?: boolean;
|
|
69
|
-
parent?: string;
|
|
70
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IEmojiIcon, IDesktopProps } from '.';
|
|
2
|
-
export type IWidgetType = {
|
|
3
|
-
standard: 0;
|
|
4
|
-
section: 1;
|
|
5
|
-
action: 2;
|
|
6
|
-
both: 3;
|
|
7
|
-
};
|
|
8
|
-
export declare enum WidgetSize {
|
|
9
|
-
auto = 0,
|
|
10
|
-
value = 1,
|
|
11
|
-
preferAuto = 2,
|
|
12
|
-
preferValue = 3
|
|
13
|
-
}
|
|
14
|
-
export type WidgetDimensions = [width: WidgetSize, height: WidgetSize];
|
|
15
|
-
export type IWidgetRule = {
|
|
16
|
-
key: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
icon?: IEmojiIcon;
|
|
19
|
-
props: IDesktopProps;
|
|
20
|
-
inherits?: IWidgetRule;
|
|
21
|
-
isMainBg?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export type IWidgetMetaData = {
|
|
24
|
-
selector: string;
|
|
25
|
-
name?: string;
|
|
26
|
-
icon?: IEmojiIcon;
|
|
27
|
-
inherits?: IWidgetMetaData;
|
|
28
|
-
isMainBg?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export type WidgetModel = {
|
|
31
|
-
image?: IEmojiIcon | string;
|
|
32
|
-
key: string;
|
|
33
|
-
name: string;
|
|
34
|
-
page: string;
|
|
35
|
-
pageName?: string;
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateGuid(): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './generate-guid';
|
|
2
|
-
export * from './string';
|
|
3
|
-
export * from './main-components';
|
|
4
|
-
export { default as isString } from './is-string';
|
|
5
|
-
export { default as isArray } from './is-array';
|
|
6
|
-
export { default as isLength } from './is-length';
|
|
7
|
-
export { default as slice } from './slice';
|
|
8
|
-
export { default as startCase } from './start-case';
|
|
9
|
-
export * from './variable';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Casts `array` to a slice if it's needed.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @param {Array} array The array to inspect.
|
|
6
|
-
* @param {number} start The start position.
|
|
7
|
-
* @param {number} [end=array.length] The end position.
|
|
8
|
-
* @returns {Array} Returns the cast slice.
|
|
9
|
-
*/
|
|
10
|
-
declare function castSlice(array: any[], start: number, end?: number): any[];
|
|
11
|
-
export default castSlice;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a function like `lowerFirst`.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @param {string} methodName The name of the `String` case method to use.
|
|
6
|
-
* @returns {Function} Returns the new case function.
|
|
7
|
-
*/
|
|
8
|
-
declare function createCaseFirst(methodName: any): (string: string) => string;
|
|
9
|
-
export default createCaseFirst;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if `string` contains Unicode symbols.
|
|
3
|
-
*
|
|
4
|
-
* @private
|
|
5
|
-
* @param {string} string The string to inspect.
|
|
6
|
-
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
7
|
-
*/
|
|
8
|
-
declare function hasUnicode(string: string): boolean;
|
|
9
|
-
export default hasUnicode;
|