@imgly/plugin-soundstripe-web 1.68.0-rc.1 → 1.69.0-nightly.20260130
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.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var A="@imgly/plugin-soundstripe-web";var b={assets:[],currentPage:1,nextPage:void 0,total:0};function P(r,c){let{apiKey:o,baseUrl:a}=c,l=async(e,t,i)=>{let d=a||"https://api.soundstripe.com",s=new URL(`${d}/v1/songs`);e&&s.searchParams.set("filter[q]",e),t&&s.searchParams.set("page[number]",t.toString()),i&&s.searchParams.set("page[size]",i.toString());let g={Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json"};o&&(console.warn("Using direct Soundstripe API access, this is not recommended for production use. Instead, consider using a proxy server."),g.Authorization=`Bearer ${o}`);let p=await fetch(s.toString(),{headers:g});if(!p.ok)throw new Error(`Soundstripe API error: ${p.status} ${p.statusText}`);return p.json()},n=(e,t)=>{let i=t.find(s=>s.type==="audio_files"&&s.id===e.relationships.audio_files.data[0]?.id);if(!i?.attributes.versions?.mp3)return;let d=t.find(s=>s.type==="artists"&&s.id===e.relationships.artists.data[0]?.id);return{id:e.id,label:e.attributes.title,meta:{mimeType:"audio/mp3",uri:i.attributes.versions.mp3,thumbUri:d?.attributes?.image,previewUri:i.attributes.versions.mp3,filename:e.attributes.title,blockType:"//ly.img.ubq/audio",duration:i.attributes.duration.toString()},credits:d?.attributes?.name?{name:d.attributes.name}:void 0}},f=(e,t,i)=>e<Math.ceil(i/t)?e+1:void 0;return{id:"ly.img.audio.soundstripe",credits:{name:"Soundstripe",url:"https://soundstripe.com/"},license:{name:"Soundstripe",url:"https://www.soundstripe.com/music-licensing"},applyAsset:async e=>{let t=await r.asset.defaultApplyAsset(e);if(t)return r.block.setMetadata(t,"ly.img.audio.soundstripe.songId",e.id),t},applyAssetToBlock:async(e,t)=>{await r.asset.defaultApplyAssetToBlock(e,t),r.block.setMetadata(t,"ly.img.audio.soundstripe.songId",e.id)},async findAssets(e){try{let t=await l(e.query,e.page,e.perPage);return{assets:t.data.map(s=>n(s,t.included)).filter(s=>s!==void 0),currentPage:e.page,nextPage:f(e.page,e.perPage,t.links.meta.total_count),total:t.links.meta.total_count}}catch{return b}}}}var y=P;async function m(r,c={}){let{apiKey:o,baseUrl:a}=c,l=async n=>{let f=a||"https://api.soundstripe.com",u=new URL(`${f}/v1/songs/${n}`),e={Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json"};o&&(console.warn("Using direct Soundstripe API access for refresh, this is not recommended for production use. Instead, consider using a proxy server."),e.Authorization=`Bearer ${o}`);let t=await fetch(u.toString(),{headers:e});if(!t.ok)throw new Error(`Soundstripe API error: ${t.status} ${t.statusText}`);return t.json()};try{if(r.scene.get()===null)return;let f=r.block.findByType("audio");await Promise.allSettled(f.map(async u=>{let e=r.block.getString(u,"audio/fileURI");if(e&&e.includes("soundstripe.com"))try{let i=r.block.getMetadata(u,"ly.img.audio.soundstripe.songId");if(!i){console.warn(`No metadata found for Soundstripe audio block ${u}`);return}let s=await l(i),p=s.included.find(S=>S.type==="audio_files"&&S.id===s.data.relationships.audio_files.data[0]?.id)?.attributes.versions?.mp3;p&&p!==e&&r.block.setString(u,"audio/fileURI",p)}catch(i){console.warn(`Failed to refresh URI for Soundstripe audio block ${u}:`,i)}}))}catch(n){console.warn("Failed to refresh Soundstripe audio URIs:",n)}}var h=r=>{let{apiKey:c,baseUrl:o}=r;if(!c&&!o)throw new Error("Soundstripe Plugin: Either apiKey or baseUrl must be provided");return{async initialize({engine:a,cesdk:l}){let n=y(a,{apiKey:c,baseUrl:o});a.asset.addSource(n),a.scene.onActiveChanged(()=>{m(a,{apiKey:c,baseUrl:o})}),l&&l.setTranslations({en:{[`libraries.${n.id}.label`]:"Soundstripe"}})}}};var U=r=>({name:A,version:"1.
|
|
1
|
+
var A="@imgly/plugin-soundstripe-web";var b={assets:[],currentPage:1,nextPage:void 0,total:0};function P(r,c){let{apiKey:o,baseUrl:a}=c,l=async(e,t,i)=>{let d=a||"https://api.soundstripe.com",s=new URL(`${d}/v1/songs`);e&&s.searchParams.set("filter[q]",e),t&&s.searchParams.set("page[number]",t.toString()),i&&s.searchParams.set("page[size]",i.toString());let g={Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json"};o&&(console.warn("Using direct Soundstripe API access, this is not recommended for production use. Instead, consider using a proxy server."),g.Authorization=`Bearer ${o}`);let p=await fetch(s.toString(),{headers:g});if(!p.ok)throw new Error(`Soundstripe API error: ${p.status} ${p.statusText}`);return p.json()},n=(e,t)=>{let i=t.find(s=>s.type==="audio_files"&&s.id===e.relationships.audio_files.data[0]?.id);if(!i?.attributes.versions?.mp3)return;let d=t.find(s=>s.type==="artists"&&s.id===e.relationships.artists.data[0]?.id);return{id:e.id,label:e.attributes.title,meta:{mimeType:"audio/mp3",uri:i.attributes.versions.mp3,thumbUri:d?.attributes?.image,previewUri:i.attributes.versions.mp3,filename:e.attributes.title,blockType:"//ly.img.ubq/audio",duration:i.attributes.duration.toString()},credits:d?.attributes?.name?{name:d.attributes.name}:void 0}},f=(e,t,i)=>e<Math.ceil(i/t)?e+1:void 0;return{id:"ly.img.audio.soundstripe",credits:{name:"Soundstripe",url:"https://soundstripe.com/"},license:{name:"Soundstripe",url:"https://www.soundstripe.com/music-licensing"},applyAsset:async e=>{let t=await r.asset.defaultApplyAsset(e);if(t)return r.block.setMetadata(t,"ly.img.audio.soundstripe.songId",e.id),t},applyAssetToBlock:async(e,t)=>{await r.asset.defaultApplyAssetToBlock(e,t),r.block.setMetadata(t,"ly.img.audio.soundstripe.songId",e.id)},async findAssets(e){try{let t=await l(e.query,e.page,e.perPage);return{assets:t.data.map(s=>n(s,t.included)).filter(s=>s!==void 0),currentPage:e.page,nextPage:f(e.page,e.perPage,t.links.meta.total_count),total:t.links.meta.total_count}}catch{return b}}}}var y=P;async function m(r,c={}){let{apiKey:o,baseUrl:a}=c,l=async n=>{let f=a||"https://api.soundstripe.com",u=new URL(`${f}/v1/songs/${n}`),e={Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json"};o&&(console.warn("Using direct Soundstripe API access for refresh, this is not recommended for production use. Instead, consider using a proxy server."),e.Authorization=`Bearer ${o}`);let t=await fetch(u.toString(),{headers:e});if(!t.ok)throw new Error(`Soundstripe API error: ${t.status} ${t.statusText}`);return t.json()};try{if(r.scene.get()===null)return;let f=r.block.findByType("audio");await Promise.allSettled(f.map(async u=>{let e=r.block.getString(u,"audio/fileURI");if(e&&e.includes("soundstripe.com"))try{let i=r.block.getMetadata(u,"ly.img.audio.soundstripe.songId");if(!i){console.warn(`No metadata found for Soundstripe audio block ${u}`);return}let s=await l(i),p=s.included.find(S=>S.type==="audio_files"&&S.id===s.data.relationships.audio_files.data[0]?.id)?.attributes.versions?.mp3;p&&p!==e&&r.block.setString(u,"audio/fileURI",p)}catch(i){console.warn(`Failed to refresh URI for Soundstripe audio block ${u}:`,i)}}))}catch(n){console.warn("Failed to refresh Soundstripe audio URIs:",n)}}var h=r=>{let{apiKey:c,baseUrl:o}=r;if(!c&&!o)throw new Error("Soundstripe Plugin: Either apiKey or baseUrl must be provided");return{async initialize({engine:a,cesdk:l}){let n=y(a,{apiKey:c,baseUrl:o});a.asset.addSource(n),a.scene.onActiveChanged(()=>{m(a,{apiKey:c,baseUrl:o})}),l&&l.setTranslations({en:{[`libraries.${n.id}.label`]:"Soundstripe"}})}}};var U=r=>({name:A,version:"1.69.0-nightly.20260130",...h(r)}),$=U;export{$ as default,m as refreshSoundstripeAudioURIs};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/constants.ts", "../src/soundstripe-asset-source.ts", "../src/refresh-audio-uris.ts", "../src/plugin.ts", "../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export const PLUGIN_ID = '@imgly/plugin-soundstripe-web';\n", "import {\n AssetQueryData,\n AssetResult,\n AssetsQueryResult,\n AssetSource,\n CreativeEngine\n} from '@cesdk/cesdk-js';\nimport {\n SoundstripeApiResponse,\n SoundstripeSong,\n SoundstripeArtist,\n SoundstripeAudioFile\n} from './types';\n\nconst EMPTY_RESULT: AssetsQueryResult = {\n assets: [],\n currentPage: 1,\n nextPage: undefined,\n total: 0\n};\n\ninterface SoundstripeSourceConfig {\n apiKey?: string;\n baseUrl?: string;\n}\n\nfunction createSoundstripeSource(\n engine: CreativeEngine,\n config: SoundstripeSourceConfig\n): AssetSource {\n const { apiKey, baseUrl } = config;\n const fetchSoundstripeAssets = async (\n query?: string,\n page?: number,\n perPage?: number\n ): Promise<SoundstripeApiResponse> => {\n const apiBaseUrl = baseUrl || 'https://api.soundstripe.com';\n const url = new URL(`${apiBaseUrl}/v1/songs`);\n\n if (query) url.searchParams.set('filter[q]', query);\n if (page) url.searchParams.set('page[number]', page.toString());\n if (perPage) url.searchParams.set('page[size]', perPage.toString());\n\n const headers: Record<string, string> = {\n Accept: 'application/vnd.api+json',\n 'Content-Type': 'application/vnd.api+json'\n };\n\n // Only add Authorization header if apiKey is provided (not needed for proxy)\n if (apiKey) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Using direct Soundstripe API access, this is not recommended for production use. Instead, consider using a proxy server.'\n );\n headers.Authorization = `Bearer ${apiKey}`;\n }\n\n const response = await fetch(url.toString(), { headers });\n\n if (!response.ok) {\n throw new Error(\n `Soundstripe API error: ${response.status} ${response.statusText}`\n );\n }\n\n return response.json();\n };\n\n const formatAsset = (\n audio: SoundstripeSong,\n relationships: Array<SoundstripeArtist | SoundstripeAudioFile>\n ): AssetResult | undefined => {\n const audioFile = relationships.find(\n (item): item is SoundstripeAudioFile =>\n item.type === 'audio_files' &&\n item.id === audio.relationships.audio_files.data[0]?.id\n );\n\n if (!audioFile?.attributes.versions?.mp3) {\n return undefined;\n }\n\n const firstAuthor = relationships.find(\n (item): item is SoundstripeArtist =>\n item.type === 'artists' &&\n item.id === audio.relationships.artists.data[0]?.id\n );\n\n return {\n id: audio.id,\n label: audio.attributes.title,\n meta: {\n mimeType: 'audio/mp3',\n uri: audioFile.attributes.versions.mp3,\n thumbUri: firstAuthor?.attributes?.image,\n previewUri: audioFile.attributes.versions.mp3,\n filename: audio.attributes.title,\n blockType: '//ly.img.ubq/audio',\n duration: audioFile.attributes.duration.toString()\n },\n credits: firstAuthor?.attributes?.name\n ? {\n name: firstAuthor.attributes.name\n }\n : undefined\n };\n };\n\n const calculateNextPage = (\n page: number,\n pageSize: number,\n resultCount: number\n ) => {\n const hasNextPage = page < Math.ceil(resultCount / pageSize);\n return hasNextPage ? page + 1 : undefined;\n };\n\n const SoundstripeSource: AssetSource = {\n id: 'ly.img.audio.soundstripe',\n credits: {\n name: 'Soundstripe',\n url: 'https://soundstripe.com/'\n },\n license: {\n name: 'Soundstripe',\n url: 'https://www.soundstripe.com/music-licensing'\n },\n applyAsset: async (assetResult) => {\n const blockId = await engine.asset.defaultApplyAsset(assetResult);\n if (!blockId) return;\n engine.block.setMetadata(\n blockId,\n 'ly.img.audio.soundstripe.songId',\n assetResult.id\n );\n return blockId;\n },\n applyAssetToBlock: async (assetResult, blockId) => {\n await engine.asset.defaultApplyAssetToBlock(assetResult, blockId);\n engine.block.setMetadata(\n blockId,\n 'ly.img.audio.soundstripe.songId',\n assetResult.id\n );\n },\n async findAssets(queryData: AssetQueryData): Promise<AssetsQueryResult> {\n try {\n const response = await fetchSoundstripeAssets(\n queryData.query,\n queryData.page,\n queryData.perPage\n );\n\n const assets = response.data\n .map((song) => formatAsset(song, response.included))\n .filter((asset): asset is AssetResult => asset !== undefined);\n\n const result = {\n assets,\n currentPage: queryData.page,\n nextPage: calculateNextPage(\n queryData.page,\n queryData.perPage,\n response.links.meta.total_count\n ),\n total: response.links.meta.total_count\n };\n\n return result;\n } catch (error) {\n return EMPTY_RESULT;\n }\n }\n };\n\n return SoundstripeSource;\n}\n\nexport default createSoundstripeSource;\n", "import { CreativeEngine } from '@cesdk/cesdk-js';\nimport { SoundstripeSingleAssetResponse, SoundstripeAudioFile } from './types';\n\ninterface RefreshAudioConfig {\n apiKey?: string;\n baseUrl?: string;\n}\n\n/**\n * Refreshes expired Soundstripe audio URIs in the current scene\n * @param engine - The CESDK engine instance\n * @param config - Configuration object with apiKey and baseUrl\n */\nexport async function refreshSoundstripeAudioURIs(\n engine: CreativeEngine,\n config: RefreshAudioConfig = {}\n): Promise<void> {\n const { apiKey, baseUrl } = config;\n const fetchSoundstripeSong = async (\n songId: string\n ): Promise<SoundstripeSingleAssetResponse> => {\n const apiBaseUrl = baseUrl || 'https://api.soundstripe.com';\n const url = new URL(`${apiBaseUrl}/v1/songs/${songId}`);\n\n const headers: Record<string, string> = {\n Accept: 'application/vnd.api+json',\n 'Content-Type': 'application/vnd.api+json'\n };\n\n // Only add Authorization header if apiKey is provided (not needed for proxy)\n if (apiKey) {\n // eslint-disable-next-line no-console\n console.warn(\n 'Using direct Soundstripe API access for refresh, this is not recommended for production use. Instead, consider using a proxy server.'\n );\n headers.Authorization = `Bearer ${apiKey}`;\n }\n\n const response = await fetch(url.toString(), { headers });\n\n if (!response.ok) {\n throw new Error(\n `Soundstripe API error: ${response.status} ${response.statusText}`\n );\n }\n\n return response.json();\n };\n\n try {\n const scene = engine.scene.get();\n if (scene === null) {\n return;\n }\n\n const audioBlocks = engine.block.findByType('audio');\n\n await Promise.allSettled(\n audioBlocks.map(async (blockId) => {\n const oldUri = engine.block.getString(blockId, 'audio/fileURI');\n const isSoundStripe = oldUri && oldUri.includes('soundstripe.com');\n if (!isSoundStripe) {\n return;\n }\n try {\n const metadata = engine.block.getMetadata(\n blockId,\n 'ly.img.audio.soundstripe.songId'\n );\n if (!metadata) {\n // eslint-disable-next-line no-console\n console.warn(\n `No metadata found for Soundstripe audio block ${blockId}`\n );\n return;\n }\n\n const songId = metadata;\n const response = await fetchSoundstripeSong(songId);\n\n const audioFile = response.included.find(\n (item): item is SoundstripeAudioFile =>\n item.type === 'audio_files' &&\n item.id === response.data.relationships.audio_files.data[0]?.id\n );\n const newUri = audioFile?.attributes.versions?.mp3;\n\n if (newUri && newUri !== oldUri) {\n engine.block.setString(blockId, 'audio/fileURI', newUri);\n }\n } catch (error) {\n // eslint-disable-next-line no-console\n console.warn(\n `Failed to refresh URI for Soundstripe audio block ${blockId}:`,\n error\n );\n }\n })\n );\n } catch (error) {\n // eslint-disable-next-line no-console\n console.warn('Failed to refresh Soundstripe audio URIs:', error);\n }\n}\n", "import { CreativeEngine, type EditorPlugin } from '@cesdk/cesdk-js';\nimport createSoundstripeSource from './soundstripe-asset-source';\nimport { refreshSoundstripeAudioURIs } from './refresh-audio-uris';\n\nexport const SoundstripePlugin = (\n pluginConfiguration: SoundstripePluginConfiguration\n): Omit<EditorPlugin, 'name' | 'version'> => {\n const { apiKey, baseUrl } = pluginConfiguration;\n\n // Validate configuration: either apiKey (for direct API) or baseUrl (for proxy) must be provided\n if (!apiKey && !baseUrl) {\n throw new Error(\n 'Soundstripe Plugin: Either apiKey or baseUrl must be provided'\n );\n }\n\n return {\n async initialize({ engine, cesdk }) {\n const soundstripeSource = createSoundstripeSource(\n engine as CreativeEngine,\n { apiKey, baseUrl }\n );\n engine.asset.addSource(soundstripeSource);\n\n // Refresh all soundstripe urls when a scene is loaded\n engine.scene.onActiveChanged(() => {\n refreshSoundstripeAudioURIs(engine as CreativeEngine, {\n apiKey,\n baseUrl\n });\n });\n if (cesdk) {\n cesdk.setTranslations({\n en: {\n [`libraries.${soundstripeSource.id}.label`]: 'Soundstripe'\n }\n });\n }\n }\n };\n};\n\nexport interface SoundstripePluginConfiguration {\n apiKey?: string; // Optional API key (required when using direct API access)\n baseUrl?: string; // Optional base URL for proxy server (required when using proxy)\n}\n", "import { PLUGIN_ID } from './constants';\nimport {\n SoundstripePlugin,\n type SoundstripePluginConfiguration\n} from './plugin';\n\nconst Plugin = (pluginConfiguration: SoundstripePluginConfiguration) => ({\n name: PLUGIN_ID,\n version: PLUGIN_VERSION,\n ...SoundstripePlugin(pluginConfiguration)\n});\n\nexport default Plugin;\nexport type { SoundstripePluginConfiguration };\nexport { refreshSoundstripeAudioURIs } from './refresh-audio-uris';\n"],
|
|
5
|
-
"mappings": "AAAO,IAAMA,EAAY,gCCczB,IAAMC,EAAkC,CACtC,OAAQ,CAAC,EACT,YAAa,EACb,SAAU,OACV,MAAO,CACT,EAOA,SAASC,EACPC,EACAC,EACa,CACb,GAAM,CAAE,OAAAC,EAAQ,QAAAC,CAAQ,EAAIF,EACtBG,EAAyB,MAC7BC,EACAC,EACAC,IACoC,CACpC,IAAMC,EAAaL,GAAW,8BACxBM,EAAM,IAAI,IAAI,GAAGD,CAAU,WAAW,EAExCH,GAAOI,EAAI,aAAa,IAAI,YAAaJ,CAAK,EAC9CC,GAAMG,EAAI,aAAa,IAAI,eAAgBH,EAAK,SAAS,CAAC,EAC1DC,GAASE,EAAI,aAAa,IAAI,aAAcF,EAAQ,SAAS,CAAC,EAElE,IAAMG,EAAkC,CACtC,OAAQ,2BACR,eAAgB,0BAClB,EAGIR,IAEF,QAAQ,KACN,0HACF,EACAQ,EAAQ,cAAgB,UAAUR,CAAM,IAG1C,IAAMS,EAAW,MAAM,MAAMF,EAAI,SAAS,EAAG,CAAE,QAAAC,CAAQ,CAAC,EAExD,GAAI,CAACC,EAAS,GACZ,MAAM,IAAI,MACR,0BAA0BA,EAAS,MAAM,IAAIA,EAAS,UAAU,EAClE,EAGF,OAAOA,EAAS,KAAK,CACvB,EAEMC,EAAc,CAClBC,EACAC,IAC4B,CAC5B,IAAMC,EAAYD,EAAc,KAC7BE,GACCA,EAAK,OAAS,eACdA,EAAK,KAAOH,EAAM,cAAc,YAAY,KAAK,CAAC,GAAG,EACzD,EAEA,GAAI,CAACE,GAAW,WAAW,UAAU,IACnC,OAGF,IAAME,EAAcH,EAAc,KAC/BE,GACCA,EAAK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,QAAQ,EAAG,aAC/C,CACF,CAAC,CAEL,CACF,CACF,EClCA,IAAMG,EAAUC,IAAyD,CACvE,KAAMC,EACN,QAAS,0BACT,GAAGC,EAAkBF,CAAmB,CAC1C,GAEOG,EAAQJ",
|
|
6
6
|
"names": ["PLUGIN_ID", "EMPTY_RESULT", "createSoundstripeSource", "engine", "config", "apiKey", "baseUrl", "fetchSoundstripeAssets", "query", "page", "perPage", "apiBaseUrl", "url", "headers", "response", "formatAsset", "audio", "relationships", "audioFile", "item", "firstAuthor", "calculateNextPage", "pageSize", "resultCount", "assetResult", "blockId", "queryData", "song", "asset", "soundstripe_asset_source_default", "refreshSoundstripeAudioURIs", "engine", "config", "apiKey", "baseUrl", "fetchSoundstripeSong", "songId", "apiBaseUrl", "url", "headers", "response", "audioBlocks", "blockId", "oldUri", "metadata", "newUri", "item", "error", "SoundstripePlugin", "pluginConfiguration", "apiKey", "baseUrl", "engine", "cesdk", "soundstripeSource", "soundstripe_asset_source_default", "refreshSoundstripeAudioURIs", "Plugin", "pluginConfiguration", "PLUGIN_ID", "SoundstripePlugin", "src_default"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imgly/plugin-soundstripe-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.69.0-nightly.20260130",
|
|
4
4
|
"description": "Soundstripe asset source plugin for the CE.SDK editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CE.SDK",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.7.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@cesdk/cesdk-js": "1.
|
|
48
|
+
"@cesdk/cesdk-js": "1.69.0-nightly.20260130"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {},
|
|
51
51
|
"scripts": {
|