@animaapp/anima-sdk-react 0.3.7 → 0.3.12
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/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1444 -1430
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AnimaSDKResult } from '@animaapp/anima-sdk';
|
|
|
2
2
|
import { CodegenError } from '@animaapp/anima-sdk';
|
|
3
3
|
import { GetCodeParams } from '@animaapp/anima-sdk';
|
|
4
4
|
import { GetFileResponse } from '@figma/rest-api-spec';
|
|
5
|
+
import { GetLink2CodeParams } from '@animaapp/anima-sdk';
|
|
5
6
|
|
|
6
7
|
declare type LocalAssetsStorage = {
|
|
7
8
|
strategy: "local";
|
|
@@ -44,9 +45,11 @@ export declare const useAnimaCodegen: ({ url, method, }: {
|
|
|
44
45
|
result: AnimaSDKResult | null;
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
export declare type UseAnimaParams = Omit<GetCodeParams, "assetsStorage"> & {
|
|
48
|
+
export declare type UseAnimaParams = (Omit<GetCodeParams, "assetsStorage"> & {
|
|
48
49
|
assetsStorage?: GetCodeParams["assetsStorage"] | LocalAssetsStorage;
|
|
49
|
-
}
|
|
50
|
+
}) | (Omit<GetLink2CodeParams, "assetsStorage"> & {
|
|
51
|
+
assetsStorage?: GetLink2CodeParams["assetsStorage"] | LocalAssetsStorage;
|
|
52
|
+
});
|
|
50
53
|
|
|
51
54
|
export declare const useFigmaFile: ({ fileKey, authToken, enabled, params, }: {
|
|
52
55
|
fileKey: string;
|