@castlabs/ui 7.20.1 → 7.21.0

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.
@@ -1,4 +1,4 @@
1
- /* @castlabs/ui v7.20.1 */
1
+ /* @castlabs/ui v7.21.0 */
2
2
 
3
3
  /*!
4
4
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -385,10 +385,10 @@ const SERVICE = {
385
385
  PP_URN_REACTNATIVE: 'urn:janus:service:6efecac3ac04477e9b36d3d14e0ae257',
386
386
  PP_URN_WEBRTC: 'urn:janus:service:250402eb2e2d47118422ba4f2334ee54',
387
387
  VTK: 'Video Toolkit',
388
- VTK_TAGLINE: 'Cloud encoding, packaging, watermarking',
388
+ VTK_TAGLINE: 'Cloud content processing',
389
389
  VTK_URN: 'urn:janus:service:a50e21d6a5e246809b636854abfbd34d',
390
390
  VTKS: 'Video Toolkit Staging',
391
- VTKS_TAGLINE: 'Cloud encoding, packaging, watermarking',
391
+ VTKS_TAGLINE: 'Cloud content processing',
392
392
  VTKS_URN: 'urn:janus:service:ca5bb34e8f39459796778e74fa097248',
393
393
  WM: 'STARDUSTmark',
394
394
  WM_TAGLINE: 'Video & image forensic watermarking',
@@ -1036,6 +1036,23 @@ function clModalIsShown (modalId) {
1036
1036
  return modal.id === modalId && modal._isShown
1037
1037
  }
1038
1038
 
1039
+ /**
1040
+ * Handle navigation events for modals. Back closes modal.
1041
+ *
1042
+ * @param to Vue's to-route.
1043
+ * @returns True if a modal was closed instead of navigating away.
1044
+ */
1045
+ function clModalBack (to) {
1046
+ if (clModalIsShown()) {
1047
+ clModalHide()
1048
+ if (to.meta?.ignoreModal) {
1049
+ return false
1050
+ }
1051
+ return true
1052
+ }
1053
+ return false
1054
+ }
1055
+
1039
1056
  // -----------------------------------------------------------------------------
1040
1057
  // --- paginator ---------------------------------------------------------------
1041
1058
  // -----------------------------------------------------------------------------