@iconify/tools 5.0.0-beta.1 → 5.0.0-beta.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.
- package/lib/import/figma/types/api.d.ts +12 -1
- package/lib/import/figma/types/api.js +1 -0
- package/lib/import/figma/types/nodes.d.ts +1 -1
- package/lib/import/figma/types/nodes.js +1 -0
- package/lib/import/figma/types/options.d.ts +1 -1
- package/lib/import/figma/types/options.js +1 -0
- package/lib/import/figma/types/result.d.ts +1 -1
- package/lib/import/figma/types/result.js +1 -0
- package/package.json +1 -1
|
@@ -38,4 +38,15 @@ interface FigmaDocument {
|
|
|
38
38
|
role: string;
|
|
39
39
|
editorType: 'figma' | 'figjam';
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
interface FigmaAPIError {
|
|
42
|
+
status: number;
|
|
43
|
+
err: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Result for retrieved icons
|
|
47
|
+
*/
|
|
48
|
+
interface FigmaAPIImagesResponse {
|
|
49
|
+
err?: string | null;
|
|
50
|
+
images: Record<string, string | null>;
|
|
51
|
+
}
|
|
52
|
+
export { FigmaAPIError, FigmaAPIImagesResponse, FigmaDocument, FigmaDocumentNode, FigmaNode, IconFigmaNode };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -32,4 +32,4 @@ type FigmaImportParentNodeFilter = (node: FigmaParentNodeData[], document: Figma
|
|
|
32
32
|
*/
|
|
33
33
|
type FigmaIconNodeWithKeyword = Partial<FigmaIconNode> & Pick<FigmaIconNode, 'keyword'>;
|
|
34
34
|
type FigmaImportNodeFilter = (node: FigmaImportNodeData, nodes: FigmaNodesImportResult, document: FigmaDocument) => string | FigmaIconNodeWithKeyword | null | undefined;
|
|
35
|
-
export { FigmaImportNodeFilter, FigmaImportParentNodeFilter };
|
|
35
|
+
export { FigmaImportIconNodeType, FigmaImportNodeData, FigmaImportNodeFilter, FigmaImportParentNodeFilter, FigmaImportParentNodeType, FigmaParentNodeData };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -47,4 +47,4 @@ interface FigmaImportOptions extends FigmaFilesQueryOptions, FigmaImagesQueryOpt
|
|
|
47
47
|
beforeImportingIcon?: FigmaImportedIconCallback;
|
|
48
48
|
afterImportingIcon?: FigmaImportedIconCallback;
|
|
49
49
|
}
|
|
50
|
-
export { FigmaFilesQueryOptions, FigmaGetIconNodesOptions, FigmaIfModifiedSinceOption, FigmaImagesQueryOptions, FigmaImportOptions };
|
|
50
|
+
export { FigmaFilesQueryOptions, FigmaGetIconNodesOptions, FigmaIfModifiedSinceOption, FigmaImagesQueryOptions, FigmaImportOptions, FigmaImportSVGOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -33,4 +33,4 @@ interface FigmaImportResult extends FigmaNodesCount {
|
|
|
33
33
|
iconSet: IconSet;
|
|
34
34
|
missing: FigmaIconNode[];
|
|
35
35
|
}
|
|
36
|
-
export { FigmaIconNode, FigmaImportResult, FigmaNodesImportResult };
|
|
36
|
+
export { FigmaIconNode, FigmaImportResult, FigmaNodesCount, FigmaNodesImportResult };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/package.json
CHANGED