@imgly/codesign-mcp 0.1.5 → 0.1.6
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/README.md +51 -1
- package/assets/docs/guide/SKILL.md +45 -53
- package/assets/docs/guide/animation/create/base.md +234 -243
- package/assets/docs/guide/animation/create/text.md +250 -231
- package/assets/docs/guide/animation/create.md +197 -231
- package/assets/docs/guide/animation/edit.md +196 -271
- package/assets/docs/guide/animation/types.md +182 -185
- package/assets/docs/guide/animation.md +9 -6
- package/assets/docs/guide/api/AssetAPI.md +7 -53
- package/assets/docs/guide/api/BlockAPI.md +725 -648
- package/assets/docs/guide/api/CreativeEngine.md +7 -16
- package/assets/docs/guide/api/EditorAPI.md +32 -93
- package/assets/docs/guide/api/EventAPI.md +1 -2
- package/assets/docs/guide/api/SceneAPI.md +47 -98
- package/assets/docs/guide/api/VariableAPI.md +1 -4
- package/assets/docs/guide/api/node/classes/assetapi.md +1090 -0
- package/assets/docs/guide/api/node/classes/blockapi.md +12965 -0
- package/assets/docs/guide/api/node/classes/creativeengine.md +319 -0
- package/assets/docs/guide/api/node/classes/editorapi.md +3417 -0
- package/assets/docs/guide/api/node/classes/engineactions.md +319 -0
- package/assets/docs/guide/api/node/classes/eventapi.md +56 -0
- package/assets/docs/guide/api/node/classes/sceneapi.md +1370 -0
- package/assets/docs/guide/api/node/classes/variableapi.md +143 -0
- package/assets/docs/guide/api/node/enumerations/compressionformat.md +23 -0
- package/assets/docs/guide/api/node/enumerations/compressionlevel.md +24 -0
- package/assets/docs/guide/api/node/functions/iscmykcolor.md +30 -0
- package/assets/docs/guide/api/node/functions/isrgbacolor.md +30 -0
- package/assets/docs/guide/api/node/functions/isspotcolor.md +30 -0
- package/assets/docs/guide/api/node/interfaces/addvideooptions.md +31 -0
- package/assets/docs/guide/api/node/interfaces/applyassetoptions.md +31 -0
- package/assets/docs/guide/api/node/interfaces/asset.md +30 -0
- package/assets/docs/guide/api/node/interfaces/assetbooleanproperty.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetcmykcolor.md +26 -0
- package/assets/docs/guide/api/node/interfaces/assetcolorproperty.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetcontentaspectratio.md +23 -0
- package/assets/docs/guide/api/node/interfaces/assetdefinition.md +31 -0
- package/assets/docs/guide/api/node/interfaces/assetenumproperty.md +26 -0
- package/assets/docs/guide/api/node/interfaces/assetfixedaspectratio.md +24 -0
- package/assets/docs/guide/api/node/interfaces/assetfixedsize.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetfreeaspectratio.md +22 -0
- package/assets/docs/guide/api/node/interfaces/assetnumberproperty.md +28 -0
- package/assets/docs/guide/api/node/interfaces/assetpayload.md +27 -0
- package/assets/docs/guide/api/node/interfaces/assetquerydata.md +32 -0
- package/assets/docs/guide/api/node/interfaces/assetresult.md +46 -0
- package/assets/docs/guide/api/node/interfaces/assetrgbcolor.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetsource.md +111 -0
- package/assets/docs/guide/api/node/interfaces/assetspotcolor.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetsqueryresult.md +31 -0
- package/assets/docs/guide/api/node/interfaces/assetstringproperty.md +25 -0
- package/assets/docs/guide/api/node/interfaces/assetstylepreset.md +39 -0
- package/assets/docs/guide/api/node/interfaces/assetstylepresetanimation.md +23 -0
- package/assets/docs/guide/api/node/interfaces/audiotrackinfo.md +32 -0
- package/assets/docs/guide/api/node/interfaces/blockevent.md +26 -0
- package/assets/docs/guide/api/node/interfaces/blockstateerror.md +26 -0
- package/assets/docs/guide/api/node/interfaces/blockstatepending.md +26 -0
- package/assets/docs/guide/api/node/interfaces/blockstateready.md +25 -0
- package/assets/docs/guide/api/node/interfaces/buffer.md +26 -0
- package/assets/docs/guide/api/node/interfaces/characterinkbox.md +29 -0
- package/assets/docs/guide/api/node/interfaces/cmykcolor.md +34 -0
- package/assets/docs/guide/api/node/interfaces/completeassetresult.md +46 -0
- package/assets/docs/guide/api/node/interfaces/configuration.md +38 -0
- package/assets/docs/guide/api/node/interfaces/dominantcolor.md +25 -0
- package/assets/docs/guide/api/node/interfaces/dominantcolorsoptions.md +23 -0
- package/assets/docs/guide/api/node/interfaces/engineactioninfo.md +24 -0
- package/assets/docs/guide/api/node/interfaces/engineactionsregistry.md +18 -0
- package/assets/docs/guide/api/node/interfaces/engineplugin.md +30 -0
- package/assets/docs/guide/api/node/interfaces/font.md +27 -0
- package/assets/docs/guide/api/node/interfaces/fontmetrics.md +32 -0
- package/assets/docs/guide/api/node/interfaces/gradientcolorstop.md +28 -0
- package/assets/docs/guide/api/node/interfaces/logger.md +39 -0
- package/assets/docs/guide/api/node/interfaces/pageduration.md +23 -0
- package/assets/docs/guide/api/node/interfaces/range.md +23 -0
- package/assets/docs/guide/api/node/interfaces/rgbacolor.md +32 -0
- package/assets/docs/guide/api/node/interfaces/rgbcolor.md +30 -0
- package/assets/docs/guide/api/node/interfaces/settings.md +126 -0
- package/assets/docs/guide/api/node/interfaces/size2.md +21 -0
- package/assets/docs/guide/api/node/interfaces/source.md +24 -0
- package/assets/docs/guide/api/node/interfaces/spotcolor.md +30 -0
- package/assets/docs/guide/api/node/interfaces/textdecorationconfig.md +31 -0
- package/assets/docs/guide/api/node/interfaces/textfontsizeoptions.md +24 -0
- package/assets/docs/guide/api/node/interfaces/textruninfo.md +33 -0
- package/assets/docs/guide/api/node/interfaces/transientresource.md +26 -0
- package/assets/docs/guide/api/node/interfaces/typeface.md +23 -0
- package/assets/docs/guide/api/node/interfaces/vec2.md +21 -0
- package/assets/docs/guide/api/node/interfaces/vec3.md +22 -0
- package/assets/docs/guide/api/node/type-aliases/addimageoptions.md +36 -0
- package/assets/docs/guide/api/node/type-aliases/animationbaselinedirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationblockswipetextdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationeasing.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationentry.md +28 -0
- package/assets/docs/guide/api/node/type-aliases/animationgrowdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationjumploopdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationkenburnsdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationmergetextdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationoptions.md +28 -0
- package/assets/docs/guide/api/node/type-aliases/animationspindirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationspinloopdirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationtype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/animationtypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/animationtypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationtypewritertextwritingstyle.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/animationwipedirection.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/applicationmimetype.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/assetcolor.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/assetfilter.md +47 -0
- package/assets/docs/guide/api/node/type-aliases/assetgroups.md +25 -0
- package/assets/docs/guide/api/node/type-aliases/assetmetadata.md +42 -0
- package/assets/docs/guide/api/node/type-aliases/assetproperty.md +25 -0
- package/assets/docs/guide/api/node/type-aliases/assetpropertyfilter.md +41 -0
- package/assets/docs/guide/api/node/type-aliases/assetpropertypath.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/assetstylepresetanimationproperties.md +34 -0
- package/assets/docs/guide/api/node/type-aliases/assetstylepresetproperties.md +29 -0
- package/assets/docs/guide/api/node/type-aliases/assetstylepresetpropertyvalue.md +29 -0
- package/assets/docs/guide/api/node/type-aliases/assetstylepresetscalableproperty.md +28 -0
- package/assets/docs/guide/api/node/type-aliases/assettransformpreset.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/asyncuriresolver.md +36 -0
- package/assets/docs/guide/api/node/type-aliases/audioexportoptions.md +43 -0
- package/assets/docs/guide/api/node/type-aliases/audiofromvideooptions.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/audiomimetype.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/blendmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/blockenumtype.md +63 -0
- package/assets/docs/guide/api/node/type-aliases/blockstate.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/blurtype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/blurtypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/blurtypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/booleanoperation.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/boolpropertyname.md +79 -0
- package/assets/docs/guide/api/node/type-aliases/cameraclampingovershootmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/captionhorizontalalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/captionverticalalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/cmyk.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/color.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/colorpickercolormode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/colorpropertyname.md +31 -0
- package/assets/docs/guide/api/node/type-aliases/colorspace.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/contentfillmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/controlgizmomovehandlevisibility.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/controlgizmoresizehandlesvisibility.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/controlgizmorotatehandlesvisibility.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/controlgizmoscalehandlesvisibility.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/createsceneoptions.md +30 -0
- package/assets/docs/guide/api/node/type-aliases/cutoutoperation.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/cutouttype.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/defaultassetsourceid.md +37 -0
- package/assets/docs/guide/api/node/type-aliases/demoassetsourceid.md +33 -0
- package/assets/docs/guide/api/node/type-aliases/designblockid.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/designblocktype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/designblocktypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/designblocktypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/designunit.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/doubleclickselectionmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/doublepropertyname.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/dropshadowoptions.md +32 -0
- package/assets/docs/guide/api/node/type-aliases/editmode.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/effecttype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/effecttypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/effecttypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/engineactionid.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/enginecustomactionfunction.md +30 -0
- package/assets/docs/guide/api/node/type-aliases/engineplugincontext.md +30 -0
- package/assets/docs/guide/api/node/type-aliases/enumpropertyname.md +59 -0
- package/assets/docs/guide/api/node/type-aliases/enumvalues.md +59 -0
- package/assets/docs/guide/api/node/type-aliases/exportoptions.md +57 -0
- package/assets/docs/guide/api/node/type-aliases/fillpixelstreamorientation.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/filltype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/filltypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/filltypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/floatpropertyname.md +184 -0
- package/assets/docs/guide/api/node/type-aliases/fontsizeunit.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/fontstyle.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/fontweight.md +30 -0
- package/assets/docs/guide/api/node/type-aliases/gradientstoprgba.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/heightmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/hexcolorstring.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/historyid.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/historyupdate.md +25 -0
- package/assets/docs/guide/api/node/type-aliases/horizontalblockalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/horizontalcontentfillalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/horizontaltextalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/imagemimetype.md +25 -0
- package/assets/docs/guide/api/node/type-aliases/intpropertyname.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/liststyle.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/locale.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/loglevel.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/mimetype.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/objecttype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/objecttypelonghand.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/objecttypeshorthand.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/optionalprefix.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/pageguidessource.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/palettecolor.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/positionmode.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/positionxmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/positionymode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/propertytype.md +31 -0
- package/assets/docs/guide/api/node/type-aliases/rgba.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/rolestring.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/scenefontsizeunit.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/scenelayout.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/scenemode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/scope.md +50 -0
- package/assets/docs/guide/api/node/type-aliases/settingboolpropertyname.md +62 -0
- package/assets/docs/guide/api/node/type-aliases/settingcolorpropertyname.md +38 -0
- package/assets/docs/guide/api/node/type-aliases/settingenumpropertyname.md +29 -0
- package/assets/docs/guide/api/node/type-aliases/settingenumtype.md +33 -0
- package/assets/docs/guide/api/node/type-aliases/settingenumvalues.md +29 -0
- package/assets/docs/guide/api/node/type-aliases/settingfloatpropertyname.md +25 -0
- package/assets/docs/guide/api/node/type-aliases/settingintpropertyname.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingkey.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/settingsbool.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingscolor.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/settingscolorrgba.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/settingsenum.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingsfloat.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingsint.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingsstring.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/settingstringpropertyname.md +28 -0
- package/assets/docs/guide/api/node/type-aliases/settingtype.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/settingvaluetype.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/shapetype.md +24 -0
- package/assets/docs/guide/api/node/type-aliases/shapetypelonghand.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/shapetypeshorthand.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/shapevectorpathfillrule.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/sizemode.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/sortingorder.md +21 -0
- package/assets/docs/guide/api/node/type-aliases/sourcesetpropertyname.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/splitoptions.md +28 -0
- package/assets/docs/guide/api/node/type-aliases/stringpropertyname.md +43 -0
- package/assets/docs/guide/api/node/type-aliases/strokecap.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokecornergeometry.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokedashendcap.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokedashstartcap.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokeendcap.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokeposition.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokestartcap.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/strokestyle.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/syncuriresolver.md +31 -0
- package/assets/docs/guide/api/node/type-aliases/textanimationwritingstyle.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/textcase.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/textdecorationline.md +27 -0
- package/assets/docs/guide/api/node/type-aliases/textdecorationstyle.md +26 -0
- package/assets/docs/guide/api/node/type-aliases/textverticalalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/timelinetrackvisibility.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/touchpinchaction.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/touchrotateaction.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/typefacedefinition.md +41 -0
- package/assets/docs/guide/api/node/type-aliases/verticalblockalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/verticalcontentfillalignment.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/videoexportoptions.md +54 -0
- package/assets/docs/guide/api/node/type-aliases/videomimetype.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/widthmode.md +18 -0
- package/assets/docs/guide/api/node/type-aliases/xywh.md +23 -0
- package/assets/docs/guide/api/node/type-aliases/zoomautofitaxis.md +20 -0
- package/assets/docs/guide/api/node/type-aliases/zoomoptions.md +27 -0
- package/assets/docs/guide/api/node/variables/animation_types.md +21 -0
- package/assets/docs/guide/api/node/variables/animationbaselinedirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationblockswipetextdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationeasingvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationgrowdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationjumploopdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationkenburnsdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationmergetextdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationspindirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationspinloopdirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationtypewritertextwritingstylevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/animationwipedirectionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/blendmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/blur_types.md +21 -0
- package/assets/docs/guide/api/node/variables/cameraclampingovershootmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/captionhorizontalalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/captionverticalalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/colorpickercolormodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/contentfillmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/controlgizmomovehandlevisibilityvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/controlgizmoresizehandlesvisibilityvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/controlgizmorotatehandlesvisibilityvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/controlgizmoscalehandlesvisibilityvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/cutouttypevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/design_block_types.md +21 -0
- package/assets/docs/guide/api/node/variables/doubleclickselectionmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/effect_types.md +21 -0
- package/assets/docs/guide/api/node/variables/fill_types.md +21 -0
- package/assets/docs/guide/api/node/variables/fillpixelstreamorientationvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/heightmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/horizontalcontentfillalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/loglevel.md +37 -0
- package/assets/docs/guide/api/node/variables/mimetype.md +41 -0
- package/assets/docs/guide/api/node/variables/pageguidessourcevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/positionxmodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/positionymodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/scenedesignunitvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/scenefontsizeunitvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/scenelayoutvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/scenemodevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/shape_types.md +21 -0
- package/assets/docs/guide/api/node/variables/shapevectorpathfillrulevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokecapvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokecornergeometryvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokedashendcapvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokedashstartcapvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokeendcapvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokepositionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokestartcapvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/strokestylevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/textanimationwritingstylevalues.md +18 -0
- package/assets/docs/guide/api/node/variables/texthorizontalalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/textverticalalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/timelinetrackvisibilityvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/touchpinchactionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/touchrotateactionvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/verticalcontentfillalignmentvalues.md +18 -0
- package/assets/docs/guide/api/node/variables/widthmodevalues.md +18 -0
- package/assets/docs/guide/api/types.md +5 -9
- package/assets/docs/guide/api-reference/overview.md +7 -7
- package/assets/docs/guide/automation/auto-resize.md +263 -300
- package/assets/docs/guide/automation/data-merge.md +246 -275
- package/assets/docs/guide/automation/design-generation.md +102 -31
- package/assets/docs/guide/automation/multi-image-generation.md +758 -0
- package/assets/docs/guide/automation/overview.md +21 -4
- package/assets/docs/guide/automation.md +10 -5
- package/assets/docs/guide/capabilities.md +6 -4
- package/assets/docs/guide/colors/adjust.md +247 -249
- package/assets/docs/guide/colors/apply.md +127 -138
- package/assets/docs/guide/colors/basics.md +126 -150
- package/assets/docs/guide/colors/conversion.md +171 -177
- package/assets/docs/guide/colors/create-color-palette.md +244 -245
- package/assets/docs/guide/colors/extract-colors.md +144 -0
- package/assets/docs/guide/colors/for-print/cmyk.md +292 -352
- package/assets/docs/guide/colors/for-print/spot.md +521 -578
- package/assets/docs/guide/colors/for-print.md +9 -4
- package/assets/docs/guide/colors/for-screen/p3.md +12 -10
- package/assets/docs/guide/colors/for-screen/srgb.md +107 -133
- package/assets/docs/guide/colors/for-screen.md +9 -4
- package/assets/docs/guide/colors/overview.md +6 -4
- package/assets/docs/guide/colors/replace.md +381 -419
- package/assets/docs/guide/colors.md +9 -4
- package/assets/docs/guide/compatibility.md +7 -5
- package/assets/docs/guide/concepts/architecture.md +17 -15
- package/assets/docs/guide/concepts/assets.md +152 -140
- package/assets/docs/guide/concepts/blocks.md +227 -323
- package/assets/docs/guide/concepts/buffers.md +147 -276
- package/assets/docs/guide/concepts/design-units.md +95 -145
- package/assets/docs/guide/concepts/editing-workflow.md +69 -183
- package/assets/docs/guide/concepts/events.md +80 -122
- package/assets/docs/guide/concepts/headless-mode.md +237 -0
- package/assets/docs/guide/concepts/pages.md +137 -127
- package/assets/docs/guide/concepts/resources.md +156 -217
- package/assets/docs/guide/concepts/scenes.md +191 -210
- package/assets/docs/guide/concepts/templating.md +118 -74
- package/assets/docs/guide/concepts/terminology.md +49 -47
- package/assets/docs/guide/concepts/undo-and-history.md +229 -303
- package/assets/docs/guide/concepts.md +9 -7
- package/assets/docs/guide/configuration.md +252 -380
- package/assets/docs/guide/conversion/overview.md +33 -4
- package/assets/docs/guide/conversion/to-base64.md +127 -167
- package/assets/docs/guide/conversion/to-pdf.md +24 -474
- package/assets/docs/guide/conversion/to-png.md +168 -211
- package/assets/docs/guide/conversion.md +9 -4
- package/assets/docs/guide/create-audio/audio/add-music.md +301 -327
- package/assets/docs/guide/create-audio/audio/add-sound-effects.md +475 -359
- package/assets/docs/guide/create-audio/audio/loop.md +232 -272
- package/assets/docs/guide/create-composition/add-background.md +237 -239
- package/assets/docs/guide/create-composition/blend-modes.md +118 -209
- package/assets/docs/guide/create-composition/collage.md +538 -320
- package/assets/docs/guide/create-composition/group-and-ungroup.md +216 -261
- package/assets/docs/guide/create-composition/layer-management.md +219 -257
- package/assets/docs/guide/create-composition/layout.md +513 -315
- package/assets/docs/guide/create-composition/lock-design.md +90 -109
- package/assets/docs/guide/create-composition/multi-page.md +133 -113
- package/assets/docs/guide/create-composition/overview.md +16 -4
- package/assets/docs/guide/create-composition/programmatic.md +288 -344
- package/assets/docs/guide/create-composition.md +10 -5
- package/assets/docs/guide/create-templates/add-dynamic-content/placeholders.md +443 -569
- package/assets/docs/guide/create-templates/add-dynamic-content/set-editing-constraints.md +567 -470
- package/assets/docs/guide/create-templates/add-dynamic-content/text-variables.md +179 -516
- package/assets/docs/guide/create-templates/add-dynamic-content.md +226 -224
- package/assets/docs/guide/create-templates/add-to-template-library.md +183 -193
- package/assets/docs/guide/create-templates/edit-or-remove.md +297 -303
- package/assets/docs/guide/create-templates/from-scratch.md +207 -268
- package/assets/docs/guide/create-templates/import/from-scene-file.md +158 -236
- package/assets/docs/guide/create-templates/import.md +145 -161
- package/assets/docs/guide/create-templates/lock.md +42 -295
- package/assets/docs/guide/create-templates/overview.md +33 -4
- package/assets/docs/guide/create-templates.md +9 -5
- package/assets/docs/guide/create-video/audio/adjust-speed.md +157 -207
- package/assets/docs/guide/create-video/audio/adjust-volume.md +116 -227
- package/assets/docs/guide/create-video/control.md +352 -193
- package/assets/docs/guide/create-video/limitations.md +175 -280
- package/assets/docs/guide/create-video.md +11 -10
- package/assets/docs/guide/edit-image/add-watermark.md +283 -330
- package/assets/docs/guide/edit-image/overview.md +29 -4
- package/assets/docs/guide/edit-image/remove-bg.md +283 -337
- package/assets/docs/guide/edit-image/replace-colors.md +424 -502
- package/assets/docs/guide/edit-image/transform/crop.md +463 -402
- package/assets/docs/guide/edit-image/transform/flip.md +353 -0
- package/assets/docs/guide/edit-image/transform/move.md +143 -100
- package/assets/docs/guide/edit-image/transform/resize.md +118 -88
- package/assets/docs/guide/edit-image/transform/rotate.md +132 -165
- package/assets/docs/guide/edit-image/transform/scale.md +230 -228
- package/assets/docs/guide/edit-image/transform.md +10 -5
- package/assets/docs/guide/edit-image.md +11 -7
- package/assets/docs/guide/edit-video/add-captions.md +344 -421
- package/assets/docs/guide/edit-video/add-watermark.md +312 -258
- package/assets/docs/guide/edit-video/join-and-arrange.md +237 -371
- package/assets/docs/guide/edit-video/redaction.md +419 -385
- package/assets/docs/guide/edit-video/split.md +243 -493
- package/assets/docs/guide/edit-video/transform/crop.md +21 -352
- package/assets/docs/guide/edit-video/transform/flip.md +102 -76
- package/assets/docs/guide/edit-video/transform/move.md +258 -310
- package/assets/docs/guide/edit-video/transform/resize.md +264 -428
- package/assets/docs/guide/edit-video/transform/rotate.md +265 -228
- package/assets/docs/guide/edit-video/transform/scale.md +320 -417
- package/assets/docs/guide/edit-video/transform.md +10 -6
- package/assets/docs/guide/edit-video/trim.md +448 -494
- package/assets/docs/guide/engine-interface.md +51 -62
- package/assets/docs/guide/export-save-publish/create-thumbnail.md +148 -184
- package/assets/docs/guide/export-save-publish/export/compress.md +161 -559
- package/assets/docs/guide/export-save-publish/export/overview.md +224 -373
- package/assets/docs/guide/export-save-publish/export/partial-export.md +386 -577
- package/assets/docs/guide/export-save-publish/export/size-limits.md +215 -310
- package/assets/docs/guide/export-save-publish/export/to-jpeg.md +132 -213
- package/assets/docs/guide/export-save-publish/export/to-pdf.md +139 -267
- package/assets/docs/guide/export-save-publish/export/to-png.md +121 -165
- package/assets/docs/guide/export-save-publish/export/to-raw-data.md +187 -234
- package/assets/docs/guide/export-save-publish/export/to-webp.md +160 -190
- package/assets/docs/guide/export-save-publish/export/with-color-mask.md +359 -203
- package/assets/docs/guide/export-save-publish/export.md +14 -11
- package/assets/docs/guide/export-save-publish/for-printing.md +141 -237
- package/assets/docs/guide/export-save-publish/for-social-media.md +124 -261
- package/assets/docs/guide/export-save-publish/pre-export-validation.md +436 -522
- package/assets/docs/guide/export-save-publish/save.md +167 -226
- package/assets/docs/guide/export-save-publish/store-custom-metadata.md +97 -162
- package/assets/docs/guide/file-format-support.md +9 -9
- package/assets/docs/guide/fills/color.md +370 -347
- package/assets/docs/guide/fills/image.md +167 -196
- package/assets/docs/guide/fills/overview.md +6 -4
- package/assets/docs/guide/fills/video.md +286 -438
- package/assets/docs/guide/fills.md +12 -8
- package/assets/docs/guide/filters-and-effects/apply.md +598 -664
- package/assets/docs/guide/filters-and-effects/blur.md +261 -159
- package/assets/docs/guide/filters-and-effects/chroma-key-green-screen.md +194 -293
- package/assets/docs/guide/filters-and-effects/create-custom-filters.md +548 -466
- package/assets/docs/guide/filters-and-effects/create-custom-lut-filter.md +176 -244
- package/assets/docs/guide/filters-and-effects/distortion.md +317 -384
- package/assets/docs/guide/filters-and-effects/duotone.md +221 -217
- package/assets/docs/guide/filters-and-effects/gradients.md +670 -813
- package/assets/docs/guide/filters-and-effects/overview.md +7 -7
- package/assets/docs/guide/filters-and-effects/support.md +97 -132
- package/assets/docs/guide/filters-and-effects.md +11 -6
- package/assets/docs/guide/get-started/agent-skills.md +20 -18
- package/assets/docs/guide/get-started/build-with-ai.md +7 -4
- package/assets/docs/guide/get-started/bun.md +219 -0
- package/assets/docs/guide/get-started/deno.md +161 -0
- package/assets/docs/guide/get-started/mcp-server.md +6 -4
- package/assets/docs/guide/get-started/overview.md +11 -6
- package/assets/docs/guide/get-started/vanilla-aws-lambda.md +506 -0
- package/assets/docs/guide/get-started/vanilla-clone-github-project.md +124 -0
- package/assets/docs/guide/get-started/vanilla.md +235 -0
- package/assets/docs/guide/guides/export-save-publish/export/audio.md +80 -66
- package/assets/docs/guide/guides.md +10 -9
- package/assets/docs/guide/import-media/asset-panel/refresh-assets.md +259 -288
- package/assets/docs/guide/import-media/concepts.md +20 -38
- package/assets/docs/guide/import-media/content-json-schema.md +145 -125
- package/assets/docs/guide/import-media/default-assets.md +113 -161
- package/assets/docs/guide/import-media/edit-or-remove-assets.md +391 -395
- package/assets/docs/guide/import-media/file-format-support.md +78 -61
- package/assets/docs/guide/import-media/from-remote-source/asset-versioning.md +273 -244
- package/assets/docs/guide/import-media/from-remote-source/remote-asset.md +152 -222
- package/assets/docs/guide/import-media/from-remote-source.md +9 -11
- package/assets/docs/guide/import-media/overview.md +5 -5
- package/assets/docs/guide/import-media/retrieve-mimetype.md +216 -108
- package/assets/docs/guide/import-media/size-limits.md +6 -4
- package/assets/docs/guide/import-media/source-sets.md +190 -251
- package/assets/docs/guide/import-media.md +10 -8
- package/assets/docs/guide/insert-media/audio.md +202 -195
- package/assets/docs/guide/insert-media/images.md +190 -188
- package/assets/docs/guide/insert-media/position-and-align.md +284 -551
- package/assets/docs/guide/insert-media/shapes-or-stickers.md +402 -418
- package/assets/docs/guide/insert-media/videos.md +236 -203
- package/assets/docs/guide/insert-media.md +10 -5
- package/assets/docs/guide/key-capabilities.md +36 -4
- package/assets/docs/guide/key-concepts.md +6 -4
- package/assets/docs/guide/licensing.md +6 -4
- package/assets/docs/guide/llms-txt.md +11 -7
- package/assets/docs/guide/open-the-editor/blank-canvas.md +102 -63
- package/assets/docs/guide/open-the-editor/from-image.md +157 -127
- package/assets/docs/guide/open-the-editor/from-template.md +131 -92
- package/assets/docs/guide/open-the-editor/from-video.md +204 -212
- package/assets/docs/guide/open-the-editor/import-design/from-archive.md +310 -360
- package/assets/docs/guide/open-the-editor/import-design/from-indesign.md +716 -513
- package/assets/docs/guide/open-the-editor/import-design/from-photoshop.md +667 -695
- package/assets/docs/guide/open-the-editor/import-design.md +228 -266
- package/assets/docs/guide/open-the-editor/load-scene.md +72 -68
- package/assets/docs/guide/open-the-editor/overview.md +6 -4
- package/assets/docs/guide/open-the-editor/uri-resolver.md +160 -251
- package/assets/docs/guide/open-the-editor.md +11 -9
- package/assets/docs/guide/outlines/overview.md +12 -4
- package/assets/docs/guide/outlines/shadows-and-glows.md +105 -410
- package/assets/docs/guide/outlines/strokes.md +218 -166
- package/assets/docs/guide/outlines.md +9 -4
- package/assets/docs/guide/overview.md +14 -6
- package/assets/docs/guide/performance.md +220 -113
- package/assets/docs/guide/plugins/print-ready-pdf.md +273 -368
- package/assets/docs/guide/plugins.md +10 -16
- package/assets/docs/guide/rules/asset-handling.md +7 -18
- package/assets/docs/guide/rules/common-pitfalls.md +25 -42
- package/assets/docs/guide/rules/content-fill-mode.md +4 -4
- package/assets/docs/guide/rules/enforce-brand-guidelines.md +398 -567
- package/assets/docs/guide/rules/lock-content.md +188 -231
- package/assets/docs/guide/rules/moderate-content.md +580 -571
- package/assets/docs/guide/rules/overview.md +345 -380
- package/assets/docs/guide/rules/silent-init-errors.md +4 -1
- package/assets/docs/guide/rules/verify-properties-before-use.md +2 -11
- package/assets/docs/guide/rules.md +10 -5
- package/assets/docs/guide/security.md +7 -5
- package/assets/docs/guide/serve-assets.md +57 -284
- package/assets/docs/guide/settings.md +96 -74
- package/assets/docs/guide/shapes.md +10 -5
- package/assets/docs/guide/stickers-and-shapes/combine.md +397 -583
- package/assets/docs/guide/stickers-and-shapes/create-cutout.md +181 -268
- package/assets/docs/guide/stickers-and-shapes/create-edit/create-shapes.md +418 -431
- package/assets/docs/guide/stickers-and-shapes/create-edit/create-stickers.md +147 -226
- package/assets/docs/guide/stickers-and-shapes/create-edit/edit-shapes.md +138 -123
- package/assets/docs/guide/stickers-and-shapes/insert-qr-code.md +151 -149
- package/assets/docs/guide/stickers.md +9 -4
- package/assets/docs/guide/text/add.md +470 -482
- package/assets/docs/guide/text/adjust-spacing.md +179 -214
- package/assets/docs/guide/text/auto-size.md +210 -271
- package/assets/docs/guide/text/edit.md +294 -309
- package/assets/docs/guide/text/effects.md +154 -190
- package/assets/docs/guide/text/emojis.md +199 -232
- package/assets/docs/guide/text/language-support.md +369 -382
- package/assets/docs/guide/text/overview.md +41 -4
- package/assets/docs/guide/text/styling.md +239 -273
- package/assets/docs/guide/text/text-designs.md +405 -544
- package/assets/docs/guide/text.md +10 -9
- package/assets/docs/guide/to-v1-19.md +12 -10
- package/assets/docs/guide/upgrade.md +8 -9
- package/assets/docs/guide/use-templates/apply-template.md +174 -163
- package/assets/docs/guide/use-templates/generate.md +171 -152
- package/assets/docs/guide/use-templates/overview.md +32 -4
- package/assets/docs/guide/use-templates/programmatic.md +266 -301
- package/assets/docs/guide/use-templates/replace-content.md +181 -171
- package/assets/docs/guide/what-is-cesdk.md +71 -282
- package/assets/docs/handbook/SKILL.md +24 -0
- package/dist/assets/inline.generated.d.ts.map +1 -1
- package/dist/assets/inline.generated.js +544 -406
- package/dist/assets/inline.generated.js.map +1 -1
- package/dist/assets/load-browser.d.ts +1 -1
- package/dist/assets/load-browser.js +1 -1
- package/dist/assets/load-browser.js.map +1 -1
- package/dist/assets/load-node.d.ts +1 -1
- package/dist/assets/load-node.js +1 -1
- package/dist/assets/load-node.js.map +1 -1
- package/dist/cli/http.d.ts.map +1 -1
- package/dist/cli/http.js +4 -28
- package/dist/cli/http.js.map +1 -1
- package/dist/cli/redirect-console.d.ts +1 -1
- package/dist/cli/redirect-console.d.ts.map +1 -1
- package/dist/cli/redirect-console.js +12 -3
- package/dist/cli/redirect-console.js.map +1 -1
- package/dist/cli/resolve-license.d.ts.map +1 -1
- package/dist/cli/resolve-license.js +8 -6
- package/dist/cli/resolve-license.js.map +1 -1
- package/dist/cli/stdio.d.ts +9 -0
- package/dist/cli/stdio.d.ts.map +1 -1
- package/dist/cli/stdio.js +48 -4
- package/dist/cli/stdio.js.map +1 -1
- package/dist/cli.js +10 -1
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +11 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +20 -1
- package/dist/config.js.map +1 -1
- package/dist/diagnostics/bundle.d.ts +10 -0
- package/dist/diagnostics/bundle.d.ts.map +1 -0
- package/dist/diagnostics/bundle.js +148 -0
- package/dist/diagnostics/bundle.js.map +1 -0
- package/dist/diagnostics/compose.d.ts +3 -0
- package/dist/diagnostics/compose.d.ts.map +1 -0
- package/dist/diagnostics/compose.js +15 -0
- package/dist/diagnostics/compose.js.map +1 -0
- package/dist/diagnostics/events.d.ts +34 -0
- package/dist/diagnostics/events.d.ts.map +1 -0
- package/dist/diagnostics/events.js +3 -0
- package/dist/diagnostics/events.js.map +1 -0
- package/dist/diagnostics/file-sink.d.ts +38 -0
- package/dist/diagnostics/file-sink.d.ts.map +1 -0
- package/dist/diagnostics/file-sink.js +157 -0
- package/dist/diagnostics/file-sink.js.map +1 -0
- package/dist/diagnostics/redact.d.ts +7 -0
- package/dist/diagnostics/redact.d.ts.map +1 -0
- package/dist/diagnostics/redact.js +43 -0
- package/dist/diagnostics/redact.js.map +1 -0
- package/dist/diagnostics/tool-call-adapter.d.ts +4 -0
- package/dist/diagnostics/tool-call-adapter.d.ts.map +1 -0
- package/dist/diagnostics/tool-call-adapter.js +21 -0
- package/dist/diagnostics/tool-call-adapter.js.map +1 -0
- package/dist/engine/cesdk-adapter.d.ts +5 -1
- package/dist/engine/cesdk-adapter.d.ts.map +1 -1
- package/dist/engine/cesdk-adapter.js +9 -2
- package/dist/engine/cesdk-adapter.js.map +1 -1
- package/dist/engine/index.d.ts +1 -0
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +4 -0
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/scene-resource-schemes.d.ts +2 -0
- package/dist/engine/scene-resource-schemes.d.ts.map +1 -0
- package/dist/engine/scene-resource-schemes.js +20 -0
- package/dist/engine/scene-resource-schemes.js.map +1 -0
- package/dist/http/server.d.ts +0 -6
- package/dist/http/server.d.ts.map +1 -1
- package/dist/http/server.js +1 -2
- package/dist/http/server.js.map +1 -1
- package/dist/server.d.ts +0 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -60
- package/dist/server.js.map +1 -1
- package/dist/test/scripts/changelog-add.d.ts +8 -0
- package/dist/test/scripts/changelog-add.d.ts.map +1 -0
- package/dist/test/scripts/changelog-add.js +50 -0
- package/dist/test/scripts/changelog-add.js.map +1 -0
- package/dist/test/scripts/changelog-collate.d.ts +38 -0
- package/dist/test/scripts/changelog-collate.d.ts.map +1 -0
- package/dist/test/scripts/changelog-collate.js +171 -0
- package/dist/test/scripts/changelog-collate.js.map +1 -0
- package/dist/test/test/changelog.test.d.ts +2 -0
- package/dist/test/test/changelog.test.d.ts.map +1 -0
- package/dist/test/test/changelog.test.js +293 -0
- package/dist/test/test/changelog.test.js.map +1 -0
- package/dist/test/test/cli/dispatcher.test.js +10 -3
- package/dist/test/test/cli/dispatcher.test.js.map +1 -1
- package/dist/test/test/cli/redirect-console.test.js +31 -0
- package/dist/test/test/cli/redirect-console.test.js.map +1 -1
- package/dist/test/test/cli/resolve-license.test.js +10 -1
- package/dist/test/test/cli/resolve-license.test.js.map +1 -1
- package/dist/test/test/cli/stdio-diagnostics.test.d.ts +2 -0
- package/dist/test/test/cli/stdio-diagnostics.test.d.ts.map +1 -0
- package/dist/test/test/cli/stdio-diagnostics.test.js +31 -0
- package/dist/test/test/cli/stdio-diagnostics.test.js.map +1 -0
- package/dist/test/test/config.test.js +17 -13
- package/dist/test/test/config.test.js.map +1 -1
- package/dist/test/test/diagnostics/bundle.test.d.ts +2 -0
- package/dist/test/test/diagnostics/bundle.test.d.ts.map +1 -0
- package/dist/test/test/diagnostics/bundle.test.js +53 -0
- package/dist/test/test/diagnostics/bundle.test.js.map +1 -0
- package/dist/test/test/diagnostics/compose.test.d.ts +2 -0
- package/dist/test/test/diagnostics/compose.test.d.ts.map +1 -0
- package/dist/test/test/diagnostics/compose.test.js +31 -0
- package/dist/test/test/diagnostics/compose.test.js.map +1 -0
- package/dist/test/test/diagnostics/file-sink.test.d.ts +2 -0
- package/dist/test/test/diagnostics/file-sink.test.d.ts.map +1 -0
- package/dist/test/test/diagnostics/file-sink.test.js +113 -0
- package/dist/test/test/diagnostics/file-sink.test.js.map +1 -0
- package/dist/test/test/diagnostics/redact.test.d.ts +2 -0
- package/dist/test/test/diagnostics/redact.test.d.ts.map +1 -0
- package/dist/test/test/diagnostics/redact.test.js +59 -0
- package/dist/test/test/diagnostics/redact.test.js.map +1 -0
- package/dist/test/test/diagnostics/tool-call-adapter.test.d.ts +2 -0
- package/dist/test/test/diagnostics/tool-call-adapter.test.d.ts.map +1 -0
- package/dist/test/test/diagnostics/tool-call-adapter.test.js +34 -0
- package/dist/test/test/diagnostics/tool-call-adapter.test.js.map +1 -0
- package/dist/test/test/engine/cesdk-adapter.test.d.ts +2 -0
- package/dist/test/test/engine/cesdk-adapter.test.d.ts.map +1 -0
- package/dist/test/test/engine/cesdk-adapter.test.js +32 -0
- package/dist/test/test/engine/cesdk-adapter.test.js.map +1 -0
- package/dist/test/test/handbook-contract.test.js +6 -2
- package/dist/test/test/handbook-contract.test.js.map +1 -1
- package/dist/test/test/http/server.test.js +0 -36
- package/dist/test/test/http/server.test.js.map +1 -1
- package/dist/test/test/http/workspace-auth.test.js +0 -1
- package/dist/test/test/http/workspace-auth.test.js.map +1 -1
- package/dist/test/test/server.test.js +0 -40
- package/dist/test/test/server.test.js.map +1 -1
- package/dist/test/test/tools/edit-harness.d.ts +14 -0
- package/dist/test/test/tools/edit-harness.d.ts.map +1 -0
- package/dist/test/test/tools/edit-harness.js +30 -0
- package/dist/test/test/tools/edit-harness.js.map +1 -0
- package/dist/test/test/tools/edit.telemetry.test.d.ts +2 -0
- package/dist/test/test/tools/edit.telemetry.test.d.ts.map +1 -0
- package/dist/test/test/tools/edit.telemetry.test.js +46 -0
- package/dist/test/test/tools/edit.telemetry.test.js.map +1 -0
- package/dist/test/test/tools/export-harness.d.ts +13 -0
- package/dist/test/test/tools/export-harness.d.ts.map +1 -0
- package/dist/test/test/tools/export-harness.js +27 -0
- package/dist/test/test/tools/export-harness.js.map +1 -0
- package/dist/test/test/tools/export.telemetry.test.d.ts +2 -0
- package/dist/test/test/tools/export.telemetry.test.d.ts.map +1 -0
- package/dist/test/test/tools/export.telemetry.test.js +65 -0
- package/dist/test/test/tools/export.telemetry.test.js.map +1 -0
- package/dist/test/test/tools/import.test.d.ts +2 -0
- package/dist/test/test/tools/import.test.d.ts.map +1 -0
- package/dist/test/test/tools/import.test.js +122 -0
- package/dist/test/test/tools/import.test.js.map +1 -0
- package/dist/test/test/tools/index.test.js +78 -16
- package/dist/test/test/tools/index.test.js.map +1 -1
- package/dist/test/test/tools/load.integration.test.d.ts +2 -0
- package/dist/test/test/tools/load.integration.test.d.ts.map +1 -0
- package/dist/test/test/tools/load.integration.test.js +165 -0
- package/dist/test/test/tools/load.integration.test.js.map +1 -0
- package/dist/test/test/tools/load.test.d.ts +2 -0
- package/dist/test/test/tools/load.test.d.ts.map +1 -0
- package/dist/test/test/tools/load.test.js +387 -0
- package/dist/test/test/tools/load.test.js.map +1 -0
- package/dist/test/test/tools/preview-harness.d.ts +9 -0
- package/dist/test/test/tools/preview-harness.d.ts.map +1 -0
- package/dist/test/test/tools/preview-harness.js +23 -0
- package/dist/test/test/tools/preview-harness.js.map +1 -0
- package/dist/test/test/tools/preview.telemetry.test.d.ts +2 -0
- package/dist/test/test/tools/preview.telemetry.test.d.ts.map +1 -0
- package/dist/test/test/tools/preview.telemetry.test.js +36 -0
- package/dist/test/test/tools/preview.telemetry.test.js.map +1 -0
- package/dist/test/test/tools/schema-best-practices.d.ts +13 -0
- package/dist/test/test/tools/schema-best-practices.d.ts.map +1 -0
- package/dist/test/test/tools/schema-best-practices.js +169 -0
- package/dist/test/test/tools/schema-best-practices.js.map +1 -0
- package/dist/test/test/tools/schema-best-practices.test.d.ts +3 -0
- package/dist/test/test/tools/schema-best-practices.test.d.ts.map +1 -0
- package/dist/test/test/tools/schema-best-practices.test.js +194 -0
- package/dist/test/test/tools/schema-best-practices.test.js.map +1 -0
- package/dist/test/test/tools/spans.test.d.ts +2 -0
- package/dist/test/test/tools/spans.test.d.ts.map +1 -0
- package/dist/test/test/tools/spans.test.js +84 -0
- package/dist/test/test/tools/spans.test.js.map +1 -0
- package/dist/test/test/viewer/cesdk-cdn.test.d.ts +2 -0
- package/dist/test/test/viewer/cesdk-cdn.test.d.ts.map +1 -0
- package/dist/test/test/viewer/cesdk-cdn.test.js +19 -0
- package/dist/test/test/viewer/cesdk-cdn.test.js.map +1 -0
- package/dist/test/test/viewer/config-route.test.d.ts +2 -0
- package/dist/test/test/viewer/config-route.test.d.ts.map +1 -0
- package/dist/test/test/viewer/config-route.test.js +28 -0
- package/dist/test/test/viewer/config-route.test.js.map +1 -0
- package/dist/test/test/viewer/spa-version.test.d.ts +2 -0
- package/dist/test/test/viewer/spa-version.test.d.ts.map +1 -0
- package/dist/test/test/viewer/spa-version.test.js +14 -0
- package/dist/test/test/viewer/spa-version.test.js.map +1 -0
- package/dist/test/test/workspace/content-hash.test.d.ts +2 -0
- package/dist/test/test/workspace/content-hash.test.d.ts.map +1 -0
- package/dist/test/test/workspace/content-hash.test.js +17 -0
- package/dist/test/test/workspace/content-hash.test.js.map +1 -0
- package/dist/test/tsconfig.test.tsbuildinfo +1 -1
- package/dist/test/vitest.config.js +1 -1
- package/dist/test/vitest.config.js.map +1 -1
- package/dist/tools/asset-generate.d.ts.map +1 -1
- package/dist/tools/asset-generate.js +1 -8
- package/dist/tools/asset-generate.js.map +1 -1
- package/dist/tools/edit.d.ts +3 -0
- package/dist/tools/edit.d.ts.map +1 -1
- package/dist/tools/edit.js +145 -96
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/export.d.ts +3 -0
- package/dist/tools/export.d.ts.map +1 -1
- package/dist/tools/export.js +146 -108
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/import.d.ts +12 -0
- package/dist/tools/import.d.ts.map +1 -0
- package/dist/tools/import.js +144 -0
- package/dist/tools/import.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +44 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/load.d.ts +26 -0
- package/dist/tools/load.d.ts.map +1 -0
- package/dist/tools/load.js +400 -0
- package/dist/tools/load.js.map +1 -0
- package/dist/tools/preview.d.ts +3 -0
- package/dist/tools/preview.d.ts.map +1 -1
- package/dist/tools/preview.js +79 -44
- package/dist/tools/preview.js.map +1 -1
- package/dist/tools/result.d.ts +1 -1
- package/dist/tools/result.js +2 -2
- package/dist/tools/result.js.map +1 -1
- package/dist/tools/spans.d.ts +45 -0
- package/dist/tools/spans.d.ts.map +1 -0
- package/dist/tools/spans.js +77 -0
- package/dist/tools/spans.js.map +1 -0
- package/dist/tools/telemetry-wrapper.d.ts +4 -0
- package/dist/tools/telemetry-wrapper.d.ts.map +1 -0
- package/dist/tools/telemetry-wrapper.js +43 -0
- package/dist/tools/telemetry-wrapper.js.map +1 -0
- package/dist/viewer/cesdk-cdn.d.ts +16 -0
- package/dist/viewer/cesdk-cdn.d.ts.map +1 -0
- package/dist/viewer/cesdk-cdn.js +30 -0
- package/dist/viewer/cesdk-cdn.js.map +1 -0
- package/dist/viewer/router.d.ts +6 -0
- package/dist/viewer/router.d.ts.map +1 -1
- package/dist/viewer/router.js +4 -1
- package/dist/viewer/router.js.map +1 -1
- package/dist/viewer/spa-assets.generated.d.ts.map +1 -1
- package/dist/viewer/spa-assets.generated.js +2 -3
- package/dist/viewer/spa-assets.generated.js.map +1 -1
- package/dist/workspace/content-hash.d.ts +2 -0
- package/dist/workspace/content-hash.d.ts.map +1 -0
- package/dist/workspace/content-hash.js +15 -0
- package/dist/workspace/content-hash.js.map +1 -0
- package/package.json +18 -9
- package/assets/docs/guide/actions.md +0 -1038
- package/assets/docs/guide/animation/overview.md +0 -22
- package/assets/docs/guide/automation/batch-processing.md +0 -474
- package/assets/docs/guide/browser-support.md +0 -38
- package/assets/docs/guide/concepts/edit-modes.md +0 -431
- package/assets/docs/guide/concepts/headless-mode/browser.md +0 -291
- package/assets/docs/guide/create-audio/audio.md +0 -336
- package/assets/docs/guide/create-video/overview.md +0 -224
- package/assets/docs/guide/create-video/timeline-editor.md +0 -622
- package/assets/docs/guide/create-video/update-caption-presets.md +0 -676
- package/assets/docs/guide/edit-image/vectorize.md +0 -204
- package/assets/docs/guide/export-save-publish/export/to-html5.md +0 -474
- package/assets/docs/guide/export-save-publish/export/to-mp4.md +0 -364
- package/assets/docs/guide/get-started/vanilla-js/quickstart.md +0 -175
- package/assets/docs/guide/grid-and-rulers.md +0 -222
- package/assets/docs/guide/guides/text/rendering-internals.md +0 -796
- package/assets/docs/guide/import-media/asset-library.md +0 -23
- package/assets/docs/guide/import-media/asset-panel/basics.md +0 -324
- package/assets/docs/guide/import-media/asset-panel/customize.md +0 -478
- package/assets/docs/guide/import-media/asset-panel/thumbnails.md +0 -633
- package/assets/docs/guide/import-media/capture-from-camera/record-video.md +0 -137
- package/assets/docs/guide/import-media/capture-from-camera.md +0 -20
- package/assets/docs/guide/import-media/from-local-source/user-upload.md +0 -438
- package/assets/docs/guide/import-media/from-local-source.md +0 -20
- package/assets/docs/guide/import-media/from-remote-source/getty-images.md +0 -627
- package/assets/docs/guide/import-media/from-remote-source/imgly-premium-assets.md +0 -625
- package/assets/docs/guide/import-media/from-remote-source/pexels.md +0 -692
- package/assets/docs/guide/import-media/from-remote-source/soundstripe.md +0 -497
- package/assets/docs/guide/import-media/from-remote-source/third-party.md +0 -51
- package/assets/docs/guide/import-media/from-remote-source/unsplash.md +0 -914
- package/assets/docs/guide/import-media/from-remote-source/your-server.md +0 -764
- package/assets/docs/guide/open-the-editor/from-htmlcanvas.md +0 -228
- package/assets/docs/guide/open-the-editor/set-zoom-level.md +0 -303
- package/assets/docs/guide/plugins/asset-sources.md +0 -553
- package/assets/docs/guide/starterkits/3d-mockup-editor.md +0 -748
- package/assets/docs/guide/starterkits/advanced-editor.md +0 -698
- package/assets/docs/guide/starterkits/advanced-video-editor.md +0 -696
- package/assets/docs/guide/starterkits/ai-editor.md +0 -749
- package/assets/docs/guide/starterkits/airtable-image-editor.md +0 -672
- package/assets/docs/guide/starterkits/apparel-ui.md +0 -188
- package/assets/docs/guide/starterkits/assets.md +0 -27
- package/assets/docs/guide/starterkits/auto-resize.md +0 -586
- package/assets/docs/guide/starterkits/automated-video-generation.md +0 -692
- package/assets/docs/guide/starterkits/background-removal-editor.md +0 -480
- package/assets/docs/guide/starterkits/content-moderation.md +0 -863
- package/assets/docs/guide/starterkits/creative-automation.md +0 -28
- package/assets/docs/guide/starterkits/custom-built-uis.md +0 -26
- package/assets/docs/guide/starterkits/customization.md +0 -29
- package/assets/docs/guide/starterkits/cutout-lines-editor.md +0 -470
- package/assets/docs/guide/starterkits/data-merge.md +0 -850
- package/assets/docs/guide/starterkits/design-editor.md +0 -698
- package/assets/docs/guide/starterkits/design-generation.md +0 -719
- package/assets/docs/guide/starterkits/design-validation.md +0 -808
- package/assets/docs/guide/starterkits/editor-ui-configurations.md +0 -14
- package/assets/docs/guide/starterkits/export-options.md +0 -724
- package/assets/docs/guide/starterkits/export-using-renderer.md +0 -708
- package/assets/docs/guide/starterkits/extensibility.md +0 -28
- package/assets/docs/guide/starterkits/force-crop-editor.md +0 -675
- package/assets/docs/guide/starterkits/form-based-template-adoption.md +0 -522
- package/assets/docs/guide/starterkits/getty-images-editor.md +0 -700
- package/assets/docs/guide/starterkits/html5-ads-exporter.md +0 -719
- package/assets/docs/guide/starterkits/indesign-template-import.md +0 -580
- package/assets/docs/guide/starterkits/layouts-editor.md +0 -724
- package/assets/docs/guide/starterkits/mobile-ui.md +0 -185
- package/assets/docs/guide/starterkits/mockup-editor.md +0 -745
- package/assets/docs/guide/starterkits/multi-image-generation.md +0 -542
- package/assets/docs/guide/starterkits/page-sizes-editor.md +0 -657
- package/assets/docs/guide/starterkits/pexels-image-editor.md +0 -665
- package/assets/docs/guide/starterkits/photo-editor.md +0 -755
- package/assets/docs/guide/starterkits/photo-ui.md +0 -186
- package/assets/docs/guide/starterkits/photobook-ui.md +0 -188
- package/assets/docs/guide/starterkits/placeholders.md +0 -678
- package/assets/docs/guide/starterkits/player.md +0 -405
- package/assets/docs/guide/starterkits/plugins.md +0 -25
- package/assets/docs/guide/starterkits/postcard-editor.md +0 -202
- package/assets/docs/guide/starterkits/pptx-template-import.md +0 -581
- package/assets/docs/guide/starterkits/print-ready-pdf-editor.md +0 -746
- package/assets/docs/guide/starterkits/product-editor.md +0 -773
- package/assets/docs/guide/starterkits/psd-template-import.md +0 -580
- package/assets/docs/guide/starterkits/qr-code-editor.md +0 -470
- package/assets/docs/guide/starterkits/single-page-editor.md +0 -661
- package/assets/docs/guide/starterkits/start-with-image.md +0 -684
- package/assets/docs/guide/starterkits/start-with-video.md +0 -651
- package/assets/docs/guide/starterkits/t-shirt-designer.md +0 -742
- package/assets/docs/guide/starterkits/templating.md +0 -23
- package/assets/docs/guide/starterkits/theming.md +0 -662
- package/assets/docs/guide/starterkits/translation-internationalization.md +0 -662
- package/assets/docs/guide/starterkits/unsplash-editor.md +0 -839
- package/assets/docs/guide/starterkits/vectorizer-editor.md +0 -466
- package/assets/docs/guide/starterkits/version-history.md +0 -745
- package/assets/docs/guide/starterkits/video-animations.md +0 -853
- package/assets/docs/guide/starterkits/video-captions.md +0 -884
- package/assets/docs/guide/starterkits/video-editing.md +0 -25
- package/assets/docs/guide/starterkits/video-editor.md +0 -696
- package/assets/docs/guide/starterkits/video-export-options.md +0 -676
- package/assets/docs/guide/starterkits/viewer.md +0 -400
- package/assets/docs/guide/starterkits.md +0 -41
- package/assets/docs/guide/stickers-and-shapes/create-edit/vector-edit.md +0 -362
- package/assets/docs/guide/text/custom-fonts.md +0 -401
- package/assets/docs/guide/text/decorations.md +0 -330
- package/assets/docs/guide/text/enumerations.md +0 -258
- package/assets/docs/guide/to-v1-10.md +0 -131
- package/assets/docs/guide/to-v1-13.md +0 -165
- package/assets/docs/guide/to-v1-32.md +0 -110
- package/assets/docs/guide/to-v1-69.md +0 -468
- package/assets/docs/guide/to-v1-72.md +0 -193
- package/assets/docs/guide/use-templates/library.md +0 -450
- package/assets/docs/guide/user-interface/ai-integration/audio-generation.md +0 -428
- package/assets/docs/guide/user-interface/ai-integration/auto-captions.md +0 -337
- package/assets/docs/guide/user-interface/ai-integration/custom-provider.md +0 -853
- package/assets/docs/guide/user-interface/ai-integration/gateway-provider.md +0 -1045
- package/assets/docs/guide/user-interface/ai-integration/image-generation.md +0 -641
- package/assets/docs/guide/user-interface/ai-integration/integrate.md +0 -966
- package/assets/docs/guide/user-interface/ai-integration/proxy-server.md +0 -99
- package/assets/docs/guide/user-interface/ai-integration/text-generation.md +0 -498
- package/assets/docs/guide/user-interface/ai-integration/video-generation.md +0 -493
- package/assets/docs/guide/user-interface/ai-integration.md +0 -30
- package/assets/docs/guide/user-interface/appearance/change-ui-font.md +0 -316
- package/assets/docs/guide/user-interface/appearance/custom-labels.md +0 -509
- package/assets/docs/guide/user-interface/appearance/icons.md +0 -373
- package/assets/docs/guide/user-interface/appearance/theming.md +0 -665
- package/assets/docs/guide/user-interface/appearance.md +0 -23
- package/assets/docs/guide/user-interface/build-your-own-ui.md +0 -620
- package/assets/docs/guide/user-interface/customization/canvas-menu.md +0 -412
- package/assets/docs/guide/user-interface/customization/canvas.md +0 -281
- package/assets/docs/guide/user-interface/customization/color-palette.md +0 -413
- package/assets/docs/guide/user-interface/customization/crop-presets.md +0 -384
- package/assets/docs/guide/user-interface/customization/disable-or-enable.md +0 -676
- package/assets/docs/guide/user-interface/customization/dock.md +0 -399
- package/assets/docs/guide/user-interface/customization/force-crop.md +0 -289
- package/assets/docs/guide/user-interface/customization/inspector-bar.md +0 -371
- package/assets/docs/guide/user-interface/customization/navigation-bar.md +0 -516
- package/assets/docs/guide/user-interface/customization/page-format.md +0 -436
- package/assets/docs/guide/user-interface/customization/panel.md +0 -605
- package/assets/docs/guide/user-interface/customization/quick-start/add-action-buttons.md +0 -531
- package/assets/docs/guide/user-interface/customization/quick-start/add-dock-buttons.md +0 -358
- package/assets/docs/guide/user-interface/customization/quick-start/create-custom-components.md +0 -374
- package/assets/docs/guide/user-interface/customization/quick-start/reorder-components.md +0 -323
- package/assets/docs/guide/user-interface/customization/quick-start/show-hide-components.md +0 -294
- package/assets/docs/guide/user-interface/customization/quick-start.md +0 -12
- package/assets/docs/guide/user-interface/customization/reference/component-order-api.md +0 -519
- package/assets/docs/guide/user-interface/customization/reference/component-reference.md +0 -333
- package/assets/docs/guide/user-interface/customization/reference.md +0 -12
- package/assets/docs/guide/user-interface/customization.md +0 -39
- package/assets/docs/guide/user-interface/localization.md +0 -633
- package/assets/docs/guide/user-interface/overview.md +0 -167
- package/assets/docs/guide/user-interface/ui-extensions/add-custom-feature.md +0 -411
- package/assets/docs/guide/user-interface/ui-extensions/asset-library.md +0 -721
- package/assets/docs/guide/user-interface/ui-extensions/create-custom-panel.md +0 -331
- package/assets/docs/guide/user-interface/ui-extensions/customize-behaviour.md +0 -553
- package/assets/docs/guide/user-interface/ui-extensions/notifications-and-dialogs.md +0 -672
- package/assets/docs/guide/user-interface/ui-extensions/quick-actions.md +0 -415
- package/assets/docs/guide/user-interface/ui-extensions/register-new-component.md +0 -521
- package/assets/docs/guide/user-interface/ui-extensions.md +0 -26
- package/assets/docs/guide/user-interface.md +0 -25
- package/assets/prompts/evals-assetGenerate.md +0 -12
- package/assets/prompts/evals-brutalistCore.md +0 -34
- package/assets/prompts/evals-danskCatalogue.md +0 -31
- package/assets/prompts/evals-exportRoundTrip.md +0 -12
- package/assets/prompts/evals-inspectPriorCode.md +0 -16
- package/assets/prompts/evals-listProjectFiles.md +0 -6
- package/assets/prompts/evals-readAndExplainScript.md +0 -6
- package/assets/prompts/evals-resumeAcrossRestart.md +0 -15
- package/assets/prompts/evals-rewindRecovery.md +0 -10
- package/assets/prompts/evals-searchAcrossFiles.md +0 -6
- package/assets/prompts/evals-weddingCard.md +0 -20
- package/assets/prompts/explain.md +0 -6
- package/assets/prompts/review.md +0 -6
- package/dist/frontmatter.d.ts +0 -15
- package/dist/frontmatter.d.ts.map +0 -1
- package/dist/frontmatter.js +0 -46
- package/dist/frontmatter.js.map +0 -1
- package/dist/test/test/frontmatter.test.d.ts +0 -2
- package/dist/test/test/frontmatter.test.d.ts.map +0 -1
- package/dist/test/test/frontmatter.test.js +0 -55
- package/dist/test/test/frontmatter.test.js.map +0 -1
|
@@ -1,839 +0,0 @@
|
|
|
1
|
-
> This is one page of the CE.SDK Vanilla JS/TS documentation. For a complete overview, see the [Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md). For all docs in one file, see [llms-full.txt](./llms-full.txt.md).
|
|
2
|
-
|
|
3
|
-
**Navigation:** [Starter Kits](./starterkits.md) > [Assets](./starterkits/assets.md) > [Unsplash Editor](./starterkits/unsplash-editor.md)
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
CE.SDK can include assets from third-party libraries accessible via API. Search and browse images from Unsplash in the editor.
|
|
8
|
-
|
|
9
|
-

|
|
10
|
-
|
|
11
|
-
> **Reading time:** 10 minutes
|
|
12
|
-
>
|
|
13
|
-
> **Resources:**
|
|
14
|
-
>
|
|
15
|
-
> - [Download examples](https://github.com/imgly/starterkit-unsplash-asset-source-ts-web/archive/refs/tags/release-$UBQ_VERSION$.zip)
|
|
16
|
-
> - [View source on GitHub](https://github.com/imgly/starterkit-unsplash-asset-source-ts-web/tree/release-$UBQ_VERSION$)
|
|
17
|
-
> - [Open in StackBlitz](https://stackblitz.com/github/imgly/starterkit-unsplash-asset-source-ts-web/tree/release-$UBQ_VERSION$)
|
|
18
|
-
> - [Live demo](https://img.ly/docs/cesdk/examples/starterkit-unsplash-asset-source/)
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Pre-requisites
|
|
23
|
-
|
|
24
|
-
This guide assumes basic familiarity with JavaScript or TypeScript.
|
|
25
|
-
|
|
26
|
-
- **Node.js v20+** with npm – [Download](https://nodejs.org/)
|
|
27
|
-
- **Supported browsers** – Chrome 114+, Edge 114+, Firefox 115+, Safari 15.6+<br />
|
|
28
|
-
See [Browser Support](./browser-support.md) for the full list
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
<Tabs syncKey="project-type">
|
|
33
|
-
<TabItem label="New Project">
|
|
34
|
-
## Get Started
|
|
35
|
-
|
|
36
|
-
Start fresh with a standalone Unsplash Editor project. This creates a complete, ready-to-run application with Unsplash integration.
|
|
37
|
-
|
|
38
|
-
## Step 1: Clone the Repository
|
|
39
|
-
|
|
40
|
-
<TerminalTabs>
|
|
41
|
-
<TerminalTab label="git">
|
|
42
|
-
git clone https://github.com/imgly/starterkit-unsplash-asset-source-ts-web.git
|
|
43
|
-
</TerminalTab>
|
|
44
|
-
|
|
45
|
-
<TerminalTab label="degit">
|
|
46
|
-
npx degit imgly/starterkit-unsplash-asset-source-ts-web starterkit-unsplash-asset-source-ts-web
|
|
47
|
-
</TerminalTab>
|
|
48
|
-
</TerminalTabs>
|
|
49
|
-
|
|
50
|
-
The `src/` folder contains the editor code:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
src/
|
|
54
|
-
├── imgly/
|
|
55
|
-
│ ├── config/
|
|
56
|
-
│ │ ├── actions.ts # Export/import actions
|
|
57
|
-
│ │ ├── features.ts # Feature toggles
|
|
58
|
-
│ │ ├── i18n.ts # Translations
|
|
59
|
-
│ │ ├── plugin.ts # Main configuration plugin
|
|
60
|
-
│ │ ├── settings.ts # Engine settings
|
|
61
|
-
│ │ └── ui/
|
|
62
|
-
│ │ ├── canvas.ts # Canvas configuration
|
|
63
|
-
│ │ ├── components.ts # Custom component registration
|
|
64
|
-
│ │ ├── dock.ts # Dock layout configuration
|
|
65
|
-
│ │ ├── index.ts # Combines UI customization exports
|
|
66
|
-
│ │ ├── inspectorBar.ts # Inspector bar layout
|
|
67
|
-
│ │ ├── navigationBar.ts # Navigation bar layout
|
|
68
|
-
│ │ └── panel.ts # Panel configuration
|
|
69
|
-
│ ├── index.ts # Editor initialization function
|
|
70
|
-
│ └── plugins/
|
|
71
|
-
│ └── unsplash.ts
|
|
72
|
-
└── index.ts
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Step 2: Install Dependencies
|
|
76
|
-
|
|
77
|
-
Install the required packages:
|
|
78
|
-
|
|
79
|
-
<TerminalTabs syncKey="package-manager">
|
|
80
|
-
<TerminalTab label="npm">
|
|
81
|
-
cd starterkit-unsplash-asset-source-ts-web
|
|
82
|
-
npm install
|
|
83
|
-
</TerminalTab>
|
|
84
|
-
|
|
85
|
-
<TerminalTab label="pnpm">
|
|
86
|
-
cd starterkit-unsplash-asset-source-ts-web
|
|
87
|
-
pnpm install
|
|
88
|
-
</TerminalTab>
|
|
89
|
-
|
|
90
|
-
<TerminalTab label="yarn">
|
|
91
|
-
cd starterkit-unsplash-asset-source-ts-web
|
|
92
|
-
yarn
|
|
93
|
-
</TerminalTab>
|
|
94
|
-
</TerminalTabs>
|
|
95
|
-
|
|
96
|
-
## Step 3: Download Assets
|
|
97
|
-
|
|
98
|
-
CE.SDK requires engine assets (fonts, icons, UI elements) to function. These must be served as static files from your project's `public/` directory.
|
|
99
|
-
|
|
100
|
-
<TerminalTabs>
|
|
101
|
-
<TerminalTab label="Download">
|
|
102
|
-
curl -O https://cdn.img.ly/packages/imgly/cesdk-js/$UBQ\_VERSION$/imgly-assets.zip
|
|
103
|
-
unzip imgly-assets.zip -d public/
|
|
104
|
-
rm imgly-assets.zip
|
|
105
|
-
</TerminalTab>
|
|
106
|
-
</TerminalTabs>
|
|
107
|
-
|
|
108
|
-
> **Asset Configuration:** The starter kit is pre-configured to load assets from `/assets`. If you place assets in a different location, update the `baseURL` in `src/index.ts`.
|
|
109
|
-
|
|
110
|
-
## Step 4: Configure Unsplash API (Optional)
|
|
111
|
-
|
|
112
|
-
The starter kit includes a demo proxy URL for development. For production, set up your own Unsplash API proxy:
|
|
113
|
-
|
|
114
|
-
1. Create an Unsplash developer account: [unsplash.com/developers](https://unsplash.com/developers)
|
|
115
|
-
2. Set up a proxy server to add your API key server-side
|
|
116
|
-
3. Set the environment variable:
|
|
117
|
-
|
|
118
|
-
```bash title=".env"
|
|
119
|
-
VITE_UNSPLASH_API_URL=https://your-proxy.example.com
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
> **API Key Security:** Never expose your Unsplash API key in frontend code. Always use a proxy server to add the key server-side.
|
|
123
|
-
|
|
124
|
-
## Step 5: Run the Development Server
|
|
125
|
-
|
|
126
|
-
<TerminalTabs syncKey="package-manager">
|
|
127
|
-
<TerminalTab label="npm">
|
|
128
|
-
npm run dev
|
|
129
|
-
</TerminalTab>
|
|
130
|
-
|
|
131
|
-
<TerminalTab label="pnpm">
|
|
132
|
-
pnpm run dev
|
|
133
|
-
</TerminalTab>
|
|
134
|
-
|
|
135
|
-
<TerminalTab label="yarn">
|
|
136
|
-
yarn dev
|
|
137
|
-
</TerminalTab>
|
|
138
|
-
</TerminalTabs>
|
|
139
|
-
|
|
140
|
-
Open `http://localhost:5173` in your browser.
|
|
141
|
-
|
|
142
|
-
</TabItem>
|
|
143
|
-
|
|
144
|
-
<TabItem label="Existing Project">
|
|
145
|
-
## Get Started
|
|
146
|
-
|
|
147
|
-
Integrate the Unsplash Editor into an existing web application. This adds Unsplash image integration to your current project.
|
|
148
|
-
|
|
149
|
-
## Step 1: Clone
|
|
150
|
-
|
|
151
|
-
<TerminalTabs>
|
|
152
|
-
<TerminalTab label="Navigate">
|
|
153
|
-
cd your-project
|
|
154
|
-
</TerminalTab>
|
|
155
|
-
</TerminalTabs>
|
|
156
|
-
|
|
157
|
-
Clone the starter kit and copy the editor configuration to your project:
|
|
158
|
-
|
|
159
|
-
<TerminalTabs>
|
|
160
|
-
<TerminalTab label="git">
|
|
161
|
-
git clone https://github.com/imgly/starterkit-unsplash-asset-source-ts-web.git
|
|
162
|
-
cp -r starterkit-unsplash-asset-source-ts-web/src/imgly ./src/imgly
|
|
163
|
-
rm -rf starterkit-unsplash-asset-source-ts-web
|
|
164
|
-
</TerminalTab>
|
|
165
|
-
|
|
166
|
-
<TerminalTab label="degit">
|
|
167
|
-
npx degit imgly/starterkit-unsplash-asset-source-ts-web/src/imgly ./src/imgly
|
|
168
|
-
</TerminalTab>
|
|
169
|
-
</TerminalTabs>
|
|
170
|
-
|
|
171
|
-
> **Adjust Path:** The default destination is `./src/imgly`. Adjust the path to match your project structure.
|
|
172
|
-
|
|
173
|
-
## Step 2: Install Dependencies
|
|
174
|
-
|
|
175
|
-
Install the required packages for the editor:
|
|
176
|
-
|
|
177
|
-
### Core Editor
|
|
178
|
-
|
|
179
|
-
Install the Creative Editor SDK:
|
|
180
|
-
|
|
181
|
-
<TerminalTabs syncKey="package-manager">
|
|
182
|
-
<TerminalTab label="npm">
|
|
183
|
-
npm install @cesdk/cesdk-js@$UBQ\_VERSION$
|
|
184
|
-
</TerminalTab>
|
|
185
|
-
|
|
186
|
-
<TerminalTab label="pnpm">
|
|
187
|
-
pnpm add @cesdk/cesdk-js@$UBQ\_VERSION$
|
|
188
|
-
</TerminalTab>
|
|
189
|
-
|
|
190
|
-
<TerminalTab label="yarn">
|
|
191
|
-
yarn add @cesdk/cesdk-js@$UBQ\_VERSION$
|
|
192
|
-
</TerminalTab>
|
|
193
|
-
</TerminalTabs>
|
|
194
|
-
|
|
195
|
-
### Unsplash Client
|
|
196
|
-
|
|
197
|
-
Add the official Unsplash JavaScript client:
|
|
198
|
-
|
|
199
|
-
<TerminalTabs syncKey="package-manager">
|
|
200
|
-
<TerminalTab label="npm">
|
|
201
|
-
npm install unsplash-js
|
|
202
|
-
</TerminalTab>
|
|
203
|
-
|
|
204
|
-
<TerminalTab label="pnpm">
|
|
205
|
-
pnpm add unsplash-js
|
|
206
|
-
</TerminalTab>
|
|
207
|
-
|
|
208
|
-
<TerminalTab label="yarn">
|
|
209
|
-
yarn add unsplash-js
|
|
210
|
-
</TerminalTab>
|
|
211
|
-
</TerminalTabs>
|
|
212
|
-
|
|
213
|
-
### Background Removal (Optional)
|
|
214
|
-
|
|
215
|
-
Add AI-powered background removal:
|
|
216
|
-
|
|
217
|
-
<TerminalTabs syncKey="package-manager">
|
|
218
|
-
<TerminalTab label="npm">
|
|
219
|
-
npm install @imgly/background-removal onnxruntime-web
|
|
220
|
-
</TerminalTab>
|
|
221
|
-
|
|
222
|
-
<TerminalTab label="pnpm">
|
|
223
|
-
pnpm add @imgly/background-removal onnxruntime-web
|
|
224
|
-
</TerminalTab>
|
|
225
|
-
|
|
226
|
-
<TerminalTab label="yarn">
|
|
227
|
-
yarn add @imgly/background-removal onnxruntime-web
|
|
228
|
-
</TerminalTab>
|
|
229
|
-
</TerminalTabs>
|
|
230
|
-
|
|
231
|
-
## Step 3: Download Assets
|
|
232
|
-
|
|
233
|
-
CE.SDK requires engine assets (fonts, icons, UI elements) to function. These must be served as static files from your project's `public/` directory.
|
|
234
|
-
|
|
235
|
-
<TerminalTabs>
|
|
236
|
-
<TerminalTab label="Download">
|
|
237
|
-
curl -O https://cdn.img.ly/packages/imgly/cesdk-js/$UBQ\_VERSION$/imgly-assets.zip
|
|
238
|
-
unzip imgly-assets.zip -d public/
|
|
239
|
-
rm imgly-assets.zip
|
|
240
|
-
</TerminalTab>
|
|
241
|
-
</TerminalTabs>
|
|
242
|
-
|
|
243
|
-
## Step 4: Add a Container Element
|
|
244
|
-
|
|
245
|
-
Add a container element to your HTML where the editor will be mounted:
|
|
246
|
-
|
|
247
|
-
```html
|
|
248
|
-
<div id="cesdk_container" style="width: 100%; height: 100vh;"></div>
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
## Step 5: Initialize the Editor
|
|
252
|
-
|
|
253
|
-
Import and call the initialization function from your application's entry point:
|
|
254
|
-
|
|
255
|
-
```typescript title="src/index.ts"
|
|
256
|
-
import CreativeEditorSDK from '@cesdk/cesdk-js';
|
|
257
|
-
|
|
258
|
-
import { initUnsplashEditor } from './imgly';
|
|
259
|
-
|
|
260
|
-
const config = {
|
|
261
|
-
userId: 'your-user-id',
|
|
262
|
-
baseURL: '/assets'
|
|
263
|
-
// license: 'YOUR_LICENSE_KEY',
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
CreativeEditorSDK.create('#cesdk_container', config)
|
|
267
|
-
.then(async (cesdk) => {
|
|
268
|
-
// Option 1: Using environment variables (recommended)
|
|
269
|
-
await initUnsplashEditor(cesdk, {
|
|
270
|
-
unsplashApiUrl: import.meta.env.VITE_UNSPLASH_API_URL
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
// Option 2: Direct configuration
|
|
274
|
-
// await initUnsplashEditor(cesdk, {
|
|
275
|
-
// unsplashApiUrl: 'https://your-proxy.example.com/unsplash'
|
|
276
|
-
// });
|
|
277
|
-
|
|
278
|
-
// Option 3: Use demo proxy (development only)
|
|
279
|
-
// await initUnsplashEditor(cesdk);
|
|
280
|
-
})
|
|
281
|
-
.catch((error) => {
|
|
282
|
-
console.error('Failed to initialize CE.SDK:', error);
|
|
283
|
-
});
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
</TabItem>
|
|
287
|
-
</Tabs>
|
|
288
|
-
|
|
289
|
-
## Set Up a Scene
|
|
290
|
-
|
|
291
|
-
CE.SDK offers multiple ways to load content into the editor. Choose the method that matches your use case:
|
|
292
|
-
|
|
293
|
-
```typescript title="src/index.ts"
|
|
294
|
-
// Create a blank design canvas - starts with an empty design scene
|
|
295
|
-
await cesdk.actions.run('scene.create');
|
|
296
|
-
|
|
297
|
-
// Load from a template archive - restores a previously saved project
|
|
298
|
-
await cesdk.loadFromArchiveURL('https://example.com/template.zip');
|
|
299
|
-
|
|
300
|
-
// Load from an image URL - creates a new scene with the image
|
|
301
|
-
await cesdk.createFromImage('https://example.com/image.jpg');
|
|
302
|
-
|
|
303
|
-
// Load from a scene file - restores a scene from JSON
|
|
304
|
-
await cesdk.loadFromURL('https://example.com/scene.json');
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
The `createDesignScene()` method is ideal for design workflows, as it creates a blank canvas ready for content.
|
|
308
|
-
|
|
309
|
-
> **More Loading Options:** See [Open the Editor](./open-the-editor.md) for all available loading methods.
|
|
310
|
-
|
|
311
|
-
## Customize Assets
|
|
312
|
-
|
|
313
|
-
The Unsplash Editor uses asset source plugins to provide built-in libraries for templates, stickers, shapes, and fonts. The starter kit includes a curated selection—customize what's included based on your needs.
|
|
314
|
-
|
|
315
|
-
Asset sources are added via plugins in `src/imgly/index.ts`. Enable or disable individual sources:
|
|
316
|
-
|
|
317
|
-
```typescript title="src/imgly/index.ts"
|
|
318
|
-
import {
|
|
319
|
-
FiltersAssetSource,
|
|
320
|
-
StickerAssetSource,
|
|
321
|
-
TextAssetSource,
|
|
322
|
-
VectorShapeAssetSource,
|
|
323
|
-
EffectsAssetSource
|
|
324
|
-
// ...
|
|
325
|
-
} from '@cesdk/cesdk-js/plugins';
|
|
326
|
-
|
|
327
|
-
// Add only the sources you need
|
|
328
|
-
await cesdk.addPlugin(new FiltersAssetSource());
|
|
329
|
-
await cesdk.addPlugin(new StickerAssetSource());
|
|
330
|
-
await cesdk.addPlugin(new TextAssetSource());
|
|
331
|
-
await cesdk.addPlugin(new VectorShapeAssetSource());
|
|
332
|
-
await cesdk.addPlugin(new EffectsAssetSource());
|
|
333
|
-
// ...
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
> **Available Asset Sources:** See [Asset Source Plugins](./plugins/asset-sources.md) for the complete list of available sources.
|
|
337
|
-
|
|
338
|
-
For production deployments, self-hosting assets is required—the IMG.LY CDN is intended for development only. See [Serve Assets](./serve-assets.md) for downloading assets, configuring `baseURL`, and excluding unused sources to optimize load times.
|
|
339
|
-
|
|
340
|
-
## Configure Actions
|
|
341
|
-
|
|
342
|
-
Actions are functions that handle user interactions like exporting designs, saving scenes, and importing files. CE.SDK provides built-in actions that you can run directly or override with custom implementations.
|
|
343
|
-
|
|
344
|
-
**Key built-in actions:**
|
|
345
|
-
|
|
346
|
-
- `exportDesign` – Export the current design to PNG, JPEG, PDF, or other formats
|
|
347
|
-
- `saveScene` – Save the scene as a JSON string for later editing
|
|
348
|
-
- `importScene` – Import a previously saved scene (supports `.scene` and `.cesdk` formats)
|
|
349
|
-
- `exportScene` – Export the scene as a JSON file or `.cesdk` archive with all assets
|
|
350
|
-
- `uploadFile` – Handle file uploads with progress tracking
|
|
351
|
-
|
|
352
|
-
Use `cesdk.actions.run()` to execute any action:
|
|
353
|
-
|
|
354
|
-
```typescript
|
|
355
|
-
// Run a built-in action
|
|
356
|
-
await cesdk.actions.run('exportDesign', { mimeType: 'image/png' });
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
#### Import from File Picker
|
|
360
|
-
|
|
361
|
-
```typescript title="src/imgly/config/actions.ts"
|
|
362
|
-
// Let users open images from their device
|
|
363
|
-
cesdk.actions.register('importImage', async () => {
|
|
364
|
-
const blobURL = await cesdk.utils.loadFile({
|
|
365
|
-
accept: 'image/*',
|
|
366
|
-
returnType: 'objectURL'
|
|
367
|
-
});
|
|
368
|
-
await cesdk.createFromImage(blobURL);
|
|
369
|
-
});
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
#### Export and Save
|
|
373
|
-
|
|
374
|
-
```typescript title="src/imgly/config/actions.ts"
|
|
375
|
-
// Register export action that downloads the edited design
|
|
376
|
-
cesdk.actions.register('exportDesign', async (exportOptions) => {
|
|
377
|
-
const { blobs, options } = await cesdk.utils.export(exportOptions);
|
|
378
|
-
await cesdk.utils.downloadFile(blobs[0], options.mimeType);
|
|
379
|
-
});
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
#### Upload to Your Backend
|
|
383
|
-
|
|
384
|
-
```typescript title="src/imgly/config/actions.ts"
|
|
385
|
-
// Override the built-in exportDesign action to send to your server
|
|
386
|
-
cesdk.actions.register('exportDesign', async (exportOptions) => {
|
|
387
|
-
const { blobs } = await cesdk.utils.export(exportOptions);
|
|
388
|
-
|
|
389
|
-
const formData = new FormData();
|
|
390
|
-
formData.append('design', blobs[0], 'design.png');
|
|
391
|
-
|
|
392
|
-
const response = await fetch('/api/upload', {
|
|
393
|
-
method: 'POST',
|
|
394
|
-
body: formData
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
const { url } = await response.json();
|
|
398
|
-
console.log('Uploaded to:', url);
|
|
399
|
-
});
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
> **Learn More:** See [Actions](./actions.md) for the full list of built-in actions, how to run them, and how to register custom actions.
|
|
403
|
-
|
|
404
|
-
---
|
|
405
|
-
|
|
406
|
-
## Unsplash Integration
|
|
407
|
-
|
|
408
|
-
The Unsplash Editor replaces the default image library with Unsplash's extensive collection of free photos.
|
|
409
|
-
|
|
410
|
-
### How It Works
|
|
411
|
-
|
|
412
|
-
The integration uses the official `unsplash-js` client to fetch images from Unsplash. A custom asset source translates Unsplash API responses to CE.SDK's asset format.
|
|
413
|
-
|
|
414
|
-
```typescript title="src/imgly/index.ts"
|
|
415
|
-
// Add Unsplash image library integration
|
|
416
|
-
// Requires: npm install unsplash-js
|
|
417
|
-
// Configure: Pass unsplashApiUrl option or set VITE_UNSPLASH_API_URL env var
|
|
418
|
-
await cesdk.addPlugin(
|
|
419
|
-
new UnsplashAssetSourcePlugin({
|
|
420
|
-
apiUrl: options.unsplashApiUrl
|
|
421
|
-
})
|
|
422
|
-
);
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
### Search and Browse
|
|
426
|
-
|
|
427
|
-
Users can search Unsplash's library or browse popular images:
|
|
428
|
-
|
|
429
|
-
- **Search**: Type keywords to find relevant photos
|
|
430
|
-
- **Popular**: Browse trending images when no search query is entered
|
|
431
|
-
- **Pagination**: Automatically loads more results as users scroll
|
|
432
|
-
|
|
433
|
-
### Attribution
|
|
434
|
-
|
|
435
|
-
Unsplash requires photographer attribution for all images. The integration automatically includes:
|
|
436
|
-
|
|
437
|
-
- **Photographer name**: Displayed with each image
|
|
438
|
-
- **Profile link**: Links to the photographer's Unsplash profile
|
|
439
|
-
- **UTM tracking**: Proper referral tracking per Unsplash guidelines
|
|
440
|
-
|
|
441
|
-
```typescript title="src/imgly/plugins/unsplash.ts"
|
|
442
|
-
export function createUnsplashAssetSource(apiUrl: string): AssetSource {
|
|
443
|
-
return {
|
|
444
|
-
id: 'unsplash',
|
|
445
|
-
findAssets: createFindUnsplashAssets(apiUrl),
|
|
446
|
-
|
|
447
|
-
// Service-level credits (shown in asset library footer)
|
|
448
|
-
credits: {
|
|
449
|
-
name: 'Unsplash',
|
|
450
|
-
url: 'https://unsplash.com/'
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
// License information
|
|
454
|
-
license: {
|
|
455
|
-
name: 'Unsplash license (free)',
|
|
456
|
-
url: 'https://unsplash.com/license'
|
|
457
|
-
}
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
---
|
|
463
|
-
|
|
464
|
-
## Set Up Unsplash Proxy
|
|
465
|
-
|
|
466
|
-
For production use, you must proxy Unsplash API requests through your server. This keeps your API key secure and prevents exposure in client-side code.
|
|
467
|
-
|
|
468
|
-
### Why a Proxy?
|
|
469
|
-
|
|
470
|
-
- **Security**: API keys should never be in frontend code
|
|
471
|
-
- **Rate limiting**: Control and monitor API usage
|
|
472
|
-
- **Compliance**: Required by Unsplash API guidelines
|
|
473
|
-
|
|
474
|
-
### Proxy Implementation
|
|
475
|
-
|
|
476
|
-
Create a proxy endpoint that adds your API key. The starter kit includes a complete example at `api/unsplash-proxy-example.ts`:
|
|
477
|
-
|
|
478
|
-
```typescript title="api/unsplash-proxy.ts"
|
|
479
|
-
// Example serverless function (Vercel, AWS Lambda, etc.)
|
|
480
|
-
export default async function handler(req, res) {
|
|
481
|
-
const apiKey = process.env.UNSPLASH_ACCESS_KEY;
|
|
482
|
-
|
|
483
|
-
const response = await fetch(`https://api.unsplash.com${req.url}`, {
|
|
484
|
-
headers: {
|
|
485
|
-
Authorization: `Client-ID ${apiKey}`
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
|
|
489
|
-
const data = await response.json();
|
|
490
|
-
res.json(data);
|
|
491
|
-
}
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
> **Complete Proxy Example:** See `api/unsplash-proxy-example.ts` in the starter kit for a full implementation with CORS handling, error management, and rate limit header forwarding.
|
|
495
|
-
|
|
496
|
-
### Configure the Proxy URL
|
|
497
|
-
|
|
498
|
-
You have two options for configuring the Unsplash API proxy URL:
|
|
499
|
-
|
|
500
|
-
**Option 1: Environment Variable (Recommended for new projects)**
|
|
501
|
-
|
|
502
|
-
Set the environment variable to point to your proxy:
|
|
503
|
-
|
|
504
|
-
```bash title=".env"
|
|
505
|
-
VITE_UNSPLASH_API_URL=https://your-domain.com/api/unsplash
|
|
506
|
-
```
|
|
507
|
-
|
|
508
|
-
Then pass it to the init function:
|
|
509
|
-
|
|
510
|
-
```typescript title="src/index.ts"
|
|
511
|
-
await initUnsplashEditor(cesdk, {
|
|
512
|
-
unsplashApiUrl: import.meta.env.VITE_UNSPLASH_API_URL
|
|
513
|
-
});
|
|
514
|
-
```
|
|
515
|
-
|
|
516
|
-
**Option 2: Direct Configuration (For existing projects)**
|
|
517
|
-
|
|
518
|
-
Pass the proxy URL directly in your code:
|
|
519
|
-
|
|
520
|
-
```typescript title="src/index.ts"
|
|
521
|
-
await initUnsplashEditor(cesdk, {
|
|
522
|
-
unsplashApiUrl: 'https://your-domain.com/api/unsplash'
|
|
523
|
-
});
|
|
524
|
-
```
|
|
525
|
-
|
|
526
|
-
**Option 3: Demo Proxy (Development only)**
|
|
527
|
-
|
|
528
|
-
If no URL is provided, the starter kit uses a demo proxy for development:
|
|
529
|
-
|
|
530
|
-
```typescript title="src/index.ts"
|
|
531
|
-
// Uses demo proxy automatically
|
|
532
|
-
await initUnsplashEditor(cesdk);
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
> **Demo Proxy Limitations:** The demo proxy is for development only and has rate limits. Set up your own proxy for production use.
|
|
536
|
-
|
|
537
|
-
---
|
|
538
|
-
|
|
539
|
-
## Customize (Optional)
|
|
540
|
-
|
|
541
|
-
### Theming
|
|
542
|
-
|
|
543
|
-
CE.SDK supports light and dark themes out of the box, plus automatic system preference detection. Switch between themes programmatically:
|
|
544
|
-
|
|
545
|
-
```typescript title="src/imgly/config/settings.ts"
|
|
546
|
-
// 'light' | 'dark' | 'system' | (() => 'light' | 'dark')
|
|
547
|
-
cesdk.ui.setTheme('dark');
|
|
548
|
-
```
|
|
549
|
-
|
|
550
|
-
See [Theming](./user-interface/appearance/theming.md) for custom color schemes, CSS variables, and advanced styling options.
|
|
551
|
-
|
|
552
|
-
### Localization
|
|
553
|
-
|
|
554
|
-
Customize UI labels and add support for multiple languages. The i18n system supports translation keys for all UI elements:
|
|
555
|
-
|
|
556
|
-
```typescript title="src/imgly/config/i18n.ts"
|
|
557
|
-
// Override specific labels
|
|
558
|
-
cesdk.i18n.setTranslations({
|
|
559
|
-
en: {
|
|
560
|
-
'libraries.unsplash.label': 'Unsplash',
|
|
561
|
-
'actions.export.image': 'Download Design',
|
|
562
|
-
'common.cancel': 'Cancel',
|
|
563
|
-
'common.apply': 'Apply'
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
|
|
567
|
-
// Add a new language
|
|
568
|
-
cesdk.i18n.setTranslations({
|
|
569
|
-
de: {
|
|
570
|
-
'libraries.unsplash.label': 'Unsplash Fotos',
|
|
571
|
-
'actions.export.image': 'Design herunterladen'
|
|
572
|
-
}
|
|
573
|
-
});
|
|
574
|
-
|
|
575
|
-
// Set the active locale
|
|
576
|
-
cesdk.i18n.setLocale('de');
|
|
577
|
-
```
|
|
578
|
-
|
|
579
|
-
See [Localization](./user-interface/localization.md) for supported languages, translation key reference, and right-to-left language support.
|
|
580
|
-
|
|
581
|
-
### UI Layout
|
|
582
|
-
|
|
583
|
-

|
|
584
|
-
|
|
585
|
-
Customize the editor interface by modifying the dock, inspector bar, navigation bar, and canvas menu. CE.SDK provides Order APIs to control which components appear and in what sequence.
|
|
586
|
-
|
|
587
|
-
```typescript title="src/imgly/config/ui/navigationBar.ts"
|
|
588
|
-
// Get current navigation bar components
|
|
589
|
-
const navOrder = cesdk.ui.getNavigationBarOrder();
|
|
590
|
-
|
|
591
|
-
// Add a custom button to the navigation bar
|
|
592
|
-
cesdk.ui.insertNavigationBarOrderComponent(
|
|
593
|
-
'ly.img.spacer',
|
|
594
|
-
{ id: 'my-custom-action' },
|
|
595
|
-
'after'
|
|
596
|
-
);
|
|
597
|
-
|
|
598
|
-
// Rearrange dock items
|
|
599
|
-
cesdk.ui.setDockOrder([
|
|
600
|
-
'ly.img.assetLibrary.dock',
|
|
601
|
-
'ly.img.separator',
|
|
602
|
-
'my-custom-dock-item'
|
|
603
|
-
]);
|
|
604
|
-
|
|
605
|
-
// Customize the inspector bar
|
|
606
|
-
cesdk.ui.setInspectorBarOrder([
|
|
607
|
-
'ly.img.fill.inspectorBar',
|
|
608
|
-
'ly.img.separator',
|
|
609
|
-
'ly.img.filter.inspectorBar'
|
|
610
|
-
]);
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
The Order API methods follow a consistent pattern across all UI areas:
|
|
614
|
-
|
|
615
|
-
- `get*Order()` – Retrieve the current component order
|
|
616
|
-
- `set*Order()` – Replace the entire order
|
|
617
|
-
- `insert*OrderComponent()` – Add components relative to existing ones
|
|
618
|
-
|
|
619
|
-
See [Dock](./user-interface/customization/dock.md), [Inspector Bar](./user-interface/customization/inspector-bar.md), [Navigation Bar](./user-interface/customization/navigation-bar.md), [Canvas Menu](./user-interface/customization/canvas-menu.md), and [Canvas](./user-interface/customization/canvas.md) for detailed layout customization options.
|
|
620
|
-
|
|
621
|
-
### Custom Components
|
|
622
|
-
|
|
623
|
-
Build custom UI components using the builder system and integrate them in the editor. Custom components receive reactive state updates and can interact with the engine API.
|
|
624
|
-
|
|
625
|
-
```typescript title="src/imgly/config/ui/components.ts"
|
|
626
|
-
// Register a custom component
|
|
627
|
-
cesdk.ui.registerComponent('my-custom-button', ({ builder, engine }) => {
|
|
628
|
-
const selectedBlocks = engine.block.findAllSelected();
|
|
629
|
-
|
|
630
|
-
builder.Button('apply-effect', {
|
|
631
|
-
label: 'Apply Effect',
|
|
632
|
-
isDisabled: selectedBlocks.length === 0,
|
|
633
|
-
onClick: () => {
|
|
634
|
-
// Apply custom logic to selected blocks
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
// Add the component to the navigation bar
|
|
640
|
-
cesdk.ui.insertNavigationBarOrderComponent(
|
|
641
|
-
'ly.img.spacer',
|
|
642
|
-
'my-custom-button',
|
|
643
|
-
'after'
|
|
644
|
-
);
|
|
645
|
-
```
|
|
646
|
-
|
|
647
|
-
Custom components automatically re-render when the engine state they depend on changes—no manual subscription management required.
|
|
648
|
-
|
|
649
|
-
See [Register New Component](./user-interface/ui-extensions/register-new-component.md) for the complete builder API and component patterns.
|
|
650
|
-
|
|
651
|
-
### Settings & Features
|
|
652
|
-
|
|
653
|
-
Fine-tune editor behavior through settings and features.
|
|
654
|
-
|
|
655
|
-
**Settings** configure core engine behavior—rendering, input handling, and history management:
|
|
656
|
-
|
|
657
|
-
```typescript title="src/imgly/config/settings.ts"
|
|
658
|
-
cesdk.engine.editor.setSettingBool('page/dimOutOfPageAreas', true);
|
|
659
|
-
cesdk.engine.editor.setSettingBool('mouse/enableZoomControl', true);
|
|
660
|
-
cesdk.engine.editor.setSettingBool('features/undoHistory', true);
|
|
661
|
-
```
|
|
662
|
-
|
|
663
|
-
**Features** toggle which editing tools and panels appear in the UI:
|
|
664
|
-
|
|
665
|
-
```typescript title="src/imgly/config/features.ts"
|
|
666
|
-
// Toggle editor features
|
|
667
|
-
cesdk.feature.enable('ly.img.crop', true);
|
|
668
|
-
cesdk.feature.enable('ly.img.filter', true);
|
|
669
|
-
cesdk.feature.enable('ly.img.adjustment', true);
|
|
670
|
-
```
|
|
671
|
-
|
|
672
|
-
See [Settings](./settings.md) and [Features](./user-interface/customization/disable-or-enable.md) for the complete reference.
|
|
673
|
-
|
|
674
|
-
### Explore Plugins
|
|
675
|
-
|
|
676
|
-
CE.SDK has a rich plugin ecosystem that extends the editor with powerful capabilities. Plugins can add new features, integrate third-party services, or customize editor behavior.
|
|
677
|
-
|
|
678
|
-
#### Background Removal
|
|
679
|
-
|
|
680
|
-
Add AI-powered background removal that runs entirely client-side. The background removal plugin processes images directly in the browser without sending data to external servers.
|
|
681
|
-
|
|
682
|
-
```typescript title="src/imgly/config/plugin.ts"
|
|
683
|
-
import BackgroundRemovalPlugin from '@imgly/plugin-background-removal';
|
|
684
|
-
|
|
685
|
-
// Add background removal capability
|
|
686
|
-
await cesdk.addPlugin(BackgroundRemovalPlugin());
|
|
687
|
-
```
|
|
688
|
-
|
|
689
|
-
See [Background Removal](./edit-image/remove-bg.md) for setup instructions and configuration options.
|
|
690
|
-
|
|
691
|
-
#### Print Ready PDF
|
|
692
|
-
|
|
693
|
-
Export print-ready PDF/X-3 files with CMYK color profiles for professional printing workflows.
|
|
694
|
-
|
|
695
|
-
```typescript title="src/imgly/config/plugin.ts"
|
|
696
|
-
import PrintReadyPDFPlugin from '@imgly/plugin-print-ready-pdf';
|
|
697
|
-
|
|
698
|
-
// Add print-ready PDF export capability
|
|
699
|
-
await cesdk.addPlugin(PrintReadyPDFPlugin());
|
|
700
|
-
```
|
|
701
|
-
|
|
702
|
-
See [Print Ready PDF](./plugins/print-ready-pdf.md) for setup instructions and configuration options.
|
|
703
|
-
|
|
704
|
-
#### AI Integration
|
|
705
|
-
|
|
706
|
-
Extend the editor with generative AI capabilities for text-to-image generation, image enhancement, and intelligent editing features. CE.SDK integrates with various AI providers.
|
|
707
|
-
|
|
708
|
-
```typescript title="src/imgly/config/plugin.ts"
|
|
709
|
-
import AIPlugin from '@imgly/plugin-ai-generation';
|
|
710
|
-
|
|
711
|
-
// Configure AI generation
|
|
712
|
-
await cesdk.addPlugin(
|
|
713
|
-
AIPlugin({
|
|
714
|
-
provider: 'your-ai-provider',
|
|
715
|
-
apiKey: 'your-api-key'
|
|
716
|
-
})
|
|
717
|
-
);
|
|
718
|
-
```
|
|
719
|
-
|
|
720
|
-
See [AI Integration](./user-interface/ai-integration.md) for provider setup and supported AI features.
|
|
721
|
-
|
|
722
|
-
#### Discover More Plugins
|
|
723
|
-
|
|
724
|
-
Explore the full plugin ecosystem in the [IMG.LY plugins repository](https://github.com/imgly/plugins). Available plugins include:
|
|
725
|
-
|
|
726
|
-
- **Vectorizer** – Convert raster images to vectors
|
|
727
|
-
- **Design Presets** – Pre-built design templates
|
|
728
|
-
- **Social Media Templates** – Platform-specific sizing
|
|
729
|
-
- **And more** – Check the repository for the latest additions
|
|
730
|
-
|
|
731
|
-
---
|
|
732
|
-
|
|
733
|
-
## Key Capabilities
|
|
734
|
-
|
|
735
|
-
The Unsplash Editor combines professional design tools with free stock photography.
|
|
736
|
-
|
|
737
|
-
<CapabilityGrid
|
|
738
|
-
features={[
|
|
739
|
-
{
|
|
740
|
-
title: 'Unsplash Integration',
|
|
741
|
-
description:
|
|
742
|
-
'Search and use millions of free high-quality photos with automatic attribution handling.',
|
|
743
|
-
imageId: 'asset-libraries',
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
title: 'Background Removal',
|
|
747
|
-
description:
|
|
748
|
-
'AI-powered background removal that runs entirely in the browser.',
|
|
749
|
-
imageId: 'green-screen',
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
title: 'Professional Filters',
|
|
753
|
-
description:
|
|
754
|
-
'Apply color grading with LUT filters, duotone effects, and image adjustments.',
|
|
755
|
-
imageId: 'filters',
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
title: 'Text & Typography',
|
|
759
|
-
description:
|
|
760
|
-
'Add styled text with typography controls, fonts, and visual effects.',
|
|
761
|
-
imageId: 'text-editing',
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
title: 'Multi-Page Documents',
|
|
765
|
-
description:
|
|
766
|
-
'Create presentations, brochures, and multi-page designs.',
|
|
767
|
-
imageId: 'transform',
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
title: 'Export Options',
|
|
771
|
-
description:
|
|
772
|
-
'Export to PNG, JPEG, and PDF with quality and size controls.',
|
|
773
|
-
imageId: 'client-side',
|
|
774
|
-
},
|
|
775
|
-
]}
|
|
776
|
-
/>
|
|
777
|
-
|
|
778
|
-
<br />
|
|
779
|
-
|
|
780
|
-
> **Free Trial:** [Sign up for a free trial](https://img.ly/forms/free-trial) to get a license key and remove the watermark.
|
|
781
|
-
|
|
782
|
-
---
|
|
783
|
-
|
|
784
|
-
## Troubleshooting
|
|
785
|
-
|
|
786
|
-
### Unsplash images don't load
|
|
787
|
-
|
|
788
|
-
- **Check proxy URL**: Verify you've configured the Unsplash API proxy URL correctly
|
|
789
|
-
- **Check console errors**: Look for network errors or CORS issues
|
|
790
|
-
- **Test proxy directly**: Ensure your proxy server is running and accessible
|
|
791
|
-
|
|
792
|
-
### "Unsplash API URL not configured" warning
|
|
793
|
-
|
|
794
|
-
- **For new projects**: Set `VITE_UNSPLASH_API_URL` in your `.env` file
|
|
795
|
-
- **For existing projects**: Pass `unsplashApiUrl` to `initUnsplashEditor()`
|
|
796
|
-
- **For development**: The demo proxy is used automatically if no URL is provided
|
|
797
|
-
|
|
798
|
-
### Rate limiting errors
|
|
799
|
-
|
|
800
|
-
- **Check Unsplash rate limits**: Free tier allows 50 requests per hour
|
|
801
|
-
- **Monitor `X-Ratelimit-Remaining` header**: Your proxy should forward these headers
|
|
802
|
-
- **Upgrade to production**: Apply for production access at [unsplash.com/developers](https://unsplash.com/developers) for higher limits
|
|
803
|
-
- **Implement caching**: Cache responses to reduce API calls
|
|
804
|
-
|
|
805
|
-
### Authentication failures (401/403 errors)
|
|
806
|
-
|
|
807
|
-
- **Verify API key**: Ensure `UNSPLASH_ACCESS_KEY` is set in your proxy's environment
|
|
808
|
-
- **Check key format**: Use `Client-ID YOUR_ACCESS_KEY` in the Authorization header
|
|
809
|
-
- **Verify proxy deployment**: Ensure environment variables are properly configured in production
|
|
810
|
-
- **Test API key directly**: Try a curl request to verify your key works
|
|
811
|
-
|
|
812
|
-
### Attribution not showing
|
|
813
|
-
|
|
814
|
-
- **Check asset source config**: Ensure `credits` object is defined in the asset source
|
|
815
|
-
- **Verify API response**: The Unsplash API returns photographer info in the `user` field
|
|
816
|
-
|
|
817
|
-
### Editor doesn't load
|
|
818
|
-
|
|
819
|
-
- **Check container element**: Ensure your container element exists before calling `create()`
|
|
820
|
-
- **Verify baseURL**: Assets must be accessible from your configured location
|
|
821
|
-
- **Check console errors**: Look for CORS or network errors
|
|
822
|
-
|
|
823
|
-
---
|
|
824
|
-
|
|
825
|
-
## Next Steps
|
|
826
|
-
|
|
827
|
-
- [Custom Asset Sources](./import-media/from-remote-source/unsplash.md) – Learn how asset sources work
|
|
828
|
-
- [Theming](./user-interface/appearance/theming.md) – Customize colors and appearance
|
|
829
|
-
- [Localization](./user-interface/localization.md) – Add translations
|
|
830
|
-
- [Actions](./actions.md) – Build custom export workflows
|
|
831
|
-
|
|
832
|
-
---
|
|
833
|
-
|
|
834
|
-
## More Resources
|
|
835
|
-
|
|
836
|
-
- **[Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md)** - Browse all Vanilla JS/TS documentation
|
|
837
|
-
- **[Complete Documentation](./llms-full.txt.md)** - Full documentation in one file (for LLMs)
|
|
838
|
-
- **[Web Documentation](./js.md)** - Interactive documentation with examples
|
|
839
|
-
- **[Support](mailto:support@img.ly)** - Contact IMG.LY support
|