@evoke-platform/ui-components 1.13.0 → 1.14.0

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.
@@ -118,7 +118,7 @@ function FormRendererContainer(props) {
118
118
  entries: [
119
119
  {
120
120
  type: 'content',
121
- html: `<p style="padding-top: 24px; padding-bottom: 24px;">You are about to delete <strong>${instance?.name}</strong>. Deleted records can't be restored. Are you sure you want to continue?</p>`,
121
+ html: `<p><span style="font-size: 16px;">You are about to delete <strong>${instance?.name}</strong>. Deleted records can't be restored. Are you sure you want to continue?</span></p>`,
122
122
  },
123
123
  ],
124
124
  objectId: objectId,
@@ -5,7 +5,11 @@ import TableUp from 'quill-table-up';
5
5
  import 'quill-table-up/index.css';
6
6
  import { Box } from '@mui/material';
7
7
  import DOMPurify from 'dompurify';
8
+ const fontSizeArr = ['8px', '10px', '12px', '14px', '16px', '18px', '20px', '22px', '24px', '26px', '28px'];
8
9
  Quill.register({ [`modules/${TableUp.moduleName}`]: TableUp }, true);
10
+ const Size = Quill.import('attributors/style/size');
11
+ Size.whitelist = fontSizeArr;
12
+ Quill.register(Size, true);
9
13
  const HtmlView = ({ value }) => {
10
14
  const containerRef = useRef(null);
11
15
  const quillRef = useRef(null);
@@ -32,7 +36,7 @@ const HtmlView = ({ value }) => {
32
36
  return (React.createElement(Box, { sx: {
33
37
  width: '100%',
34
38
  height: '100%',
35
- '.ql-container': {
39
+ '.ql-container.ql-snow': {
36
40
  border: 'none',
37
41
  minHeight: 20,
38
42
  },
@@ -1611,8 +1611,7 @@ describe('FormRendererContainer', () => {
1611
1611
  // Wait for the delete confirmation message to appear
1612
1612
  const confirmation = await screen.findByText(/you are about to delete/i);
1613
1613
  expect(confirmation).toBeInTheDocument();
1614
- // Validate that the message includes the instance name
1615
- expect(confirmation).toHaveTextContent(/Persons Name/);
1614
+ await screen.findByText(/Persons Name/);
1616
1615
  // Ensure the "Delete" button is rendered
1617
1616
  await screen.findByRole('button', { name: /delete/i });
1618
1617
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",