-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip
- Loading branch information
Showing
568 changed files
with
68,770 additions
and
30,543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,115 @@ | ||
module.exports = { | ||
"SDKSpecVersion": "master", | ||
"langConfig": { | ||
newInstanceSyntax: 'new #name(#req)#optional', | ||
lang: 'Javascript', | ||
methodDelimiter: '.', | ||
groupDelimiter: '.', | ||
openQualifiersChar: '', | ||
closeQualifiersChar: '', | ||
closeTransformationChar: '', | ||
SDKSpecVersion: "master", | ||
langConfig: { | ||
newInstanceSyntax: "new #name(#req)#optional", | ||
lang: "Javascript", | ||
methodDelimiter: ".", | ||
groupDelimiter: ".", | ||
openQualifiersChar: "", | ||
closeQualifiersChar: "", | ||
closeTransformationChar: "", | ||
hideActionGroups: true, | ||
useSimpleQualifierValuesForGroups: ['Compass','AudioCodec','AnimatedFormat','ArtisticFilter','blendMode','Flag','FontStyle','FontAntialias','FontWeight','FontHinting','textAlignment','textDecoration', 'GradientDirection','ImproveMode','OutlineMode','Progressive','SimulateColorBlind','StreamingProfile'], | ||
useSimpleQualifierValuesForGroups: [ | ||
"Compass", | ||
"AudioCodec", | ||
"AnimatedFormat", | ||
"ArtisticFilter", | ||
"blendMode", | ||
"Flag", | ||
"FontStyle", | ||
"FontAntialias", | ||
"FontWeight", | ||
"FontHinting", | ||
"textAlignment", | ||
"textDecoration", | ||
"GradientDirection", | ||
"ImproveMode", | ||
"OutlineMode", | ||
"Progressive", | ||
"SimulateColorBlind", | ||
"StreamingProfile", | ||
], | ||
mainTransformationString: { | ||
openSyntaxString: { | ||
image: 'new CloudinaryImage(\'#publicID\')', | ||
video: 'new CloudinaryVideo(\'#publicID\')', | ||
media: 'new CloudinaryMedia(\'#publicID\')' | ||
image: "new CloudinaryImage('#publicID')", | ||
video: "new CloudinaryVideo('#publicID')", | ||
media: "new CloudinaryMedia('#publicID')", | ||
}, | ||
closeSyntaxString: ';' | ||
closeSyntaxString: ";", | ||
}, | ||
openActionChar: '(', | ||
closeActionChar: ')', | ||
overwritePreset: 'javascript', | ||
arraySeparator: ', ', | ||
arrayOpen: '[', | ||
arrayClose: ']', | ||
openActionChar: "(", | ||
closeActionChar: ")", | ||
overwritePreset: "javascript", | ||
arraySeparator: ", ", | ||
arrayOpen: "[", | ||
arrayClose: "]", | ||
prettier: { | ||
parser: 'babel' | ||
parser: "babel", | ||
}, | ||
formats: { | ||
formatClassOrEnum: 'PascalCase', | ||
formatMethod: 'camelCase', | ||
formatClassOrEnum: "PascalCase", | ||
formatMethod: "camelCase", | ||
formatFloat: (f) => { | ||
if (!f.toString().includes('.')) { | ||
return `'${f}.0'` // In JS world, 1.0 is 1, so we make sure 1.0 stays 1.0 | ||
if (!f.toString().includes(".")) { | ||
return `'${f}.0'`; // In JS world, 1.0 is 1, so we make sure 1.0 stays 1.0 | ||
} else { | ||
return f; | ||
} | ||
} | ||
}, | ||
}, | ||
methodNameMap: { | ||
'delivery_type': 'set_delivery_type', | ||
'asset_type': 'set_asset_type', | ||
'deliveryType': 'set_delivery_type', | ||
'assetType': 'set_asset_type', | ||
'signature': 'setSignature', | ||
delivery_type: "set_delivery_type", | ||
asset_type: "set_asset_type", | ||
deliveryType: "set_delivery_type", | ||
assetType: "set_asset_type", | ||
signature: "setSignature", | ||
}, | ||
canGenerateSignature:false, | ||
canGenerateSignature: false, | ||
classNameMap: {}, | ||
childTransformations: { | ||
image: { | ||
open: "new ImageTransformation()", | ||
close: '', | ||
close: "", | ||
}, | ||
video: { | ||
open: "new VideoTransformation()", | ||
close: '', | ||
close: "", | ||
}, | ||
media: { | ||
open: "new Transformation()", | ||
close: '', | ||
} | ||
close: "", | ||
}, | ||
}, | ||
unsupportedTxParams: ['fl_waveform', 'fl_animated', 'e_tint', 'e_theme', 'af_'], | ||
unsupportedSyntaxList: ['.stroke(', '.textFit(', 'Animated.edit', '.RoundCorners(', 'getVideoFrame', '.transcode('] | ||
unsupportedTxParams: ["fl_waveform", "fl_animated", "e_tint", "e_theme", "af_"], | ||
unsupportedSyntaxList: [".stroke(", ".textFit(", "Animated.edit", ".RoundCorners(", "getVideoFrame", ".transcode("], | ||
}, | ||
"overwrites": { | ||
overwrites: { | ||
qualifiers: { | ||
// colorOverride is a qualifier of Reshape.trim action. | ||
color_override: (payload) => { | ||
const {qualifierDTO} = payload; | ||
const { qualifierDTO } = payload; | ||
const colorName = qualifierDTO.qualifiers[0].name; | ||
|
||
// TODO this should be streamlined with how we deal with color. | ||
return `.colorOverride("${colorName}")` | ||
return `.colorOverride("${colorName}")`; | ||
}, | ||
color: (payload) => { | ||
const {qualifierDTO} = payload; | ||
const { qualifierDTO } = payload; | ||
// This case supports three types of qualifiers | ||
// TODO this DTO structure needs to be aligned | ||
// {name:color, is_required:true qualifiers: [{group:'color', name: 'red', is_required:true}]} | ||
// {group:'color', name: 'red', is_required:true} | ||
// {group:'color', name: 'rgb', qualifiers: [{ "name": "color", "value": "#d5d2ca", "is_required": true, "value_type": "string" }]} | ||
|
||
let colorName; | ||
if (qualifierDTO.qualifiers && qualifierDTO.name === 'rgb') { | ||
if (qualifierDTO.qualifiers && qualifierDTO.name === "rgb") { | ||
colorName = qualifierDTO.qualifiers[0].value; | ||
} else { | ||
colorName = qualifierDTO.qualifiers ? qualifierDTO.qualifiers[0].name : qualifierDTO.name; | ||
} | ||
|
||
return `'${colorName}'`; | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
### Pull request for @cloudinary/transformation-builder-sdk | ||
|
||
|
||
#### What does this PR solve? | ||
... A few words | ||
|
||
... A few words | ||
|
||
#### Final checklist | ||
|
||
- [ ] Implementation is aligned to Spec. | ||
- [ ] Tests - Add proper tests to the added code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,58 @@ | ||
1.2.10 / 2023-07-11 | ||
================== | ||
# 1.2.10 / 2023-07-11 | ||
|
||
- Add support for Generative Fill background | ||
- Adjust allowed Background Removal hints syntax | ||
|
||
1.2.9 / 2023-06-06 | ||
================== | ||
# 1.2.9 / 2023-06-06 | ||
|
||
- Default value for background removal fine edges option | ||
|
||
1.2.8 / 2023-05-04 | ||
================== | ||
# 1.2.8 / 2023-05-04 | ||
|
||
- Return nested transformation errors at the layer action level | ||
|
||
1.2.7 / 2023-03-08 | ||
================== | ||
# 1.2.7 / 2023-03-08 | ||
|
||
- Add missing focusOn named export | ||
|
||
1.2.6 / 2023-02-22 | ||
================== | ||
# 1.2.6 / 2023-02-22 | ||
|
||
- Border actionModel params compliant with transformation-model | ||
- Border actionModel params compliant with transformation-model | ||
|
||
1.2.5 / 2023-02-21 | ||
================== | ||
# 1.2.5 / 2023-02-21 | ||
|
||
- Adjust border radius in from/toJson model | ||
- Adjust border radius in from/toJson model | ||
|
||
1.2.4 / 2023-02-20 | ||
================== | ||
# 1.2.4 / 2023-02-20 | ||
|
||
- Align RoundCorners action with the specs | ||
|
||
1.2.3 / 2023-02-03 | ||
================== | ||
# 1.2.3 / 2023-02-03 | ||
|
||
- Add fromJson support to Opacity action | ||
|
||
1.2.2 / 2023-02-03 | ||
================== | ||
# 1.2.2 / 2023-02-03 | ||
|
||
- Fix opacity action (missing actionModel) | ||
|
||
1.2.1 / 2023-01-31 | ||
================== | ||
# 1.2.1 / 2023-01-31 | ||
|
||
- Updated default values of Drop Shadow action | ||
|
||
1.2.0 / 2023-01-11 | ||
================== | ||
# 1.2.0 / 2023-01-11 | ||
|
||
- Add DropShadow effect | ||
|
||
1.1.0 / 2022-10-20 | ||
================== | ||
# 1.1.0 / 2022-10-20 | ||
|
||
* Add Background Removal effect | ||
* Add from/toJson for rotateByAngle Action | ||
- Add Background Removal effect | ||
- Add from/toJson for rotateByAngle Action | ||
|
||
1.0.1 / 2022-09-13 | ||
================== | ||
# 1.0.1 / 2022-09-13 | ||
|
||
* Fix broken prettier version | ||
* Default length for the fade action | ||
- Fix broken prettier version | ||
- Default length for the fade action | ||
|
||
1.0.0 / 2022-05-12 | ||
================== | ||
# 1.0.0 / 2022-05-12 | ||
|
||
Release package | ||
|
Oops, something went wrong.