@sonic-equipment/ui 218.0.0 → 219.0.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.
package/dist/index.js CHANGED
@@ -459,7 +459,7 @@ export { scrollIntoViewRef, scrollToTop } from './shared/utils/scrolling.js';
459
459
  export { camelCase } from './shared/utils/string.js';
460
460
  export { TIME } from './shared/utils/time.js';
461
461
  export { has, hasNo, isObject } from './shared/utils/types.js';
462
- export { createUUID } from './shared/utils/uuid.js';
462
+ export { createUUID, isUUID } from './shared/utils/uuid.js';
463
463
  export { Sidebar } from './sidebar/sidebar.js';
464
464
  export { SidebarDetectBreakpoint, SidebarProvider } from './sidebar/sidebar-provider.js';
465
465
  export { ToggleSidebarButton } from './sidebar/toggle-sidebar-button.js';
@@ -6,3 +6,4 @@ export type UUID = `${string}-${string}-4${string}-${string}-${string}`;
6
6
  * @returns Generated UUID.
7
7
  */
8
8
  export declare function createUUID(): UUID;
9
+ export declare function isUUID(value: string): value is UUID;
@@ -11,5 +11,8 @@ function createUUID() {
11
11
  return v.toString(16);
12
12
  });
13
13
  }
14
+ function isUUID(value) {
15
+ return /^[\da-f]{8}-[\da-f]{4}-4[\da-f]{3}-[89ab][\da-f]{3}-[\da-f]{12}$/.test(value);
16
+ }
14
17
 
15
- export { createUUID };
18
+ export { createUUID, isUUID };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "218.0.0",
3
+ "version": "219.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {