@superblocksteam/library 2.0.9-next.17 → 2.0.9-next.18
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Section } from "../lib/user-facing/properties-panel/props-builder.js";
|
|
2
|
+
/**
|
|
3
|
+
* Check if a property should be excluded from documentation generation
|
|
4
|
+
*/
|
|
5
|
+
export declare function isPropertyExcluded(componentName: string, propertyName: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Get custom type definition for a property, if one exists
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCustomPropertyType(componentName: string, propertyName: string): string | undefined;
|
|
10
|
+
export declare function formatDefaultValue(value: any): string | undefined;
|
|
11
|
+
export declare function getDefaultValue(prop: any, propName: string): any;
|
|
12
|
+
export declare function guessTypeString(prop: any, key: string, componentName?: string): string;
|
|
13
|
+
export declare function generateInterfaceFromNestedProps(nestedProps: any, interfaceName: string, componentName?: string): string;
|
|
14
|
+
export declare function getRecordValueType(prop: any, key: string, componentName?: string): string;
|
|
15
|
+
export type PropContainer = {
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: any;
|
|
19
|
+
};
|
|
20
|
+
export declare function generateComponentDocs(component: {
|
|
21
|
+
name: string;
|
|
22
|
+
props: Record<string, Section<any>>;
|
|
23
|
+
}): {
|
|
24
|
+
lines: string[];
|
|
25
|
+
derivedProps: PropContainer[];
|
|
26
|
+
metaProps: PropContainer[];
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.9-next.
|
|
3
|
+
"version": "2.0.9-next.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.9-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.9-next.18",
|
|
37
37
|
"@superblocksteam/shared": "0.9160.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|