@fluidattacks/design 1.2.9 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design.js +141 -62
- package/dist/design.mjs +772 -685
- package/dist/node_modules/@cloudinary/react/index.d.ts +4 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/By3dLutAction.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/FillLightAction.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/ImproveAction.d.ts +28 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/OpacityAdjustAction.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/RecolorAction.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/ReplaceColorAction.d.ts +36 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust/simple/ViesusCorrectAdjustAction.d.ts +22 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/adjust.d.ts +263 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/animated.d.ts +54 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/border.d.ts +101 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/customFunction/CustomFunctionAction.d.ts +30 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/customFunction/RemoteAction.d.ts +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/customFunction.d.ts +25 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryAction.d.ts +19 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryColorSpaceAction.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryColorSpaceFromICCAction.d.ts +18 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryDPRAction.d.ts +19 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryFormatAction.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery/DeliveryQualityAction.d.ts +28 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/delivery.d.ts +156 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/AssistColorBlind.d.ts +27 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/BackgroundRemoval.d.ts +19 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Blur.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Cartoonify.d.ts +38 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Colorize.d.ts +19 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Dither.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/DropShadow.d.ts +40 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/EffectActions/EffectActionWithBlend.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/EffectActions/EffectActionWithLevel.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/EffectActions/EffectActionWithStrength.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/EffectActions/LeveledEffectAction.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/EffectActions/SimpleEffectAction.d.ts +18 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Extract.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/GenerativeBackgroundReplace.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/GenerativeRecolor.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/GenerativeRemove.d.ts +25 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/GenerativeReplace.d.ts +22 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/GradientFade.d.ts +37 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Outline.d.ts +48 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/RemoveBackgroundAction.d.ts +31 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Shadow.d.ts +42 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/SimulateColorBlind.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/StyleTransfer.d.ts +43 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Theme.d.ts +24 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/Vectorize.d.ts +51 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/Accelerate.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/Blackwhite.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/Deshake.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/FadeIn.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/FadeOut.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/Loop.d.ts +13 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/leveled/MakeTransparent.d.ts +26 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect/pixelate/Pixelate.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/effect.d.ts +516 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/layer/LayerAction.d.ts +75 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/namedTransformation/NamedTransformationAction.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/namedTransformation.d.ts +27 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/overlay.d.ts +48 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/psdTools/ClipAction.d.ts +31 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/psdTools/GetLayerAction.d.ts +31 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/psdTools/SmartObjectAction.d.ts +26 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/psdTools.d.ts +78 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeAdvancedAction.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeAutoPadAction.d.ts +22 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeCropAction.d.ts +27 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeFillAction.d.ts +22 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeLimitFillAction.d.ts +10 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeLimitFitAction.d.ts +10 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeLimitPadAction.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeMinimumPadAction.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizePadAction.d.ts +31 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeScaleAction.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ResizeSimpleAction.d.ts +52 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize/ThumbnailAction.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/resize.d.ts +234 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/rotate/RotateAction.d.ts +34 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/rotate.d.ts +26 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/roundCorners/RoundCornersAction.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/roundCorners.d.ts +30 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/AudioCodecAction.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/AudioFrequencyAction.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/BitRateAction.d.ts +24 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/FPSAction.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/FPSRangeAction.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/KeyframeIntervalsAction.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/StreamingProfile.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/ToAnimatedAction.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode/VideoCodecAction.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/transcode.d.ts +197 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/underlay.d.ts +50 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/videoEdit/ConcatenateAction.d.ts +56 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/videoEdit/PreviewAction.d.ts +37 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/videoEdit/TrimAction.d.ts +50 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/videoEdit/VolumeAction.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions/videoEdit.d.ts +117 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/actions.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/backwards/createCloudinaryLegacyURL.d.ts +2 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/backwards/expression.d.ts +160 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/backwards/transformation.d.ts +191 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/index.d.ts +6 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/Action.d.ts +45 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/RawAction.d.ts +14 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/ActionModel.d.ts +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IAudioSourceModel.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IErrorObject.d.ts +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IFetchSourceModel.d.ts +13 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IImageSourceModel.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IStrokeModel.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/ITextSourceModel.d.ts +19 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/QualifierModel.d.ts +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/actionToJson.d.ts +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/createGravityModel.d.ts +28 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/qualifierToJson.d.ts +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/Qualifier.d.ts +15 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/QualifierValue.d.ts +37 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/GradientFade.d.ts +24 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/animatedFormat/AnimatedFormatQualifierValue.d.ts +8 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/animatedFormat.d.ts +39 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/artisticFilter.d.ts +136 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/aspectRatio/AspectRatioQualifierValue.d.ts +7 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/aspectRatio.d.ts +68 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/audioCodec.d.ts +40 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/audioFrequency.d.ts +100 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/autoFocus.d.ts +58 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/BackgroundGenerativeFillQualifier.d.ts +20 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/BlurredBackgroundAction.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/auto/BackgroundAutoBorderQualifier.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/auto/BackgroundAutoPredominantQualifier.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/base/BackgroundQualifier.d.ts +10 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/base/BaseCommonBackground.d.ts +24 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/base/BaseGradientBackground.d.ts +27 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/gradient/BackgroundBorderGradientQualifier.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background/shared/gradient/BackgroundPredominantGradientQualifier.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/background.d.ts +85 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/blendMode/BlendModeQualifier.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/chromaSubSampling.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/color.d.ts +685 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/colorSpace.d.ts +33 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/dither.d.ts +123 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/dpr.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/expression/ExpressionQualifier.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/expression.d.ts +18 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/flag/FlagQualifier.d.ts +14 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/focusOn.d.ts +256 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/fontHinting.d.ts +35 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/fontStyle.d.ts +23 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/fontWeight.d.ts +35 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/format/FormatQualifier.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/format.d.ts +522 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gradientDirection/GradientDirectionQualifierValue.d.ts +8 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gradientDirection.d.ts +41 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/GravityQualifier.d.ts +22 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/autoGravity/AutoGravity.d.ts +16 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/compassGravity/CompassGravity.d.ts +13 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/focusOnGravity/FocusOnGravity.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/qualifiers/compass/CompassQualifier.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/qualifiers/focusOn/FocusOnValue.d.ts +11 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity/xyCenterGravity/XYCenterGravity.d.ts +10 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/gravity.d.ts +97 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/improveMode.d.ts +33 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/outlineMode.d.ts +33 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/position/PositionQualifier.d.ts +43 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/position.d.ts +13 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/progressive.d.ts +28 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/quality.d.ts +81 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/region/CustomRegion.d.ts +30 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/region/NamedRegion.d.ts +10 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/region/RectangleRegion.d.ts +17 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/region.d.ts +42 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/rotate/RotationModeQualifierValue.d.ts +12 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/rotationMode.d.ts +45 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/simulateColorBlind.d.ts +59 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/BaseSource.d.ts +32 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/AudioSource.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/BaseTextSource.d.ts +32 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/FetchSource.d.ts +43 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/ImageSource.d.ts +43 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/SubtitlesSource.d.ts +28 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/TextSource.d.ts +14 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source/sourceTypes/VideoSource.d.ts +32 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/source.d.ts +72 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/streamingProfile.d.ts +51 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/textAlignment.d.ts +47 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/textDecoration.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/textStroke.d.ts +21 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/textStyle.d.ts +71 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/video/TimelinePosition.d.ts +29 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers/videoCodecType/VideoCodecType.d.ts +43 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/qualifiers.d.ts +31 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/ImageTransformation.d.ts +9 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/Transformation.d.ts +196 -0
- package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/VideoTransformation.d.ts +9 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/adjust.d.ts +3 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/animated.d.ts +8 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/border.d.ts +3 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/customFunction.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/delivery.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/effect.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/namedTransformation.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/overlay.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/psdTools.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/resize.d.ts +3 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/rotate.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/roundCorners.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/transcode.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/underlay.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions/videoEdit.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/actions.d.ts +15 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryFile.d.ts +112 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryImage.d.ts +12 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryMedia.d.ts +33 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryTransformable.d.ts +179 -0
- package/dist/node_modules/@cloudinary/url-gen/assets/CloudinaryVideo.d.ts +26 -0
- package/dist/node_modules/@cloudinary/url-gen/backwards/createCloudinaryLegacyURL.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/backwards/expression.d.ts +160 -0
- package/dist/node_modules/@cloudinary/url-gen/backwards/generateTransformationString.d.ts +14 -0
- package/dist/node_modules/@cloudinary/url-gen/backwards/transformation.d.ts +191 -0
- package/dist/node_modules/@cloudinary/url-gen/config/BaseConfig.d.ts +4 -0
- package/dist/node_modules/@cloudinary/url-gen/config/CloudConfig.d.ts +26 -0
- package/dist/node_modules/@cloudinary/url-gen/config/CloudinaryConfig.d.ts +22 -0
- package/dist/node_modules/@cloudinary/url-gen/config/URLConfig.d.ts +61 -0
- package/dist/node_modules/@cloudinary/url-gen/index.d.ts +16 -0
- package/dist/node_modules/@cloudinary/url-gen/instance/Cloudinary.d.ts +13 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/GradientFade.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/animatedFormat.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/artisticFilter.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/aspectRatio.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/audioCodec.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/audioFrequency.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/background.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/chromaSubSampling.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/color.d.ts +3 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/colorSpace.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/dither.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/dpr.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/expression.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/fontHinting.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/fontStyle.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/fontWeight.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/format.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/gradientDirection.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/gravity.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/improveMode.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/outlineMode.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/position.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/quality.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/region.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/rotationMode.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/simulateColorBlind.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/source.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/streamingProfile.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/textAlignment.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/textDecoration.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers/textStroke.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/qualifiers.d.ts +31 -0
- package/dist/node_modules/@cloudinary/url-gen/transformation/ImageTransformation.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/transformation/Transformation.d.ts +2 -0
- package/dist/node_modules/@cloudinary/url-gen/transformation/VideoTransformation.d.ts +2 -0
- package/dist/src/components/accordion/styles.d.ts +6 -0
- package/dist/src/components/accordion/types.d.ts +29 -0
- package/dist/src/components/accordion/utils.d.ts +11 -0
- package/dist/src/components/button/styles.d.ts +1 -0
- package/dist/src/components/button/types.d.ts +7 -3
- package/dist/src/components/button/utils.d.ts +3 -0
- package/dist/src/components/cloud-image/index.d.ts +3 -3
- package/dist/src/components/cloud-image/types.d.ts +2 -2
- package/dist/src/components/grid-layout/styles.d.ts +8 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/components/button/index.stories.d.ts +0 -10
- package/dist/src/components/container/index.stories.d.ts +0 -7
- package/dist/src/components/grid-layout/index.stories.d.ts +0 -5
- package/dist/src/components/tooltip/index.stories.d.ts +0 -8
package/dist/node_modules/@cloudinary/transformation-builder-sdk/transformation/Transformation.d.ts
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { default as CustomFunctionAction } from '../actions/customFunction/CustomFunctionAction.js';
|
|
2
|
+
import { LayerAction } from '../actions/layer/LayerAction.js';
|
|
3
|
+
import { Action } from '../internal/Action.js';
|
|
4
|
+
import { default as VariableAction } from '../actions/variable/VariableAction.js';
|
|
5
|
+
import { ConditionalAction } from '../actions/conditional.js';
|
|
6
|
+
import { ResizeSimpleAction } from '../actions/resize/ResizeSimpleAction.js';
|
|
7
|
+
import { default as RotateAction } from '../actions/rotate/RotateAction.js';
|
|
8
|
+
import { NamedTransformationAction } from '../actions/namedTransformation/NamedTransformationAction.js';
|
|
9
|
+
import { SmartObjectAction } from '../actions/psdTools/SmartObjectAction.js';
|
|
10
|
+
import { ClipAction } from '../actions/psdTools/ClipAction.js';
|
|
11
|
+
import { GetLayerAction } from '../actions/psdTools/GetLayerAction.js';
|
|
12
|
+
import { IReshape } from '../actions/reshape.js';
|
|
13
|
+
import { SystemColors } from '../qualifiers/color.js';
|
|
14
|
+
import { ExtractAction } from '../actions/extract.js';
|
|
15
|
+
import { BorderAction } from '../actions/border.js';
|
|
16
|
+
import { FlagQualifier } from '../qualifiers/flag/FlagQualifier.js';
|
|
17
|
+
import { EffectActions } from '../actions/effect.js';
|
|
18
|
+
import { videoEditType } from '../actions/videoEdit.js';
|
|
19
|
+
import { RawAction } from '../internal/RawAction.js';
|
|
20
|
+
import { IAdjustAction } from '../actions/adjust.js';
|
|
21
|
+
import { IDeliveryAction } from '../actions/delivery.js';
|
|
22
|
+
import { ITranscodeAction } from '../actions/transcode.js';
|
|
23
|
+
import { AnimatedAction } from '../actions/animated.js';
|
|
24
|
+
import { default as RoundCornersAction } from '../actions/roundCorners/RoundCornersAction.js';
|
|
25
|
+
import { IErrorObject } from '../internal/models/IErrorObject.js';
|
|
26
|
+
import { ITransformationModel } from '../internal/models/ITransformationModel.js';
|
|
27
|
+
/**
|
|
28
|
+
* @summary SDK
|
|
29
|
+
* @description - Defines how to transform an asset
|
|
30
|
+
* @memberOf SDK
|
|
31
|
+
*/
|
|
32
|
+
declare class Transformation {
|
|
33
|
+
actions: (Action | RawAction)[];
|
|
34
|
+
constructor();
|
|
35
|
+
/**
|
|
36
|
+
* @param {SDK.Action | string} action
|
|
37
|
+
* @return {this}
|
|
38
|
+
*/
|
|
39
|
+
addAction(action: Action | string): this;
|
|
40
|
+
/**
|
|
41
|
+
* @description Allows the injection of a raw transformation as a string into the transformation, or a Transformation instance that was previously created
|
|
42
|
+
* @param {string | SDK.Transformation} tx
|
|
43
|
+
* @example
|
|
44
|
+
* import {Transformation} from "@cloudinary/url-gen";
|
|
45
|
+
*
|
|
46
|
+
* const transformation = new Transformation();
|
|
47
|
+
* transformation.addTransformation('w_100/w_200/w_300');
|
|
48
|
+
* @return {this}
|
|
49
|
+
*/
|
|
50
|
+
addTransformation(tx: string | Transformation): this;
|
|
51
|
+
/**
|
|
52
|
+
* @return {string}
|
|
53
|
+
*/
|
|
54
|
+
toString(): string;
|
|
55
|
+
/**
|
|
56
|
+
* @description Delivers an animated GIF.
|
|
57
|
+
* @param {AnimatedAction} animatedAction
|
|
58
|
+
* @return {this}
|
|
59
|
+
*/
|
|
60
|
+
animated(animatedAction: AnimatedAction): this;
|
|
61
|
+
/**
|
|
62
|
+
* @description Adds a border around the image.
|
|
63
|
+
* @param {Border} borderAction
|
|
64
|
+
* @return {this}
|
|
65
|
+
*/
|
|
66
|
+
border(borderAction: BorderAction): this;
|
|
67
|
+
/**
|
|
68
|
+
* @description Adjusts the shape of the delivered image. </br>
|
|
69
|
+
* <b>Learn more:</b> {@link https://cloudinary.com/documentation/effects_and_artistic_enhancements#distort|Shape changes and distortion effects}
|
|
70
|
+
* @param {IReshape} reshapeAction
|
|
71
|
+
* @return {this}
|
|
72
|
+
*/
|
|
73
|
+
reshape(reshapeAction: IReshape): this;
|
|
74
|
+
/**
|
|
75
|
+
* @description Resize the asset using provided resize action
|
|
76
|
+
* @param {ResizeSimpleAction} resizeAction
|
|
77
|
+
* @return {this}
|
|
78
|
+
*/
|
|
79
|
+
resize(resizeAction: ResizeSimpleAction): this;
|
|
80
|
+
/**
|
|
81
|
+
* @desc An alias to Action Delivery.quality
|
|
82
|
+
* @param {string|number} quality
|
|
83
|
+
* @return {this}
|
|
84
|
+
*/
|
|
85
|
+
quality(quality: string | number): this;
|
|
86
|
+
/**
|
|
87
|
+
* @desc An alias to Action Delivery.format
|
|
88
|
+
* @param {string} format
|
|
89
|
+
* @return {this}
|
|
90
|
+
*/
|
|
91
|
+
format(format: string): this;
|
|
92
|
+
/**
|
|
93
|
+
* @description Rounds the specified corners of an image.
|
|
94
|
+
* @param roundCornersAction
|
|
95
|
+
* @return {this}
|
|
96
|
+
*/
|
|
97
|
+
roundCorners(roundCornersAction: RoundCornersAction): this;
|
|
98
|
+
/**
|
|
99
|
+
* @description Adds an overlay over the base image.
|
|
100
|
+
* @param {LayerAction} overlayAction
|
|
101
|
+
* @return {this}
|
|
102
|
+
*/
|
|
103
|
+
overlay(overlayAction: LayerAction): this;
|
|
104
|
+
/**
|
|
105
|
+
* @description Adds an underlay under the base image.
|
|
106
|
+
* @param {LayerAction} underlayAction
|
|
107
|
+
* @return {this}
|
|
108
|
+
*/
|
|
109
|
+
underlay(underlayAction: LayerAction): this;
|
|
110
|
+
/**
|
|
111
|
+
* @description Defines an new user variable.
|
|
112
|
+
* @param {VariableAction} variableAction
|
|
113
|
+
* @return {this}
|
|
114
|
+
*/
|
|
115
|
+
addVariable(variableAction: VariableAction): this;
|
|
116
|
+
/**
|
|
117
|
+
* @description Specifies a condition to be met before applying a transformation.
|
|
118
|
+
* @param {ConditionalAction} conditionAction
|
|
119
|
+
* @return {this}
|
|
120
|
+
*/
|
|
121
|
+
conditional(conditionAction: ConditionalAction): this;
|
|
122
|
+
/**
|
|
123
|
+
* @description Applies a filter or an effect on an asset.
|
|
124
|
+
* @param {SimpleEffectAction} effectAction
|
|
125
|
+
* @return {this}
|
|
126
|
+
*/
|
|
127
|
+
effect(effectAction: EffectActions): this;
|
|
128
|
+
/**
|
|
129
|
+
* @description Applies adjustment effect on an asset.
|
|
130
|
+
* @param action
|
|
131
|
+
* @return {this}
|
|
132
|
+
*/
|
|
133
|
+
adjust(action: IAdjustAction): this;
|
|
134
|
+
/**
|
|
135
|
+
* @description Rotates the asset by the given angle.
|
|
136
|
+
* @param {RotateAction} rotateAction
|
|
137
|
+
* @return {this}
|
|
138
|
+
*/
|
|
139
|
+
rotate(rotateAction: RotateAction): this;
|
|
140
|
+
/**
|
|
141
|
+
* @description Applies a pre-defined named transformation of the given name.
|
|
142
|
+
* @param {NamedTransformation} namedTransformation
|
|
143
|
+
* @return {this}
|
|
144
|
+
*/
|
|
145
|
+
namedTransformation(namedTransformation: NamedTransformationAction): this;
|
|
146
|
+
/**
|
|
147
|
+
* @description Applies delivery action.
|
|
148
|
+
* @param deliveryAction
|
|
149
|
+
* @return {this}
|
|
150
|
+
*/
|
|
151
|
+
delivery(deliveryAction: IDeliveryAction): this;
|
|
152
|
+
/**
|
|
153
|
+
* @description Sets the color of the background.
|
|
154
|
+
* @param {Qualifiers.Color} color
|
|
155
|
+
* @return {this}
|
|
156
|
+
*/
|
|
157
|
+
backgroundColor(color: SystemColors): this;
|
|
158
|
+
/**
|
|
159
|
+
* @description Adds a layer in a Photoshop document.
|
|
160
|
+
* @param action
|
|
161
|
+
* @return {this}
|
|
162
|
+
*/
|
|
163
|
+
psdTools(action: SmartObjectAction | ClipAction | GetLayerAction): this;
|
|
164
|
+
/**
|
|
165
|
+
* @description Extracts an image or a page using an index, a range, or a name from a layered media asset.
|
|
166
|
+
* @param action
|
|
167
|
+
* @return {this}
|
|
168
|
+
*/
|
|
169
|
+
extract(action: ExtractAction): this;
|
|
170
|
+
/**
|
|
171
|
+
* @description Adds a flag as a separate action.
|
|
172
|
+
* @param {Qualifiers.Flag | string} flagQualifier
|
|
173
|
+
* @return {this}
|
|
174
|
+
*/
|
|
175
|
+
addFlag(flagQualifier: FlagQualifier | string): this;
|
|
176
|
+
/**
|
|
177
|
+
* @description Inject a custom function into the image transformation pipeline.
|
|
178
|
+
* @return {this}
|
|
179
|
+
*/
|
|
180
|
+
customFunction(customFunction: CustomFunctionAction): this;
|
|
181
|
+
/**
|
|
182
|
+
* Transcodes the video (or audio) to another format.
|
|
183
|
+
* @param {Action} action
|
|
184
|
+
* @return {this}
|
|
185
|
+
*/
|
|
186
|
+
transcode(action: ITranscodeAction): this;
|
|
187
|
+
/**
|
|
188
|
+
* Applies the specified video edit action.
|
|
189
|
+
*
|
|
190
|
+
* @param {videoEditType} action
|
|
191
|
+
* @return {this}
|
|
192
|
+
*/
|
|
193
|
+
videoEdit(action: videoEditType): this;
|
|
194
|
+
toJson(): ITransformationModel | IErrorObject;
|
|
195
|
+
}
|
|
196
|
+
export { Transformation };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Adjust } from '@cloudinary/transformation-builder-sdk/actions';
|
|
2
|
+
import { IAdjustAction, brightness, viesusCorrect, opacity, red, sharpen, improve, saturation, contrast, gamma, green, blue, brightnessHSB, hue, autoBrightness, autoColor, autoContrast, vibrance, unsharpMask, opacityThreshold, replaceColor, recolor, fillLight, by3dLut, tint } from '@cloudinary/transformation-builder-sdk/actions/adjust';
|
|
3
|
+
export { IAdjustAction, Adjust, brightness, viesusCorrect, opacity, red, sharpen, improve, saturation, contrast, gamma, green, blue, brightnessHSB, hue, autoBrightness, autoColor, autoContrast, vibrance, unsharpMask, opacityThreshold, replaceColor, recolor, fillLight, by3dLut, tint };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Animated } from '@cloudinary/transformation-builder-sdk/actions';
|
|
2
|
+
import { AnimatedAction, edit } from '@cloudinary/transformation-builder-sdk/actions/animated';
|
|
3
|
+
/**
|
|
4
|
+
* @description Adjusts the visual appearance of an image or video.
|
|
5
|
+
* @memberOf Actions
|
|
6
|
+
* @namespace Adjust
|
|
7
|
+
*/
|
|
8
|
+
export { AnimatedAction, Animated, edit };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { IDeliveryAction, Delivery, format, dpr, quality, density, defaultImage, colorSpace, colorSpaceFromICC } from '@cloudinary/transformation-builder-sdk/actions/delivery';
|
|
2
|
+
export { IDeliveryAction, Delivery, format, dpr, quality, density, defaultImage, colorSpace, colorSpaceFromICC };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EffectActions, Effect, pixelate, deshake, boomerang, advancedRedEye, blackwhite, negate, redEye, reverse, accelerate, fadeIn, fadeOut, loop, makeTransparent, noise, vignette, blur, grayscale, sepia, shadow, colorize, oilPaint, artisticFilter, cartoonify, outline, styleTransfer, gradientFade, vectorize, assistColorBlind, simulateColorBlind, transition, dither, removeBackground, backgroundRemoval, dropShadow, generativeRemove, generativeReplace, generativeRecolor, generativeRestore, generativeBackgroundReplace, upscale, theme, enhance, extract } from '@cloudinary/transformation-builder-sdk/actions/effect';
|
|
2
|
+
export { EffectActions, Effect, pixelate, deshake, boomerang, advancedRedEye, blackwhite, negate, redEye, reverse, accelerate, fadeIn, fadeOut, loop, makeTransparent, noise, vignette, blur, grayscale, sepia, shadow, colorize, oilPaint, artisticFilter, cartoonify, outline, styleTransfer, gradientFade, vectorize, assistColorBlind, simulateColorBlind, transition, dither, removeBackground, backgroundRemoval, dropShadow, generativeRemove, generativeReplace, generativeRecolor, generativeRestore, generativeBackgroundReplace, upscale, theme, enhance, extract };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resize } from '@cloudinary/transformation-builder-sdk/actions';
|
|
2
|
+
import { pad, imaggaScale, imaggaCrop, crop, fit, minimumPad, fill, scale, limitFit, thumbnail, limitFill, minimumFit, limitPad, fillPad, auto, autoPad } from '@cloudinary/transformation-builder-sdk/actions/resize';
|
|
3
|
+
export { Resize, imaggaScale, imaggaCrop, crop, fill, scale, minimumPad, fit, pad, limitFit, thumbnail, limitFill, minimumFit, limitPad, fillPad, auto, autoPad };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ITranscodeAction, Transcode, bitRate, audioCodec, audioFrequency, fps, fpsRange, keyframeInterval, streamingProfile, toAnimated, videoCodec } from '@cloudinary/transformation-builder-sdk/actions/transcode';
|
|
2
|
+
export { ITranscodeAction, Transcode, bitRate, audioCodec, audioFrequency, fps, fpsRange, keyframeInterval, streamingProfile, toAnimated, videoCodec };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Resize } from './actions/resize.js';
|
|
2
|
+
export { Border } from './actions/border.js';
|
|
3
|
+
export { RoundCorners } from './actions/roundCorners.js';
|
|
4
|
+
export { Effect } from './actions/effect.js';
|
|
5
|
+
export { Rotate } from './actions/rotate.js';
|
|
6
|
+
export { Adjust } from './actions/adjust.js';
|
|
7
|
+
export { Overlay } from './actions/overlay.js';
|
|
8
|
+
export { Underlay } from './actions/underlay.js';
|
|
9
|
+
export { NamedTransformation } from './actions/namedTransformation.js';
|
|
10
|
+
export { Delivery } from './actions/delivery.js';
|
|
11
|
+
export { CustomFunction } from './actions/customFunction.js';
|
|
12
|
+
export { VideoEdit } from './actions/videoEdit.js';
|
|
13
|
+
export { Transcode } from './actions/transcode.js';
|
|
14
|
+
export { PSDTools } from './actions/psdTools.js';
|
|
15
|
+
export { Animated } from './actions/animated.js';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Transformation } from '@cloudinary/transformation-builder-sdk/transformation/Transformation';
|
|
2
|
+
import { default as ICloudConfig } from '../config/interfaces/Config/ICloudConfig.js';
|
|
3
|
+
import { default as IURLConfig } from '../config/interfaces/Config/IURLConfig.js';
|
|
4
|
+
import { default as IAuthTokenConfig } from '../config/interfaces/Config/IAuthTokenConfig.js';
|
|
5
|
+
import { ITrackedPropertiesThroughAnalytics } from '../sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.js';
|
|
6
|
+
/**
|
|
7
|
+
* This const contains all the valid combination of asset/delivery for URL shortening purposes
|
|
8
|
+
* It's exported because it's used in a test, but it's not really shared enough to belong in a separate file
|
|
9
|
+
*/
|
|
10
|
+
export declare const SEO_TYPES: Record<string, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Supported delivery type options.
|
|
13
|
+
*/
|
|
14
|
+
type DELIVERY_TYPE = 'key' | 'upload' | 'private_delivery' | 'public_delivery' | 'authenticated' | 'fetch' | 'sprite' | 'text' | 'multi' | 'facebook' | 'twitter' | 'twitter_name' | 'gravatar' | 'youtube' | 'hulu' | 'vimeo' | 'animoto' | 'worldstarhiphop' | 'dailymotion';
|
|
15
|
+
/**
|
|
16
|
+
* @description Cloudinary file without a transformation
|
|
17
|
+
* @summary SDK
|
|
18
|
+
* @memberOf SDK
|
|
19
|
+
*/
|
|
20
|
+
declare class CloudinaryFile {
|
|
21
|
+
protected assetType: string;
|
|
22
|
+
protected cloudName: string;
|
|
23
|
+
protected apiKey: string;
|
|
24
|
+
protected apiSecret: string;
|
|
25
|
+
protected authToken: IAuthTokenConfig;
|
|
26
|
+
protected urlConfig: IURLConfig;
|
|
27
|
+
private version;
|
|
28
|
+
private publicID;
|
|
29
|
+
private extension;
|
|
30
|
+
private signature;
|
|
31
|
+
private suffix;
|
|
32
|
+
private deliveryType;
|
|
33
|
+
constructor(publicID: string, cloudConfig?: ICloudConfig, urlConfig?: IURLConfig);
|
|
34
|
+
/**
|
|
35
|
+
* @description Sets the URL Config for this asset
|
|
36
|
+
* @param urlConfig
|
|
37
|
+
* @return {this}
|
|
38
|
+
*/
|
|
39
|
+
setURLConfig(urlConfig: IURLConfig): this;
|
|
40
|
+
/**
|
|
41
|
+
* @description Sets the Cloud Config for this asset
|
|
42
|
+
* @param urlConfig
|
|
43
|
+
* @return {this}
|
|
44
|
+
*/
|
|
45
|
+
setCloudConfig(cloudConfig: ICloudConfig): this;
|
|
46
|
+
/**
|
|
47
|
+
* @description Sets the public ID of the asset.
|
|
48
|
+
* @param {string} publicID The public ID of the asset.
|
|
49
|
+
* @return {this}
|
|
50
|
+
*/
|
|
51
|
+
setPublicID(publicID: string): this;
|
|
52
|
+
/**
|
|
53
|
+
* @description Sets the delivery type of the asset.
|
|
54
|
+
* @param {DELIVERY_TYPE | string} newType The type of the asset.
|
|
55
|
+
* @return {this}
|
|
56
|
+
*/
|
|
57
|
+
setDeliveryType(newType: DELIVERY_TYPE | string): this;
|
|
58
|
+
/**
|
|
59
|
+
* @description Sets the URL SEO suffix of the asset.
|
|
60
|
+
* @param {string} newSuffix The SEO suffix.
|
|
61
|
+
* @return {this}
|
|
62
|
+
*/
|
|
63
|
+
setSuffix(newSuffix: string): this;
|
|
64
|
+
/**
|
|
65
|
+
* @description Sets the signature of the asset.
|
|
66
|
+
* @param {string} signature The signature.
|
|
67
|
+
* @return {this}
|
|
68
|
+
*/
|
|
69
|
+
setSignature(signature: string): this;
|
|
70
|
+
/**
|
|
71
|
+
* @description Sets the version of the asset.
|
|
72
|
+
* @param {string} newVersion The version of the asset.
|
|
73
|
+
* @return {this}
|
|
74
|
+
*/
|
|
75
|
+
setVersion(newVersion: number | string): this;
|
|
76
|
+
/**
|
|
77
|
+
* @description Sets the asset type.
|
|
78
|
+
* @param {string} newType The type of the asset.
|
|
79
|
+
* @return {this}
|
|
80
|
+
*/
|
|
81
|
+
setAssetType(newType: 'key' | 'image' | 'video' | 'raw' | 'auto' | 'all' | string): this;
|
|
82
|
+
sign(): this;
|
|
83
|
+
/**
|
|
84
|
+
* @description Serializes to URL string
|
|
85
|
+
* @param overwriteOptions
|
|
86
|
+
*/
|
|
87
|
+
toURL(overwriteOptions?: {
|
|
88
|
+
trackedAnalytics?: Partial<ITrackedPropertiesThroughAnalytics>;
|
|
89
|
+
}): string;
|
|
90
|
+
/**
|
|
91
|
+
* @description Validate various options before attempting to create a URL
|
|
92
|
+
* The function will throw in case a violation
|
|
93
|
+
* @throws Validation errors
|
|
94
|
+
*/
|
|
95
|
+
validateAssetForURLCreation(): void;
|
|
96
|
+
/**
|
|
97
|
+
* @description return an SEO friendly name for a combination of asset/delivery, some examples:
|
|
98
|
+
* * image/upload -> images
|
|
99
|
+
* * video/upload -> videos
|
|
100
|
+
* If no match is found, return `{asset}/{delivery}`
|
|
101
|
+
*/
|
|
102
|
+
getResourceType(): string;
|
|
103
|
+
getSignature(): string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @description Creates a fully qualified CloudinaryURL
|
|
107
|
+
* @return {string} CloudinaryURL
|
|
108
|
+
* @throws Validation Errors
|
|
109
|
+
*/
|
|
110
|
+
createCloudinaryURL(transformation?: Transformation | string, trackedAnalytics?: Partial<ITrackedPropertiesThroughAnalytics>): string;
|
|
111
|
+
}
|
|
112
|
+
export { CloudinaryFile };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CloudinaryTransformable } from './CloudinaryTransformable.js';
|
|
2
|
+
import { default as ICloudConfig } from '../config/interfaces/Config/ICloudConfig.js';
|
|
3
|
+
import { default as IURLConfig } from '../config/interfaces/Config/IURLConfig.js';
|
|
4
|
+
/**
|
|
5
|
+
* @desc Cloudinary image asset, with image-related transformations
|
|
6
|
+
* @summary SDK
|
|
7
|
+
* @memberOf SDK
|
|
8
|
+
*/
|
|
9
|
+
declare class CloudinaryImage extends CloudinaryTransformable {
|
|
10
|
+
constructor(publicID?: string, cloudConfig?: ICloudConfig, urlConfig?: IURLConfig);
|
|
11
|
+
}
|
|
12
|
+
export { CloudinaryImage };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CloudinaryTransformable } from './CloudinaryTransformable.js';
|
|
2
|
+
import { videoEditType } from '../actions/videoEdit.js';
|
|
3
|
+
import { LayerAction } from '../actions/layer/LayerAction.js';
|
|
4
|
+
import { default as ICloudConfig } from '../config/interfaces/Config/ICloudConfig.js';
|
|
5
|
+
import { default as IURLConfig } from '../config/interfaces/Config/IURLConfig.js';
|
|
6
|
+
import { ITranscodeAction } from '../actions/transcode.js';
|
|
7
|
+
/**
|
|
8
|
+
* @desc Cloudinary media asset, with all possible transformations
|
|
9
|
+
* @summary SDK
|
|
10
|
+
* @memberOf SDK
|
|
11
|
+
*/
|
|
12
|
+
declare class CloudinaryMedia extends CloudinaryTransformable {
|
|
13
|
+
constructor(publicID?: string, cloudConfig?: ICloudConfig, urlConfig?: IURLConfig);
|
|
14
|
+
/**
|
|
15
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
16
|
+
* @param {Actions.Transcode} action
|
|
17
|
+
* @return {this}
|
|
18
|
+
*/
|
|
19
|
+
transcode(action: ITranscodeAction): this;
|
|
20
|
+
/**
|
|
21
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
22
|
+
* @param {Actions.VideoEdit} action
|
|
23
|
+
* @return {this}
|
|
24
|
+
*/
|
|
25
|
+
videoEdit(action: videoEditType): this;
|
|
26
|
+
/**
|
|
27
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
28
|
+
* @return {this}
|
|
29
|
+
*/
|
|
30
|
+
underlay(underlayAction: LayerAction): this;
|
|
31
|
+
clone(): this;
|
|
32
|
+
}
|
|
33
|
+
export { CloudinaryMedia };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { BorderAction } from '../actions/border.js';
|
|
2
|
+
import { IReshape } from '../actions/reshape.js';
|
|
3
|
+
import { ResizeSimpleAction } from '@cloudinary/transformation-builder-sdk/actions/resize/ResizeSimpleAction';
|
|
4
|
+
import { default as RoundCornersAction } from '@cloudinary/transformation-builder-sdk/actions/roundCorners/RoundCornersAction';
|
|
5
|
+
import { LayerAction } from '../actions/layer/LayerAction.js';
|
|
6
|
+
import { default as VariableAction } from '@cloudinary/transformation-builder-sdk/actions/variable/VariableAction';
|
|
7
|
+
import { ConditionalAction } from '../actions/conditional.js';
|
|
8
|
+
import { Action } from '../internal/Action.js';
|
|
9
|
+
import { default as RotateAction } from '@cloudinary/transformation-builder-sdk/actions/rotate/RotateAction';
|
|
10
|
+
import { NamedTransformationAction } from '@cloudinary/transformation-builder-sdk/actions/namedTransformation/NamedTransformationAction';
|
|
11
|
+
import { SystemColors } from '../qualifiers/color.js';
|
|
12
|
+
import { ExtractAction } from '../actions/extract.js';
|
|
13
|
+
import { SmartObjectAction } from '../actions/psdTools/SmartObjectAction.js';
|
|
14
|
+
import { ClipAction } from '../actions/psdTools/ClipAction.js';
|
|
15
|
+
import { GetLayerAction } from '../actions/psdTools/GetLayerAction.js';
|
|
16
|
+
import { FlagQualifier } from '../qualifiers/flag/FlagQualifier.js';
|
|
17
|
+
import { default as CustomFunctionAction } from '@cloudinary/transformation-builder-sdk/actions/customFunction/CustomFunctionAction';
|
|
18
|
+
import { EffectActions } from '../actions/effect.js';
|
|
19
|
+
import { CloudinaryFile } from './CloudinaryFile.js';
|
|
20
|
+
import { Transformation } from '../transformation/Transformation.js';
|
|
21
|
+
import { default as IURLConfig } from '../config/interfaces/Config/IURLConfig.js';
|
|
22
|
+
import { default as ICloudConfig } from '../config/interfaces/Config/ICloudConfig.js';
|
|
23
|
+
import { IDeliveryAction } from '../actions/delivery.js';
|
|
24
|
+
import { IAdjustAction } from '../actions/adjust.js';
|
|
25
|
+
import { ITrackedPropertiesThroughAnalytics } from '../sdkAnalytics/interfaces/ITrackedPropertiesThroughAnalytics.js';
|
|
26
|
+
import { AnimatedAction } from '../actions/animated.js';
|
|
27
|
+
/**
|
|
28
|
+
* @desc Cloudinary Transformable interface, extended by any class that needs a Transformation Interface
|
|
29
|
+
* @summary SDK
|
|
30
|
+
* @memberOf SDK
|
|
31
|
+
*/
|
|
32
|
+
declare class CloudinaryTransformable extends CloudinaryFile {
|
|
33
|
+
transformation: Transformation;
|
|
34
|
+
constructor(publicID: string, cloudConfig?: ICloudConfig, urlConfig?: IURLConfig, transformation?: Transformation);
|
|
35
|
+
/**
|
|
36
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
37
|
+
* @param {Actions.Animated} animated
|
|
38
|
+
* @return {this}
|
|
39
|
+
*/
|
|
40
|
+
animated(animated: AnimatedAction): this;
|
|
41
|
+
/**
|
|
42
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
43
|
+
* @param {Actions.Border} border
|
|
44
|
+
* @return {this}
|
|
45
|
+
*/
|
|
46
|
+
border(border: BorderAction): this;
|
|
47
|
+
/**
|
|
48
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
49
|
+
* @param {Actions.Reshape} reshape
|
|
50
|
+
* @return {this}
|
|
51
|
+
*/
|
|
52
|
+
reshape(reshape: IReshape): this;
|
|
53
|
+
/**
|
|
54
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
55
|
+
* @param {Actions.Resize} resize
|
|
56
|
+
* @return {this}
|
|
57
|
+
*/
|
|
58
|
+
resize(resize: ResizeSimpleAction): this;
|
|
59
|
+
/**
|
|
60
|
+
* @desc An alias to Action Delivery.quality
|
|
61
|
+
* @param {string|number} quality
|
|
62
|
+
* @return {this}
|
|
63
|
+
*/
|
|
64
|
+
quality(quality: string | number): this;
|
|
65
|
+
/**
|
|
66
|
+
* @desc An alias to Action Delivery.format
|
|
67
|
+
* @param {string} format
|
|
68
|
+
* @return {this}
|
|
69
|
+
*/
|
|
70
|
+
format(format: string): this;
|
|
71
|
+
/**
|
|
72
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
73
|
+
* @param {Actions.RoundCorners} roundCorners
|
|
74
|
+
* @return {this}
|
|
75
|
+
*/
|
|
76
|
+
roundCorners(roundCorners: RoundCornersAction): this;
|
|
77
|
+
/**
|
|
78
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
79
|
+
* @return {this}
|
|
80
|
+
*/
|
|
81
|
+
overlay(overlayAction: LayerAction): this;
|
|
82
|
+
/**
|
|
83
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
84
|
+
* @param {Actions.Variable} variableAction
|
|
85
|
+
* @return {this}
|
|
86
|
+
*/
|
|
87
|
+
addVariable(variableAction: VariableAction): this;
|
|
88
|
+
/**
|
|
89
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
90
|
+
* @param {Actions.Condition} conditionalAction
|
|
91
|
+
* @return {this}
|
|
92
|
+
*/
|
|
93
|
+
conditional(conditionalAction: ConditionalAction): this;
|
|
94
|
+
/**
|
|
95
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
96
|
+
* @param {Actions.Effect} effect
|
|
97
|
+
* @return {this}
|
|
98
|
+
*/
|
|
99
|
+
effect(effect: EffectActions): this;
|
|
100
|
+
/**
|
|
101
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
102
|
+
* @param {Actions.Adjust} action
|
|
103
|
+
* @return {this}
|
|
104
|
+
*/
|
|
105
|
+
adjust(action: IAdjustAction): this;
|
|
106
|
+
/**
|
|
107
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
108
|
+
* @param {Actions.Rotate} rotate
|
|
109
|
+
* @return {this}
|
|
110
|
+
*/
|
|
111
|
+
rotate(rotate: RotateAction): this;
|
|
112
|
+
/**
|
|
113
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
114
|
+
* @param {Actions.NamedTransformation} namedTransformation
|
|
115
|
+
* @return {this}
|
|
116
|
+
*/
|
|
117
|
+
namedTransformation(namedTransformation: NamedTransformationAction): this;
|
|
118
|
+
/**
|
|
119
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
120
|
+
* @param {Actions.Delivery} deliveryAction
|
|
121
|
+
* @return {this}
|
|
122
|
+
*/
|
|
123
|
+
delivery(deliveryAction: IDeliveryAction): this;
|
|
124
|
+
/**
|
|
125
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
126
|
+
* @param {Qualifiers.color} color
|
|
127
|
+
* @return {this}
|
|
128
|
+
*/
|
|
129
|
+
backgroundColor(color: SystemColors): this;
|
|
130
|
+
/**
|
|
131
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
132
|
+
* @param {Actions.PSDTools} action
|
|
133
|
+
* @return {this}
|
|
134
|
+
*/
|
|
135
|
+
psdTools(action: SmartObjectAction | ClipAction | GetLayerAction): this;
|
|
136
|
+
/**
|
|
137
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
138
|
+
* @param {Actions.Extract} action
|
|
139
|
+
* @return {this}
|
|
140
|
+
*/
|
|
141
|
+
extract(action: ExtractAction): this;
|
|
142
|
+
/**
|
|
143
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
144
|
+
* @param {Qualifiers.Flag | string} flagQualifier
|
|
145
|
+
* @return {this}
|
|
146
|
+
*/
|
|
147
|
+
addFlag(flagQualifier: FlagQualifier | string): this;
|
|
148
|
+
/**
|
|
149
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
150
|
+
* @param {Actions.CustomFunction} customFunction
|
|
151
|
+
* @return {this}
|
|
152
|
+
*/
|
|
153
|
+
customFunction(customFunction: CustomFunctionAction): this;
|
|
154
|
+
/**
|
|
155
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
156
|
+
* @param {SDK.Action | string} action
|
|
157
|
+
* @return {this}
|
|
158
|
+
*/
|
|
159
|
+
addAction(action: Action | string): this;
|
|
160
|
+
/**
|
|
161
|
+
* @description Extend your transformation with another transformation
|
|
162
|
+
* @param { string | SDK.Transformation } tx
|
|
163
|
+
*/
|
|
164
|
+
addTransformation(tx: Transformation | string): this;
|
|
165
|
+
/**
|
|
166
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
167
|
+
* @return {string}
|
|
168
|
+
*/
|
|
169
|
+
toString(): string;
|
|
170
|
+
/**
|
|
171
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
172
|
+
* @return {this}
|
|
173
|
+
*/
|
|
174
|
+
underlay(underlayAction: LayerAction): this;
|
|
175
|
+
toURL(overwriteOptions?: {
|
|
176
|
+
trackedAnalytics?: Partial<ITrackedPropertiesThroughAnalytics>;
|
|
177
|
+
}): string;
|
|
178
|
+
}
|
|
179
|
+
export { CloudinaryTransformable };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as IURLConfig } from '../config/interfaces/Config/IURLConfig.js';
|
|
2
|
+
import { CloudinaryTransformable } from './CloudinaryTransformable.js';
|
|
3
|
+
import { default as ICloudConfig } from '../config/interfaces/Config/ICloudConfig.js';
|
|
4
|
+
import { videoEditType } from '../actions/videoEdit.js';
|
|
5
|
+
import { ITranscodeAction } from '../actions/transcode.js';
|
|
6
|
+
/**
|
|
7
|
+
* @desc Cloudinary video asset, with video-related transformations
|
|
8
|
+
* @summary SDK
|
|
9
|
+
* @memberOf SDK
|
|
10
|
+
*/
|
|
11
|
+
declare class CloudinaryVideo extends CloudinaryTransformable {
|
|
12
|
+
constructor(publicID?: string, cloudConfig?: ICloudConfig, urlConfig?: IURLConfig);
|
|
13
|
+
/**
|
|
14
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
15
|
+
* @param {Actions.Transcode} action
|
|
16
|
+
* @return {this}
|
|
17
|
+
*/
|
|
18
|
+
transcode(action: ITranscodeAction): this;
|
|
19
|
+
/**
|
|
20
|
+
* @desc A proxy to {@link SDK.Transformation| Transformation} - Calls the same method contained in this.transformation
|
|
21
|
+
* @param {Actions.VideoEdit} action
|
|
22
|
+
* @return {this}
|
|
23
|
+
*/
|
|
24
|
+
videoEdit(action: videoEditType): this;
|
|
25
|
+
}
|
|
26
|
+
export { CloudinaryVideo };
|