@animaapp/anima-sdk 0.6.9 → 0.6.11
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export declare type GetCodeFromWebsiteParams = {
|
|
|
254
254
|
assetsStorage?: AssetsStorage;
|
|
255
255
|
settings: GetCodeFromWebsiteSettings;
|
|
256
256
|
tracking?: TrackingInfos;
|
|
257
|
+
webhookUrl?: string;
|
|
257
258
|
};
|
|
258
259
|
|
|
259
260
|
export declare type GetCodeFromWebsiteSettings = {
|
|
@@ -297,6 +298,7 @@ export declare type GetCodeParams = {
|
|
|
297
298
|
assetsStorage?: AssetsStorage;
|
|
298
299
|
settings: CodegenSettings;
|
|
299
300
|
tracking?: TrackingInfos;
|
|
301
|
+
webhookUrl?: string;
|
|
300
302
|
};
|
|
301
303
|
|
|
302
304
|
export declare const getFigmaApiErrorType: (error: Error) => FigmaApiErrorType;
|
package/dist/index.js
CHANGED
|
@@ -3908,7 +3908,8 @@ class Qn {
|
|
|
3908
3908
|
allowAutoSelectFirstNode: a.allowAutoSelectFirstNode,
|
|
3909
3909
|
enableDisplayScreenModelId: a.enableDisplayScreenModelId,
|
|
3910
3910
|
enableGeneratePackageLock: a.enableGeneratePackageLock,
|
|
3911
|
-
codegenSettings: a.codegenSettings
|
|
3911
|
+
codegenSettings: a.codegenSettings,
|
|
3912
|
+
webhookUrl: e.webhookUrl
|
|
3912
3913
|
};
|
|
3913
3914
|
return Ne(this, le, st).call(this, "/v1/codegen", o, t, "codegen", s);
|
|
3914
3915
|
});
|
|
@@ -4123,7 +4124,7 @@ const ea = (r) => {
|
|
|
4123
4124
|
if (r !== n)
|
|
4124
4125
|
return [!1, "", ""];
|
|
4125
4126
|
const a = ((e = t.searchParams.get("node-id")) != null ? e : "").replace(/-/g, ":"), i = s.split("/")[2];
|
|
4126
|
-
return [(s.startsWith("/file/") && t.searchParams.get("type") !== "whiteboard" || s.startsWith("/design/")) && i.length === 22, i, a];
|
|
4127
|
+
return [(s.startsWith("/file/") && t.searchParams.get("type") !== "whiteboard" || s.startsWith("/design/") || s.startsWith("/proto/")) && i.length === 22, i, a];
|
|
4127
4128
|
} catch (t) {
|
|
4128
4129
|
return [!1, "", ""];
|
|
4129
4130
|
}
|