Skip to content

Feature - iconscout intergration #1547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Apr 19, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0639f1b
integrate iconscout in icon button and image comp
raheeliftikhar5 Jul 2, 2024
6879f3b
integrate iconscout with jsonLottie comp
raheeliftikhar5 Jul 3, 2024
65111f9
added dotlottie option in lottie comp
raheeliftikhar5 Feb 20, 2025
9dfe557
download asset from icon-scout and save as base64 string
raheeliftikhar5 Feb 24, 2025
7ee4135
updated naming for iconScoutAsset
raheeliftikhar5 Feb 24, 2025
fdc8050
updated naming for iconScoutAsset
raheeliftikhar5 Feb 24, 2025
b29b1dd
used dotLottie player for different modes
raheeliftikhar5 Feb 24, 2025
09d7e9d
added option in IconComp to select icons from IconScout
raheeliftikhar5 Feb 24, 2025
60e4561
fixed asset selection popup
raheeliftikhar5 Feb 25, 2025
5a73042
show free/premium assets + redirect to subscription page on clicking …
raheeliftikhar5 Feb 25, 2025
6dea7b9
show loading when user select's an icon to download
raheeliftikhar5 Feb 25, 2025
aff1582
added autoHeight and aspectRatio options in json lottie
raheeliftikhar5 Feb 25, 2025
0dc69c6
fixed selected icon preview in controlButton
raheeliftikhar5 Feb 26, 2025
6886a0e
added fit/align controls in json lottie comp
raheeliftikhar5 Feb 26, 2025
a29d735
Changing to Flow API
Feb 26, 2025
516d9d2
Search and AssetURL APis changed to Flow Endpoint
Feb 26, 2025
4b50843
added events + exposed play/pause/stop methods with json lottie comp
raheeliftikhar5 Feb 27, 2025
99f5725
allow media pack subscribers to use icon scout assets
raheeliftikhar5 Apr 18, 2025
9aaa4be
Merge branch 'dev' into feature-iconscout-intergration
FalkWolsky Apr 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Search and AssetURL APis changed to Flow Endpoint
  • Loading branch information
FalkWolsky authored and raheeliftikhar5 committed Apr 18, 2025
commit 516d9d216e67b0721244eb053f1df853e6ddf602
8 changes: 4 additions & 4 deletions client/packages/lowcoder/src/api/iconFlowApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class IconFlowApi extends Api {
const retrySource = axios.CancelToken.source();
const retryTimeoutId = setTimeout(() => {
retrySource.cancel("Retry request timed out.");
}, 10000);
}, 20000);

response = await axiosInstance.request({
...requestConfig,
Expand Down Expand Up @@ -105,7 +105,7 @@ export const searchAssets = async (searchParameters : SearchParams) => {
};
try {
const result = await IconFlowApi.secureRequest(apiBody);
return result?.response?.items?.total > 0 ? result.response.items as any : null;
return result?.data?.response?.items?.total > 0 ? result.data.response.items as any : null;
} catch (error) {
console.error("Error searching Design Assets:", error);
throw error;
Expand All @@ -115,14 +115,14 @@ export const searchAssets = async (searchParameters : SearchParams) => {
export const getAssetLinks = async (uuid: string, params: Record<string, string>) => {
const apiBody = {
path: "webhook/scout/get-asset-links",
data: params,
data: {"uuid" : uuid, "params" : params},
method: "post",
headers: lcHeaders
};
try {
const result = await IconFlowApi.secureRequest(apiBody);

return result?.response?.items?.total > 0 ? result.response.items as any : null;
return result?.data?.response?.download?.url.length > 0 ? result.data.response.download as any : null;
} catch (error) {
console.error("Error searching Design Assets:", error);
throw error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ export const IconPicker = (props: {
query,
});
setLoading(false);

console.log("freeResult", freeResult, "premiumResult", premiumResult)

setSearchResults([...freeResult.data, ...premiumResult.data]);
};

Expand Down