n8n-nodes-sudomock 0.15.0 → 0.15.1

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.
@@ -1153,15 +1153,15 @@ class SudoMock {
1153
1153
  displayName: 'Position Left',
1154
1154
  name: 'positionLeft',
1155
1155
  type: 'number',
1156
- default: 0,
1157
- description: 'Custom position left offset in pixels',
1156
+ default: null,
1157
+ description: 'Custom position left offset in pixels. Leave empty for the default placement; 0 is the left edge.',
1158
1158
  },
1159
1159
  {
1160
1160
  displayName: 'Position Top',
1161
1161
  name: 'positionTop',
1162
1162
  type: 'number',
1163
- default: 0,
1164
- description: 'Custom position top offset in pixels',
1163
+ default: null,
1164
+ description: 'Custom position top offset in pixels. Leave empty for the default placement; 0 is the top edge.',
1165
1165
  },
1166
1166
  {
1167
1167
  displayName: 'Remove Background',
@@ -2578,12 +2578,14 @@ class SudoMock {
2578
2578
  if (Object.keys(size).length > 0) {
2579
2579
  asset.size = size;
2580
2580
  }
2581
- // Custom position override (top/left, DynamicMockups compatible)
2581
+ // Custom position override (top/left, DynamicMockups compatible).
2582
+ // An empty field holds null and is not sent, so the default
2583
+ // placement stays. 0 is sent: it puts the artwork against that edge.
2582
2584
  const position = {};
2583
- if (opts.positionTop !== undefined && opts.positionTop !== 0) {
2585
+ if (opts.positionTop !== undefined && opts.positionTop !== null) {
2584
2586
  position.top = opts.positionTop;
2585
2587
  }
2586
- if (opts.positionLeft !== undefined && opts.positionLeft !== 0) {
2588
+ if (opts.positionLeft !== undefined && opts.positionLeft !== null) {
2587
2589
  position.left = opts.positionLeft;
2588
2590
  }
2589
2591
  if (Object.keys(position).length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-sudomock",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "n8n community node for SudoMock mockup rendering API - POD automation",
5
5
  "license": "MIT",
6
6
  "homepage": "https://sudomock.com",