@fluid-topics/ft-wc-utils 1.3.0 → 1.3.2

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.
@@ -13,3 +13,4 @@ export declare function last<T = any>(arr: T[]): T | undefined;
13
13
  export declare function unslotText(node: any): string;
14
14
  export declare function getComposedPathTo(element: EventTarget): EventTarget[];
15
15
  export declare function deepCopy<T = any>(value: T): T;
16
+ export declare function randomId(size: number, prefix?: string): string;
package/build/helpers.js CHANGED
@@ -163,3 +163,6 @@ export function deepCopy(value) {
163
163
  }
164
164
  return value != null ? JSON.parse(JSON.stringify(value)) : value;
165
165
  }
166
+ export function randomId(size, prefix) {
167
+ return (prefix !== null && prefix !== void 0 ? prefix : "") + ("" + Math.floor(Math.random() * (10 ** size))).padStart(size, "0");
168
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -14,8 +14,8 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@floating-ui/dom": "1.5.3",
17
- "@fluid-topics/design-system-variables": "0.1.99",
18
- "@fluid-topics/public-api": "1.0.98",
17
+ "@fluid-topics/design-system-variables": "0.1.100",
18
+ "@fluid-topics/public-api": "1.0.99",
19
19
  "@reduxjs/toolkit": "1.9.5",
20
20
  "@types/mark.js": "8.11.12",
21
21
  "@webcomponents/scoped-custom-element-registry": "0.0.9",
@@ -24,5 +24,5 @@
24
24
  "mark.js": "8.11.1",
25
25
  "moment": "2.29.4"
26
26
  },
27
- "gitHead": "cc982effbf27c0483e03961ad450fd2057a108b2"
27
+ "gitHead": "a583b0f740d044ef603e79b142f96dc74b993f11"
28
28
  }