@leanix/components 0.4.632 → 0.4.633

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/index.d.ts CHANGED
@@ -130,6 +130,7 @@ export * from './lib/popover-ui/components/popover/popover.component';
130
130
  export * from './lib/popover-ui/directives/popover-click.directive';
131
131
  export * from './lib/popover-ui/directives/popover-content.directive';
132
132
  export * from './lib/popover-ui/directives/popover-hover.directive';
133
+ export * from './lib/shared/storybook.helpers';
133
134
  export * from './lib/tab-ui/components/tab-group/tab-group.component';
134
135
  export * from './lib/tab-ui/components/tab/tab.component';
135
136
  export * from './lib/tab-ui/tab-ui.module';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A safe version of JSON.stringify that:
3
+ * 1. replaces circular references (with "[Circular ~]" for a reference to the whole object
4
+ * or "[Circular ~<path>]" for a reference to a specific entry)
5
+ * 2. converts BigInt values to strings
6
+ */
7
+ export declare function safeStringify(value: unknown, replacer?: null | ((key: string, value: unknown) => unknown), spaces?: string | number): string;
@@ -0,0 +1,12 @@
1
+ export interface ArgsToInterpolatedTemplateOptions<T> {
2
+ include?: Array<T>;
3
+ exclude?: Array<T>;
4
+ }
5
+ /**
6
+ * Converts an object of arguments into a string of interpolated template properties.
7
+ * This works almost the same as `argsToTemplate` from Storybook, but it interpolates
8
+ * the values of the properties instead of referencing local variables. This is most
9
+ * useful to make stories copyable by other developers and have them work out of the box
10
+ * (or with minor adjustments).
11
+ */
12
+ export declare function argsToInterpolatedTemplate<T extends Record<string, any>>(args: T, options?: ArgsToInterpolatedTemplateOptions<keyof T>): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.4.632",
3
+ "version": "0.4.633",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {