@webikon/webentor-core 0.9.13 → 0.9.14

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/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Webentor Core Changelog
2
2
 
3
- ## DEV
3
+ ## 0.9.14
4
+
5
+ - Fix Button link display
6
+ - Disable auto sizes styles for images
4
7
 
5
8
  ## 0.9.13
6
9
 
@@ -309,38 +309,40 @@ export const WebentorButton = (props) => {
309
309
  }
310
310
  />
311
311
 
312
- {!hideLink && attributes[attributeName]?.htmlElement === 'a' && (
313
- <>
314
- <div className="wbtr:mt-0 wbtr:mb-2 wbtr:text-[11px] wbtr:uppercase">
315
- {__('Button URL', 'webentor')}
316
- </div>
317
- <URLInput
318
- // label={__('Button URL', 'webentor')}
319
- value={
320
- attributes[attributeName] && attributes[attributeName]?.url
321
- ? attributes[attributeName]?.url
322
- : ''
323
- }
324
- onChange={(value) =>
325
- updateObjectAttribute(attributeName, 'url', value)
326
- }
327
- className="wbtr:mb-2"
328
- />
312
+ {!hideLink &&
313
+ attributes[attributeName]?.htmlElement != 'button' && (
314
+ <>
315
+ <div className="wbtr:mt-0 wbtr:mb-2 wbtr:text-[11px] wbtr:uppercase">
316
+ {__('Button URL', 'webentor')}
317
+ </div>
318
+ <URLInput
319
+ // label={__('Button URL', 'webentor')}
320
+ value={
321
+ attributes[attributeName] &&
322
+ attributes[attributeName]?.url
323
+ ? attributes[attributeName]?.url
324
+ : ''
325
+ }
326
+ onChange={(value) =>
327
+ updateObjectAttribute(attributeName, 'url', value)
328
+ }
329
+ className="wbtr:mb-2"
330
+ />
329
331
 
330
- <ToggleControl
331
- label={__('Open in new tab', 'webentor')}
332
- checked={
333
- attributes[attributeName] &&
334
- attributes[attributeName]?.newTab
335
- ? attributes[attributeName]?.newTab
336
- : false
337
- }
338
- onChange={(value) =>
339
- updateObjectAttribute(attributeName, 'newTab', value)
340
- }
341
- />
342
- </>
343
- )}
332
+ <ToggleControl
333
+ label={__('Open in new tab', 'webentor')}
334
+ checked={
335
+ attributes[attributeName] &&
336
+ attributes[attributeName]?.newTab
337
+ ? attributes[attributeName]?.newTab
338
+ : false
339
+ }
340
+ onChange={(value) =>
341
+ updateObjectAttribute(attributeName, 'newTab', value)
342
+ }
343
+ />
344
+ </>
345
+ )}
344
346
 
345
347
  <div className="wbtr:border wbtr:border-editor-border wbtr:p-2">
346
348
  <div className="wbtr:my-2">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webikon/webentor-core",
3
3
  "homepage": "https://webikon.sk",
4
- "version": "0.9.13",
4
+ "version": "0.9.14",
5
5
  "description": "Core functionality and useful utilities for Webentor Stack",
6
6
  "license": "MIT",
7
7
  "author": "Webikon s.r.o.",