superdesk-ui-framework 7.0.0-dev2 → 7.0.0-dev4
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/.github/scripts/use-ui-framework-build.sh +71 -0
- package/.github/workflows/consumer-e2e.yml +73 -0
- package/.github/workflows/publish-to-npm.yml +55 -9
- package/README.md +16 -0
- package/app/styles/form-elements/_input-preview.scss +5 -0
- package/app/styles/form-elements/_inputs.scss +19 -0
- package/app-typescript/components/Dropdown.tsx +1 -1
- package/app-typescript/components/TextArea.spec.tsx +186 -0
- package/app-typescript/components/TextArea.stories.tsx +118 -0
- package/app-typescript/components/TextArea.tsx +145 -0
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.js +1 -1
- package/dist/storybook/components-TextArea-stories.dd4730b4.iframe.bundle.js +2 -0
- package/dist/storybook/components-TextArea-stories.dd4730b4.iframe.bundle.js.LICENSE.txt +5 -0
- package/dist/storybook/iframe.html +2 -2
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/main.92b4b0af.iframe.bundle.js +1 -0
- package/dist/storybook/manifests/components.html +188 -2
- package/dist/storybook/manifests/components.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/runtime~main.e94a9ed9.iframe.bundle.js +1 -0
- package/dist/superdesk-ui.bundle.css +1 -1
- package/dist/superdesk-ui.bundle.js +1 -1
- package/package.json +1 -1
- package/react/components/TextArea.d.ts +18 -0
- package/react/components/TextArea.js +109 -0
- package/react/index.d.ts +1 -0
- package/react/index.js +5 -3
- package/storybook-static/components-TextArea-stories.dd4730b4.iframe.bundle.js +2 -0
- package/storybook-static/components-TextArea-stories.dd4730b4.iframe.bundle.js.LICENSE.txt +5 -0
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/main.92b4b0af.iframe.bundle.js +1 -0
- package/storybook-static/manifests/components.html +188 -2
- package/storybook-static/manifests/components.json +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.e94a9ed9.iframe.bundle.js +1 -0
- package/.claude/settings.local.json +0 -32
- package/ESM_MIGRATION_PLAN.md +0 -414
- package/debug-storybook.log +0 -20
- package/dist/storybook/main.18fb8930.iframe.bundle.js +0 -1
- package/dist/storybook/main.f0d64657.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.9da32ffd.iframe.bundle.js +0 -1
- package/react/components/Alert.d.ts.map +0 -1
- package/react/components/Alert.js.map +0 -1
- package/react/components/Autocomplete.d.ts.map +0 -1
- package/react/components/Autocomplete.js.map +0 -1
- package/react/components/Badge.d.ts.map +0 -1
- package/react/components/Badge.js.map +0 -1
- package/react/components/Button.d.ts.map +0 -1
- package/react/components/Button.js.map +0 -1
- package/react/components/ButtonGroup.d.ts.map +0 -1
- package/react/components/ButtonGroup.js.map +0 -1
- package/react/components/Card.d.ts.map +0 -1
- package/react/components/Card.js.map +0 -1
- package/react/components/Carousel.d.ts.map +0 -1
- package/react/components/Carousel.js.map +0 -1
- package/react/components/CheckButtonGroup.d.ts.map +0 -1
- package/react/components/CheckButtonGroup.js.map +0 -1
- package/react/components/CheckGroup.d.ts.map +0 -1
- package/react/components/CheckGroup.js.map +0 -1
- package/react/components/Checkbox.d.ts.map +0 -1
- package/react/components/Checkbox.js.map +0 -1
- package/react/components/CheckboxButton.d.ts.map +0 -1
- package/react/components/CheckboxButton.js.map +0 -1
- package/react/components/ContentDivider.d.ts.map +0 -1
- package/react/components/ContentDivider.js.map +0 -1
- package/react/components/CopyableTextBox.d.ts.map +0 -1
- package/react/components/CopyableTextBox.js.map +0 -1
- package/react/components/CreateButton.d.ts.map +0 -1
- package/react/components/CreateButton.js.map +0 -1
- package/react/components/DatePicker.d.ts.map +0 -1
- package/react/components/DatePicker.js.map +0 -1
- package/react/components/DateTimePicker.d.ts.map +0 -1
- package/react/components/DateTimePicker.js.map +0 -1
- package/react/components/Divider.d.ts.map +0 -1
- package/react/components/Divider.js.map +0 -1
- package/react/components/DonutChart.d.ts.map +0 -1
- package/react/components/DonutChart.js.map +0 -1
- package/react/components/DragHandle.d.ts.map +0 -1
- package/react/components/DragHandle.js.map +0 -1
- package/react/components/DragHandleDots.d.ts.map +0 -1
- package/react/components/DragHandleDots.js.map +0 -1
- package/react/components/DropZone.d.ts.map +0 -1
- package/react/components/DropZone.js.map +0 -1
- package/react/components/Dropdown.d.ts.map +0 -1
- package/react/components/Dropdown.js.map +0 -1
- package/react/components/DropdownFirst.d.ts.map +0 -1
- package/react/components/DropdownFirst.js.map +0 -1
- package/react/components/DurationInput.d.ts.map +0 -1
- package/react/components/DurationInput.js.map +0 -1
- package/react/components/EmptyState.d.ts.map +0 -1
- package/react/components/EmptyState.js.map +0 -1
- package/react/components/Form/FormGroup.d.ts.map +0 -1
- package/react/components/Form/FormGroup.js.map +0 -1
- package/react/components/Form/FormGroupItem.d.ts.map +0 -1
- package/react/components/Form/FormGroupItem.js.map +0 -1
- package/react/components/Form/FormGroupV2.d.ts.map +0 -1
- package/react/components/Form/FormGroupV2.js.map +0 -1
- package/react/components/Form/FormItem.d.ts.map +0 -1
- package/react/components/Form/FormItem.js.map +0 -1
- package/react/components/Form/FormLabel.d.ts.map +0 -1
- package/react/components/Form/FormLabel.js.map +0 -1
- package/react/components/Form/FormLayout.d.ts.map +0 -1
- package/react/components/Form/FormLayout.js.map +0 -1
- package/react/components/Form/FormRow.d.ts.map +0 -1
- package/react/components/Form/FormRow.js.map +0 -1
- package/react/components/Form/FormRowNew.d.ts.map +0 -1
- package/react/components/Form/FormRowNew.js.map +0 -1
- package/react/components/Form/FormText.d.ts.map +0 -1
- package/react/components/Form/FormText.js.map +0 -1
- package/react/components/Form/InputBase.d.ts.map +0 -1
- package/react/components/Form/InputBase.js.map +0 -1
- package/react/components/Form/InputNew.d.ts.map +0 -1
- package/react/components/Form/InputNew.js.map +0 -1
- package/react/components/Form/InputWrapper.d.ts.map +0 -1
- package/react/components/Form/InputWrapper.js.map +0 -1
- package/react/components/Form/index.d.ts.map +0 -1
- package/react/components/Form/index.js.map +0 -1
- package/react/components/FormLabel.d.ts.map +0 -1
- package/react/components/FormLabel.js.map +0 -1
- package/react/components/GridItem.d.ts.map +0 -1
- package/react/components/GridItem.js.map +0 -1
- package/react/components/GridList.d.ts.map +0 -1
- package/react/components/GridList.js.map +0 -1
- package/react/components/HeadingText.d.ts.map +0 -1
- package/react/components/HeadingText.js.map +0 -1
- package/react/components/HeadlessButton.d.ts.map +0 -1
- package/react/components/HeadlessButton.js.map +0 -1
- package/react/components/HelloWorld.d.ts.map +0 -1
- package/react/components/HelloWorld.js.map +0 -1
- package/react/components/Icon.d.ts.map +0 -1
- package/react/components/Icon.js.map +0 -1
- package/react/components/IconButton.d.ts.map +0 -1
- package/react/components/IconButton.js.map +0 -1
- package/react/components/IconLabel.d.ts.map +0 -1
- package/react/components/IconLabel.js.map +0 -1
- package/react/components/IconPicker.d.ts.map +0 -1
- package/react/components/IconPicker.js.map +0 -1
- package/react/components/IllustrationButton.d.ts.map +0 -1
- package/react/components/IllustrationButton.js.map +0 -1
- package/react/components/Input.d.ts.map +0 -1
- package/react/components/Input.js.map +0 -1
- package/react/components/Label.d.ts.map +0 -1
- package/react/components/Label.js.map +0 -1
- package/react/components/Layouts/AuthorinInnerSideBar.d.ts.map +0 -1
- package/react/components/Layouts/AuthorinInnerSideBar.js.map +0 -1
- package/react/components/Layouts/AuthoringContainer.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringContainer.js.map +0 -1
- package/react/components/Layouts/AuthoringFrame.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrame.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameContainer.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameContainer.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameLeftBar.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameLeftBar.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameMain.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameMain.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameNavBar.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameNavBar.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameOverlay.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameOverlay.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameRightBar.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameSidePanel.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameSidePanel.js.map +0 -1
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js.map +0 -1
- package/react/components/Layouts/AuthoringInnerBody.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringInnerBody.js.map +0 -1
- package/react/components/Layouts/AuthoringInnerHeader.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringInnerHeader.js.map +0 -1
- package/react/components/Layouts/AuthoringMain.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringMain.js.map +0 -1
- package/react/components/Layouts/AuthoringMainContainer.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringMainContainer.js.map +0 -1
- package/react/components/Layouts/AuthoringMainContent.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringMainContent.js.map +0 -1
- package/react/components/Layouts/AuthoringMainToolBar.d.ts.map +0 -1
- package/react/components/Layouts/AuthoringMainToolBar.js.map +0 -1
- package/react/components/Layouts/BottomBarAction.d.ts.map +0 -1
- package/react/components/Layouts/BottomBarAction.js.map +0 -1
- package/react/components/Layouts/Container.d.ts.map +0 -1
- package/react/components/Layouts/Container.js.map +0 -1
- package/react/components/Layouts/ContentSplitter.d.ts.map +0 -1
- package/react/components/Layouts/ContentSplitter.js.map +0 -1
- package/react/components/Layouts/CoreLayout.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayout.js.map +0 -1
- package/react/components/Layouts/CoreLayoutContainer.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutContainer.js.map +0 -1
- package/react/components/Layouts/CoreLayoutFooter.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutFooter.js.map +0 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutMain.js.map +0 -1
- package/react/components/Layouts/CoreLayoutOverlay.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutOverlay.js.map +0 -1
- package/react/components/Layouts/CoreLayoutSlideInMenu.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutSlideInMenu.js.map +0 -1
- package/react/components/Layouts/CoreLayoutTopMenu.d.ts.map +0 -1
- package/react/components/Layouts/CoreLayoutTopMenu.js.map +0 -1
- package/react/components/Layouts/HamburgerButton.d.ts.map +0 -1
- package/react/components/Layouts/HamburgerButton.js.map +0 -1
- package/react/components/Layouts/HeaderPanel.d.ts.map +0 -1
- package/react/components/Layouts/HeaderPanel.js.map +0 -1
- package/react/components/Layouts/Layout.d.ts.map +0 -1
- package/react/components/Layouts/Layout.js.map +0 -1
- package/react/components/Layouts/LayoutContainer.d.ts.map +0 -1
- package/react/components/Layouts/LayoutContainer.js.map +0 -1
- package/react/components/Layouts/LeftPanel.d.ts.map +0 -1
- package/react/components/Layouts/LeftPanel.js.map +0 -1
- package/react/components/Layouts/MainMenu.d.ts.map +0 -1
- package/react/components/Layouts/MainMenu.js.map +0 -1
- package/react/components/Layouts/MainPanel.d.ts.map +0 -1
- package/react/components/Layouts/MainPanel.js.map +0 -1
- package/react/components/Layouts/NotificationPanel.d.ts.map +0 -1
- package/react/components/Layouts/NotificationPanel.js.map +0 -1
- package/react/components/Layouts/OverlayPanel.d.ts.map +0 -1
- package/react/components/Layouts/OverlayPanel.js.map +0 -1
- package/react/components/Layouts/PageLayout.d.ts.map +0 -1
- package/react/components/Layouts/PageLayout.js.map +0 -1
- package/react/components/Layouts/Panel.d.ts.map +0 -1
- package/react/components/Layouts/Panel.js.map +0 -1
- package/react/components/Layouts/RightPanel.d.ts.map +0 -1
- package/react/components/Layouts/RightPanel.js.map +0 -1
- package/react/components/Layouts/index.d.ts.map +0 -1
- package/react/components/Layouts/index.js.map +0 -1
- package/react/components/LeftMenu.d.ts.map +0 -1
- package/react/components/LeftMenu.js.map +0 -1
- package/react/components/ListItemLoader.d.ts.map +0 -1
- package/react/components/ListItemLoader.js.map +0 -1
- package/react/components/Lists/BoxedList.d.ts.map +0 -1
- package/react/components/Lists/BoxedList.js.map +0 -1
- package/react/components/Lists/CalendarWeekDayItem.d.ts.map +0 -1
- package/react/components/Lists/CalendarWeekDayItem.js.map +0 -1
- package/react/components/Lists/ContentList.d.ts.map +0 -1
- package/react/components/Lists/ContentList.js.map +0 -1
- package/react/components/Lists/LoadMoreIndicator.d.ts.map +0 -1
- package/react/components/Lists/LoadMoreIndicator.js.map +0 -1
- package/react/components/Lists/SimpleList.d.ts.map +0 -1
- package/react/components/Lists/SimpleList.js.map +0 -1
- package/react/components/Lists/TableList.d.ts.map +0 -1
- package/react/components/Lists/TableList.js.map +0 -1
- package/react/components/Lists/index.d.ts.map +0 -1
- package/react/components/Lists/index.js.map +0 -1
- package/react/components/Loader.d.ts.map +0 -1
- package/react/components/Loader.js.map +0 -1
- package/react/components/Menu.d.ts.map +0 -1
- package/react/components/Menu.js.map +0 -1
- package/react/components/Modal.d.ts.map +0 -1
- package/react/components/Modal.js.map +0 -1
- package/react/components/MultiSelect.d.ts.map +0 -1
- package/react/components/MultiSelect.js.map +0 -1
- package/react/components/NavButton.d.ts.map +0 -1
- package/react/components/NavButton.js.map +0 -1
- package/react/components/Navigation/BottomNav.d.ts.map +0 -1
- package/react/components/Navigation/BottomNav.js.map +0 -1
- package/react/components/Navigation/QuickNavBar.d.ts.map +0 -1
- package/react/components/Navigation/QuickNavBar.js.map +0 -1
- package/react/components/Navigation/SideBarMenu.d.ts.map +0 -1
- package/react/components/Navigation/SideBarMenu.js.map +0 -1
- package/react/components/Navigation/SideBarTabs.d.ts.map +0 -1
- package/react/components/Navigation/SideBarTabs.js.map +0 -1
- package/react/components/Navigation/index.d.ts.map +0 -1
- package/react/components/Navigation/index.js.map +0 -1
- package/react/components/OverflowStack/OverflowStack.d.ts.map +0 -1
- package/react/components/OverflowStack/OverflowStack.js.map +0 -1
- package/react/components/OverflowStack/OverflowStackPopover.d.ts.map +0 -1
- package/react/components/OverflowStack/OverflowStackPopover.js.map +0 -1
- package/react/components/OverflowStack/utils.d.ts.map +0 -1
- package/react/components/OverflowStack/utils.js.map +0 -1
- package/react/components/Popover.d.ts.map +0 -1
- package/react/components/Popover.js.map +0 -1
- package/react/components/PropsList.d.ts.map +0 -1
- package/react/components/PropsList.js.map +0 -1
- package/react/components/RadioButtonGroup.d.ts.map +0 -1
- package/react/components/RadioButtonGroup.js.map +0 -1
- package/react/components/RadioGroup.d.ts.map +0 -1
- package/react/components/RadioGroup.js.map +0 -1
- package/react/components/ResizablePanels.d.ts.map +0 -1
- package/react/components/ResizablePanels.js.map +0 -1
- package/react/components/ResizeObserverComponent.d.ts.map +0 -1
- package/react/components/ResizeObserverComponent.js.map +0 -1
- package/react/components/Rotate.d.ts.map +0 -1
- package/react/components/Rotate.js.map +0 -1
- package/react/components/SearchBar.d.ts.map +0 -1
- package/react/components/SearchBar.js.map +0 -1
- package/react/components/Select.d.ts.map +0 -1
- package/react/components/Select.js.map +0 -1
- package/react/components/SelectGrid.d.ts.map +0 -1
- package/react/components/SelectGrid.js.map +0 -1
- package/react/components/SelectPreview.d.ts.map +0 -1
- package/react/components/SelectPreview.js.map +0 -1
- package/react/components/SelectWithTemplate.d.ts.map +0 -1
- package/react/components/SelectWithTemplate.js.map +0 -1
- package/react/components/ShowPopup.d.ts.map +0 -1
- package/react/components/ShowPopup.js.map +0 -1
- package/react/components/SingleAndDoubleClickFunction.d.ts.map +0 -1
- package/react/components/SingleAndDoubleClickFunction.js.map +0 -1
- package/react/components/Skeleton.d.ts.map +0 -1
- package/react/components/Skeleton.js.map +0 -1
- package/react/components/SlidingToolbar.d.ts.map +0 -1
- package/react/components/SlidingToolbar.js.map +0 -1
- package/react/components/Spinner.d.ts.map +0 -1
- package/react/components/Spinner.js.map +0 -1
- package/react/components/StateLabel.d.ts.map +0 -1
- package/react/components/StateLabel.js.map +0 -1
- package/react/components/StrechBar.d.ts.map +0 -1
- package/react/components/StrechBar.js.map +0 -1
- package/react/components/SubNav.d.ts.map +0 -1
- package/react/components/SubNav.js.map +0 -1
- package/react/components/SvgIconIllustration.d.ts.map +0 -1
- package/react/components/SvgIconIllustration.js.map +0 -1
- package/react/components/Switch.d.ts.map +0 -1
- package/react/components/Switch.js.map +0 -1
- package/react/components/SwitchGroup.d.ts.map +0 -1
- package/react/components/SwitchGroup.js.map +0 -1
- package/react/components/TabCustom.d.ts.map +0 -1
- package/react/components/TabCustom.js.map +0 -1
- package/react/components/TabList.d.ts.map +0 -1
- package/react/components/TabList.js.map +0 -1
- package/react/components/Tag.d.ts.map +0 -1
- package/react/components/Tag.js.map +0 -1
- package/react/components/TagInput.d.ts.map +0 -1
- package/react/components/TagInput.js.map +0 -1
- package/react/components/Text/Heading.d.ts.map +0 -1
- package/react/components/Text/Heading.js.map +0 -1
- package/react/components/Text/Text.d.ts.map +0 -1
- package/react/components/Text/Text.js.map +0 -1
- package/react/components/Text/Time.d.ts.map +0 -1
- package/react/components/Text/Time.js.map +0 -1
- package/react/components/ThemeSelector.d.ts.map +0 -1
- package/react/components/ThemeSelector.js.map +0 -1
- package/react/components/TimePicker/TimePickerPopover.d.ts.map +0 -1
- package/react/components/TimePicker/TimePickerPopover.js.map +0 -1
- package/react/components/TimePicker/TimeValueHolder.d.ts.map +0 -1
- package/react/components/TimePicker/TimeValueHolder.js.map +0 -1
- package/react/components/TimePicker/index.d.ts.map +0 -1
- package/react/components/TimePicker/index.js.map +0 -1
- package/react/components/TimePickerV2.d.ts.map +0 -1
- package/react/components/TimePickerV2.js.map +0 -1
- package/react/components/Toast.d.ts.map +0 -1
- package/react/components/Toast.js.map +0 -1
- package/react/components/ToastMessage.d.ts.map +0 -1
- package/react/components/ToastMessage.js.map +0 -1
- package/react/components/ToastText.d.ts.map +0 -1
- package/react/components/ToastText.js.map +0 -1
- package/react/components/ToastWrapper.d.ts.map +0 -1
- package/react/components/ToastWrapper.js.map +0 -1
- package/react/components/ToggleBox/CustomHeaderToggleBox.d.ts.map +0 -1
- package/react/components/ToggleBox/CustomHeaderToggleBox.js.map +0 -1
- package/react/components/ToggleBox/SimpleToggleBox.d.ts.map +0 -1
- package/react/components/ToggleBox/SimpleToggleBox.js.map +0 -1
- package/react/components/ToggleBox/index.d.ts.map +0 -1
- package/react/components/ToggleBox/index.js.map +0 -1
- package/react/components/Tooltip.d.ts.map +0 -1
- package/react/components/Tooltip.js.map +0 -1
- package/react/components/TooltipV2.d.ts.map +0 -1
- package/react/components/TooltipV2.js.map +0 -1
- package/react/components/TreeMenu.d.ts.map +0 -1
- package/react/components/TreeMenu.js.map +0 -1
- package/react/components/TreeSelect/KeyboardNavigation.d.ts.map +0 -1
- package/react/components/TreeSelect/KeyboardNavigation.js.map +0 -1
- package/react/components/TreeSelect/TreeSelect.d.ts.map +0 -1
- package/react/components/TreeSelect/TreeSelect.js.map +0 -1
- package/react/components/TreeSelect/TreeSelectItem.d.ts.map +0 -1
- package/react/components/TreeSelect/TreeSelectItem.js.map +0 -1
- package/react/components/TreeSelect/TreeSelectPill.d.ts.map +0 -1
- package/react/components/TreeSelect/TreeSelectPill.js.map +0 -1
- package/react/components/WithPagination.d.ts.map +0 -1
- package/react/components/WithPagination.js.map +0 -1
- package/react/components/WithPopover.d.ts.map +0 -1
- package/react/components/WithPopover.js.map +0 -1
- package/react/components/WithPortal.d.ts.map +0 -1
- package/react/components/WithPortal.js.map +0 -1
- package/react/components/WithSizeObserver.d.ts.map +0 -1
- package/react/components/WithSizeObserver.js.map +0 -1
- package/react/components/_Positioner.d.ts.map +0 -1
- package/react/components/_Positioner.js.map +0 -1
- package/react/components/avatar/avatar-action-add.d.ts.map +0 -1
- package/react/components/avatar/avatar-action-add.js.map +0 -1
- package/react/components/avatar/avatar-group.d.ts.map +0 -1
- package/react/components/avatar/avatar-group.js.map +0 -1
- package/react/components/avatar/avatar-image.d.ts.map +0 -1
- package/react/components/avatar/avatar-image.js.map +0 -1
- package/react/components/avatar/avatar-number.d.ts.map +0 -1
- package/react/components/avatar/avatar-number.js.map +0 -1
- package/react/components/avatar/avatar-placeholder.d.ts.map +0 -1
- package/react/components/avatar/avatar-placeholder.js.map +0 -1
- package/react/components/avatar/avatar-text.d.ts.map +0 -1
- package/react/components/avatar/avatar-text.js.map +0 -1
- package/react/components/avatar/avatar-with-inline-text-wrapper.d.ts.map +0 -1
- package/react/components/avatar/avatar-with-inline-text-wrapper.js.map +0 -1
- package/react/components/avatar/avatar-wrapper.d.ts.map +0 -1
- package/react/components/avatar/avatar-wrapper.js.map +0 -1
- package/react/components/avatar/avatar.d.ts.map +0 -1
- package/react/components/avatar/avatar.js.map +0 -1
- package/react/components/avatar/interfaces.d.ts.map +0 -1
- package/react/components/avatar/interfaces.js.map +0 -1
- package/react/helpers.d.ts.map +0 -1
- package/react/helpers.js.map +0 -1
- package/react/index.d.ts.map +0 -1
- package/react/index.js.map +0 -1
- package/react/localization.d.ts.map +0 -1
- package/react/localization.js.map +0 -1
- package/react/translations.d.ts.map +0 -1
- package/react/translations.js.map +0 -1
- package/react/utils/time.d.ts.map +0 -1
- package/react/utils/time.js.map +0 -1
- package/react/zIndex.d.ts.map +0 -1
- package/react/zIndex.js.map +0 -1
- package/storybook-static/main.18fb8930.iframe.bundle.js +0 -1
- package/storybook-static/runtime~main.9da32ffd.iframe.bundle.js +0 -1
package/ESM_MIGRATION_PLAN.md
DELETED
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
# ESM Build Migration Plan - v7.0.0
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
Migrate superdesk-ui-framework to modern ESM distribution while maintaining backward compatibility with legacy UMD bundle. This enables tree-shaking, better source maps, and modern tooling for React consumers while preserving AngularJS support.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Phase 1: Configuration Setup
|
|
10
|
-
|
|
11
|
-
### Step 1: Create ESM TypeScript Config
|
|
12
|
-
|
|
13
|
-
Create `tsconfig.esm.json`:
|
|
14
|
-
|
|
15
|
-
```jsonc
|
|
16
|
-
{
|
|
17
|
-
"extends": "./tsconfig.json",
|
|
18
|
-
"compilerOptions": {
|
|
19
|
-
"outDir": "./dist/esm",
|
|
20
|
-
"module": "esnext",
|
|
21
|
-
"target": "es2020",
|
|
22
|
-
"lib": ["dom", "es2021"],
|
|
23
|
-
"declaration": true,
|
|
24
|
-
"declarationMap": true,
|
|
25
|
-
"sourceMap": true,
|
|
26
|
-
"jsx": "react",
|
|
27
|
-
"moduleResolution": "bundler"
|
|
28
|
-
},
|
|
29
|
-
"include": ["app-typescript/**/*", "globals.d.ts"],
|
|
30
|
-
"exclude": ["**/*.test.ts", "**/*.test.tsx", "**/*.stories.tsx"]
|
|
31
|
-
}
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Step 2: Update Main TypeScript Config
|
|
35
|
-
|
|
36
|
-
Update `tsconfig.json`:
|
|
37
|
-
|
|
38
|
-
```jsonc
|
|
39
|
-
{
|
|
40
|
-
"files": ["./app-typescript/index.ts", "./globals.d.ts"],
|
|
41
|
-
"compilerOptions": {
|
|
42
|
-
"module": "esnext",
|
|
43
|
-
"target": "es2020",
|
|
44
|
-
"lib": ["dom", "es2021"],
|
|
45
|
-
"sourceMap": true,
|
|
46
|
-
"declarationMap": true
|
|
47
|
-
// ... keep all existing strict settings
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Step 3: Update .gitignore
|
|
53
|
-
|
|
54
|
-
Add to `.gitignore`:
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
/dist/esm/
|
|
58
|
-
/react/
|
|
59
|
-
/dist/*.js
|
|
60
|
-
/dist/*.css
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## Phase 2: Build Scripts
|
|
66
|
-
|
|
67
|
-
### Step 4: Update package.json Scripts
|
|
68
|
-
|
|
69
|
-
```json
|
|
70
|
-
{
|
|
71
|
-
"scripts": {
|
|
72
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
73
|
-
"build:umd": "webpack --config tasks/webpack.prod.js",
|
|
74
|
-
"build:css": "sass app/styles/app.scss dist/styles/app.css --style=compressed --source-map",
|
|
75
|
-
"build:types-legacy": "tsc -p tsconfig.json",
|
|
76
|
-
"build": "npm run clean && npm run build:esm && npm run build:umd && npm run build:types-legacy && npm run build:css && npm run build-storybook && npm run copy-storybook",
|
|
77
|
-
"clean": "rm -rf dist/esm dist/styles react dist/*.bundle.* dist/*.chunk.* storybook-static",
|
|
78
|
-
"watch:esm": "tsc -p tsconfig.esm.json --watch",
|
|
79
|
-
"watch:umd": "webpack --watch --config tasks/webpack.prod.js",
|
|
80
|
-
"watch": "npm run watch:esm & npm run watch:umd"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Step 5: Update package.json Distribution
|
|
86
|
-
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"version": "7.0.0",
|
|
90
|
-
"main": "./dist/superdesk-ui.bundle.js",
|
|
91
|
-
"module": "./dist/esm/index.js",
|
|
92
|
-
"types": "./dist/esm/index.d.ts",
|
|
93
|
-
"exports": {
|
|
94
|
-
".": {
|
|
95
|
-
"types": "./dist/esm/index.d.ts",
|
|
96
|
-
"import": "./dist/esm/index.js",
|
|
97
|
-
"require": "./dist/superdesk-ui.bundle.js",
|
|
98
|
-
"default": "./dist/esm/index.js"
|
|
99
|
-
},
|
|
100
|
-
"./react": {
|
|
101
|
-
"types": "./dist/esm/index.d.ts",
|
|
102
|
-
"import": "./dist/esm/index.js",
|
|
103
|
-
"require": "./react/index.js"
|
|
104
|
-
},
|
|
105
|
-
"./react/*": {
|
|
106
|
-
"types": "./dist/esm/*",
|
|
107
|
-
"import": "./dist/esm/*",
|
|
108
|
-
"require": "./react/*"
|
|
109
|
-
},
|
|
110
|
-
"./styles": "./dist/styles/app.css",
|
|
111
|
-
"./angular": "./dist/superdesk-ui.bundle.js",
|
|
112
|
-
"./package.json": "./package.json"
|
|
113
|
-
},
|
|
114
|
-
"sideEffects": false,
|
|
115
|
-
"files": [
|
|
116
|
-
"dist/esm/",
|
|
117
|
-
"dist/styles/",
|
|
118
|
-
"dist/superdesk-ui.bundle.js",
|
|
119
|
-
"dist/superdesk-ui.bundle.css",
|
|
120
|
-
"react/",
|
|
121
|
-
"README.md",
|
|
122
|
-
"LICENSE"
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Step 6: Update .npmignore
|
|
128
|
-
|
|
129
|
-
Create/update `.npmignore`:
|
|
130
|
-
|
|
131
|
-
```
|
|
132
|
-
node_modules/
|
|
133
|
-
examples/
|
|
134
|
-
dist/playgrounds/
|
|
135
|
-
storybook-static/
|
|
136
|
-
tasks/
|
|
137
|
-
app/
|
|
138
|
-
app-typescript/
|
|
139
|
-
.storybook/
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## Phase 3: Dependencies
|
|
145
|
-
|
|
146
|
-
### Step 7: Move React to Peer Dependencies
|
|
147
|
-
|
|
148
|
-
```json
|
|
149
|
-
{
|
|
150
|
-
"peerDependencies": {
|
|
151
|
-
"moment": "*",
|
|
152
|
-
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
|
|
153
|
-
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## Phase 4: Build & Validate
|
|
161
|
-
|
|
162
|
-
### Step 8: Test ESM Build
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
npm run clean
|
|
166
|
-
npm run build:esm
|
|
167
|
-
ls -la dist/esm/
|
|
168
|
-
# Verify: index.js, index.d.ts, components/*, .map files exist
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
### Step 9: Test UMD Build
|
|
172
|
-
|
|
173
|
-
```bash
|
|
174
|
-
npm run build:umd
|
|
175
|
-
ls -la dist/
|
|
176
|
-
# Verify: superdesk-ui.bundle.js exists
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Step 10: Test Legacy Types
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
npm run build:types-legacy
|
|
183
|
-
ls -la react/
|
|
184
|
-
# Verify: CommonJS types exist for backward compatibility
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Step 11: Build CSS
|
|
188
|
-
|
|
189
|
-
```bash
|
|
190
|
-
npm run build:css
|
|
191
|
-
ls -la dist/styles/
|
|
192
|
-
# Verify: app.css and app.css.map exist
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### Step 12: Full Build
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
npm run build
|
|
199
|
-
# Verify all outputs exist
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Step 13: Verify Package Contents
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
npm pack --dry-run
|
|
206
|
-
# Check output includes: dist/esm/, dist/styles/, dist/*.bundle.*, react/
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
## Phase 5: Local Testing
|
|
212
|
-
|
|
213
|
-
### Step 14: Test with npm link
|
|
214
|
-
|
|
215
|
-
```bash
|
|
216
|
-
npm link
|
|
217
|
-
cd ../test-project
|
|
218
|
-
npm link superdesk-ui-framework
|
|
219
|
-
|
|
220
|
-
# Test ESM
|
|
221
|
-
node -e "import('superdesk-ui-framework').then(m => console.log('ESM:', m.Button))"
|
|
222
|
-
|
|
223
|
-
# Test CJS
|
|
224
|
-
node -e "const {Button} = require('superdesk-ui-framework'); console.log('CJS:', Button)"
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### Step 15: Create Test Consumer
|
|
228
|
-
|
|
229
|
-
Create minimal webpack project:
|
|
230
|
-
|
|
231
|
-
```javascript
|
|
232
|
-
// webpack.config.js
|
|
233
|
-
module.exports = {
|
|
234
|
-
module: {
|
|
235
|
-
rules: [{
|
|
236
|
-
test: /\.(ts|tsx)$/,
|
|
237
|
-
exclude: /node_modules\/(?!superdesk-ui-framework)/,
|
|
238
|
-
use: 'ts-loader'
|
|
239
|
-
}]
|
|
240
|
-
},
|
|
241
|
-
resolve: {
|
|
242
|
-
mainFields: ['module', 'main']
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
Test tree-shaking works.
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
## Phase 6: Documentation
|
|
252
|
-
|
|
253
|
-
### Step 16: Update README.md
|
|
254
|
-
|
|
255
|
-
Add section explaining:
|
|
256
|
-
- ESM imports (recommended)
|
|
257
|
-
- CSS import requirement
|
|
258
|
-
- Webpack configuration for consumers
|
|
259
|
-
- Angular/UMD still supported
|
|
260
|
-
|
|
261
|
-
### Step 17: Create MIGRATION.md
|
|
262
|
-
|
|
263
|
-
Document:
|
|
264
|
-
- Breaking changes (CSS import, React peerDependency)
|
|
265
|
-
- Migration steps for consumers
|
|
266
|
-
- Webpack configuration updates needed
|
|
267
|
-
- Benefits of migration
|
|
268
|
-
|
|
269
|
-
---
|
|
270
|
-
|
|
271
|
-
## Phase 7: CI/CD
|
|
272
|
-
|
|
273
|
-
### Step 18: Update GitHub Actions
|
|
274
|
-
|
|
275
|
-
Update `.github/workflows/test.yml`:
|
|
276
|
-
|
|
277
|
-
```yaml
|
|
278
|
-
- run: npm run build:esm
|
|
279
|
-
- run: npm run build:umd
|
|
280
|
-
- run: npm run build:css
|
|
281
|
-
- run: test -d dist/esm
|
|
282
|
-
- run: test -f dist/superdesk-ui.bundle.js
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
287
|
-
## Phase 8: Pre-Release
|
|
288
|
-
|
|
289
|
-
### Step 19: Version Bump
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
npm version 7.0.0-beta.1 --no-git-tag-version
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
### Step 20: Test Package
|
|
296
|
-
|
|
297
|
-
```bash
|
|
298
|
-
npm pack
|
|
299
|
-
# Install in test project and verify
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Step 21: Bundle Size Analysis
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
|
-
ls -lh dist/esm/index.js
|
|
306
|
-
ls -lh dist/superdesk-ui.bundle.js
|
|
307
|
-
# Compare sizes
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
---
|
|
311
|
-
|
|
312
|
-
## Phase 9: Consumer Migration (superdesk-client-core)
|
|
313
|
-
|
|
314
|
-
### Step 22: Update webpack.config.js
|
|
315
|
-
|
|
316
|
-
```javascript
|
|
317
|
-
module.exports = {
|
|
318
|
-
resolve: {
|
|
319
|
-
mainFields: ['module', 'main']
|
|
320
|
-
},
|
|
321
|
-
module: {
|
|
322
|
-
rules: [{
|
|
323
|
-
test: /\.(ts|tsx)$/,
|
|
324
|
-
exclude: /node_modules\/(?!superdesk-ui-framework)/,
|
|
325
|
-
use: 'ts-loader'
|
|
326
|
-
}]
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
```
|
|
330
|
-
|
|
331
|
-
### Step 23: Update Imports
|
|
332
|
-
|
|
333
|
-
Add to main entry file:
|
|
334
|
-
|
|
335
|
-
```typescript
|
|
336
|
-
import 'superdesk-ui-framework/styles';
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
### Step 24: Test Consumer Build
|
|
340
|
-
|
|
341
|
-
```bash
|
|
342
|
-
npm install superdesk-ui-framework@7.0.0-beta.1
|
|
343
|
-
npm run build
|
|
344
|
-
# Analyze bundle size reduction
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
## Phase 10: Release
|
|
350
|
-
|
|
351
|
-
### Step 25: Beta Release
|
|
352
|
-
|
|
353
|
-
```bash
|
|
354
|
-
npm run build
|
|
355
|
-
npm test
|
|
356
|
-
npm publish --tag beta
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
### Step 26: Stable Release
|
|
360
|
-
|
|
361
|
-
```bash
|
|
362
|
-
npm version 7.0.0
|
|
363
|
-
git tag v7.0.0
|
|
364
|
-
git push origin v7.0.0
|
|
365
|
-
npm publish
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
### Step 27: Post-Release
|
|
369
|
-
|
|
370
|
-
- Create GitHub release notes
|
|
371
|
-
- Announce to team
|
|
372
|
-
- Monitor for issues
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## Verification Checklist
|
|
377
|
-
|
|
378
|
-
After completion:
|
|
379
|
-
|
|
380
|
-
- [ ] ESM build outputs to `dist/esm/`
|
|
381
|
-
- [ ] UMD bundle exists at `dist/superdesk-ui.bundle.js`
|
|
382
|
-
- [ ] CSS outputs to `dist/styles/app.css`
|
|
383
|
-
- [ ] Legacy types in `react/`
|
|
384
|
-
- [ ] `npm pack` shows correct files
|
|
385
|
-
- [ ] ESM imports work
|
|
386
|
-
- [ ] CJS imports work (backward compat)
|
|
387
|
-
- [ ] Tree-shaking verified
|
|
388
|
-
- [ ] Source maps work
|
|
389
|
-
- [ ] Dev server works
|
|
390
|
-
- [ ] Storybook works
|
|
391
|
-
- [ ] All tests pass
|
|
392
|
-
|
|
393
|
-
---
|
|
394
|
-
|
|
395
|
-
## Timeline
|
|
396
|
-
|
|
397
|
-
- **Phases 1-3**: 2-4 hours (setup)
|
|
398
|
-
- **Phases 4-5**: 3-5 hours (build & test)
|
|
399
|
-
- **Phases 6-7**: 2-3 hours (docs & CI)
|
|
400
|
-
- **Phase 8**: 1-2 hours (pre-release)
|
|
401
|
-
- **Phase 9**: 4-6 hours (consumer migration)
|
|
402
|
-
- **Phase 10**: 1 hour (release)
|
|
403
|
-
|
|
404
|
-
**Total**: 2-3 days
|
|
405
|
-
|
|
406
|
-
---
|
|
407
|
-
|
|
408
|
-
## Key Benefits
|
|
409
|
-
|
|
410
|
-
- **70-90% smaller bundles** via tree-shaking
|
|
411
|
-
- **Better debugging** with source maps to original TypeScript
|
|
412
|
-
- **Faster builds** - no pre-bundling overhead
|
|
413
|
-
- **Modern features** - ES2020+ available
|
|
414
|
-
- **Backward compatible** - Angular/UMD still works
|
package/debug-storybook.log
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[15:33:25.014] [INFO] storybook v10.1.11
|
|
2
|
-
[15:33:25.377] [DEBUG] Getting package.json info for /Users/eos87/code/SourceFabric/Superdesk/Node22Upgrade/superdesk-ui-framework/package.json...
|
|
3
|
-
[15:33:25.842] [INFO] Starting...
|
|
4
|
-
[15:33:25.877] [WARN] No story files found for the specified pattern: [34mapp-typescript/**/*.mdx[39m
|
|
5
|
-
[15:33:25.960] [ERROR] [38;2;241;97;97mError: Build failed with 2 errors:
|
|
6
|
-
.storybook/manager.ts:1:21: ERROR: Could not resolve "@storybook/manager-api"
|
|
7
|
-
.storybook/manager.ts:2:21: ERROR: Could not resolve "@storybook/theming"[39m
|
|
8
|
-
at failureErrorWithLog (./node_modules/esbuild/lib/main.js:1467:15)
|
|
9
|
-
at ./node_modules/esbuild/lib/main.js:926:25
|
|
10
|
-
at runOnEndCallbacks (./node_modules/esbuild/lib/main.js:1307:45)
|
|
11
|
-
at buildResponseToResult (./node_modules/esbuild/lib/main.js:924:7)
|
|
12
|
-
at ./node_modules/esbuild/lib/main.js:951:16
|
|
13
|
-
at responseCallbacks.<computed> (./node_modules/esbuild/lib/main.js:603:9)
|
|
14
|
-
at handleIncomingPacket (./node_modules/esbuild/lib/main.js:658:12)
|
|
15
|
-
at Socket.readFromStdout (./node_modules/esbuild/lib/main.js:581:7)
|
|
16
|
-
at Socket.emit (node:events:519:28)
|
|
17
|
-
at addChunk (node:internal/streams/readable:561:12)
|
|
18
|
-
[15:33:25.960] [WARN] Broken build, fix the error above.
|
|
19
|
-
You may need to refresh the browser.
|
|
20
|
-
[15:33:59.811] [PROMPT] Would you like to send anonymous crash reports to improve Storybook and fix bugs faster? {"choice":false}
|