@harnessio/yaml-editor 0.19.0 → 0.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.
- package/dist/components/BlameEditor.d.ts +2 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +470 -447
- package/dist/index.js.map +1 -1
- package/dist/utils/utils.d.ts +7 -0
- package/package.json +1 -1
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export declare function createRandomString(length: number): string;
|
|
2
2
|
export declare function escapeSingleQuote(str: string): string;
|
|
3
|
+
/**
|
|
4
|
+
* Formats ISO format date string to human-readable duration format.
|
|
5
|
+
* For e.g., "2024-09-10T13:38:55-07:00" is formatted as "1 hour ago".
|
|
6
|
+
* @param timestamp
|
|
7
|
+
* @returns formatted duration string
|
|
8
|
+
*/
|
|
9
|
+
export declare const timeAgoFromISOTime: (timestamp: string) => string;
|