@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
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a transformation expression.
|
|
3
|
+
* @param {string} expressionStr - An expression in string format.
|
|
4
|
+
* @class Expression
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
declare class Expression {
|
|
8
|
+
private expressions;
|
|
9
|
+
private parent;
|
|
10
|
+
constructor(expressionStr: string);
|
|
11
|
+
/**
|
|
12
|
+
* Convenience constructor method
|
|
13
|
+
* @function Expression.new
|
|
14
|
+
*/
|
|
15
|
+
static new(expressionStr?: string): Expression;
|
|
16
|
+
/**
|
|
17
|
+
* Normalize a string expression
|
|
18
|
+
* @function Cloudinary#normalize
|
|
19
|
+
* @param {string} expression a expression, e.g. "w gt 100", "width_gt_100", "width > 100"
|
|
20
|
+
* @return {string} the normalized form of the value expression, e.g. "w_gt_100"
|
|
21
|
+
*/
|
|
22
|
+
static normalize(expression: string | number): string | number;
|
|
23
|
+
/**
|
|
24
|
+
* Serialize the expression
|
|
25
|
+
* @return {string} the expression as a string
|
|
26
|
+
*/
|
|
27
|
+
serialize(): string | number;
|
|
28
|
+
toString(): string | number;
|
|
29
|
+
/**
|
|
30
|
+
* Get the parent transformation of this expression
|
|
31
|
+
* @return Transformation
|
|
32
|
+
*/
|
|
33
|
+
getParent(): any;
|
|
34
|
+
/**
|
|
35
|
+
* Set the parent transformation of this expression
|
|
36
|
+
* @param {Transformation} the parent transformation
|
|
37
|
+
* @return {Expression} this expression
|
|
38
|
+
*/
|
|
39
|
+
setParent(parent: any): this;
|
|
40
|
+
/**
|
|
41
|
+
* Add a expression
|
|
42
|
+
* @function Expression#predicate
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
predicate(name: string, operator: string | number, value: any): this;
|
|
46
|
+
/**
|
|
47
|
+
* @function Expression#and
|
|
48
|
+
*/
|
|
49
|
+
and(): this;
|
|
50
|
+
/**
|
|
51
|
+
* @function Expression#or
|
|
52
|
+
*/
|
|
53
|
+
or(): this;
|
|
54
|
+
/**
|
|
55
|
+
* Conclude expression
|
|
56
|
+
* @function Expression#then
|
|
57
|
+
* @return {Transformation} the transformation this expression is defined for
|
|
58
|
+
*/
|
|
59
|
+
then(): any;
|
|
60
|
+
/**
|
|
61
|
+
* @function Expression#height
|
|
62
|
+
* @param {string} operator the comparison operator (e.g. "<", "lt")
|
|
63
|
+
* @param {string|number} value the right hand side value
|
|
64
|
+
* @return {Expression} this expression
|
|
65
|
+
*/
|
|
66
|
+
height(operator: string, value: string | number): this;
|
|
67
|
+
/**
|
|
68
|
+
* @function Expression#width
|
|
69
|
+
* @param {string} operator the comparison operator (e.g. "<", "lt")
|
|
70
|
+
* @param {string|number} value the right hand side value
|
|
71
|
+
* @return {Expression} this expression
|
|
72
|
+
*/
|
|
73
|
+
width(operator: string, value: string | number): this;
|
|
74
|
+
/**
|
|
75
|
+
* @function Expression#aspectRatio
|
|
76
|
+
* @param {string} operator the comparison operator (e.g. "<", "lt")
|
|
77
|
+
* @param {string|number} value the right hand side value
|
|
78
|
+
* @return {Expression} this expression
|
|
79
|
+
*/
|
|
80
|
+
aspectRatio(operator: string, value: string | number): this;
|
|
81
|
+
/**
|
|
82
|
+
* @function Expression#pages
|
|
83
|
+
* @param {string} operator the comparison operator (e.g. "<", "lt")
|
|
84
|
+
* @param {string|number} value the right hand side value
|
|
85
|
+
* @return {Expression} this expression
|
|
86
|
+
*/
|
|
87
|
+
pageCount(operator: string, value: string | number): this;
|
|
88
|
+
/**
|
|
89
|
+
* @function Expression#faces
|
|
90
|
+
* @param {string} operator the comparison operator (e.g. "<", "lt")
|
|
91
|
+
* @param {string|number} value the right hand side value
|
|
92
|
+
* @return {Expression} this expression
|
|
93
|
+
*/
|
|
94
|
+
faceCount(operator: string, value: string | number): this;
|
|
95
|
+
value(value: string | number): this;
|
|
96
|
+
/**
|
|
97
|
+
*/
|
|
98
|
+
static variable(name: string, value: string | number): Expression;
|
|
99
|
+
/**
|
|
100
|
+
* @returns Expression a new expression with the predefined variable "width"
|
|
101
|
+
* @function Expression.width
|
|
102
|
+
*/
|
|
103
|
+
static width(): Expression;
|
|
104
|
+
/**
|
|
105
|
+
* @returns Expression a new expression with the predefined variable "height"
|
|
106
|
+
* @function Expression.height
|
|
107
|
+
*/
|
|
108
|
+
static height(): Expression;
|
|
109
|
+
/**
|
|
110
|
+
* @returns Expression a new expression with the predefined variable "initialWidth"
|
|
111
|
+
* @function Expression.initialWidth
|
|
112
|
+
*/
|
|
113
|
+
static initialWidth(): Expression;
|
|
114
|
+
/**
|
|
115
|
+
* @returns Expression a new expression with the predefined variable "initialHeight"
|
|
116
|
+
* @function Expression.initialHeight
|
|
117
|
+
*/
|
|
118
|
+
static initialHeight(): Expression;
|
|
119
|
+
/**
|
|
120
|
+
* @returns Expression a new expression with the predefined variable "aspectRatio"
|
|
121
|
+
* @function Expression.aspectRatio
|
|
122
|
+
*/
|
|
123
|
+
static aspectRatio(): Expression;
|
|
124
|
+
/**
|
|
125
|
+
* @returns Expression a new expression with the predefined variable "initialAspectRatio"
|
|
126
|
+
* @function Expression.initialAspectRatio
|
|
127
|
+
*/
|
|
128
|
+
static initialAspectRatio(): Expression;
|
|
129
|
+
/**
|
|
130
|
+
* @returns Expression a new expression with the predefined variable "pageCount"
|
|
131
|
+
* @function Expression.pageCount
|
|
132
|
+
*/
|
|
133
|
+
static pageCount(): Expression;
|
|
134
|
+
/**
|
|
135
|
+
* @returns Expression new expression with the predefined variable "faceCount"
|
|
136
|
+
* @function Expression.faceCount
|
|
137
|
+
*/
|
|
138
|
+
static faceCount(): Expression;
|
|
139
|
+
/**
|
|
140
|
+
* @returns Expression a new expression with the predefined variable "currentPage"
|
|
141
|
+
* @function Expression.currentPage
|
|
142
|
+
*/
|
|
143
|
+
static currentPage(): Expression;
|
|
144
|
+
/**
|
|
145
|
+
* @returns Expression a new expression with the predefined variable "tags"
|
|
146
|
+
* @function Expression.tags
|
|
147
|
+
*/
|
|
148
|
+
static tags(): Expression;
|
|
149
|
+
/**
|
|
150
|
+
* @returns Expression a new expression with the predefined variable "pageX"
|
|
151
|
+
* @function Expression.pageX
|
|
152
|
+
*/
|
|
153
|
+
static pageX(): Expression;
|
|
154
|
+
/**
|
|
155
|
+
* @returns Expression a new expression with the predefined variable "pageY"
|
|
156
|
+
* @function Expression.pageY
|
|
157
|
+
*/
|
|
158
|
+
static pageY(): Expression;
|
|
159
|
+
}
|
|
160
|
+
export default Expression;
|
package/dist/node_modules/@cloudinary/transformation-builder-sdk/backwards/transformation.d.ts
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { default as Expression } from './expression.js';
|
|
2
|
+
/**
|
|
3
|
+
* A list of keys used by the url() function.
|
|
4
|
+
* @private
|
|
5
|
+
*/
|
|
6
|
+
export declare const URL_KEYS: string[];
|
|
7
|
+
/**
|
|
8
|
+
* TransformationBase
|
|
9
|
+
* Depends on 'configuration', 'parameters','util'
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
declare class TransformationBase {
|
|
13
|
+
private toOptions;
|
|
14
|
+
private otherOptions;
|
|
15
|
+
protected chained: any;
|
|
16
|
+
private setParent;
|
|
17
|
+
private getParent;
|
|
18
|
+
protected param?: (value?: any, name?: any, abbr?: any, defaultValue?: any, process?: any) => this;
|
|
19
|
+
protected rawParam?: (value?: any, name?: any, abbr?: any, defaultValue?: any, process?: any) => TransformationBase;
|
|
20
|
+
protected rangeParam?: (value?: any, name?: any, abbr?: any, defaultValue?: any, process?: any) => TransformationBase;
|
|
21
|
+
protected arrayParam: (value?: any, name?: any, abbr?: any, sep?: string, defaultValue?: any, process?: any) => TransformationBase;
|
|
22
|
+
protected transformationParam: (value?: any, name?: any, abbr?: any, sep?: string, defaultValue?: any, process?: any) => TransformationBase;
|
|
23
|
+
protected layerParam: (value?: any, name?: any, abbr?: any) => TransformationBase;
|
|
24
|
+
protected getValue: (name: any) => any;
|
|
25
|
+
protected get: (name: any) => any;
|
|
26
|
+
private remove;
|
|
27
|
+
private keys;
|
|
28
|
+
private toPlainObject;
|
|
29
|
+
private resetTransformations;
|
|
30
|
+
chain: () => Transformation;
|
|
31
|
+
/**
|
|
32
|
+
* The base class for transformations.
|
|
33
|
+
* Members of this class are documented as belonging to the {@link Transformation} class for convenience.
|
|
34
|
+
* @class TransformationBase
|
|
35
|
+
*/
|
|
36
|
+
constructor(options: any);
|
|
37
|
+
/**
|
|
38
|
+
* Merge the provided options with own's options
|
|
39
|
+
* @param {Object} [options={}] key-value list of options
|
|
40
|
+
* @returns {Transformation} Returns this instance for chaining
|
|
41
|
+
*/
|
|
42
|
+
fromOptions(options?: {}): this;
|
|
43
|
+
fromTransformation(other: any): this;
|
|
44
|
+
/**
|
|
45
|
+
* Set a parameter.
|
|
46
|
+
* The parameter name `key` is converted to
|
|
47
|
+
* @param {string} key - the name of the parameter
|
|
48
|
+
* @param {*} values - the value of the parameter
|
|
49
|
+
* @returns {Transformation} Returns this instance for chaining
|
|
50
|
+
*/
|
|
51
|
+
set(key: string, ...values: string[]): this;
|
|
52
|
+
hasLayer(): any;
|
|
53
|
+
/**
|
|
54
|
+
* Generate a string representation of the transformation.
|
|
55
|
+
* @function Transformation#serialize
|
|
56
|
+
* @return {string} Returns the transformation as a string
|
|
57
|
+
*/
|
|
58
|
+
serialize(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Provide a list of all the valid transformation option names
|
|
61
|
+
* @function Transformation#listNames
|
|
62
|
+
* @private
|
|
63
|
+
* @return {Array<string>} a array of all the valid option names
|
|
64
|
+
*/
|
|
65
|
+
static listNames(): string[];
|
|
66
|
+
/**
|
|
67
|
+
* Returns the attributes for an HTML tag.
|
|
68
|
+
* @function Cloudinary.toHtmlAttributes
|
|
69
|
+
* @return PlainObject
|
|
70
|
+
*/
|
|
71
|
+
toHtmlAttributes(): any;
|
|
72
|
+
static isValidParamName(name: string): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Delegate to the parent (up the call chain) to produce HTML
|
|
75
|
+
* @function Transformation#toHtml
|
|
76
|
+
* @return {string} HTML representation of the parent if possible.
|
|
77
|
+
* @example
|
|
78
|
+
* tag = cloudinary.ImageTag.new("sample", {cloud_name: "demo"})
|
|
79
|
+
* // ImageTag {name: "img", publicId: "sample"}
|
|
80
|
+
* tag.toHtml()
|
|
81
|
+
* // <img src="sample">
|
|
82
|
+
* tag.transformation().crop("fit").width(300).toHtml()
|
|
83
|
+
* // <img src="c_fit,w_300">
|
|
84
|
+
*/
|
|
85
|
+
toHtml(): any;
|
|
86
|
+
toString(): any;
|
|
87
|
+
clone(): TransformationBase;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Transformation Class methods.
|
|
91
|
+
* This is a list of the parameters defined in Transformation.
|
|
92
|
+
* Values are camelCased.
|
|
93
|
+
* @const Transformation.methods
|
|
94
|
+
* @private
|
|
95
|
+
* @ignore
|
|
96
|
+
* @type {Array<string>}
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* Parameters that are filtered out before passing the options to an HTML tag.
|
|
100
|
+
*
|
|
101
|
+
* The list of parameters is a combination of `Transformation::methods` and `Configuration::CONFIG_PARAMS`
|
|
102
|
+
* @const {Array<string>} Transformation.PARAM_NAMES
|
|
103
|
+
* @private
|
|
104
|
+
* @ignore
|
|
105
|
+
* @see toHtmlAttributes
|
|
106
|
+
*/
|
|
107
|
+
declare class Transformation extends TransformationBase {
|
|
108
|
+
/**
|
|
109
|
+
* Represents a single transformation.
|
|
110
|
+
* @class Transformation
|
|
111
|
+
* @example
|
|
112
|
+
* t = new cloudinary.Transformation();
|
|
113
|
+
* t.angle(20).crop("scale").width("auto");
|
|
114
|
+
*
|
|
115
|
+
* // or
|
|
116
|
+
*
|
|
117
|
+
* t = new cloudinary.Transformation( {angle: 20, crop: "scale", width: "auto"});
|
|
118
|
+
* @see <a href="https://cloudinary.com/documentation/image_transformation_reference"
|
|
119
|
+
* target="_blank">Available image transformations</a>
|
|
120
|
+
* @see <a href="https://cloudinary.com/documentation/video_transformation_reference"
|
|
121
|
+
* target="_blank">Available video transformations</a>
|
|
122
|
+
*/
|
|
123
|
+
constructor(options?: {});
|
|
124
|
+
/**
|
|
125
|
+
* Convenience constructor
|
|
126
|
+
* @param {Object} options
|
|
127
|
+
* @return {Transformation}
|
|
128
|
+
* @example cl = cloudinary.Transformation.new( {angle: 20, crop: "scale", width: "auto"})
|
|
129
|
+
*/
|
|
130
|
+
static new(options?: {
|
|
131
|
+
serialize?: () => any;
|
|
132
|
+
}): Transformation;
|
|
133
|
+
angle(value: string | number): this;
|
|
134
|
+
audioCodec(value: string | number): this;
|
|
135
|
+
audioFrequency(value: string | number): this;
|
|
136
|
+
aspectRatio(value: string | number): this;
|
|
137
|
+
background(value: string | number): this;
|
|
138
|
+
bitRate(value: string | number): this;
|
|
139
|
+
border(value: string | number): this;
|
|
140
|
+
color(value: string | number): this;
|
|
141
|
+
colorSpace(value: string | number): this;
|
|
142
|
+
crop(value: string | number): this;
|
|
143
|
+
customFunction(value: any): this;
|
|
144
|
+
customPreFunction(value: any): TransformationBase;
|
|
145
|
+
defaultImage(value: string): this;
|
|
146
|
+
delay(value: string | number): this;
|
|
147
|
+
density(value: string | number): this;
|
|
148
|
+
duration(value: string | number): this;
|
|
149
|
+
dpr(value: string | number): this;
|
|
150
|
+
effect(value: string | Array<string | number>): this;
|
|
151
|
+
else(): Expression | this;
|
|
152
|
+
endIf(): Expression | this;
|
|
153
|
+
endOffset(value: string | number): this;
|
|
154
|
+
fallbackContent(value: string): this;
|
|
155
|
+
fetchFormat(value: string): this;
|
|
156
|
+
format(value: string): this;
|
|
157
|
+
flags(value: string): this;
|
|
158
|
+
gravity(value: any): this;
|
|
159
|
+
fps(value: string | Array<string | number>): this;
|
|
160
|
+
height(value: string | number): this;
|
|
161
|
+
htmlHeight(value: string): this;
|
|
162
|
+
htmlWidth(value: string): this;
|
|
163
|
+
if(value?: string): Expression | this;
|
|
164
|
+
keyframeInterval(value: number): this;
|
|
165
|
+
ocr(value: any): this;
|
|
166
|
+
offset(value: any): this;
|
|
167
|
+
opacity(value: number): this;
|
|
168
|
+
overlay(value: string | object): this;
|
|
169
|
+
page(value: number): this;
|
|
170
|
+
poster(value: string | object): this;
|
|
171
|
+
prefix(value: string): this;
|
|
172
|
+
quality(value: string | number): this;
|
|
173
|
+
radius(value: "max" | number): this;
|
|
174
|
+
rawTransformation(value: any): this;
|
|
175
|
+
size(value: string): this;
|
|
176
|
+
sourceTypes(value: object): this;
|
|
177
|
+
sourceTransformation(value: any): this;
|
|
178
|
+
startOffset(value: string | number): this;
|
|
179
|
+
streamingProfile(value: string): this;
|
|
180
|
+
transformation(value: any): this;
|
|
181
|
+
underlay(value: string): this;
|
|
182
|
+
variable(name: string, value: any): this;
|
|
183
|
+
variables(values: Array<[string, any]>): this;
|
|
184
|
+
videoCodec(value: string | number | Object): this;
|
|
185
|
+
videoSampling(value: string | number): this;
|
|
186
|
+
width(value: string | number): this;
|
|
187
|
+
x(value: number): this;
|
|
188
|
+
y(value: number): this;
|
|
189
|
+
zoom(value: number | string): this;
|
|
190
|
+
}
|
|
191
|
+
export default Transformation;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Transformation } from './transformation/Transformation.js';
|
|
2
|
+
export { ImageTransformation } from './transformation/ImageTransformation.js';
|
|
3
|
+
export { VideoTransformation } from './transformation/VideoTransformation.js';
|
|
4
|
+
export { createCloudinaryLegacyURL } from './backwards/createCloudinaryLegacyURL.js';
|
|
5
|
+
export * as Actions from './actions.js';
|
|
6
|
+
export * as Qualifiers from './qualifiers.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FlagQualifier } from '../qualifiers/flag/FlagQualifier.js';
|
|
2
|
+
import { Qualifier } from './qualifier/Qualifier.js';
|
|
3
|
+
import { FlagTypes } from '../types/types.js';
|
|
4
|
+
import { ActionModel } from './models/ActionModel.js';
|
|
5
|
+
/**
|
|
6
|
+
* @summary SDK
|
|
7
|
+
* @memberOf SDK
|
|
8
|
+
* @description Defines the category of transformation to perform.
|
|
9
|
+
*/
|
|
10
|
+
declare class Action extends ActionModel {
|
|
11
|
+
qualifiers: Map<string, Qualifier>;
|
|
12
|
+
flags: FlagQualifier[];
|
|
13
|
+
private delimiter;
|
|
14
|
+
protected prepareQualifiers(): void;
|
|
15
|
+
private actionTag;
|
|
16
|
+
/**
|
|
17
|
+
* @description Returns the custom name tag that was given to this action
|
|
18
|
+
* @return {string}
|
|
19
|
+
*/
|
|
20
|
+
getActionTag(): string;
|
|
21
|
+
/**
|
|
22
|
+
* @description Sets the custom name tag for this action
|
|
23
|
+
* @return {this}
|
|
24
|
+
*/
|
|
25
|
+
setActionTag(tag: string): this;
|
|
26
|
+
/**
|
|
27
|
+
* @description Calls toString() on all child qualifiers (implicitly by using .join()).
|
|
28
|
+
* @return {string}
|
|
29
|
+
*/
|
|
30
|
+
toString(): string;
|
|
31
|
+
/**
|
|
32
|
+
* @description Adds the parameter to the action.
|
|
33
|
+
* @param {SDK.Qualifier} qualifier
|
|
34
|
+
* @return {this}
|
|
35
|
+
*/
|
|
36
|
+
addQualifier(qualifier: Qualifier | string): this;
|
|
37
|
+
/**
|
|
38
|
+
* @description Adds a flag to the current action.
|
|
39
|
+
* @param {Qualifiers.Flag} flag
|
|
40
|
+
* @return {this}
|
|
41
|
+
*/
|
|
42
|
+
addFlag(flag: FlagTypes | FlagQualifier | string): this;
|
|
43
|
+
protected addValueToQualifier(qualifierKey: string, qualifierValue: any): this;
|
|
44
|
+
}
|
|
45
|
+
export { Action };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IActionModel } from './models/IActionModel.js';
|
|
2
|
+
import { IErrorObject } from './models/IErrorObject.js';
|
|
3
|
+
/**
|
|
4
|
+
* @summary SDK
|
|
5
|
+
* @memberOf SDK
|
|
6
|
+
* @description Defines an action that's a string literal, no validations or manipulations are performed
|
|
7
|
+
*/
|
|
8
|
+
declare class RawAction {
|
|
9
|
+
readonly raw: string;
|
|
10
|
+
constructor(raw: string);
|
|
11
|
+
toString(): string;
|
|
12
|
+
toJson(): IActionModel | IErrorObject;
|
|
13
|
+
}
|
|
14
|
+
export { RawAction };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISourceModel } from './ISourceModel.js';
|
|
2
|
+
import { ITransformationModel } from './ITransformationModel.js';
|
|
3
|
+
export interface IAudioSourceModel extends ISourceModel {
|
|
4
|
+
sourceType: 'audio';
|
|
5
|
+
publicId: string;
|
|
6
|
+
transformation?: ITransformationModel;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Validates that given obj is an IImageSourceModel
|
|
10
|
+
* @param obj
|
|
11
|
+
*/
|
|
12
|
+
export declare function isIAudioSourceModel(obj: unknown): obj is IAudioSourceModel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISourceModel } from './ISourceModel.js';
|
|
2
|
+
import { ITransformationModel } from './ITransformationModel.js';
|
|
3
|
+
export interface IFetchSourceModel extends ISourceModel {
|
|
4
|
+
sourceType: 'fetch';
|
|
5
|
+
url: string;
|
|
6
|
+
format?: string;
|
|
7
|
+
transformation?: ITransformationModel;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Validates that given obj is an IFetchSourceModel
|
|
11
|
+
* @param obj
|
|
12
|
+
*/
|
|
13
|
+
export declare function isIFetchSourceModel(obj: unknown): obj is IFetchSourceModel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISourceModel } from './ISourceModel.js';
|
|
2
|
+
import { ITransformationModel } from './ITransformationModel.js';
|
|
3
|
+
export interface IImageSourceModel extends ISourceModel {
|
|
4
|
+
sourceType: "image";
|
|
5
|
+
publicId: string;
|
|
6
|
+
transformation?: ITransformationModel;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Validates that given obj is an IImageSourceModel
|
|
10
|
+
* @param obj
|
|
11
|
+
*/
|
|
12
|
+
export declare function isIImageSourceModel(obj: unknown): obj is IImageSourceModel;
|
package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/models/IStrokeModel.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IQualifierModel } from './IQualifierModel.js';
|
|
2
|
+
import { IColorModel } from './IColorModel.js';
|
|
3
|
+
export interface ISolidStrokeModel extends IQualifierModel {
|
|
4
|
+
width: number | string;
|
|
5
|
+
color: IColorModel;
|
|
6
|
+
}
|
|
7
|
+
export declare type IStrokeModel = boolean | ISolidStrokeModel;
|
|
8
|
+
/**
|
|
9
|
+
* Validate that obj is an ISolidStrokeModel
|
|
10
|
+
* @param obj
|
|
11
|
+
*/
|
|
12
|
+
export declare function isISolidStrokeModel(obj: unknown): obj is ISolidStrokeModel;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ISourceModel } from './ISourceModel.js';
|
|
2
|
+
import { ITextStyleModel } from './ITextStyleModel.js';
|
|
3
|
+
import { IColorModel } from './IColorModel.js';
|
|
4
|
+
import { ITransformationModel } from './ITransformationModel.js';
|
|
5
|
+
export interface IBaseTextSourceModel extends ISourceModel {
|
|
6
|
+
textColor?: IColorModel;
|
|
7
|
+
backgroundColor?: IColorModel;
|
|
8
|
+
transformation?: ITransformationModel;
|
|
9
|
+
}
|
|
10
|
+
export interface ITextSourceModel extends IBaseTextSourceModel {
|
|
11
|
+
textStyle: ITextStyleModel;
|
|
12
|
+
sourceType: 'text';
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Validates that given obj is an IImageSourceModel
|
|
17
|
+
* @param obj
|
|
18
|
+
*/
|
|
19
|
+
export declare function isITextSourceModel(obj: unknown): obj is ITextSourceModel;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IGravity } from '../../qualifiers/gravity/GravityQualifier.js';
|
|
2
|
+
import { ICompassGravity } from '../../qualifiers/gravity/compassGravity/CompassGravity.js';
|
|
3
|
+
export interface IGravityModel {
|
|
4
|
+
gravityType: string;
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export interface ICompassGravityModel extends IGravityModel {
|
|
8
|
+
compass: ICompassGravity;
|
|
9
|
+
}
|
|
10
|
+
export interface IOcrGravityModel extends IGravityModel {
|
|
11
|
+
}
|
|
12
|
+
export interface IAutoGravityObjectModel {
|
|
13
|
+
object: string;
|
|
14
|
+
weight?: number;
|
|
15
|
+
avoid?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface IAutoGravityModel extends IGravityModel {
|
|
18
|
+
autoFocus: IAutoGravityObjectModel[];
|
|
19
|
+
}
|
|
20
|
+
export interface IFocusOnGravityModel extends IGravityModel {
|
|
21
|
+
focusOnObjects: string[];
|
|
22
|
+
fallbackGravity?: IAutoGravityModel;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create a model of given gravity
|
|
26
|
+
* @param gravity
|
|
27
|
+
*/
|
|
28
|
+
export declare function createGravityModel(gravity: IGravity): IGravityModel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IErrorObject } from './IErrorObject.js';
|
|
2
|
+
import { IQualifierModel } from './IQualifierModel.js';
|
|
3
|
+
export declare type IQualifierToJson = IQualifierModel | IErrorObject;
|
|
4
|
+
/**
|
|
5
|
+
* Returns the action's model
|
|
6
|
+
*/
|
|
7
|
+
export declare function qualifierToJson(): IQualifierToJson;
|
package/dist/node_modules/@cloudinary/transformation-builder-sdk/internal/qualifier/Qualifier.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QualifierValue } from './QualifierValue.js';
|
|
2
|
+
import { QualifierModel } from '../models/QualifierModel.js';
|
|
3
|
+
/**
|
|
4
|
+
* @summary SDK
|
|
5
|
+
* @memberOf SDK
|
|
6
|
+
*/
|
|
7
|
+
declare class Qualifier extends QualifierModel {
|
|
8
|
+
key: string;
|
|
9
|
+
qualifierValue: QualifierValue;
|
|
10
|
+
delimiter: string;
|
|
11
|
+
constructor(key: string, qualifierValue?: QualifierValue | QualifierValue[] | number | string | (string | number)[]);
|
|
12
|
+
toString(): string;
|
|
13
|
+
addValue(value: any): this;
|
|
14
|
+
}
|
|
15
|
+
export { Qualifier };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ExpressionQualifier } from '../../qualifiers/expression/ExpressionQualifier.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary SDK
|
|
4
|
+
* @memberOf SDK
|
|
5
|
+
*/
|
|
6
|
+
declare class QualifierValue {
|
|
7
|
+
values: any[];
|
|
8
|
+
delimiter: string;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param {QualifierValue | QualifierValue[] | any[] | string | number}qualifierValue
|
|
12
|
+
*/
|
|
13
|
+
constructor(qualifierValue?: QualifierValue | QualifierValue[] | any[] | string | number | ExpressionQualifier);
|
|
14
|
+
/**
|
|
15
|
+
* @description Joins the provided values with the provided delimiter
|
|
16
|
+
*/
|
|
17
|
+
toString(): string;
|
|
18
|
+
/**
|
|
19
|
+
* @description Checks if the provided argument has a value
|
|
20
|
+
* @param {any} v
|
|
21
|
+
* @private
|
|
22
|
+
* @return {boolean}
|
|
23
|
+
*/
|
|
24
|
+
private hasValue;
|
|
25
|
+
/**
|
|
26
|
+
* @desc Adds a value for the this qualifier instance
|
|
27
|
+
* @param {any} value
|
|
28
|
+
* @return {this}
|
|
29
|
+
*/
|
|
30
|
+
addValue(value: any): this;
|
|
31
|
+
/**
|
|
32
|
+
* @description Sets the delimiter for this instance
|
|
33
|
+
* @param delimiter
|
|
34
|
+
*/
|
|
35
|
+
setDelimiter(delimiter: string): this;
|
|
36
|
+
}
|
|
37
|
+
export { QualifierValue };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Defines how the background gradient fade effect is applied.
|
|
3
|
+
* @memberOf Qualifiers
|
|
4
|
+
* @namespace GradientFade
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @summary qualifier
|
|
8
|
+
* @description Instructs the gradient fade to be applied symmetrically (to opposite edges of the image).
|
|
9
|
+
* @memberOf Qualifiers.GradientFade
|
|
10
|
+
* @return {string}
|
|
11
|
+
*/
|
|
12
|
+
declare function symmetric(): string;
|
|
13
|
+
/**
|
|
14
|
+
* @summary qualifier
|
|
15
|
+
* @description Instructs the gradient fade to be applied symmetrically (to opposite edges of the image) including background padding.
|
|
16
|
+
* @memberOf Qualifiers.GradientFade
|
|
17
|
+
* @return {string}
|
|
18
|
+
*/
|
|
19
|
+
declare function symmetricPad(): string;
|
|
20
|
+
declare const GradientFade: {
|
|
21
|
+
symmetric: typeof symmetric;
|
|
22
|
+
symmetricPad: typeof symmetricPad;
|
|
23
|
+
};
|
|
24
|
+
export { GradientFade, symmetricPad, symmetric };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QualifierValue } from '../../internal/qualifier/QualifierValue.js';
|
|
2
|
+
/**
|
|
3
|
+
* @memberOf Qualifiers.AnimatedFormat
|
|
4
|
+
* @extends {SDK.QualifierValue}
|
|
5
|
+
*/
|
|
6
|
+
declare class AnimatedFormatQualifierValue extends QualifierValue {
|
|
7
|
+
}
|
|
8
|
+
export { AnimatedFormatQualifierValue };
|