@frontify/guideline-blocks-settings 0.29.5 → 0.29.6
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 +15 -0
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js +36 -30
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js +12 -12
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js +6 -6
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js +6 -0
- package/dist/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.es.js.map +1 -1
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js +38 -32
- package/dist/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.es.js.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/components/RichTextEditor/plugins/ButtonPlugin/ButtonMarkupElement/ButtonMarkupElementNode.tsx +1 -1
- package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/EditButtonModal/EditModal.tsx +6 -6
- package/src/components/RichTextEditor/plugins/ButtonPlugin/components/FloatingButton/InsertButtonModal/InsertButtonModal.tsx +1 -1
- package/src/components/RichTextEditor/plugins/ButtonPlugin/createButtonPlugin.ts +1 -1
- package/src/components/RichTextEditor/plugins/ButtonPlugin/utils/styles.ts +6 -0
- package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.tsx +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontify/guideline-blocks-settings",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.6",
|
|
4
4
|
"description": "Provides types and helpers for the guideline block development",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"./styles": "./dist/styles.css"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@babel/core": "^7.22.
|
|
25
|
+
"@babel/core": "^7.22.17",
|
|
26
26
|
"@frontify/eslint-config-typescript": "^0.16.1",
|
|
27
27
|
"@testing-library/react": "^14.0.0",
|
|
28
28
|
"@types/node": "^18.17.12",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"@dnd-kit/core": "^6.0.8",
|
|
57
57
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
58
58
|
"@dnd-kit/sortable": "^7.0.2",
|
|
59
|
-
"@frontify/fondue": "12.0.0-beta.
|
|
59
|
+
"@frontify/fondue": "12.0.0-beta.321",
|
|
60
60
|
"@react-aria/focus": "^3.14.0",
|
|
61
61
|
"@react-stately/overlays": "^3.6.1",
|
|
62
62
|
"@udecode/plate": "^21.5.0",
|
|
63
63
|
"slate": "^0.94.1",
|
|
64
64
|
"slate-react": "^0.98.3",
|
|
65
|
-
"@frontify/app-bridge": "^3.0.0-beta.
|
|
66
|
-
"@frontify/sidebar-settings": "^0.6.
|
|
65
|
+
"@frontify/app-bridge": "^3.0.0-beta.91",
|
|
66
|
+
"@frontify/sidebar-settings": "^0.6.9"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "^18",
|
|
@@ -13,7 +13,7 @@ const useButton = (props: ButtonRootProps): HTMLPropsAs<'a'> & { buttonStyle: Ri
|
|
|
13
13
|
elementToAttributes: (element) => ({
|
|
14
14
|
url: element.href,
|
|
15
15
|
buttonStyle: element.buttonStyle || 'primary',
|
|
16
|
-
target: element.target || '
|
|
16
|
+
target: element.target || '_blank',
|
|
17
17
|
}),
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import { IconPen16, IconTrashBin16 } from '@frontify/fondue';
|
|
4
4
|
import { FloatingButton, useFloatingButtonUrlInput } from '..';
|
|
5
|
-
import { BlockStyles } from '../../../..';
|
|
6
5
|
|
|
7
6
|
export const EditModal = () => {
|
|
8
7
|
const urlHtmlProps = useFloatingButtonUrlInput({});
|
|
9
8
|
|
|
10
9
|
return (
|
|
11
|
-
<div
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
<div
|
|
11
|
+
data-test-id="floating-button-edit"
|
|
12
|
+
className="tw-bg-white tw-text-text tw-rounded tw-shadow tw-p-4 tw-min-w-[400px]"
|
|
13
|
+
>
|
|
14
|
+
<span data-test-id="preview-button-flyout" className="tw-flex tw-justify-between tw-items-center">
|
|
15
|
+
<span className="tw-pointer-events-none">{urlHtmlProps.defaultValue}</span>
|
|
16
16
|
<span className="tw-flex tw-gap-2">
|
|
17
17
|
<span
|
|
18
18
|
role="button"
|
|
@@ -70,7 +70,7 @@ const HoverableButton = ({ id, styles, isActive, onClick, children }: Props): Re
|
|
|
70
70
|
onMouseEnter={() => setHovered(true)}
|
|
71
71
|
onMouseLeave={() => setHovered(false)}
|
|
72
72
|
onClick={onClick}
|
|
73
|
-
style={getStyles()}
|
|
73
|
+
style={{ ...getStyles(), marginTop: 0, marginBottom: 0 }}
|
|
74
74
|
className={
|
|
75
75
|
isActive ? 'tw-outline tw-outline-1 tw-outline-violet-60 tw-outline-offset-2 tw-w-fit' : 'tw-w-fit'
|
|
76
76
|
}
|
|
@@ -19,6 +19,8 @@ export const BlockButtonStyles: Record<string, CSSProperties & { hover?: CSSProp
|
|
|
19
19
|
borderRadius: 'var(--f-theme-settings-button-primary-border-radius)',
|
|
20
20
|
borderWidth: 'var(--f-theme-settings-button-primary-border-width)',
|
|
21
21
|
color: 'var(--f-theme-settings-button-primary-color)',
|
|
22
|
+
marginTop: '10px',
|
|
23
|
+
marginBottom: '10px',
|
|
22
24
|
display: 'inline-block',
|
|
23
25
|
hover: {
|
|
24
26
|
backgroundColor: 'var(--f-theme-settings-button-primary-background-color-hover)',
|
|
@@ -44,6 +46,8 @@ export const BlockButtonStyles: Record<string, CSSProperties & { hover?: CSSProp
|
|
|
44
46
|
borderWidth: 'var(--f-theme-settings-button-secondary-border-width)',
|
|
45
47
|
color: 'var(--f-theme-settings-button-secondary-color)',
|
|
46
48
|
display: 'inline-block',
|
|
49
|
+
marginTop: '10px',
|
|
50
|
+
marginBottom: '10px',
|
|
47
51
|
hover: {
|
|
48
52
|
backgroundColor: 'var(--f-theme-settings-button-secondary-background-color-hover)',
|
|
49
53
|
borderColor: 'var(--f-theme-settings-button-secondary-border-color-hover)',
|
|
@@ -68,6 +72,8 @@ export const BlockButtonStyles: Record<string, CSSProperties & { hover?: CSSProp
|
|
|
68
72
|
borderWidth: 'var(--f-theme-settings-button-tertiary-border-width)',
|
|
69
73
|
color: 'var(--f-theme-settings-button-tertiary-color)',
|
|
70
74
|
display: 'inline-block',
|
|
75
|
+
marginTop: '10px',
|
|
76
|
+
marginBottom: '10px',
|
|
71
77
|
hover: {
|
|
72
78
|
backgroundColor: 'var(--f-theme-settings-button-tertiary-background-color-hover)',
|
|
73
79
|
borderColor: 'var(--f-theme-settings-button-tertiary-border-color-hover)',
|
package/src/components/RichTextEditor/plugins/LinkPlugin/FloatingLink/EditLinkModal/EditModal.tsx
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import { IconPen16, IconTrashBin16 } from '@frontify/fondue';
|
|
4
4
|
import { useFloatingLinkUrlInput } from '@udecode/plate';
|
|
5
5
|
import { FloatingLink } from '../FloatingLink';
|
|
6
|
-
import { BlockStyles } from '../../../styles';
|
|
7
6
|
|
|
8
7
|
export const EditModal = () => {
|
|
9
8
|
const urlHtmlProps = useFloatingLinkUrlInput({});
|
|
10
9
|
|
|
11
10
|
return (
|
|
12
|
-
<div
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
<div
|
|
12
|
+
data-test-id="floating-link-edit"
|
|
13
|
+
className="tw-bg-white tw-text-text tw-rounded tw-shadow tw-p-4 tw-min-w-[400px]"
|
|
14
|
+
>
|
|
15
|
+
<span data-test-id={'preview-link-flyout'} className="tw-flex tw-justify-between tw-items-center">
|
|
16
|
+
<span className="tw-pointer-events-none">{urlHtmlProps.defaultValue}</span>
|
|
17
17
|
<span className="tw-flex tw-gap-2">
|
|
18
18
|
<span
|
|
19
19
|
role="button"
|