@elementor/editor-canvas
Advanced tools
Comparing version
# @elementor/editor-canvas | ||
## 0.3.0 | ||
### Minor Changes | ||
- c393288: Remove support for shorthand prop values. | ||
### Patch Changes | ||
- 91453b3: Update and lock dependencies versions | ||
- Updated dependencies [c393288] | ||
- Updated dependencies [bc728b7] | ||
- Updated dependencies [91453b3] | ||
- @elementor/editor-props@0.4.0 | ||
- @elementor/editor-styles-repository@0.1.1 | ||
- @elementor/editor-v1-adapters@0.8.5 | ||
- @elementor/editor-responsive@0.12.4 | ||
- @elementor/editor-elements@0.3.2 | ||
- @elementor/editor@0.17.2 | ||
## 0.2.0 | ||
@@ -4,0 +23,0 @@ |
@@ -224,6 +224,15 @@ "use strict"; | ||
// src/styles-renderer/transformers/number-transformer.ts | ||
var import_editor_props6 = require("@elementor/editor-props"); | ||
var numberTransformer = (propValue) => { | ||
if (import_editor_props6.numberPropTypeUtil.isValid(propValue)) { | ||
return propValue.value; | ||
} | ||
}; | ||
var number_transformer_default = numberTransformer; | ||
// src/styles-renderer/transformers/shadow-transformer.ts | ||
var import_editor_props6 = require("@elementor/editor-props"); | ||
var import_editor_props7 = require("@elementor/editor-props"); | ||
var shadowTransformer = (propValue, { transform }) => { | ||
if (import_editor_props6.shadowPropTypeUtil.isValid(propValue)) { | ||
if (import_editor_props7.shadowPropTypeUtil.isValid(propValue)) { | ||
const { position, hOffset, vOffset, blur, spread, color } = propValue.value || {}; | ||
@@ -243,5 +252,5 @@ return [ | ||
// src/styles-renderer/transformers/size-transformer.ts | ||
var import_editor_props7 = require("@elementor/editor-props"); | ||
var import_editor_props8 = require("@elementor/editor-props"); | ||
var sizeTransformer = (propValue) => { | ||
if (import_editor_props7.sizePropTypeUtil.isValid(propValue)) { | ||
if (import_editor_props8.sizePropTypeUtil.isValid(propValue)) { | ||
return propValue.value && propValue.value.size + propValue.value.unit; | ||
@@ -252,6 +261,15 @@ } | ||
// src/styles-renderer/transformers/string-transformer.ts | ||
var import_editor_props9 = require("@elementor/editor-props"); | ||
var stringTransformer = (propValue) => { | ||
if (import_editor_props9.stringPropTypeUtil.isValid(propValue)) { | ||
return propValue.value; | ||
} | ||
}; | ||
var string_transformer_default = stringTransformer; | ||
// src/styles-renderer/transformers/stroke-transformer.ts | ||
var import_editor_props8 = require("@elementor/editor-props"); | ||
var import_editor_props10 = require("@elementor/editor-props"); | ||
var strokeTransformer = (propValue, { transform }) => { | ||
if (import_editor_props8.strokePropTypeUtil.isValid(propValue)) { | ||
if (import_editor_props10.strokePropTypeUtil.isValid(propValue)) { | ||
return `${transform(propValue.value?.width)} ${transform(propValue.value?.color)}`; | ||
@@ -265,4 +283,7 @@ } | ||
color: color_transformer_default, | ||
number: number_transformer_default, | ||
size: size_transformer_default, | ||
shadow: shadow_transformer_default, | ||
string: string_transformer_default, | ||
stroke: stroke_transformer_default, | ||
"border-radius": border_radius_transformer_default, | ||
@@ -273,3 +294,2 @@ "border-width": border_width_transformer_default, | ||
"linked-dimensions": linked_dimensions_transformer_default, | ||
stroke: stroke_transformer_default, | ||
"background-overlay": background_overlay_transformer_default | ||
@@ -282,6 +302,6 @@ }; | ||
// src/styles-renderer/transform.ts | ||
var import_editor_props9 = require("@elementor/editor-props"); | ||
var import_editor_props11 = require("@elementor/editor-props"); | ||
var FALLBACK_VALUE = "unset"; | ||
function transformValue(value, transformers) { | ||
if (!(0, import_editor_props9.isTransformable)(value)) { | ||
if (!(0, import_editor_props11.isTransformable)(value)) { | ||
return value; | ||
@@ -288,0 +308,0 @@ } |
{ | ||
"name": "@elementor/editor-canvas", | ||
"description": "Elementor Editor Canvas", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"private": false, | ||
@@ -39,13 +39,13 @@ "author": "Elementor Team", | ||
"dependencies": { | ||
"@elementor/editor": "^0.17.1", | ||
"@elementor/editor": "0.17.2", | ||
"@elementor/ui": "^1.22.0", | ||
"@floating-ui/react": "^0.26.28", | ||
"@elementor/editor-elements": "^0.3.1", | ||
"@elementor/editor-v1-adapters": "^0.8.4", | ||
"@elementor/editor-props": "^0.3.0", | ||
"@elementor/schema": "^0.1.2", | ||
"@elementor/utils": "^0.3.0", | ||
"@elementor/editor-styles-repository": "^0.1.0", | ||
"@elementor/editor-responsive": "^0.12.3" | ||
"@elementor/editor-elements": "0.3.2", | ||
"@elementor/editor-v1-adapters": "0.8.5", | ||
"@elementor/editor-props": "0.4.0", | ||
"@elementor/schema": "0.1.2", | ||
"@elementor/utils": "0.3.0", | ||
"@elementor/editor-styles-repository": "0.1.1", | ||
"@elementor/editor-responsive": "0.12.4" | ||
} | ||
} |
@@ -7,4 +7,6 @@ import { default as backgroundOverlay } from './background-overlay-transformer'; | ||
import { default as linkedDimensions } from './linked-dimensions-transformer'; | ||
import { default as number } from './number-transformer'; | ||
import { default as shadow } from './shadow-transformer'; | ||
import { default as size } from './size-transformer'; | ||
import { default as string } from './string-transformer'; | ||
import { default as stroke } from './stroke-transformer'; | ||
@@ -14,4 +16,7 @@ | ||
color, | ||
number, | ||
size, | ||
shadow, | ||
string, | ||
stroke, | ||
'border-radius': borderRadius, | ||
@@ -22,4 +27,3 @@ 'border-width': borderWidth, | ||
'linked-dimensions': linkedDimensions, | ||
stroke, | ||
'background-overlay': backgroundOverlay, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
135003
3.75%47
4.44%2121
2.71%0
-100%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated