@imposium-hub/components 1.43.5 → 1.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -13
- package/dist/cjs/Util.d.ts +19 -0
- package/dist/cjs/Util.js +271 -0
- package/dist/cjs/Util.js.map +1 -0
- package/dist/cjs/components/Tooltip.d.ts +7 -0
- package/dist/cjs/components/Tooltip.js +63 -0
- package/dist/cjs/components/Tooltip.js.map +1 -0
- package/dist/cjs/components/app-wrapper/AppWrapper.d.ts +27 -0
- package/dist/cjs/components/app-wrapper/AppWrapper.js +235 -0
- package/dist/cjs/components/app-wrapper/AppWrapper.js.map +1 -0
- package/dist/cjs/components/asset-details/AssetDetails.d.ts +2 -0
- package/dist/cjs/components/asset-details/AssetDetails.js +124 -0
- package/dist/cjs/components/asset-details/AssetDetails.js.map +1 -0
- package/dist/cjs/components/assets/AssetField.d.ts +2 -0
- package/dist/cjs/components/assets/AssetField.js +171 -0
- package/dist/cjs/components/assets/AssetField.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableComplexTagCell.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableComplexTagCell.js +118 -0
- package/dist/cjs/components/assets/AssetsTableComplexTagCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableDateCell.d.ts +6 -0
- package/dist/cjs/components/assets/AssetsTableDateCell.js +31 -0
- package/dist/cjs/components/assets/AssetsTableDateCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableDropzone.d.ts +10 -0
- package/dist/cjs/components/assets/AssetsTableDropzone.js +61 -0
- package/dist/cjs/components/assets/AssetsTableDropzone.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableDurationCell.d.ts +3 -0
- package/dist/cjs/components/assets/AssetsTableDurationCell.js +56 -0
- package/dist/cjs/components/assets/AssetsTableDurationCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableNameCell.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableNameCell.js +78 -0
- package/dist/cjs/components/assets/AssetsTableNameCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableNameFilter.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableNameFilter.js +69 -0
- package/dist/cjs/components/assets/AssetsTableNameFilter.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTablePreviewCell.d.ts +20 -0
- package/dist/cjs/components/assets/AssetsTablePreviewCell.js +131 -0
- package/dist/cjs/components/assets/AssetsTablePreviewCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableSelectCell.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableSelectCell.js +84 -0
- package/dist/cjs/components/assets/AssetsTableSelectCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableSelectFilter.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableSelectFilter.js +73 -0
- package/dist/cjs/components/assets/AssetsTableSelectFilter.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableStatusCell.d.ts +6 -0
- package/dist/cjs/components/assets/AssetsTableStatusCell.js +34 -0
- package/dist/cjs/components/assets/AssetsTableStatusCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableTagsCell.d.ts +7 -0
- package/dist/cjs/components/assets/AssetsTableTagsCell.js +34 -0
- package/dist/cjs/components/assets/AssetsTableTagsCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableTagsFilter.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableTagsFilter.js +69 -0
- package/dist/cjs/components/assets/AssetsTableTagsFilter.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableTagsPivot.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableTagsPivot.js +123 -0
- package/dist/cjs/components/assets/AssetsTableTagsPivot.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableTypeCell.d.ts +6 -0
- package/dist/cjs/components/assets/AssetsTableTypeCell.js +35 -0
- package/dist/cjs/components/assets/AssetsTableTypeCell.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTableTypeFilter.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsTableTypeFilter.js +95 -0
- package/dist/cjs/components/assets/AssetsTableTypeFilter.js.map +1 -0
- package/dist/cjs/components/assets/AssetsTypeIcon.d.ts +6 -0
- package/dist/cjs/components/assets/AssetsTypeIcon.js +63 -0
- package/dist/cjs/components/assets/AssetsTypeIcon.js.map +1 -0
- package/dist/cjs/components/assets/AssetsUploadMenu.d.ts +2 -0
- package/dist/cjs/components/assets/AssetsUploadMenu.js +98 -0
- package/dist/cjs/components/assets/AssetsUploadMenu.js.map +1 -0
- package/dist/cjs/components/assets/DataTableDnDWrapper.d.ts +11 -0
- package/dist/cjs/components/assets/DataTableDnDWrapper.js +72 -0
- package/dist/cjs/components/assets/DataTableDnDWrapper.js.map +1 -0
- package/dist/cjs/components/assets/DroppableAssetRenderer.d.ts +7 -0
- package/dist/cjs/components/assets/DroppableAssetRenderer.js +58 -0
- package/dist/cjs/components/assets/DroppableAssetRenderer.js.map +1 -0
- package/dist/cjs/components/assets/FontAssetPreview.d.ts +15 -0
- package/dist/cjs/components/assets/FontAssetPreview.js +99 -0
- package/dist/cjs/components/assets/FontAssetPreview.js.map +1 -0
- package/dist/cjs/components/assets/PreviewNotAvailable.d.ts +6 -0
- package/dist/cjs/components/assets/PreviewNotAvailable.js +42 -0
- package/dist/cjs/components/assets/PreviewNotAvailable.js.map +1 -0
- package/dist/cjs/components/auth-gate/AuthGate.d.ts +2 -0
- package/dist/cjs/components/auth-gate/AuthGate.js +97 -0
- package/dist/cjs/components/auth-gate/AuthGate.js.map +1 -0
- package/dist/cjs/components/button/Button.d.ts +23 -0
- package/dist/cjs/components/button/Button.js +105 -0
- package/dist/cjs/components/button/Button.js.map +1 -0
- package/dist/cjs/components/button/Button.stories.d.ts +10 -0
- package/dist/cjs/components/button/Button.stories.js +127 -0
- package/dist/cjs/components/button/Button.stories.js.map +1 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.d.ts +28 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.js +101 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.js.map +1 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.stories.d.ts +8 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.stories.js +53 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.stories.js.map +1 -0
- package/dist/cjs/components/button-menu/ButtonMenu.d.ts +24 -0
- package/dist/cjs/components/button-menu/ButtonMenu.js +164 -0
- package/dist/cjs/components/button-menu/ButtonMenu.js.map +1 -0
- package/dist/cjs/components/button-menu/ButtonMenu.stories.d.ts +8 -0
- package/dist/cjs/components/button-menu/ButtonMenu.stories.js +50 -0
- package/dist/cjs/components/button-menu/ButtonMenu.stories.js.map +1 -0
- package/dist/cjs/components/button-menu/ButtonMenuItem.d.ts +11 -0
- package/dist/cjs/components/button-menu/ButtonMenuItem.js +55 -0
- package/dist/cjs/components/button-menu/ButtonMenuItem.js.map +1 -0
- package/dist/cjs/components/card/Card.d.ts +24 -0
- package/dist/cjs/components/card/Card.js +132 -0
- package/dist/cjs/components/card/Card.js.map +1 -0
- package/dist/cjs/components/card/Card.stories.d.ts +8 -0
- package/dist/cjs/components/card/Card.stories.js +43 -0
- package/dist/cjs/components/card/Card.stories.js.map +1 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.d.ts +18 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.js +68 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.js.map +1 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.stories.d.ts +8 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.stories.js +58 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.stories.js.map +1 -0
- package/dist/cjs/components/color-field/ColorField.d.ts +31 -0
- package/dist/cjs/components/color-field/ColorField.js +119 -0
- package/dist/cjs/components/color-field/ColorField.js.map +1 -0
- package/dist/cjs/components/color-field/ColorFiled.stories.d.ts +8 -0
- package/dist/cjs/components/color-field/ColorFiled.stories.js +59 -0
- package/dist/cjs/components/color-field/ColorFiled.stories.js.map +1 -0
- package/dist/cjs/components/compositions/TextLayer.d.ts +26 -0
- package/dist/cjs/components/compositions/TextLayer.js +222 -0
- package/dist/cjs/components/compositions/TextLayer.js.map +1 -0
- package/dist/cjs/components/controlled-list/ControlledList.d.ts +13 -0
- package/dist/cjs/components/controlled-list/ControlledList.js +76 -0
- package/dist/cjs/components/controlled-list/ControlledList.js.map +1 -0
- package/dist/cjs/components/controlled-list/ControlledList.stories.d.ts +8 -0
- package/dist/cjs/components/controlled-list/ControlledList.stories.js +41 -0
- package/dist/cjs/components/controlled-list/ControlledList.stories.js.map +1 -0
- package/dist/cjs/components/data-table/DataTable.d.ts +37 -0
- package/dist/cjs/components/data-table/DataTable.js +238 -0
- package/dist/cjs/components/data-table/DataTable.js.map +1 -0
- package/dist/cjs/components/data-table/DataTablePaginator.d.ts +14 -0
- package/dist/cjs/components/data-table/DataTablePaginator.js +85 -0
- package/dist/cjs/components/data-table/DataTablePaginator.js.map +1 -0
- package/dist/cjs/components/data-table/Paginator.d.ts +3 -0
- package/dist/cjs/components/data-table/Paginator.js +72 -0
- package/dist/cjs/components/data-table/Paginator.js.map +1 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.d.ts +5 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.js +35 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.js.map +1 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.stories.d.ts +9 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.stories.js +66 -0
- package/dist/cjs/components/determinate-loader/DeterminateLoader.stories.js.map +1 -0
- package/dist/cjs/components/dropdown/Dropdown.d.ts +27 -0
- package/dist/cjs/components/dropdown/Dropdown.js +140 -0
- package/dist/cjs/components/dropdown/Dropdown.js.map +1 -0
- package/dist/cjs/components/dropdown/Dropdown.stories.d.ts +20 -0
- package/dist/cjs/components/dropdown/Dropdown.stories.js +61 -0
- package/dist/cjs/components/dropdown/Dropdown.stories.js.map +1 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.d.ts +26 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.js +136 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.js.map +1 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.stories.d.ts +8 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.stories.js +42 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.stories.js.map +1 -0
- package/dist/cjs/components/h-rule/HRule.d.ts +3 -0
- package/dist/cjs/components/h-rule/HRule.js +35 -0
- package/dist/cjs/components/h-rule/HRule.js.map +1 -0
- package/dist/cjs/components/h-rule/HRule.stories.d.ts +7 -0
- package/dist/cjs/components/h-rule/HRule.stories.js +43 -0
- package/dist/cjs/components/h-rule/HRule.stories.js.map +1 -0
- package/dist/cjs/components/header/Header.d.ts +55 -0
- package/dist/cjs/components/header/Header.js +289 -0
- package/dist/cjs/components/header/Header.js.map +1 -0
- package/dist/cjs/components/list-field/ListField.d.ts +35 -0
- package/dist/cjs/components/list-field/ListField.js +166 -0
- package/dist/cjs/components/list-field/ListField.js.map +1 -0
- package/dist/cjs/components/list-field/ListField.stories.d.ts +8 -0
- package/dist/cjs/components/list-field/ListField.stories.js +40 -0
- package/dist/cjs/components/list-field/ListField.stories.js.map +1 -0
- package/dist/cjs/components/log-viewer/LogViewer.d.ts +21 -0
- package/dist/cjs/components/log-viewer/LogViewer.js +106 -0
- package/dist/cjs/components/log-viewer/LogViewer.js.map +1 -0
- package/dist/cjs/components/media-variable-field/MediaVariableField.d.ts +27 -0
- package/dist/cjs/components/media-variable-field/MediaVariableField.js +180 -0
- package/dist/cjs/components/media-variable-field/MediaVariableField.js.map +1 -0
- package/dist/cjs/components/modal/Modal.d.ts +16 -0
- package/dist/cjs/components/modal/Modal.js +81 -0
- package/dist/cjs/components/modal/Modal.js.map +1 -0
- package/dist/cjs/components/modal/Modal.stories.d.ts +8 -0
- package/dist/cjs/components/modal/Modal.stories.js +74 -0
- package/dist/cjs/components/modal/Modal.stories.js.map +1 -0
- package/dist/cjs/components/no-access/NoAccess.d.ts +6 -0
- package/dist/cjs/components/no-access/NoAccess.js +48 -0
- package/dist/cjs/components/no-access/NoAccess.js.map +1 -0
- package/dist/cjs/components/number-field/NumberField.d.ts +26 -0
- package/dist/cjs/components/number-field/NumberField.js +94 -0
- package/dist/cjs/components/number-field/NumberField.js.map +1 -0
- package/dist/cjs/components/number-field/NumberField.stories.d.ts +8 -0
- package/dist/cjs/components/number-field/NumberField.stories.js +62 -0
- package/dist/cjs/components/number-field/NumberField.stories.js.map +1 -0
- package/dist/cjs/components/players/AudioPlayer.d.ts +17 -0
- package/dist/cjs/components/players/AudioPlayer.js +72 -0
- package/dist/cjs/components/players/AudioPlayer.js.map +1 -0
- package/dist/cjs/components/players/ImagePlayer.d.ts +20 -0
- package/dist/cjs/components/players/ImagePlayer.js +85 -0
- package/dist/cjs/components/players/ImagePlayer.js.map +1 -0
- package/dist/cjs/components/players/ImagePreview.d.ts +19 -0
- package/dist/cjs/components/players/ImagePreview.js +95 -0
- package/dist/cjs/components/players/ImagePreview.js.map +1 -0
- package/dist/cjs/components/players/ImageSequencePlayer.d.ts +20 -0
- package/dist/cjs/components/players/ImageSequencePlayer.js +83 -0
- package/dist/cjs/components/players/ImageSequencePlayer.js.map +1 -0
- package/dist/cjs/components/players/TemplatePlayer.d.ts +17 -0
- package/dist/cjs/components/players/TemplatePlayer.js +73 -0
- package/dist/cjs/components/players/TemplatePlayer.js.map +1 -0
- package/dist/cjs/components/players/VideoPlayer.d.ts +40 -0
- package/dist/cjs/components/players/VideoPlayer.js +126 -0
- package/dist/cjs/components/players/VideoPlayer.js.map +1 -0
- package/dist/cjs/components/players/VideoPreview.d.ts +16 -0
- package/dist/cjs/components/players/VideoPreview.js +90 -0
- package/dist/cjs/components/players/VideoPreview.js.map +1 -0
- package/dist/cjs/components/portal/Portal.d.ts +7 -0
- package/dist/cjs/components/portal/Portal.js +18 -0
- package/dist/cjs/components/portal/Portal.js.map +1 -0
- package/dist/cjs/components/publish-wizard/PublishWizard.d.ts +35 -0
- package/dist/cjs/components/publish-wizard/PublishWizard.js +425 -0
- package/dist/cjs/components/publish-wizard/PublishWizard.js.map +1 -0
- package/dist/cjs/components/publish-wizard/publish/APIIntegration.d.ts +5 -0
- package/dist/cjs/components/publish-wizard/publish/APIIntegration.js +66 -0
- package/dist/cjs/components/publish-wizard/publish/APIIntegration.js.map +1 -0
- package/dist/cjs/components/publish-wizard/publish/EmailWorkflow.d.ts +2 -0
- package/dist/cjs/components/publish-wizard/publish/EmailWorkflow.js +440 -0
- package/dist/cjs/components/publish-wizard/publish/EmailWorkflow.js.map +1 -0
- package/dist/cjs/components/publish-wizard/publish/HubSpotFlow.d.ts +16 -0
- package/dist/cjs/components/publish-wizard/publish/HubSpotFlow.js +95 -0
- package/dist/cjs/components/publish-wizard/publish/HubSpotFlow.js.map +1 -0
- package/dist/cjs/components/publish-wizard/publish/PublishStatusIndicator.d.ts +2 -0
- package/dist/cjs/components/publish-wizard/publish/PublishStatusIndicator.js +107 -0
- package/dist/cjs/components/publish-wizard/publish/PublishStatusIndicator.js.map +1 -0
- package/dist/cjs/components/publish-wizard/publish/WebpageHosted.d.ts +19 -0
- package/dist/cjs/components/publish-wizard/publish/WebpageHosted.js +148 -0
- package/dist/cjs/components/publish-wizard/publish/WebpageHosted.js.map +1 -0
- package/dist/cjs/components/section/Section.d.ts +3 -0
- package/dist/cjs/components/section/Section.js +42 -0
- package/dist/cjs/components/section/Section.js.map +1 -0
- package/dist/cjs/components/section/Section.stories.d.ts +7 -0
- package/dist/cjs/components/section/Section.stories.js +63 -0
- package/dist/cjs/components/section/Section.stories.js.map +1 -0
- package/dist/cjs/components/select-field/SelectField.d.ts +28 -0
- package/dist/cjs/components/select-field/SelectField.js +140 -0
- package/dist/cjs/components/select-field/SelectField.js.map +1 -0
- package/dist/cjs/components/select-field/SelectField.stories.d.ts +8 -0
- package/dist/cjs/components/select-field/SelectField.stories.js +39 -0
- package/dist/cjs/components/select-field/SelectField.stories.js.map +1 -0
- package/dist/cjs/components/service-icon/ServiceIcon.d.ts +7 -0
- package/dist/cjs/components/service-icon/ServiceIcon.js +77 -0
- package/dist/cjs/components/service-icon/ServiceIcon.js.map +1 -0
- package/dist/cjs/components/service-icon/ServiceIcon.test.js +1 -0
- package/dist/cjs/components/service-icon/ServiceIcon.test.js.map +1 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.d.ts +6 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.js +45 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.js.map +1 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.stories.d.ts +7 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.stories.js +42 -0
- package/dist/cjs/components/shortcut-menu/ShortcutMenu.stories.js.map +1 -0
- package/dist/cjs/components/slider-field/SliderField.d.ts +28 -0
- package/dist/cjs/components/slider-field/SliderField.js +95 -0
- package/dist/cjs/components/slider-field/SliderField.js.map +1 -0
- package/dist/cjs/components/slider-field/SliderField.stories.d.ts +8 -0
- package/dist/cjs/components/slider-field/SliderField.stories.js +61 -0
- package/dist/cjs/components/slider-field/SliderField.stories.js.map +1 -0
- package/dist/cjs/components/spinner/Spinner.d.ts +3 -0
- package/dist/cjs/components/spinner/Spinner.js +33 -0
- package/dist/cjs/components/spinner/Spinner.js.map +1 -0
- package/dist/cjs/components/story-previewer/StoryPreviewer.d.ts +2 -0
- package/dist/cjs/components/story-previewer/StoryPreviewer.js +552 -0
- package/dist/cjs/components/story-previewer/StoryPreviewer.js.map +1 -0
- package/dist/cjs/components/tabs/Tabs.d.ts +5 -0
- package/dist/cjs/components/tabs/Tabs.js +213 -0
- package/dist/cjs/components/tabs/Tabs.js.map +1 -0
- package/dist/cjs/components/tabs/Tabs.stories.d.ts +9 -0
- package/dist/cjs/components/tabs/Tabs.stories.js +82 -0
- package/dist/cjs/components/tabs/Tabs.stories.js.map +1 -0
- package/dist/cjs/components/tag/Tag.d.ts +8 -0
- package/dist/cjs/components/tag/Tag.js +42 -0
- package/dist/cjs/components/tag/Tag.js.map +1 -0
- package/dist/cjs/components/tag/Tag.test.js +1 -0
- package/dist/cjs/components/tag/Tag.test.js.map +1 -0
- package/dist/cjs/components/text-area-field/TextAreaField.d.ts +41 -0
- package/dist/cjs/components/text-area-field/TextAreaField.js +188 -0
- package/dist/cjs/components/text-area-field/TextAreaField.js.map +1 -0
- package/dist/cjs/components/text-area-field/TextAreaField.stories.d.ts +8 -0
- package/dist/cjs/components/text-area-field/TextAreaField.stories.js +39 -0
- package/dist/cjs/components/text-area-field/TextAreaField.stories.js.map +1 -0
- package/dist/cjs/components/text-field/TextField.d.ts +63 -0
- package/dist/cjs/components/text-field/TextField.js +394 -0
- package/dist/cjs/components/text-field/TextField.js.map +1 -0
- package/dist/cjs/components/text-field/TextField.stories.d.ts +8 -0
- package/dist/cjs/components/text-field/TextField.stories.js +39 -0
- package/dist/cjs/components/text-field/TextField.stories.js.map +1 -0
- package/dist/cjs/components/toast-service/ToastService.d.ts +6 -0
- package/dist/cjs/components/toast-service/ToastService.js +87 -0
- package/dist/cjs/components/toast-service/ToastService.js.map +1 -0
- package/dist/cjs/constants/api.d.ts +5 -0
- package/dist/cjs/constants/api.js +9 -0
- package/dist/cjs/constants/api.js.map +1 -0
- package/dist/cjs/constants/assets.d.ts +17 -0
- package/dist/cjs/constants/assets.js +27 -0
- package/dist/cjs/constants/assets.js.map +1 -0
- package/dist/cjs/constants/compositions.d.ts +60 -0
- package/dist/cjs/constants/compositions.js +147 -0
- package/dist/cjs/constants/compositions.js.map +1 -0
- package/dist/cjs/constants/copy.d.ts +181 -0
- package/dist/cjs/constants/copy.js +194 -0
- package/dist/cjs/constants/copy.js.map +1 -0
- package/dist/cjs/constants/dnd.d.ts +1 -0
- package/dist/cjs/constants/dnd.js +7 -0
- package/dist/cjs/constants/dnd.js.map +1 -0
- package/dist/cjs/constants/icons.d.ts +59 -0
- package/dist/cjs/constants/icons.js +146 -0
- package/dist/cjs/constants/icons.js.map +1 -0
- package/dist/cjs/constants/player.d.ts +1 -0
- package/dist/cjs/constants/player.js +5 -0
- package/dist/cjs/constants/player.js.map +1 -0
- package/dist/cjs/constants/previewer.d.ts +1 -0
- package/dist/cjs/constants/previewer.js +9 -0
- package/dist/cjs/constants/previewer.js.map +1 -0
- package/dist/cjs/constants/variables.d.ts +13 -0
- package/dist/cjs/constants/variables.js +22 -0
- package/dist/cjs/constants/variables.js.map +1 -0
- package/dist/cjs/index.d.ts +94 -0
- package/dist/cjs/index.js +235 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces/experience.d.ts +30 -0
- package/dist/cjs/interfaces/experience.js +3 -0
- package/dist/cjs/interfaces/experience.js.map +1 -0
- package/dist/cjs/redux/actions/access.d.ts +16 -0
- package/dist/cjs/redux/actions/access.js +151 -0
- package/dist/cjs/redux/actions/access.js.map +1 -0
- package/dist/cjs/redux/actions/active-batch.d.ts +12 -0
- package/dist/cjs/redux/actions/active-batch.js +189 -0
- package/dist/cjs/redux/actions/active-batch.js.map +1 -0
- package/dist/cjs/redux/actions/asset-filters.d.ts +3 -0
- package/dist/cjs/redux/actions/asset-filters.js +11 -0
- package/dist/cjs/redux/actions/asset-filters.js.map +1 -0
- package/dist/cjs/redux/actions/asset-list.d.ts +11 -0
- package/dist/cjs/redux/actions/asset-list.js +156 -0
- package/dist/cjs/redux/actions/asset-list.js.map +1 -0
- package/dist/cjs/redux/actions/asset-tags.d.ts +5 -0
- package/dist/cjs/redux/actions/asset-tags.js +27 -0
- package/dist/cjs/redux/actions/asset-tags.js.map +1 -0
- package/dist/cjs/redux/actions/asset-uploads.d.ts +7 -0
- package/dist/cjs/redux/actions/asset-uploads.js +144 -0
- package/dist/cjs/redux/actions/asset-uploads.js.map +1 -0
- package/dist/cjs/redux/actions/auth.d.ts +9 -0
- package/dist/cjs/redux/actions/auth.js +30 -0
- package/dist/cjs/redux/actions/auth.js.map +1 -0
- package/dist/cjs/redux/actions/publish.d.ts +7 -0
- package/dist/cjs/redux/actions/publish.js +99 -0
- package/dist/cjs/redux/actions/publish.js.map +1 -0
- package/dist/cjs/redux/actions/selected-assets.d.ts +7 -0
- package/dist/cjs/redux/actions/selected-assets.js +52 -0
- package/dist/cjs/redux/actions/selected-assets.js.map +1 -0
- package/dist/cjs/redux/reducers/access.d.ts +2 -0
- package/dist/cjs/redux/reducers/access.js +61 -0
- package/dist/cjs/redux/reducers/access.js.map +1 -0
- package/dist/cjs/redux/reducers/active-batch.d.ts +2 -0
- package/dist/cjs/redux/reducers/active-batch.js +105 -0
- package/dist/cjs/redux/reducers/active-batch.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-filters.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-filters.js +38 -0
- package/dist/cjs/redux/reducers/asset-filters.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-list.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-list.js +93 -0
- package/dist/cjs/redux/reducers/asset-list.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-tags.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-tags.js +18 -0
- package/dist/cjs/redux/reducers/asset-tags.js.map +1 -0
- package/dist/cjs/redux/reducers/asset-uploads.d.ts +2 -0
- package/dist/cjs/redux/reducers/asset-uploads.js +72 -0
- package/dist/cjs/redux/reducers/asset-uploads.js.map +1 -0
- package/dist/cjs/redux/reducers/auth.d.ts +3 -0
- package/dist/cjs/redux/reducers/auth.js +67 -0
- package/dist/cjs/redux/reducers/auth.js.map +1 -0
- package/dist/cjs/redux/reducers/publish.d.ts +11 -0
- package/dist/cjs/redux/reducers/publish.js +35 -0
- package/dist/cjs/redux/reducers/publish.js.map +1 -0
- package/dist/cjs/redux/reducers/selected-assets.d.ts +2 -0
- package/dist/cjs/redux/reducers/selected-assets.js +51 -0
- package/dist/cjs/redux/reducers/selected-assets.js.map +1 -0
- package/dist/cjs/services/API-Legacy.d.ts +7 -0
- package/dist/cjs/services/API-Legacy.js +51 -0
- package/dist/cjs/services/API-Legacy.js.map +1 -0
- package/dist/cjs/services/API.d.ts +178 -0
- package/dist/cjs/services/API.js +997 -0
- package/dist/cjs/services/API.js.map +1 -0
- package/dist/cjs/services/Auth0.d.ts +18 -0
- package/dist/cjs/services/Auth0.js +102 -0
- package/dist/cjs/services/Auth0.js.map +1 -0
- package/dist/cjs/services/Session.d.ts +25 -0
- package/dist/cjs/services/Session.js +233 -0
- package/dist/cjs/services/Session.js.map +1 -0
- package/dist/cjs/services/Storage.d.ts +4 -0
- package/dist/cjs/services/Storage.js +55 -0
- package/dist/cjs/services/Storage.js.map +1 -0
- package/dist/cjs/services/Timer.d.ts +15 -0
- package/dist/cjs/services/Timer.js +26 -0
- package/dist/cjs/services/Timer.js.map +1 -0
- package/dist/cjs/utils/routing.d.ts +1 -0
- package/dist/cjs/utils/routing.js +17 -0
- package/dist/cjs/utils/routing.js.map +1 -0
- package/dist/cjs/utils/template-generator.d.ts +8 -0
- package/dist/cjs/utils/template-generator.js +36 -0
- package/dist/cjs/utils/template-generator.js.map +1 -0
- package/dist/styles.less +1586 -1586
- package/less/entry.less +36 -6
- package/package.json +50 -83
- package/{Util.ts → src/Util.ts} +3 -3
- package/{components → src/components}/Tooltip.tsx +1 -1
- package/{components → src/components}/asset-details/AssetDetails.tsx +2 -2
- package/{components → src/components}/assets/AssetsTableComplexTagCell.tsx +2 -2
- package/{components → src/components}/assets/AssetsTableDropzone.tsx +1 -1
- package/{components → src/components}/assets/AssetsTableNameFilter.tsx +1 -1
- package/{components → src/components}/assets/AssetsTablePreviewCell.tsx +4 -4
- package/{components → src/components}/assets/AssetsTableSelectCell.tsx +1 -1
- package/{components → src/components}/assets/AssetsTableSelectFilter.tsx +1 -1
- package/{components → src/components}/assets/AssetsTableTagsFilter.tsx +1 -1
- package/{components → src/components}/assets/AssetsTableTagsPivot.tsx +16 -6
- package/{components → src/components}/assets/AssetsUploadMenu.tsx +2 -2
- package/{components → src/components}/auth-gate/AuthGate.tsx +1 -1
- package/{components → src/components}/button/Button.tsx +1 -1
- package/{components → src/components}/button-group-field/ButtonGroupField.tsx +1 -1
- package/{components → src/components}/button-menu/ButtonMenuItem.tsx +1 -1
- package/{components → src/components}/checkbox-field/CheckboxField.tsx +1 -1
- package/{components → src/components}/compositions/TextLayer.tsx +2 -1
- package/{components → src/components}/controlled-list/ControlledList.tsx +1 -1
- package/{components → src/components}/data-table/DataTablePaginator.tsx +1 -1
- package/{components → src/components}/determinate-loader/DeterminateLoader.stories.tsx +1 -1
- package/{components → src/components}/determinate-loader/DeterminateLoader.tsx +2 -4
- package/{components → src/components}/modal/Modal.tsx +1 -1
- package/{components → src/components}/number-field/NumberField.tsx +2 -2
- package/{components → src/components}/players/TemplatePlayer.tsx +2 -2
- package/{components → src/components}/players/VideoPreview.tsx +1 -1
- package/{components → src/components}/publish-wizard/PublishWizard.tsx +2 -2
- package/{components → src/components}/publish-wizard/publish/EmailWorkflow.tsx +1 -1
- package/{components → src/components}/select-field/SelectField.tsx +1 -1
- package/{components → src/components}/service-icon/ServiceIcon.tsx +1 -1
- package/{components → src/components}/shortcut-menu/ShortcutMenu.stories.tsx +1 -6
- package/{components → src/components}/shortcut-menu/ShortcutMenu.tsx +2 -4
- package/{components → src/components}/text-field/TextField.tsx +1 -1
- package/{components → src/components}/toast-service/ToastService.tsx +6 -2
- package/{Entry.ts → src/index.ts} +3 -12
- package/{redux → src/redux}/actions/access.ts +0 -1
- package/{redux → src/redux}/actions/active-batch.ts +2 -5
- package/{redux → src/redux}/actions/asset-list.ts +4 -2
- package/{redux → src/redux}/actions/asset-uploads.ts +1 -1
- package/{redux → src/redux}/reducers/access.ts +1 -1
- package/{redux → src/redux}/reducers/auth.ts +1 -1
- package/{services → src/services}/Session.ts +1 -2
- package/tsconfig.json +19 -0
- package/components/button/Button.test.tsx +0 -0
- package/components/button-group-field/ButtonGroupField.test.tsx +0 -0
- package/components/button-menu/ButtonMenu.test.tsx +0 -0
- package/components/button-menu/ButtonMenuItem.test.tsx +0 -0
- package/components/card/Card.test.tsx +0 -0
- package/components/checkbox-field/CheckboxField.test.tsx +0 -0
- package/components/color-field/ColorField.test.tsx +0 -0
- package/components/compositions/CompositionRendererLayer.tsx +0 -197
- package/components/compositions/StaticCompositionConfig.tsx +0 -143
- package/components/compositions/StaticCompositionEditor.tsx +0 -96
- package/components/compositions/StaticCompositionRenderer.tsx +0 -121
- package/components/compositions/TextLayerOptions.tsx +0 -317
- package/components/controlled-list/ControlledList.test.tsx +0 -0
- package/components/data-table/DataTable.test.tsx +0 -0
- package/components/data-table/DataTablePaginator.test.tsx +0 -0
- package/components/determinate-loader/DeterminateLoader.test.tsx +0 -0
- package/components/dropdown/dropdown.test.tsx +0 -0
- package/components/field-wrapper/FieldWrapper.test.tsx +0 -0
- package/components/h-rule/HRule.test.tsx +0 -0
- package/components/header/Header.test.tsx +0 -119
- package/components/list-field/ListField.test.tsx +0 -0
- package/components/log-viewer/LogViewer.tsx +0 -97
- package/components/modal/Modal.test.tsx +0 -0
- package/components/no-access/NoAccess.test.tsx +0 -0
- package/components/number-field/NumberField.test.tsx +0 -0
- package/components/section/Section.test.tsx +0 -0
- package/components/select-field/SelectField.test.tsx +0 -0
- package/components/tabs/Tabs.test.tsx +0 -0
- package/components/text-area-field/TextAreaField.test.tsx +0 -0
- package/components/text-field/TextField.test.tsx +0 -0
- package/components/toast-service/ToastService.test.tsx +0 -0
- package/dist/components.js +0 -281
- package/dist/components.js.map +0 -1
- package/dist/styles.css +0 -2
- package/dist/styles.css.map +0 -1
- package/dist/styles.less.map +0 -1
- package/less/styles.less +0 -36
- /package/{components/Tag/Tag.test.tsx → dist/cjs/components/service-icon/ServiceIcon.test.d.ts} +0 -0
- /package/{components/app-wrapper/AppWrapper.test.tsx → dist/cjs/components/tag/Tag.test.d.ts} +0 -0
- /package/{components/auth-gate/AuthGate.test.tsx → src/components/Tag/Tag.test.tsx} +0 -0
- /package/{components → src/components}/Tag/Tag.tsx +0 -0
- /package/{components → src/components}/app-wrapper/AppWrapper.tsx +0 -0
- /package/{components → src/components}/assets/AssetField.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableDateCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableDurationCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableNameCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableStatusCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableTagsCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableTypeCell.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTableTypeFilter.tsx +0 -0
- /package/{components → src/components}/assets/AssetsTypeIcon.tsx +0 -0
- /package/{components → src/components}/assets/DataTableDnDWrapper.tsx +0 -0
- /package/{components → src/components}/assets/DroppableAssetRenderer.tsx +0 -0
- /package/{components → src/components}/assets/FontAssetPreview.tsx +0 -0
- /package/{components → src/components}/assets/PreviewNotAvailable.tsx +0 -0
- /package/{components → src/components}/button/Button.stories.tsx +0 -0
- /package/{components → src/components}/button-group-field/ButtonGroupField.stories.tsx +0 -0
- /package/{components → src/components}/button-menu/ButtonMenu.stories.tsx +0 -0
- /package/{components → src/components}/button-menu/ButtonMenu.tsx +0 -0
- /package/{components → src/components}/card/Card.stories.tsx +0 -0
- /package/{components → src/components}/card/Card.tsx +0 -0
- /package/{components → src/components}/checkbox-field/CheckboxField.stories.tsx +0 -0
- /package/{components → src/components}/color-field/ColorField.tsx +0 -0
- /package/{components → src/components}/color-field/ColorFiled.stories.tsx +0 -0
- /package/{components → src/components}/controlled-list/ControlledList.stories.tsx +0 -0
- /package/{components → src/components}/data-table/DataTable.tsx +0 -0
- /package/{components → src/components}/data-table/Paginator.tsx +0 -0
- /package/{components → src/components}/dropdown/dropdown.stories.tsx +0 -0
- /package/{components → src/components}/dropdown/dropdown.tsx +0 -0
- /package/{components → src/components}/field-wrapper/FieldWrapper.stories.tsx +0 -0
- /package/{components → src/components}/field-wrapper/FieldWrapper.tsx +0 -0
- /package/{components → src/components}/h-rule/HRule.stories.tsx +0 -0
- /package/{components → src/components}/h-rule/HRule.tsx +0 -0
- /package/{components → src/components}/header/Header.tsx +0 -0
- /package/{components → src/components}/list-field/ListField.stories.tsx +0 -0
- /package/{components → src/components}/list-field/ListField.tsx +0 -0
- /package/{components/dropdown → src/components}/log-viewer/LogViewer.tsx +0 -0
- /package/{components → src/components}/media-variable-field/MediaVariableField.tsx +0 -0
- /package/{components → src/components}/modal/Modal.stories.tsx +0 -0
- /package/{components → src/components}/no-access/NoAccess.tsx +0 -0
- /package/{components → src/components}/number-field/NumberField.stories.tsx +0 -0
- /package/{components → src/components}/players/AudioPlayer.tsx +0 -0
- /package/{components → src/components}/players/ImagePlayer.tsx +0 -0
- /package/{components → src/components}/players/ImagePreview.tsx +0 -0
- /package/{components → src/components}/players/ImageSequencePlayer.tsx +0 -0
- /package/{components → src/components}/players/VideoPlayer.tsx +0 -0
- /package/{components → src/components}/portal/Portal.tsx +0 -0
- /package/{components → src/components}/publish-wizard/publish/APIIntegration.tsx +0 -0
- /package/{components → src/components}/publish-wizard/publish/HubSpotFlow.tsx +0 -0
- /package/{components → src/components}/publish-wizard/publish/PublishStatusIndicator.tsx +0 -0
- /package/{components → src/components}/publish-wizard/publish/WebpageHosted.tsx +0 -0
- /package/{components → src/components}/section/Section.stories.tsx +0 -0
- /package/{components → src/components}/section/Section.tsx +0 -0
- /package/{components → src/components}/select-field/SelectField.stories.tsx +0 -0
- /package/{components → src/components}/service-icon/ServiceIcon.test.tsx +0 -0
- /package/{components → src/components}/slider-field/SliderField.stories.tsx +0 -0
- /package/{components → src/components}/slider-field/SliderField.tsx +0 -0
- /package/{components → src/components}/spinner/Spinner.tsx +0 -0
- /package/{components → src/components}/story-previewer/StoryPreviewer.tsx +0 -0
- /package/{components → src/components}/tabs/Tabs.stories.tsx +0 -0
- /package/{components → src/components}/tabs/Tabs.tsx +0 -0
- /package/{components → src/components}/text-area-field/TextAreaField.stories.tsx +0 -0
- /package/{components → src/components}/text-area-field/TextAreaField.tsx +0 -0
- /package/{components → src/components}/text-field/TextField.stories.tsx +0 -0
- /package/{constants → src/constants}/api.ts +0 -0
- /package/{constants → src/constants}/assets.ts +0 -0
- /package/{constants → src/constants}/compositions.ts +0 -0
- /package/{constants → src/constants}/copy.ts +0 -0
- /package/{constants → src/constants}/dnd.ts +0 -0
- /package/{constants → src/constants}/icons.tsx +0 -0
- /package/{constants → src/constants}/player.ts +0 -0
- /package/{constants → src/constants}/previewer.ts +0 -0
- /package/{constants → src/constants}/variables.ts +0 -0
- /package/{interfaces → src/interfaces}/experience.ts +0 -0
- /package/{redux → src/redux}/actions/asset-filters.ts +0 -0
- /package/{redux → src/redux}/actions/asset-tags.ts +0 -0
- /package/{redux → src/redux}/actions/auth.ts +0 -0
- /package/{redux → src/redux}/actions/publish.ts +0 -0
- /package/{redux → src/redux}/actions/selected-assets.ts +0 -0
- /package/{redux → src/redux}/reducers/active-batch.ts +0 -0
- /package/{redux → src/redux}/reducers/asset-filters.ts +0 -0
- /package/{redux → src/redux}/reducers/asset-list.ts +0 -0
- /package/{redux → src/redux}/reducers/asset-tags.ts +0 -0
- /package/{redux → src/redux}/reducers/asset-uploads.ts +0 -0
- /package/{redux → src/redux}/reducers/publish.ts +0 -0
- /package/{redux → src/redux}/reducers/selected-assets.ts +0 -0
- /package/{services → src/services}/API-Legacy.ts +0 -0
- /package/{services → src/services}/API.ts +0 -0
- /package/{services → src/services}/Auth0.ts +0 -0
- /package/{services → src/services}/Storage.ts +0 -0
- /package/{services → src/services}/Timer.ts +0 -0
- /package/{utils → src/utils}/routing.ts +0 -0
- /package/{utils → src/utils}/template-generator.ts +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
var React = __importStar(require("react"));
|
|
45
|
+
var FieldWrapper_1 = __importDefault(require("../field-wrapper/FieldWrapper"));
|
|
46
|
+
var NumberField = /** @class */ (function (_super) {
|
|
47
|
+
__extends(NumberField, _super);
|
|
48
|
+
function NumberField(props) {
|
|
49
|
+
var _this = _super.call(this, props) || this;
|
|
50
|
+
_this.inputRef = React.createRef();
|
|
51
|
+
return _this;
|
|
52
|
+
}
|
|
53
|
+
NumberField.prototype.onChange = function (e) {
|
|
54
|
+
// return null vs an empty string
|
|
55
|
+
var val = e.target.value;
|
|
56
|
+
if (val === '') {
|
|
57
|
+
val = null;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
val = parseFloat(val);
|
|
61
|
+
}
|
|
62
|
+
this.props.onChange(val);
|
|
63
|
+
};
|
|
64
|
+
NumberField.prototype.onSelectFocus = function () {
|
|
65
|
+
// if (this.props.value && this.inputRef.current) {
|
|
66
|
+
// this.inputRef.current.setSelectionRange(0, this.props.value.toString().length);
|
|
67
|
+
// }
|
|
68
|
+
};
|
|
69
|
+
NumberField.prototype.onSelectBlur = function () {
|
|
70
|
+
// if (this.inputRef.current) {
|
|
71
|
+
// this.inputRef.current.setSelectionRange(0, 0);
|
|
72
|
+
// }
|
|
73
|
+
};
|
|
74
|
+
NumberField.prototype.handleLabelDrag = function (v) {
|
|
75
|
+
var newVal = this.props.value + v;
|
|
76
|
+
this.props.onChange(newVal);
|
|
77
|
+
};
|
|
78
|
+
NumberField.prototype.render = function () {
|
|
79
|
+
var _this = this;
|
|
80
|
+
var _a = this.props, label = _a.label, placeholder = _a.placeholder, width = _a.width, readOnly = _a.readOnly, buttons = _a.buttons, tooltip = _a.tooltip, info = _a.info, labelPosition = _a.labelPosition, min = _a.min, max = _a.max;
|
|
81
|
+
var value = this.props.value;
|
|
82
|
+
if (value === null) {
|
|
83
|
+
value = '';
|
|
84
|
+
}
|
|
85
|
+
return React.createElement(FieldWrapper_1.default, { customClass: 'number-field',
|
|
86
|
+
// draggableValue = {true}
|
|
87
|
+
// onDrag = {(v)=>this.handleLabelDrag(v)}
|
|
88
|
+
label: label, tooltip: tooltip, buttons: buttons, info: info, labelPosition: labelPosition, width: width },
|
|
89
|
+
React.createElement("input", { ref: this.inputRef, type: 'number', pattern: '/^-?(0|[1-9]d*)(.d+)?$/', placeholder: placeholder, value: value, readOnly: readOnly, min: min, max: max, onFocus: function () { return _this.onSelectFocus(); }, onBlur: function () { return _this.onSelectBlur(); }, onChange: function (e) { return _this.onChange(e); } }));
|
|
90
|
+
};
|
|
91
|
+
return NumberField;
|
|
92
|
+
}(React.PureComponent));
|
|
93
|
+
exports.default = NumberField;
|
|
94
|
+
//# sourceMappingURL=NumberField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.js","sourceRoot":"","sources":["../../../../src/components/number-field/NumberField.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,+EAAyD;AAkBzD;IAA0B,+BAAsC;IAI5D,qBAAY,KAAK;QAAjB,YAEI,kBAAM,KAAK,CAAC,SAGf;QADG,KAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;;IACtC,CAAC;IAEO,8BAAQ,GAAhB,UAAiB,CAAC;QAEd,iCAAiC;QACjC,IAAI,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;QACzB,IAAI,GAAG,KAAK,EAAE,EAAE;YACZ,GAAG,GAAG,IAAI,CAAC;SACd;aAAM;YACH,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;SACzB;QAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEO,mCAAa,GAArB;QAEI,mDAAmD;QACnD,sFAAsF;QACtF,IAAI;IACR,CAAC;IAEO,kCAAY,GAApB;QAEI,+BAA+B;QAC/B,qDAAqD;QACrD,IAAI;IACR,CAAC;IAEO,qCAAe,GAAvB,UAAwB,CAAU;QAE9B,IAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAEM,4BAAM,GAAb;QAAA,iBA6BC;QA3BS,IAAA,KAAyF,IAAI,CAAC,KAAK,EAAlG,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,OAAO,aAAA,EAAE,IAAI,UAAA,EAAE,aAAa,mBAAA,EAAE,GAAG,SAAA,EAAE,GAAG,SAAc,CAAC;QAC1G,IAAI,KAAK,GAAS,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;QACnC,IAAI,KAAK,KAAK,IAAI,EAAE;YAAE,KAAK,GAAG,EAAE,CAAC;SAAE;QAEnC,OAAO,oBAAC,sBAAY,IAChB,WAAW,EAAG,cAAc;YAC5B,0BAA0B;YAC1B,0CAA0C;YAC1C,KAAK,EAAI,KAAK,EACd,OAAO,EAAI,OAAO,EAClB,OAAO,EAAI,OAAO,EAClB,IAAI,EAAI,IAAI,EACZ,aAAa,EAAI,aAAa,EAC9B,KAAK,EAAI,KAAK;YACd,+BACI,GAAG,EAAI,IAAI,CAAC,QAAQ,EACpB,IAAI,EAAG,QAAQ,EACf,OAAO,EAAE,yBAA4B,EACrC,WAAW,EAAI,WAAW,EAC1B,KAAK,EAAI,KAAK,EACd,QAAQ,EAAI,QAAQ,EACpB,GAAG,EAAI,GAAG,EACV,GAAG,EAAI,GAAG,EACV,OAAO,EAAI,cAAM,OAAA,KAAI,CAAC,aAAa,EAAE,EAApB,CAAoB,EACrC,MAAM,EAAI,cAAM,OAAA,KAAI,CAAC,YAAY,EAAE,EAAnB,CAAmB,EACnC,QAAQ,EAAI,UAAC,CAAC,IAAK,OAAA,KAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAhB,CAAgB,GAAI,CAChC,CAAC;IACpB,CAAC;IACL,kBAAC;AAAD,CAAC,AA1ED,CAA0B,KAAK,CAAC,aAAa,GA0E5C;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
26
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27
|
+
if (!m) return o;
|
|
28
|
+
var i = m.call(o), r, ar = [], e;
|
|
29
|
+
try {
|
|
30
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
31
|
+
}
|
|
32
|
+
catch (error) { e = { error: error }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e) throw e.error; }
|
|
38
|
+
}
|
|
39
|
+
return ar;
|
|
40
|
+
};
|
|
41
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
42
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.defaultNumberField = void 0;
|
|
46
|
+
var React = __importStar(require("react"));
|
|
47
|
+
var NumberField_1 = __importDefault(require("./NumberField"));
|
|
48
|
+
exports.default = {
|
|
49
|
+
title: 'NumberField',
|
|
50
|
+
component: NumberField_1.default
|
|
51
|
+
};
|
|
52
|
+
var defaultNumberField = function () {
|
|
53
|
+
var _a = __read(React.useState(0), 2), number = _a[0], setNumber = _a[1];
|
|
54
|
+
var handleChange = function (e) {
|
|
55
|
+
if (e.target.value) {
|
|
56
|
+
setNumber(e.target.value);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return (React.createElement(NumberField_1.default, { label: 'Number Field', tooltip: 'TOOLTIP', width: '33%', value: number, onChange: handleChange }));
|
|
60
|
+
};
|
|
61
|
+
exports.defaultNumberField = defaultNumberField;
|
|
62
|
+
//# sourceMappingURL=NumberField.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.stories.js","sourceRoot":"","sources":["../../../../src/components/number-field/NumberField.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,8DAAwC;AAGxC,kBAAe;IACX,KAAK,EAAE,aAAa;IACpB,SAAS,EAAE,qBAAW;CACzB,CAAC;AAiBK,IAAM,kBAAkB,GAAG;IACxB,IAAA,KAAA,OAAwB,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,EAAvC,MAAM,QAAA,EAAE,SAAS,QAAsB,CAAC;IAEhD,IAAM,YAAY,GAAG,UAAC,CAAC;QACnB,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE;YAChB,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC7B;IACL,CAAC,CAAC;IAEF,OAAO,CACH,oBAAC,qBAAW,IACR,KAAK,EAAI,cAAc,EACvB,OAAO,EAAI,SAAS,EACpB,KAAK,EAAG,KAAK,EACb,KAAK,EAAI,MAAM,EACf,QAAQ,EAAI,YAAY,GACtB,CACT,CAAC;AACN,CAAC,CAAC;AAlBW,QAAA,kBAAkB,sBAkB7B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IImagePlayerProps {
|
|
3
|
+
url: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
padding?: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare class ImagePlayer extends React.PureComponent<IImagePlayerProps, undefined> {
|
|
10
|
+
private audioNode;
|
|
11
|
+
private width;
|
|
12
|
+
private height;
|
|
13
|
+
constructor(props: any);
|
|
14
|
+
getImageStyle(): any;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export default ImagePlayer;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
var React = __importStar(require("react"));
|
|
42
|
+
var player_1 = require("../../constants/player");
|
|
43
|
+
var VideoPlayer_1 = require("./VideoPlayer");
|
|
44
|
+
var ImagePlayer = /** @class */ (function (_super) {
|
|
45
|
+
__extends(ImagePlayer, _super);
|
|
46
|
+
function ImagePlayer(props) {
|
|
47
|
+
var _this = _super.call(this, props) || this;
|
|
48
|
+
_this.width = 1280;
|
|
49
|
+
_this.height = 720;
|
|
50
|
+
_this.audioNode = React.createRef();
|
|
51
|
+
return _this;
|
|
52
|
+
}
|
|
53
|
+
ImagePlayer.prototype.getImageStyle = function () {
|
|
54
|
+
var _a = this.props, padding = _a.padding, width = _a.width, height = _a.height;
|
|
55
|
+
var pad = (padding !== undefined) ? padding : player_1.DEFAULT_PADDING;
|
|
56
|
+
return (0, VideoPlayer_1.getPlayerStyle)(width, height, this.width, this.height, pad);
|
|
57
|
+
};
|
|
58
|
+
ImagePlayer.prototype.render = function () {
|
|
59
|
+
var _a = this.props, url = _a.url, active = _a.active;
|
|
60
|
+
if (active !== false) {
|
|
61
|
+
return (React.createElement("div", { className: 'media-player' },
|
|
62
|
+
React.createElement("div", { className: 'inner-viewer', style: this.getImageStyle() },
|
|
63
|
+
React.createElement("audio", { controls: true, src: url, ref: this.audioNode }))));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return ImagePlayer;
|
|
70
|
+
}(React.PureComponent));
|
|
71
|
+
exports.default = ImagePlayer;
|
|
72
|
+
//# sourceMappingURL=AudioPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioPlayer.js","sourceRoot":"","sources":["../../../../src/components/players/AudioPlayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,iDAAyD;AACzD,6CAA+C;AAU/C;IAA0B,+BAAiD;IAMvE,qBAAY,KAAK;QAAjB,YAEI,kBAAM,KAAK,CAAC,SAGf;QARO,WAAK,GAAG,IAAI,CAAC;QACb,YAAM,GAAG,GAAG,CAAC;QAMjB,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;;IACvC,CAAC;IAEM,mCAAa,GAApB;QAEU,IAAA,KAA2B,IAAI,CAAC,KAAK,EAApC,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAc,CAAC;QAC5C,IAAM,GAAG,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAe,CAAC;QAEhE,OAAO,IAAA,4BAAc,EAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvE,CAAC;IAEM,4BAAM,GAAb;QAEU,IAAA,KAAgB,IAAI,CAAC,KAAK,EAAzB,GAAG,SAAA,EAAE,MAAM,YAAc,CAAC;QAEjC,IAAI,MAAM,KAAK,KAAK,EAAE;YAClB,OAAO,CACH,6BAAK,SAAS,EAAG,cAAc;gBAC3B,6BAAK,SAAS,EAAG,cAAc,EAAC,KAAK,EAAI,IAAI,CAAC,aAAa,EAAE;oBACzD,+BAAO,QAAQ,QAAC,GAAG,EAAI,GAAG,EAAE,GAAG,EAAI,IAAI,CAAC,SAAS,GAAG,CAClD,CACJ,CACT,CAAC;SACL;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AArCD,CAA0B,KAAK,CAAC,aAAa,GAqC5C;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IImagePlayerProps {
|
|
3
|
+
url: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
padding?: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface IImagePlayerState {
|
|
10
|
+
imageWidth: number;
|
|
11
|
+
imageHeight: number;
|
|
12
|
+
}
|
|
13
|
+
declare class ImagePlayer extends React.PureComponent<IImagePlayerProps, IImagePlayerState> {
|
|
14
|
+
private imgNode;
|
|
15
|
+
constructor(props: any);
|
|
16
|
+
getImageStyle(): any;
|
|
17
|
+
private metadataLoaded;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default ImagePlayer;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
var React = __importStar(require("react"));
|
|
42
|
+
var player_1 = require("../../constants/player");
|
|
43
|
+
var VideoPlayer_1 = require("./VideoPlayer");
|
|
44
|
+
var ImagePlayer = /** @class */ (function (_super) {
|
|
45
|
+
__extends(ImagePlayer, _super);
|
|
46
|
+
function ImagePlayer(props) {
|
|
47
|
+
var _this = _super.call(this, props) || this;
|
|
48
|
+
_this.state = {
|
|
49
|
+
imageHeight: 1080,
|
|
50
|
+
imageWidth: 1920
|
|
51
|
+
};
|
|
52
|
+
_this.imgNode = React.createRef();
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
ImagePlayer.prototype.getImageStyle = function () {
|
|
56
|
+
var _a = this.state, imageHeight = _a.imageHeight, imageWidth = _a.imageWidth;
|
|
57
|
+
var _b = this.props, padding = _b.padding, width = _b.width, height = _b.height;
|
|
58
|
+
var pad = (padding !== undefined) ? padding : player_1.DEFAULT_PADDING;
|
|
59
|
+
if (imageHeight && imageWidth) {
|
|
60
|
+
return (0, VideoPlayer_1.getPlayerStyle)(width, height, imageWidth, imageHeight, pad, imageWidth, imageHeight);
|
|
61
|
+
}
|
|
62
|
+
return {};
|
|
63
|
+
};
|
|
64
|
+
ImagePlayer.prototype.metadataLoaded = function (e) {
|
|
65
|
+
this.setState({
|
|
66
|
+
imageWidth: e.target.naturalWidth,
|
|
67
|
+
imageHeight: e.target.naturalHeight
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
ImagePlayer.prototype.render = function () {
|
|
71
|
+
var _this = this;
|
|
72
|
+
var _a = this.props, url = _a.url, active = _a.active;
|
|
73
|
+
if (active !== false) {
|
|
74
|
+
return (React.createElement("div", { className: 'media-player' },
|
|
75
|
+
React.createElement("div", { className: 'inner-viewer', style: this.getImageStyle() },
|
|
76
|
+
React.createElement("img", { onLoad: function (e) { return _this.metadataLoaded(e); }, src: url, ref: this.imgNode }))));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
return ImagePlayer;
|
|
83
|
+
}(React.PureComponent));
|
|
84
|
+
exports.default = ImagePlayer;
|
|
85
|
+
//# sourceMappingURL=ImagePlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagePlayer.js","sourceRoot":"","sources":["../../../../src/components/players/ImagePlayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,iDAAyD;AACzD,6CAA+C;AAe/C;IAA0B,+BAAyD;IAI/E,qBAAY,KAAK;QAAjB,YAEI,kBAAM,KAAK,CAAC,SAQf;QANG,KAAI,CAAC,KAAK,GAAG;YACT,WAAW,EAAG,IAAI;YAClB,UAAU,EAAG,IAAI;SACpB,CAAC;QAEF,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;;IACrC,CAAC;IAEM,mCAAa,GAApB;QAEU,IAAA,KAA4B,IAAI,CAAC,KAAK,EAArC,WAAW,iBAAA,EAAE,UAAU,gBAAc,CAAC;QACvC,IAAA,KAA2B,IAAI,CAAC,KAAK,EAApC,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAc,CAAC;QAC5C,IAAM,GAAG,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAe,CAAC;QAEhE,IAAI,WAAW,IAAI,UAAU,EAAE;YAC3B,OAAO,IAAA,4BAAc,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;SAC/F;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAEO,oCAAc,GAAtB,UAAuB,CAAC;QAEpB,IAAI,CAAC,QAAQ,CAAC;YACV,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY;YACjC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa;SACtC,CAAC,CAAC;IACP,CAAC;IAEM,4BAAM,GAAb;QAAA,iBAeC;QAbS,IAAA,KAAgB,IAAI,CAAC,KAAK,EAAzB,GAAG,SAAA,EAAE,MAAM,YAAc,CAAC;QAEjC,IAAI,MAAM,KAAK,KAAK,EAAE;YAClB,OAAO,CACH,6BAAK,SAAS,EAAG,cAAc;gBAC3B,6BAAK,SAAS,EAAG,cAAc,EAAC,KAAK,EAAI,IAAI,CAAC,aAAa,EAAE;oBACzD,6BAAK,MAAM,EAAI,UAAC,CAAC,IAAK,OAAA,KAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAtB,CAAsB,EAAE,GAAG,EAAI,GAAG,EAAE,GAAG,EAAI,IAAI,CAAC,OAAO,GAAG,CAC9E,CACJ,CACT,CAAC;SACL;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IACL,kBAAC;AAAD,CAAC,AArDD,CAA0B,KAAK,CAAC,aAAa,GAqD5C;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IImagePreviewProps {
|
|
3
|
+
showMedia: boolean;
|
|
4
|
+
url: string;
|
|
5
|
+
playbackSettings?: any;
|
|
6
|
+
style?: React.CSSProperties | any;
|
|
7
|
+
onRequestClose?(e: any): void;
|
|
8
|
+
}
|
|
9
|
+
interface IImagePreviewState {
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare class ImagePreview extends React.PureComponent<IImagePreviewProps, IImagePreviewState> {
|
|
13
|
+
private imageNode;
|
|
14
|
+
private evtHandlers;
|
|
15
|
+
constructor(props: any);
|
|
16
|
+
private onClose;
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export default ImagePreview;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(o, k2, desc);
|
|
35
|
+
}) : (function(o, m, k, k2) {
|
|
36
|
+
if (k2 === undefined) k2 = k;
|
|
37
|
+
o[k2] = m[k];
|
|
38
|
+
}));
|
|
39
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
40
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
41
|
+
}) : function(o, v) {
|
|
42
|
+
o["default"] = v;
|
|
43
|
+
});
|
|
44
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
45
|
+
if (mod && mod.__esModule) return mod;
|
|
46
|
+
var result = {};
|
|
47
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
48
|
+
__setModuleDefault(result, mod);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
52
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
53
|
+
};
|
|
54
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
+
var React = __importStar(require("react"));
|
|
56
|
+
var Portal_1 = __importDefault(require("../portal/Portal"));
|
|
57
|
+
var icons_1 = require("../../constants/icons");
|
|
58
|
+
var Button_1 = __importDefault(require("../button/Button"));
|
|
59
|
+
var copy_1 = require("../../constants/copy");
|
|
60
|
+
var ImagePreview = /** @class */ (function (_super) {
|
|
61
|
+
__extends(ImagePreview, _super);
|
|
62
|
+
function ImagePreview(props) {
|
|
63
|
+
var _this = _super.call(this, props) || this;
|
|
64
|
+
_this.imageNode = null;
|
|
65
|
+
_this.imageNode = React.createRef();
|
|
66
|
+
_this.evtHandlers = {
|
|
67
|
+
onClose: function (e) { return _this.onClose(e); }
|
|
68
|
+
};
|
|
69
|
+
_this.state = {
|
|
70
|
+
loaded: false
|
|
71
|
+
};
|
|
72
|
+
return _this;
|
|
73
|
+
}
|
|
74
|
+
ImagePreview.prototype.onClose = function (e) {
|
|
75
|
+
var onRequestClose = this.props.onRequestClose;
|
|
76
|
+
onRequestClose(e);
|
|
77
|
+
};
|
|
78
|
+
ImagePreview.prototype.render = function () {
|
|
79
|
+
var _this = this;
|
|
80
|
+
var _a = this.props, showMedia = _a.showMedia, url = _a.url, style = _a.style;
|
|
81
|
+
var loaded = this.state.loaded;
|
|
82
|
+
if (showMedia) {
|
|
83
|
+
return (React.createElement(Portal_1.default, { id: 'portal-root' },
|
|
84
|
+
React.createElement("div", { style: __assign({}, style), className: 'close-icon-preview' },
|
|
85
|
+
React.createElement(Button_1.default, { key: 'btn-filter', onClick: this.evtHandlers.onClose, size: 'large', style: 'subtle', tooltip: copy_1.assets.field.tooltipFilter }, icons_1.ICON_TIMES)),
|
|
86
|
+
React.createElement("img", { onLoad: function () { return _this.setState({ loaded: true }); }, src: url, ref: this.imageNode, className: "media-preview ".concat(!loaded ? 'hidden' : ''), style: style })));
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
return ImagePreview;
|
|
93
|
+
}(React.PureComponent));
|
|
94
|
+
exports.default = ImagePreview;
|
|
95
|
+
//# sourceMappingURL=ImagePreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagePreview.js","sourceRoot":"","sources":["../../../../src/components/players/ImagePreview.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,4DAAsC;AACtC,+CAAiD;AACjD,4DAAsC;AACtC,6CAAoD;AAapD;IAA2B,gCAA2D;IAGlF,sBAAY,KAAK;QAAjB,YACI,kBAAM,KAAK,CAAC,SAQf;QAXO,eAAS,GAAS,IAAI,CAAC;QAI3B,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;QACnC,KAAI,CAAC,WAAW,GAAG;YACf,OAAO,EAAE,UAAC,CAAC,IAAK,OAAA,KAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAf,CAAe;SAClC,CAAC;QACF,KAAI,CAAC,KAAK,GAAG;YACT,MAAM,EAAE,KAAK;SAChB,CAAC;;IACN,CAAC;IAEO,8BAAO,GAAf,UAAgB,CAAC;QAEN,IAAA,cAAc,GAAI,IAAI,CAAC,KAAK,eAAd,CAAe;QAEpC,cAAc,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;IAEM,6BAAM,GAAb;QAAA,iBA8BC;QA7BS,IAAA,KAA0B,IAAI,CAAC,KAAK,EAAnC,SAAS,eAAA,EAAE,GAAG,SAAA,EAAE,KAAK,WAAc,CAAC;QACpC,IAAA,MAAM,GAAI,IAAI,CAAC,KAAK,OAAd,CAAe;QAE5B,IAAI,SAAS,EAAE;YACX,OAAO,CACH,oBAAC,gBAAM,IAAC,EAAE,EAAC,aAAa;gBACpB,6BAAK,KAAK,eAAM,KAAK,GAAG,SAAS,EAAE,oBAAoB;oBAC/C,oBAAC,gBAAM,IACH,GAAG,EAAG,YAAY,EAClB,OAAO,EAAI,IAAI,CAAC,WAAW,CAAC,OAAO,EACnC,IAAI,EAAE,OAAO,EACb,KAAK,EAAG,QAAQ,EAChB,OAAO,EAAI,aAAI,CAAC,KAAK,CAAC,aAAa,IAElC,kBAAU,CACN,CACX;gBACN,6BACI,MAAM,EAAI,cAAM,OAAA,KAAI,CAAC,QAAQ,CAAC,EAAC,MAAM,EAAE,IAAI,EAAC,CAAC,EAA7B,CAA6B,EAC7C,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,IAAI,CAAC,SAAS,EACnB,SAAS,EAAE,wBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAE,EACrD,KAAK,EAAE,KAAK,GACd,CACG,CACZ,CAAC;SACL;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AApDD,CAA2B,KAAK,CAAC,aAAa,GAoD7C;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IImageSequencePlayerProps {
|
|
3
|
+
url: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
padding?: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface IImageSequencePlayerState {
|
|
10
|
+
imageWidth: number;
|
|
11
|
+
imageHeight: number;
|
|
12
|
+
}
|
|
13
|
+
declare class ImageSequencePlayer extends React.PureComponent<IImageSequencePlayerProps, IImageSequencePlayerState> {
|
|
14
|
+
private imgNode;
|
|
15
|
+
constructor(props: any);
|
|
16
|
+
getImageStyle(): any;
|
|
17
|
+
private metadataLoaded;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default ImageSequencePlayer;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
var React = __importStar(require("react"));
|
|
42
|
+
var player_1 = require("../../constants/player");
|
|
43
|
+
var VideoPlayer_1 = require("./VideoPlayer");
|
|
44
|
+
var ImageSequencePlayer = /** @class */ (function (_super) {
|
|
45
|
+
__extends(ImageSequencePlayer, _super);
|
|
46
|
+
function ImageSequencePlayer(props) {
|
|
47
|
+
var _this = _super.call(this, props) || this;
|
|
48
|
+
_this.state = {
|
|
49
|
+
imageHeight: 1080,
|
|
50
|
+
imageWidth: 1920
|
|
51
|
+
};
|
|
52
|
+
_this.imgNode = React.createRef();
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
ImageSequencePlayer.prototype.getImageStyle = function () {
|
|
56
|
+
var _a = this.state, imageHeight = _a.imageHeight, imageWidth = _a.imageWidth;
|
|
57
|
+
var _b = this.props, padding = _b.padding, width = _b.width, height = _b.height;
|
|
58
|
+
var pad = (padding !== undefined) ? padding : player_1.DEFAULT_PADDING;
|
|
59
|
+
if (imageHeight && imageWidth) {
|
|
60
|
+
return (0, VideoPlayer_1.getPlayerStyle)(width, height, imageWidth, imageHeight, pad);
|
|
61
|
+
}
|
|
62
|
+
return {};
|
|
63
|
+
};
|
|
64
|
+
ImageSequencePlayer.prototype.metadataLoaded = function (e) {
|
|
65
|
+
this.setState({
|
|
66
|
+
imageWidth: e.target.naturalWidth,
|
|
67
|
+
imageHeight: e.target.naturalHeight
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
ImageSequencePlayer.prototype.render = function () {
|
|
71
|
+
var _a = this.props, url = _a.url, active = _a.active;
|
|
72
|
+
if (active !== false) {
|
|
73
|
+
return (React.createElement("div", { className: 'mediap-player' },
|
|
74
|
+
React.createElement("div", { className: 'inner-viewer', style: this.getImageStyle() })));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return ImageSequencePlayer;
|
|
81
|
+
}(React.PureComponent));
|
|
82
|
+
exports.default = ImageSequencePlayer;
|
|
83
|
+
//# sourceMappingURL=ImageSequencePlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageSequencePlayer.js","sourceRoot":"","sources":["../../../../src/components/players/ImageSequencePlayer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,iDAAyD;AACzD,6CAA+C;AAe/C;IAAkC,uCAAyE;IAIvG,6BAAY,KAAK;QAAjB,YAEI,kBAAM,KAAK,CAAC,SAQf;QANG,KAAI,CAAC,KAAK,GAAG;YACT,WAAW,EAAG,IAAI;YAClB,UAAU,EAAG,IAAI;SACpB,CAAC;QAEF,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;;IACrC,CAAC;IAEM,2CAAa,GAApB;QAEU,IAAA,KAA4B,IAAI,CAAC,KAAK,EAArC,WAAW,iBAAA,EAAE,UAAU,gBAAc,CAAC;QACvC,IAAA,KAA2B,IAAI,CAAC,KAAK,EAApC,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAAc,CAAC;QAC5C,IAAM,GAAG,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAe,CAAC;QAEhE,IAAI,WAAW,IAAI,UAAU,EAAE;YAC3B,OAAO,IAAA,4BAAc,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC;SACtE;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAEO,4CAAc,GAAtB,UAAuB,CAAC;QAEpB,IAAI,CAAC,QAAQ,CAAC;YACV,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY;YACjC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa;SACtC,CAAC,CAAC;IACP,CAAC;IAEM,oCAAM,GAAb;QAEU,IAAA,KAAgB,IAAI,CAAC,KAAK,EAAzB,GAAG,SAAA,EAAE,MAAM,YAAc,CAAC;QAEjC,IAAI,MAAM,KAAK,KAAK,EAAE;YAClB,OAAO,CACH,6BAAK,SAAS,EAAG,eAAe;gBAC5B,6BAAK,SAAS,EAAG,cAAc,EAAC,KAAK,EAAI,IAAI,CAAC,aAAa,EAAE,GAEvD,CACJ,CACT,CAAC;SACL;aAAM;YACH,OAAO,IAAI,CAAC;SACf;IACL,CAAC;IACL,0BAAC;AAAD,CAAC,AArDD,CAAkC,KAAK,CAAC,aAAa,GAqDpD;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ITemplatePlayerProps {
|
|
3
|
+
url: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
padding?: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare class TemplatePlayer extends React.PureComponent<ITemplatePlayerProps, undefined> {
|
|
10
|
+
private audioNode;
|
|
11
|
+
private width;
|
|
12
|
+
private height;
|
|
13
|
+
constructor(props: any);
|
|
14
|
+
getImageStyle(): any;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
17
|
+
export default TemplatePlayer;
|