@lowdefy/blocks-markdown 4.5.1 → 4.6.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,44 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ type: 'object',
17
+ properties: {
18
+ type: 'object',
19
+ additionalProperties: false,
20
+ properties: {
21
+ content: {
22
+ type: 'string',
23
+ description: 'Content in markdown format.',
24
+ docs: {
25
+ displayType: 'text-area'
26
+ }
27
+ },
28
+ DOMPurifyOptions: {
29
+ type: 'object',
30
+ description: 'Customize DOMPurify options. Options are only applied when the block is mounted, thus any parsed settings is only applied at first render.',
31
+ docs: {
32
+ displayType: 'yaml'
33
+ }
34
+ },
35
+ style: {
36
+ type: 'object',
37
+ description: 'Style to apply to Markdown div.',
38
+ docs: {
39
+ displayType: 'yaml'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,42 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ type: 'object',
17
+ properties: {
18
+ type: 'object',
19
+ additionalProperties: false,
20
+ properties: {
21
+ content: {
22
+ type: 'string',
23
+ description: 'Content in markdown format.',
24
+ docs: {
25
+ displayType: 'text-area'
26
+ }
27
+ },
28
+ skipHtml: {
29
+ type: 'boolean',
30
+ default: false,
31
+ description: 'By default, HTML in markdown is escaped. When true all HTML code in the markdown will not be rendered.'
32
+ },
33
+ style: {
34
+ type: 'object',
35
+ description: 'Style to apply to Markdown div.',
36
+ docs: {
37
+ displayType: 'yaml'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,42 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export default {
16
+ type: 'object',
17
+ properties: {
18
+ type: 'object',
19
+ additionalProperties: false,
20
+ properties: {
21
+ content: {
22
+ type: 'string',
23
+ description: 'Content in markdown format.',
24
+ docs: {
25
+ displayType: 'text-area'
26
+ }
27
+ },
28
+ skipHtml: {
29
+ type: 'boolean',
30
+ default: false,
31
+ description: 'By default, HTML in markdown is escaped. When true all HTML code in the markdown will not be rendered.'
32
+ },
33
+ style: {
34
+ type: 'object',
35
+ description: 'Style to apply to Markdown div.',
36
+ docs: {
37
+ displayType: 'yaml'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ };
package/dist/blocks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ export { default as DangerousMarkdown } from './blocks/DangerousMarkdown/schema.js';
16
+ export { default as Markdown } from './blocks/Markdown/schema.js';
17
+ export { default as MarkdownWithCode } from './blocks/MarkdownWithCode/schema.js';
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/namespace */ /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-markdown",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy markdown blocks.",
6
6
  "homepage": "https://lowdefy.com",
@@ -32,13 +32,14 @@
32
32
  "exports": {
33
33
  "./*": "./dist/*",
34
34
  "./blocks": "./dist/blocks.js",
35
+ "./schemas": "./dist/schemas.js",
35
36
  "./types": "./dist/types.js"
36
37
  },
37
38
  "files": [
38
39
  "dist/*"
39
40
  ],
40
41
  "dependencies": {
41
- "@lowdefy/block-utils": "4.5.1",
42
+ "@lowdefy/block-utils": "4.6.0",
42
43
  "dompurify": "3.2.4",
43
44
  "react": "18.2.0",
44
45
  "react-dom": "18.2.0",
@@ -48,20 +49,9 @@
48
49
  "remark-gfm": "3.0.0"
49
50
  },
50
51
  "devDependencies": {
51
- "@emotion/jest": "11.10.5",
52
- "@lowdefy/block-dev": "4.5.1",
53
- "@lowdefy/jest-yaml-transform": "4.5.1",
54
52
  "@swc/cli": "0.1.63",
55
53
  "@swc/core": "1.3.99",
56
- "@swc/jest": "0.2.29",
57
- "@testing-library/dom": "8.19.1",
58
- "@testing-library/react": "13.4.0",
59
- "@testing-library/user-event": "14.4.3",
60
- "@types/react": "18.2.38",
61
- "copyfiles": "2.4.1",
62
- "jest": "28.1.3",
63
- "jest-environment-jsdom": "28.1.3",
64
- "jest-serializer-html": "7.1.0"
54
+ "copyfiles": "2.4.1"
65
55
  },
66
56
  "publishConfig": {
67
57
  "access": "public"
@@ -69,7 +59,6 @@
69
59
  "scripts": {
70
60
  "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
71
61
  "clean": "rm -rf dist",
72
- "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
73
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
62
+ "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\""
74
63
  }
75
64
  }