@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 +4 -1
- package/core-js/blocks-components/button.tsx +33 -31
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -309,38 +309,40 @@ export const WebentorButton = (props) => {
|
|
|
309
309
|
}
|
|
310
310
|
/>
|
|
311
311
|
|
|
312
|
-
{!hideLink &&
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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