@brightspot/ui 3.0.1-cms-ui-migration.1 → 3.0.1-cms-ui-migration.3
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 +54 -35
- package/dist/custom-elements.json +2536 -2536
- package/dist/storybook/assets/{ActionBar.stories-BhdqLyzJ.js → ActionBar.stories-CSxtZl7v.js} +1 -1
- package/dist/storybook/assets/{ActionItem.stories-17zjMCkO.js → ActionItem.stories-BWcMRMP3.js} +1 -1
- package/dist/storybook/assets/{Avatar.stories-C5m3-zOH.js → Avatar.stories-CYTUGXzH.js} +1 -1
- package/dist/storybook/assets/{AvatarGroup.stories-DE88PJ6w.js → AvatarGroup.stories-CSYBYo_5.js} +1 -1
- package/dist/storybook/assets/{Badge.stories-D905HmvO.js → Badge.stories-LuF4BuVr.js} +1 -1
- package/dist/storybook/assets/{Button-ANyLESGb.js → Button-CrXCMxHb.js} +1 -1
- package/dist/storybook/assets/{Button.stories-DbH6q5L3.js → Button.stories-JVwxdrdM.js} +1 -1
- package/dist/storybook/assets/{ButtonGroup.stories-loqgAB7p.js → ButtonGroup.stories-qtq64a1H.js} +1 -1
- package/dist/storybook/assets/{Celebrate.stories-CRO3rSgp.js → Celebrate.stories-DjTtaSd6.js} +1 -1
- package/dist/storybook/assets/{Checkbox.stories-SZtgfbFe.js → Checkbox.stories-v1Pr5mL6.js} +1 -1
- package/dist/storybook/assets/{CircularProgress.stories-VayPxO4M.js → CircularProgress.stories-DkV7PJ4D.js} +1 -1
- package/dist/storybook/assets/{ClipboardMixin.stories-0EB2O2zT.js → ClipboardMixin.stories-Dh5c7uSM.js} +1 -1
- package/dist/storybook/assets/{Color-6BZIO3FS-CFpcD80i.js → Color-6BZIO3FS-B1gcREt6.js} +1 -1
- package/dist/storybook/assets/{Colors.stories-BJGM6xnp.js → Colors.stories-DnubtRqn.js} +1 -1
- package/dist/storybook/assets/{CombinedEffects.stories-DUwocYcn.js → CombinedEffects.stories-By6akSve.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin-MUqdPCf7.js → ComponentStatesMixin-CPLGv3h-.js} +1 -1
- package/dist/storybook/assets/{ComponentStatesMixin.stories-DjrxNwE7.js → ComponentStatesMixin.stories-CiQ_lyhm.js} +1 -1
- package/dist/storybook/assets/{CopyToClipboard.stories-DptOcPq6.js → CopyToClipboard.stories-cJ7rl3mj.js} +1 -1
- package/dist/storybook/assets/{Debounce.stories-BbcIWmhD.js → Debounce.stories-Bw-goobU.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-LL677BLK-Yy8fjeNG.js → DocsRenderer-LL677BLK-CNW57dGQ.js} +3 -3
- package/dist/storybook/assets/{Dropdown.stories-Du3LrBR6.js → Dropdown.stories-CwC3HXXd.js} +1 -1
- package/dist/storybook/assets/{EmptyState.stories-Dy9P8aOY.js → EmptyState.stories-BUEJwuhP.js} +1 -1
- package/dist/storybook/assets/{Events.stories-DvdVQxDf.js → Events.stories-D1mf9buv.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-BQ1jFOKn.js → Heading.stories-DO906G4P.js} +1 -1
- package/dist/storybook/assets/{HueRipple.stories-CrZFjnRl.js → HueRipple.stories-BOySRSZB.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-C2Tj8Lx1.js → Icon.stories-BsqgTbdG.js} +1 -1
- package/dist/storybook/assets/{IconButton.stories-DFqouOJb.js → IconButton.stories-aza1AAKk.js} +1 -1
- package/dist/storybook/assets/{LinearProgress.stories-DtNw3QX3.js → LinearProgress.stories-CDYmiiex.js} +1 -1
- package/dist/storybook/assets/{Pagination.stories-CFiZ9APs.js → Pagination.stories-LXB-x7YB.js} +1 -1
- package/dist/storybook/assets/{Popover.stories-DkkTuYag.js → Popover.stories-DY1HesPJ.js} +1 -1
- package/dist/storybook/assets/{ReadyMixin-BA01Vm_B.js → ReadyMixin-DmOC67IJ.js} +1 -1
- package/dist/storybook/assets/{RovingTabindexMixin.stories-BesAqt48.js → RovingTabindexMixin.stories-BWy0Rq8d.js} +1 -1
- package/dist/storybook/assets/{Rtc.stories-iTw43rjp.js → Rtc.stories-DrmdqqbI.js} +1 -1
- package/dist/storybook/assets/{ScrollShadow.stories-QYqQCcAo.js → ScrollShadow.stories-DiKFPazh.js} +1 -1
- package/dist/storybook/assets/{Switch.stories-BKArq9Mk.js → Switch.stories-BgFnw8_z.js} +1 -1
- package/dist/storybook/assets/{Tab.stories-8UdDPvE5.js → Tab.stories-c2wLMooF.js} +1 -1
- package/dist/storybook/assets/{Tabs.stories-BPGMZ552.js → Tabs.stories-CjH8seNP.js} +1 -1
- package/dist/storybook/assets/{Throttle.stories-CYl5d0r6.js → Throttle.stories-CXysc_QE.js} +1 -1
- package/dist/storybook/assets/{Tooltip.stories-cZ0zSlwX.js → Tooltip.stories-6qzyByPm.js} +1 -1
- package/dist/storybook/assets/{Upload.stories-CPC7N0Ed.js → Upload.stories-BLxykydQ.js} +1 -1
- package/dist/storybook/assets/{UploadItem.stories-D0LClT0a.js → UploadItem.stories-CcfcqdJW.js} +1 -1
- package/dist/storybook/assets/{Welcome.stories-C8JUaRas.js → Welcome.stories-CzYS_3fH.js} +1 -1
- package/dist/storybook/assets/{Widget.stories-C1FxF24-.js → Widget.stories-Du7T4LAI.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-65CFNBJE-BMBo-fie.js → WithTooltip-65CFNBJE-D4LfXdYt.js} +1 -1
- package/dist/storybook/assets/{blocks-BTsuXRXZ.js → blocks-DR3fGePu.js} +5 -5
- package/dist/storybook/assets/{formatter-EIJCOSYU-BJ1Cwrpx.js → formatter-EIJCOSYU-Cf01216O.js} +1 -1
- package/dist/storybook/assets/if-defined-DaMmbcIU.js +1 -0
- package/dist/storybook/assets/{iframe-B3YWTqkR.js → iframe-CQArUhO8.js} +4 -4
- package/dist/storybook/assets/{iframe-BgFj0b5u.css → iframe-D0roG0J-.css} +1 -1
- package/dist/storybook/assets/{index-BBUTVEdP.js → index-B1uI_67G.js} +1 -1
- package/dist/storybook/assets/{onFind-NC0lGo-r.js → onFind-BpFkN2Rh.js} +1 -1
- package/dist/storybook/assets/{onFind.stories-CqbwQgQF.js → onFind.stories-Cxdeg69X.js} +1 -1
- package/dist/storybook/assets/{onRemove.stories-Y8Ycs77o.js → onRemove.stories-BHEWpNrE.js} +1 -1
- package/dist/storybook/assets/{onVisible.stories-CcLUE35q.js → onVisible.stories-DFJ3S_ZS.js} +1 -1
- package/dist/storybook/assets/{style-map-MSB_ngx3.js → style-map-DJ83UC3V.js} +1 -1
- package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-BjkjEDMG.js → syntaxhighlighter-ED5Y7EFY-zYN83mxK.js} +1 -1
- package/dist/storybook/iframe.html +2 -2
- package/dist/storybook/project.json +1 -1
- package/dist/tailwind.config.d.ts +4 -1
- package/dist/tailwind.config.d.ts.map +1 -1
- package/dist/tailwind.config.js +0 -2
- package/dist/tailwind.config.js.map +1 -1
- package/dist/tailwind.config.ts +0 -2
- package/package.json +16 -2
- package/dist/storybook/assets/if-defined-BPCd2NXs.js +0 -1
- package/src/legacy/tool-ui/src/main/resources/settings.properties +0 -1
- package/src/legacy/tool-ui/src/main/webapp/WEB-INF/web.xml +0 -81
- package/src/legacy/tool-ui/src/main/webapp/script/bsp-uploader.js +0 -170
- package/src/legacy/tool-ui/src/main/webapp/script/bsp-utils.js +0 -393
- package/src/legacy/tool-ui/src/main/webapp/script/content/layout-element.js +0 -141
- package/src/legacy/tool-ui/src/main/webapp/script/input/query.js +0 -78
- package/src/legacy/tool-ui/src/main/webapp/script/input/workflow.js +0 -718
- package/src/legacy/tool-ui/src/main/webapp/script/jquery.extra.js +0 -633
- package/src/legacy/tool-ui/src/main/webapp/script/v3/Dropbox.js +0 -18
- package/src/legacy/tool-ui/src/main/webapp/script/v3/EditFieldUpdate.js +0 -406
- package/src/legacy/tool-ui/src/main/webapp/script/v3/EditFieldUpdateCache.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/script/v3/Notification.js +0 -151
- package/src/legacy/tool-ui/src/main/webapp/script/v3/content/edit.js +0 -194
- package/src/legacy/tool-ui/src/main/webapp/script/v3/content/state.js +0 -785
- package/src/legacy/tool-ui/src/main/webapp/script/v3/csrf.js +0 -35
- package/src/legacy/tool-ui/src/main/webapp/script/v3/dashboard.js +0 -65
- package/src/legacy/tool-ui/src/main/webapp/script/v3/input/dataTransfer.js +0 -129
- package/src/legacy/tool-ui/src/main/webapp/script/v3/input/file.js +0 -433
- package/src/legacy/tool-ui/src/main/webapp/script/v3/input/object.js +0 -743
- package/src/legacy/tool-ui/src/main/webapp/script/v3/input/read-only.js +0 -17
- package/src/legacy/tool-ui/src/main/webapp/script/v3/jquery.frame.js +0 -478
- package/src/legacy/tool-ui/src/main/webapp/script/v3/jquery.repeatable.js +0 -2406
- package/src/legacy/tool-ui/src/main/webapp/script/v3/plugin/popup.d.ts +0 -2
- package/src/legacy/tool-ui/src/main/webapp/script/v3/plugin/popup.js +0 -446
- package/src/legacy/tool-ui/src/main/webapp/script/v3/search-filters.js +0 -62
- package/src/legacy/tool-ui/src/main/webapp/script/v3/search.js +0 -53
- package/src/legacy/tool-ui/src/main/webapp/script/v3.js +0 -1049
- package/src/legacy/tool-ui/src/main/webapp/v4/Admin.js +0 -16
- package/src/legacy/tool-ui/src/main/webapp/v4/AutoExpand.js +0 -84
- package/src/legacy/tool-ui/src/main/webapp/v4/AutoSubmit.js +0 -68
- package/src/legacy/tool-ui/src/main/webapp/v4/Bridge.js +0 -536
- package/src/legacy/tool-ui/src/main/webapp/v4/CheckboxInput.js +0 -22
- package/src/legacy/tool-ui/src/main/webapp/v4/ColorInput.js +0 -5
- package/src/legacy/tool-ui/src/main/webapp/v4/ColorInputSpectrum.js +0 -107
- package/src/legacy/tool-ui/src/main/webapp/v4/ComboInput.js +0 -1491
- package/src/legacy/tool-ui/src/main/webapp/v4/CommunityWidget.js +0 -29
- package/src/legacy/tool-ui/src/main/webapp/v4/ContentEdit.js +0 -2427
- package/src/legacy/tool-ui/src/main/webapp/v4/ContentLock.js +0 -470
- package/src/legacy/tool-ui/src/main/webapp/v4/ContentReporting.js +0 -32
- package/src/legacy/tool-ui/src/main/webapp/v4/DataTable.js +0 -31
- package/src/legacy/tool-ui/src/main/webapp/v4/DateStringField.js +0 -485
- package/src/legacy/tool-ui/src/main/webapp/v4/Entry.js +0 -264
- package/src/legacy/tool-ui/src/main/webapp/v4/ExternalItemAuth.js +0 -16
- package/src/legacy/tool-ui/src/main/webapp/v4/Form.js +0 -31
- package/src/legacy/tool-ui/src/main/webapp/v4/Hierarchy.js +0 -100
- package/src/legacy/tool-ui/src/main/webapp/v4/Icon.ts +0 -49
- package/src/legacy/tool-ui/src/main/webapp/v4/ImageEditor.js +0 -2403
- package/src/legacy/tool-ui/src/main/webapp/v4/ImageEditorBundle.js +0 -5
- package/src/legacy/tool-ui/src/main/webapp/v4/LinkCarousel.js +0 -40
- package/src/legacy/tool-ui/src/main/webapp/v4/LinkList.js +0 -14
- package/src/legacy/tool-ui/src/main/webapp/v4/LinkTable.js +0 -123
- package/src/legacy/tool-ui/src/main/webapp/v4/Location.js +0 -19
- package/src/legacy/tool-ui/src/main/webapp/v4/LocationMap.js +0 -148
- package/src/legacy/tool-ui/src/main/webapp/v4/LookingGlass.js +0 -24
- package/src/legacy/tool-ui/src/main/webapp/v4/Message.js +0 -14
- package/src/legacy/tool-ui/src/main/webapp/v4/NumberBar.js +0 -32
- package/src/legacy/tool-ui/src/main/webapp/v4/Page.js +0 -890
- package/src/legacy/tool-ui/src/main/webapp/v4/Preview.js +0 -758
- package/src/legacy/tool-ui/src/main/webapp/v4/PreviewEditor.js +0 -86
- package/src/legacy/tool-ui/src/main/webapp/v4/PreviewOverlay.js +0 -1005
- package/src/legacy/tool-ui/src/main/webapp/v4/PubSub.js +0 -47
- package/src/legacy/tool-ui/src/main/webapp/v4/QueryField.js +0 -211
- package/src/legacy/tool-ui/src/main/webapp/v4/RegionMap.js +0 -215
- package/src/legacy/tool-ui/src/main/webapp/v4/RepeatableContentInputGroup.js +0 -160
- package/src/legacy/tool-ui/src/main/webapp/v4/RichTextEditor.js +0 -154
- package/src/legacy/tool-ui/src/main/webapp/v4/SearchFields.js +0 -281
- package/src/legacy/tool-ui/src/main/webapp/v4/SearchResult.js +0 -255
- package/src/legacy/tool-ui/src/main/webapp/v4/SharePreview.js +0 -56
- package/src/legacy/tool-ui/src/main/webapp/v4/Sortable.js +0 -874
- package/src/legacy/tool-ui/src/main/webapp/v4/StyleEmbeddedContent.js +0 -100
- package/src/legacy/tool-ui/src/main/webapp/v4/StyleguidePresets.js +0 -357
- package/src/legacy/tool-ui/src/main/webapp/v4/TabContainer.js +0 -360
- package/src/legacy/tool-ui/src/main/webapp/v4/Taxonomy.js +0 -27
- package/src/legacy/tool-ui/src/main/webapp/v4/ThemeBundleEditor.js +0 -224
- package/src/legacy/tool-ui/src/main/webapp/v4/TimedContent.js +0 -147
- package/src/legacy/tool-ui/src/main/webapp/v4/TimedContentBundle.js +0 -8
- package/src/legacy/tool-ui/src/main/webapp/v4/VideoEditor.js +0 -2417
- package/src/legacy/tool-ui/src/main/webapp/v4/VideoEditorBundle.js +0 -8
- package/src/legacy/tool-ui/src/main/webapp/v4/ViewMirror.js +0 -52
- package/src/legacy/tool-ui/src/main/webapp/v4/ViewPreview.d.ts +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/ViewPreview.js +0 -177
- package/src/legacy/tool-ui/src/main/webapp/v4/Widget.js +0 -90
- package/src/legacy/tool-ui/src/main/webapp/v4/__mocks__/fileMock.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/__mocks__/styleMock.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/__mocks__/textArea.mock.js +0 -20
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/globals.js +0 -770
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/ProseMirror.test.js +0 -16
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/index.html +0 -54
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/comment_manager/CommentManager.test.js +0 -29
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/comment_manager/index.html +0 -35
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/custom_keyboard/CustomKeyboard.js +0 -42
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/custom_keyboard/index.html +0 -37
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/enhancement_manager/EnhancementManager.test.js +0 -288
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/enhancement_manager/block.html +0 -38
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/enhancement_manager/inline.html +0 -38
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/enhancement_manager/no-popups.html +0 -38
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/list_manager/ListManager.js +0 -257
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/list_manager/index.html +0 -38
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/menubar/hierarchal.html +0 -33
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/menubar/index.html +0 -33
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/menubar/menubar.test.js +0 -195
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/menubar/small.html +0 -34
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/menubar/tags.html +0 -34
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/placeholder_manager/PlaceholderManager.test.js +0 -134
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/placeholder_manager/has-editable-placeholder.html +0 -32
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/placeholder_manager/has-text.html +0 -34
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/placeholder_manager/index.html +0 -31
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/table_manager/TableManager.test.js +0 -63
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/table_manager/existing.html +0 -48
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/track_manager/TrackManager.test.js +0 -291
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/track_manager/existing.html +0 -39
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/integration/rte/plugins/track_manager/insert.html +0 -37
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/Sortable.test.js +0 -105
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/ProseMirror.test.js +0 -41
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/codemirror-shim.test.js +0 -72
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/plugins/collab_manager/CollabManager.test.js +0 -46
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/plugins/enhancement_manager/EnhancementManager.test.js +0 -84
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/plugins/list_manager/ListManager.test.js +0 -54
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/plugins/menubar/menubar.test.js +0 -183
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/plugins/spellcheck/SpellCheck.test.js +0 -45
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/settings/BSSerializer.test.js +0 -346
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/settings/menuItemsBuilder.test.js +0 -226
- package/src/legacy/tool-ui/src/main/webapp/v4/__tests__/unit/rte/utilities.test.js +0 -118
- package/src/legacy/tool-ui/src/main/webapp/v4/appetizeio/Appetizeio.js +0 -5
- package/src/legacy/tool-ui/src/main/webapp/v4/appetizeio/AppetizeioEmbedded.js +0 -113
- package/src/legacy/tool-ui/src/main/webapp/v4/compat/Fetch.js +0 -16
- package/src/legacy/tool-ui/src/main/webapp/v4/compat/jquery.js +0 -32
- package/src/legacy/tool-ui/src/main/webapp/v4/compat/requirejs.js +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/Tether.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/TetherLayout.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/closest.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/create.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/find.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/findAll.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/ifClick.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/ifMatches.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/ifUnmodified.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/index.js +0 -5
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/insertBefore.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/insertFirst.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/insertLast.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/onFind.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/onFindOnce.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/onRTEReady.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/onRemove.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/onVisible.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/previousUntil.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/dom/resolveIconCompat.js +0 -40
- package/src/legacy/tool-ui/src/main/webapp/v4/rtc/Socket.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/rtc/index.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/ProseMirror.js +0 -909
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/README.md +0 -68
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/codemirror-shim.d.ts +0 -8
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/codemirror-shim.js +0 -274
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/collab-workflow.jpeg +0 -0
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/interchangeable.ts +0 -250
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/mention.js +0 -90
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/PluginProvider.js +0 -124
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/README.md +0 -46
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/ai_inline_manager/AIInlineManager.ts +0 -124
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/ai_inline_manager/views/AIInlineView.ts +0 -1019
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/ai_manager/AiManager.ts +0 -199
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/collab_manager/CollabManager.js +0 -339
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/collab_manager/views/AvatarView.js +0 -96
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/comment_manager/CommentManager.js +0 -348
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/custom_keyboard/CustomKeyboard.js +0 -110
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/custom_keyboard/README.md +0 -29
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/EnhancementManager.js +0 -428
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/README.md +0 -63
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/commands.js +0 -690
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/constants.js +0 -12
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/enhancement-creation.jpeg +0 -0
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/index.js +0 -15
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/rte-flow.jpeg +0 -0
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/views/ActionButtonView.js +0 -86
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/views/BlockSubmenuView.js +0 -60
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/views/EnhancementView.js +0 -208
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/views/PreviewView.js +0 -102
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/enhancement_manager/views/SubmenuView.js +0 -365
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/find_replace_manager/FindReplaceManager.js +0 -239
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/find_replace_manager/views/FindView.js +0 -604
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/fullscreen_manager/FullscreenManager.js +0 -57
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/fullscreen_manager/README.md +0 -26
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/fullscreen_manager/commands.js +0 -16
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/fullscreen_manager/index.js +0 -4
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/fullscreen_manager/views/FullscreenView.js +0 -474
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/html_editor_manager/htmlEditorManager.js +0 -66
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/html_editor_manager/views/HtmlEditorView.js +0 -97
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/list_manager/ListManager.js +0 -342
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/list_manager/README.md +0 -50
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/list_manager/commands.js +0 -207
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/list_manager/constants.js +0 -26
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/list_manager/index.js +0 -4
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/menubar/Menubar.js +0 -485
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/menubar/README.md +0 -40
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/menubar/views/MenuView.js +0 -842
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/paste_manager/PasteManager.js +0 -368
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/placeholder_manager/PlaceHolderManager.js +0 -128
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/raw_text_manager/README.md +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/raw_text_manager/RawTextManager.js +0 -96
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/spellcheck/index.js +0 -3
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/spellcheck/spellcheck-plugin.js +0 -280
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/spellcheck/spellcheck-service.js +0 -94
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/table_manager/TableManager.js +0 -57
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/table_manager/commands.js +0 -97
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/table_manager/views/TableSizerView.js +0 -88
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/table_manager/views/TableView.js +0 -613
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/track_manager/README.md +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/plugins/track_manager/TrackManager.js +0 -905
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/BSSerializer.js +0 -819
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/README.md +0 -80
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/commands.js +0 -98
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/constants.d.ts +0 -84
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/constants.js +0 -87
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/index.js +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/keymapBuilder.js +0 -223
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/menuItemsBuilder.js +0 -559
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/settings/schemaBuilder.js +0 -1281
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/utilities.d.ts +0 -4
- package/src/legacy/tool-ui/src/main/webapp/v4/rte/utilities.js +0 -359
- package/src/legacy/tool-ui/src/main/webapp/v4/theme/ColorRotator.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/debounce.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/getComponentKey.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/noise.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/repaint.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/storage.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/util/throttle.js +0 -1
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/AssignmentContent.js +0 -33
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/AssignmentDeskDashboard.js +0 -217
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/AssociatedContentWidget.js +0 -7
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/BulkUpload.js +0 -19
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/Calendar.js +0 -7
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/ClosableWindow.js +0 -13
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/PitchAssignments.js +0 -25
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/PitchContent.js +0 -33
- package/src/legacy/tool-ui/src/main/webapp/v4/widget/Revisions.js +0 -61
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import $ from 'jquery'
|
|
2
|
-
import bspUtils from '../bsp-utils'
|
|
3
|
-
import rtc from '../../v4/rtc'
|
|
4
|
-
import ColorRotator from '../../v4/theme/ColorRotator'
|
|
5
|
-
import efuCache from './EditFieldUpdateCache'
|
|
6
|
-
|
|
7
|
-
const colorsByUuid = {}
|
|
8
|
-
const cr = new ColorRotator()
|
|
9
|
-
let restoreUpdateFields = null
|
|
10
|
-
|
|
11
|
-
function backgroundColor(uuid) {
|
|
12
|
-
if (!colorsByUuid[uuid]) {
|
|
13
|
-
colorsByUuid[uuid] = cr.getNext()
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return colorsByUuid[uuid]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// shared-use function for updating a container element either from cached data
|
|
20
|
-
// stored in dataByContentId or from an EditFieldUpdateBroadcast RTC event
|
|
21
|
-
function updateContainer($container, data) {
|
|
22
|
-
var userId = data.userId
|
|
23
|
-
var fieldNamesByObjectId = data.fieldNamesByObjectId
|
|
24
|
-
var $viewersContainer = $container.find(
|
|
25
|
-
'[data-rtc-edit-field-update-viewers]',
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
if ($viewersContainer.length === 0) {
|
|
29
|
-
$viewersContainer = $container.find(
|
|
30
|
-
'[data-rtc-edit-field-update-other-viewers]',
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
$viewersContainer.length > 0 &&
|
|
35
|
-
$('html').attr('data-user-id') === userId
|
|
36
|
-
) {
|
|
37
|
-
return
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if ($viewersContainer.length > 0) {
|
|
42
|
-
var userAvatarHtml = data.userAvatarHtml
|
|
43
|
-
var closed = data.closed
|
|
44
|
-
var $viewers = $viewersContainer.find('> .EditFieldUpdateViewers')
|
|
45
|
-
var $some
|
|
46
|
-
|
|
47
|
-
if ($viewers.length === 0) {
|
|
48
|
-
var $none = $('<div/>', {
|
|
49
|
-
class: 'EditFieldUpdateViewers-none',
|
|
50
|
-
html: $viewersContainer.html(),
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
$some = $('<div/>', {
|
|
54
|
-
class: 'EditFieldUpdateViewers-some',
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
$viewers = $('<div/>', {
|
|
58
|
-
class: 'EditFieldUpdateViewers',
|
|
59
|
-
html: [$none, $some],
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
$viewers.append($none)
|
|
63
|
-
$viewers.append($some)
|
|
64
|
-
$viewersContainer.html($viewers)
|
|
65
|
-
} else {
|
|
66
|
-
$some = $viewers.find('> .EditFieldUpdateViewers-some')
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var $viewer = $some.find(
|
|
70
|
-
'> .EditFieldUpdateViewers-viewer[data-user-id="' + userId + '"]',
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
if ($viewer.length > 0) {
|
|
74
|
-
if (closed) {
|
|
75
|
-
$viewer.remove()
|
|
76
|
-
}
|
|
77
|
-
} else if (!closed) {
|
|
78
|
-
$viewer = $('<div/>', {
|
|
79
|
-
class: 'EditFieldUpdateViewers-viewer',
|
|
80
|
-
'data-user-id': userId,
|
|
81
|
-
html: userAvatarHtml,
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
$viewer.find('.ToolUserAvatar').css({
|
|
85
|
-
'--avatar-bg-color': backgroundColor(userId),
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
$some.append($viewer)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// prettier-ignore
|
|
92
|
-
function checkFieldNames (id) { // eslint-disable-line no-inner-declarations
|
|
93
|
-
var fieldNames = fieldNamesByObjectId[id]
|
|
94
|
-
return fieldNames && fieldNames.length > 0
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (
|
|
98
|
-
fieldNamesByObjectId &&
|
|
99
|
-
Object.keys(fieldNamesByObjectId).filter(checkFieldNames).length > 0
|
|
100
|
-
) {
|
|
101
|
-
$viewer.attr('data-editing', true)
|
|
102
|
-
} else {
|
|
103
|
-
$viewer.removeAttr('data-editing')
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if ($some.find('> .EditFieldUpdateViewers-viewer').length > 0) {
|
|
107
|
-
$viewers.attr('data-some', true)
|
|
108
|
-
} else {
|
|
109
|
-
$viewers.removeAttr('data-some')
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
rtc.receive(
|
|
115
|
-
'com.psddev.cms.tool.page.content.EditFieldUpdateBroadcast',
|
|
116
|
-
function (data) {
|
|
117
|
-
var contentId = data.contentId
|
|
118
|
-
var $containers = $('[data-rtc-content-id="' + contentId + '"]')
|
|
119
|
-
|
|
120
|
-
if ($containers.length === 0) {
|
|
121
|
-
return
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (!window.DISABLE_EDIT_FIELD_UPDATE_CACHE) {
|
|
125
|
-
efuCache.put(data)
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
var currentUser = $('html').attr('data-user-id')
|
|
129
|
-
var userId = data.userId
|
|
130
|
-
var fieldNamesByObjectId = data.fieldNamesByObjectId
|
|
131
|
-
|
|
132
|
-
$containers.each(function () {
|
|
133
|
-
var $container = $(this)
|
|
134
|
-
|
|
135
|
-
updateContainer($container, data)
|
|
136
|
-
|
|
137
|
-
if (!$container.is('form')) {
|
|
138
|
-
return
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (currentUser === userId) {
|
|
142
|
-
return
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
$container
|
|
146
|
-
.find('.CIG-pending[data-user-id="' + userId + '"]')
|
|
147
|
-
.each(function () {
|
|
148
|
-
var $pending = $(this)
|
|
149
|
-
|
|
150
|
-
$pending.closest('.inputContainer').removeClass('is-pending')
|
|
151
|
-
$pending.remove()
|
|
152
|
-
})
|
|
153
|
-
|
|
154
|
-
if (!fieldNamesByObjectId) {
|
|
155
|
-
return
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
var userName = data.userName
|
|
159
|
-
|
|
160
|
-
$.each(fieldNamesByObjectId, function (objectId, fieldNames) {
|
|
161
|
-
var $inputs = $container.find(
|
|
162
|
-
'.objectInputs[data-id="' + objectId + '"]',
|
|
163
|
-
)
|
|
164
|
-
|
|
165
|
-
if ($inputs.length === 0) {
|
|
166
|
-
return
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
$.each(fieldNames, function (i, fieldName) {
|
|
170
|
-
var $container = $inputs.find(
|
|
171
|
-
'> .inputContainer[data-field-name="' + fieldName + '"]',
|
|
172
|
-
)
|
|
173
|
-
var nested = false
|
|
174
|
-
|
|
175
|
-
$container.find('.objectInputs').each(function () {
|
|
176
|
-
if (fieldNamesByObjectId[$(this).attr('data-id')]) {
|
|
177
|
-
nested = true
|
|
178
|
-
return false
|
|
179
|
-
}
|
|
180
|
-
})
|
|
181
|
-
|
|
182
|
-
if (!nested) {
|
|
183
|
-
$container.addClass('is-pending')
|
|
184
|
-
var html = ['Pending edit from ' + userName]
|
|
185
|
-
|
|
186
|
-
if ($('[data-rtc-field-lock]').length) {
|
|
187
|
-
html[0] += ' - '
|
|
188
|
-
html.push(
|
|
189
|
-
$('<a/>', {
|
|
190
|
-
text: 'Unlock',
|
|
191
|
-
click: function () {
|
|
192
|
-
if (
|
|
193
|
-
confirm(
|
|
194
|
-
'Are you sure you want to forcefully unlock this field?',
|
|
195
|
-
)
|
|
196
|
-
) {
|
|
197
|
-
rtc.execute(
|
|
198
|
-
'com.psddev.cms.tool.page.content.EditFieldUpdateAction',
|
|
199
|
-
{
|
|
200
|
-
contentId: $container
|
|
201
|
-
.closest('form')
|
|
202
|
-
.attr('data-rtc-content-id'),
|
|
203
|
-
unlockObjectId: $container
|
|
204
|
-
.closest('.objectInputs')
|
|
205
|
-
.attr('data-id'),
|
|
206
|
-
unlockFieldName: $container.attr('data-field-name'),
|
|
207
|
-
},
|
|
208
|
-
)
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return false
|
|
212
|
-
},
|
|
213
|
-
}),
|
|
214
|
-
)
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
$container.find('> .inputLabel').after(
|
|
218
|
-
$('<div/>', {
|
|
219
|
-
class: 'CIG-pending',
|
|
220
|
-
'data-user-id': userId,
|
|
221
|
-
html: html,
|
|
222
|
-
}),
|
|
223
|
-
)
|
|
224
|
-
}
|
|
225
|
-
})
|
|
226
|
-
})
|
|
227
|
-
})
|
|
228
|
-
},
|
|
229
|
-
)
|
|
230
|
-
|
|
231
|
-
var invalidateTimeout
|
|
232
|
-
|
|
233
|
-
bspUtils.onDomInsert(document, '[data-rtc-content-id]', {
|
|
234
|
-
insert: function (container) {
|
|
235
|
-
var $container = $(container)
|
|
236
|
-
|
|
237
|
-
if (!$container.is('form')) {
|
|
238
|
-
return
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
var contentId = $container.attr('data-rtc-content-id')
|
|
242
|
-
|
|
243
|
-
if (!contentId) {
|
|
244
|
-
return
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
var oldFieldNamesByObjectId = null
|
|
248
|
-
|
|
249
|
-
function update() {
|
|
250
|
-
var fieldNamesByObjectId = {}
|
|
251
|
-
|
|
252
|
-
$container
|
|
253
|
-
.find('.inputContainer.state-changed, .inputContainer:focus-within')
|
|
254
|
-
.filter(function () {
|
|
255
|
-
return $(this).has('[data-collab="true"]').length === 0
|
|
256
|
-
})
|
|
257
|
-
.each(function () {
|
|
258
|
-
var $container = $(this)
|
|
259
|
-
var objectId = $container.closest('.objectInputs').attr('data-id')
|
|
260
|
-
;(fieldNamesByObjectId[objectId] =
|
|
261
|
-
fieldNamesByObjectId[objectId] || []).push(
|
|
262
|
-
$container.attr('data-field-name'),
|
|
263
|
-
)
|
|
264
|
-
})
|
|
265
|
-
|
|
266
|
-
// if restore happens remove any fields updated by another user while offline
|
|
267
|
-
if (restoreUpdateFields) {
|
|
268
|
-
for (const id in fieldNamesByObjectId) {
|
|
269
|
-
if (restoreUpdateFields[id]) {
|
|
270
|
-
let fields = fieldNamesByObjectId[id].filter(
|
|
271
|
-
(field) => restoreUpdateFields[id].indexOf(field) === -1,
|
|
272
|
-
)
|
|
273
|
-
|
|
274
|
-
if (fields && fields.length > 0) {
|
|
275
|
-
fieldNamesByObjectId[id] = fields
|
|
276
|
-
} else {
|
|
277
|
-
delete fieldNamesByObjectId[id]
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
if (
|
|
284
|
-
fieldNamesByObjectId &&
|
|
285
|
-
JSON.stringify(fieldNamesByObjectId) !==
|
|
286
|
-
JSON.stringify(oldFieldNamesByObjectId)
|
|
287
|
-
) {
|
|
288
|
-
oldFieldNamesByObjectId = fieldNamesByObjectId
|
|
289
|
-
|
|
290
|
-
rtc.execute('com.psddev.cms.tool.page.content.EditFieldUpdateAction', {
|
|
291
|
-
contentId: contentId,
|
|
292
|
-
fieldNamesByObjectId: fieldNamesByObjectId,
|
|
293
|
-
})
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
rtc.initialize(
|
|
298
|
-
'com.psddev.cms.tool.page.content.EditFieldUpdateState',
|
|
299
|
-
{
|
|
300
|
-
contentId: contentId,
|
|
301
|
-
},
|
|
302
|
-
function (broadcasts) {
|
|
303
|
-
if (broadcasts) {
|
|
304
|
-
try {
|
|
305
|
-
restoreUpdateFields = {}
|
|
306
|
-
|
|
307
|
-
for (const broadcast of broadcasts) {
|
|
308
|
-
if ($('html').attr('data-user-id') !== broadcast.data.userId) {
|
|
309
|
-
Object.assign(
|
|
310
|
-
restoreUpdateFields,
|
|
311
|
-
broadcast.data.fieldNamesByObjectId,
|
|
312
|
-
)
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// trigger event for any changes made while offline (handled by state.js#update)
|
|
317
|
-
$(document)
|
|
318
|
-
.find('.contentForm, .enhancementForm, .standardForm')
|
|
319
|
-
.trigger('change')
|
|
320
|
-
} catch (error) {
|
|
321
|
-
restoreUpdateFields = null
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
oldFieldNamesByObjectId = null
|
|
326
|
-
update()
|
|
327
|
-
|
|
328
|
-
var updateTimeout
|
|
329
|
-
|
|
330
|
-
function throttledUpdate() {
|
|
331
|
-
if (updateTimeout) {
|
|
332
|
-
clearTimeout(updateTimeout)
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
updateTimeout = setTimeout(function () {
|
|
336
|
-
updateTimeout = null
|
|
337
|
-
update()
|
|
338
|
-
}, 1000)
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
$container.on('blur focus change', ':input', throttledUpdate)
|
|
342
|
-
$container.on('content-state-differences', throttledUpdate)
|
|
343
|
-
},
|
|
344
|
-
)
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
afterInsert: function (containers) {
|
|
348
|
-
// restores viewer data on the specified containers,
|
|
349
|
-
// fetching from cache if available, otherwise making
|
|
350
|
-
// an rtc.restore call for the data
|
|
351
|
-
var contentIds = []
|
|
352
|
-
|
|
353
|
-
$(containers).each(function () {
|
|
354
|
-
var $container = $(this)
|
|
355
|
-
|
|
356
|
-
if (!$container.is('form')) {
|
|
357
|
-
var contentId = $container.attr('data-rtc-content-id')
|
|
358
|
-
|
|
359
|
-
if (contentId) {
|
|
360
|
-
if (!window.DISABLE_EDIT_FIELD_UPDATE_CACHE) {
|
|
361
|
-
var contentData = efuCache.get(contentId)
|
|
362
|
-
var i
|
|
363
|
-
|
|
364
|
-
if (
|
|
365
|
-
typeof contentData === 'object' &&
|
|
366
|
-
contentData instanceof Array
|
|
367
|
-
) {
|
|
368
|
-
for (i = 0; i < contentData.length; i += 1) {
|
|
369
|
-
updateContainer($container, contentData[i])
|
|
370
|
-
}
|
|
371
|
-
} else {
|
|
372
|
-
efuCache.init(contentId)
|
|
373
|
-
contentIds.push(contentId)
|
|
374
|
-
}
|
|
375
|
-
} else {
|
|
376
|
-
contentIds.push(contentId)
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
})
|
|
381
|
-
|
|
382
|
-
if (contentIds.length > 0) {
|
|
383
|
-
if (!window.DISABLE_EDIT_FIELD_UPDATE_CACHE) {
|
|
384
|
-
if (invalidateTimeout) {
|
|
385
|
-
clearTimeout(invalidateTimeout)
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
invalidateTimeout = setTimeout(function () {
|
|
389
|
-
invalidateTimeout = null
|
|
390
|
-
|
|
391
|
-
efuCache.invalidate(
|
|
392
|
-
$('[data-rtc-content-id]')
|
|
393
|
-
.map(function () {
|
|
394
|
-
return $(this).attr('data-rtc-content-id')
|
|
395
|
-
})
|
|
396
|
-
.get(),
|
|
397
|
-
)
|
|
398
|
-
}, 5000)
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
rtc.restore('com.psddev.cms.tool.page.content.EditFieldUpdateState', {
|
|
402
|
-
contentId: contentIds,
|
|
403
|
-
})
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../../../../EditFieldUpdateCache'
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
define(['jquery', '../bsp-utils', '../../v4/rtc'], function (
|
|
2
|
-
$,
|
|
3
|
-
bspUtils,
|
|
4
|
-
{ default: rtc },
|
|
5
|
-
) {
|
|
6
|
-
const tooltips = window.BRIGHTSPOT?.ui.tooltips
|
|
7
|
-
rtc.receive(
|
|
8
|
-
'com.psddev.cms.notification.CmsDeliveryBroadcast',
|
|
9
|
-
function (data) {
|
|
10
|
-
var userData = data[$('html').attr('data-user-id')] || {}
|
|
11
|
-
|
|
12
|
-
var newCount = parseInt(userData['count']) || 0
|
|
13
|
-
|
|
14
|
-
var $tun = $('.Page-notifications')
|
|
15
|
-
|
|
16
|
-
$tun.attr('data-new', 'true')
|
|
17
|
-
|
|
18
|
-
var currentCount = parseInt($tun.attr('data-count')) || 0
|
|
19
|
-
|
|
20
|
-
var totalCount = currentCount + newCount
|
|
21
|
-
|
|
22
|
-
$tun.attr('data-count', totalCount.toString())
|
|
23
|
-
$tun.attr(
|
|
24
|
-
'data-count-label',
|
|
25
|
-
totalCount < 1000 ? totalCount.toString() : '+',
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
// V3 support
|
|
29
|
-
var $tun1 = $('.Page-notifications > a')
|
|
30
|
-
$tun1.attr('data-new', 'true')
|
|
31
|
-
$tun1.attr('data-count', totalCount.toString())
|
|
32
|
-
$tun1.attr(
|
|
33
|
-
'data-count-label',
|
|
34
|
-
totalCount < 1000 ? totalCount.toString() : '+',
|
|
35
|
-
)
|
|
36
|
-
if (totalCount) $tun1.attr('title', tooltips.newNotifications)
|
|
37
|
-
},
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
rtc.receive(
|
|
41
|
-
'com.psddev.cms.notification.ToolUserNotificationsViewedBroadcast',
|
|
42
|
-
function (data) {
|
|
43
|
-
var $tun = $('.Page-notifications')
|
|
44
|
-
|
|
45
|
-
$tun.attr('data-new', 'false')
|
|
46
|
-
$tun.attr('data-count', '0')
|
|
47
|
-
$tun.attr('data-count-label', '')
|
|
48
|
-
|
|
49
|
-
// V3 support
|
|
50
|
-
var $tun1 = $('.Page-notifications > a')
|
|
51
|
-
$tun1.attr('data-new', 'false')
|
|
52
|
-
$tun1.attr('data-count', '0')
|
|
53
|
-
$tun1.attr('data-count-label', '')
|
|
54
|
-
$tun1.attr('title', tooltips.notifications)
|
|
55
|
-
},
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
rtc.receive(
|
|
59
|
-
'com.psddev.cms.notification.ToolUserNotificationsPauseToggleBroadcast',
|
|
60
|
-
function (data) {
|
|
61
|
-
var $tun = $('.Page-notifications > a')
|
|
62
|
-
|
|
63
|
-
var userData = data[$('html').attr('data-user-id')] || {}
|
|
64
|
-
var addClasses = userData['addClasses']
|
|
65
|
-
var removeClasses = userData['removeClasses']
|
|
66
|
-
|
|
67
|
-
if (Array.isArray(removeClasses)) {
|
|
68
|
-
removeClasses.forEach((c) => {
|
|
69
|
-
$tun.removeClass(c)
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (Array.isArray(addClasses)) {
|
|
74
|
-
addClasses.forEach((c) => {
|
|
75
|
-
$tun.addClass(c)
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
// Rest of the file relies on native browser notification functionality.
|
|
82
|
-
|
|
83
|
-
if (!('Notification' in window)) {
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
bspUtils.onDomInsert(document, '.BrowserNotificationCheck', {
|
|
88
|
-
insert: function (message) {
|
|
89
|
-
var $message = $(message)
|
|
90
|
-
|
|
91
|
-
function enabled() {
|
|
92
|
-
$message.text($message.attr('data-message-granted'))
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function request() {
|
|
96
|
-
$message.text($message.attr('data-message-requested'))
|
|
97
|
-
|
|
98
|
-
Notification.requestPermission(function (permission) {
|
|
99
|
-
if (permission === 'granted') {
|
|
100
|
-
enabled()
|
|
101
|
-
} else if (permission === 'denied') {
|
|
102
|
-
$message.text($message.attr('data-message-denied'))
|
|
103
|
-
} else {
|
|
104
|
-
$message.text($message.attr('data-message-retry') + ' ')
|
|
105
|
-
$message.append(
|
|
106
|
-
$('<a/>', {
|
|
107
|
-
href: '#',
|
|
108
|
-
text: 'Retry',
|
|
109
|
-
click: function () {
|
|
110
|
-
request()
|
|
111
|
-
return false
|
|
112
|
-
},
|
|
113
|
-
}),
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (Notification.permission === 'granted') {
|
|
120
|
-
enabled()
|
|
121
|
-
} else {
|
|
122
|
-
request()
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
rtc.receiveOnce(
|
|
128
|
-
'com.psddev.cms.notification.BrowserMessageBroadcast',
|
|
129
|
-
function (data) {
|
|
130
|
-
function notify() {
|
|
131
|
-
new Notification('Brightspot', data).onclick = function (event) {
|
|
132
|
-
event.preventDefault()
|
|
133
|
-
|
|
134
|
-
if (data.url) {
|
|
135
|
-
window.open(data.url, '_blank')
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
if (Notification.permission === 'granted') {
|
|
141
|
-
notify()
|
|
142
|
-
} else {
|
|
143
|
-
Notification.requestPermission(function (permission) {
|
|
144
|
-
if (permission === 'granted') {
|
|
145
|
-
notify()
|
|
146
|
-
}
|
|
147
|
-
})
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
)
|
|
151
|
-
})
|