Skip to content

Commit 9212a4f

Browse files
committed
Upgraded Blocks
Alerts block output will now be run through wp_kses_post
1 parent 0672d8b commit 9212a4f

27 files changed

+175
-27
lines changed

includes/blocks/alerts/build/index.asset.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

includes/blocks/alerts/build/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"apiVersion": 2,
4+
"name": "knowledgebase/alerts",
5+
"version": "1.0.0",
6+
"title": "Knowledge Base Alerts",
7+
"category": "design",
8+
"icon": "book",
9+
"keywords": [
10+
"knowledgbase",
11+
"alerts",
12+
"kb"
13+
],
14+
"description": "Display alerts for WZ Knowledge Base",
15+
"supports": {
16+
"html": false
17+
},
18+
"styles": [
19+
{
20+
"name": "primary",
21+
"label": "Primary",
22+
"isDefault": true
23+
},
24+
{
25+
"name": "secondary",
26+
"label": "Secondary"
27+
},
28+
{
29+
"name": "success",
30+
"label": "Success"
31+
},
32+
{
33+
"name": "info",
34+
"label": "Info"
35+
},
36+
{
37+
"name": "warning",
38+
"label": "Warning"
39+
},
40+
{
41+
"name": "danger",
42+
"label": "Danger"
43+
},
44+
{
45+
"name": "light",
46+
"label": "Light"
47+
},
48+
{
49+
"name": "dark",
50+
"label": "Dark"
51+
}
52+
],
53+
"attributes": {
54+
"content": {
55+
"type": "string",
56+
"source": "html",
57+
"selector": "div"
58+
},
59+
"align": {
60+
"type": "string",
61+
"default": "none"
62+
}
63+
},
64+
"example": {},
65+
"textdomain": "knowledgebase",
66+
"editorScript": "file:./index.js",
67+
"editorStyle": "file:./index.css",
68+
"style": "file:./style-index.css"
69+
}
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '2d1ba7f66d29cf290099');
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.wp-block-knowledgebase-alerts{border:1px dotted #000}

includes/blocks/build/alerts/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

includes/blocks/build/alerts/style-index.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"apiVersion": 2,
4+
"name": "knowledgebase/knowledgebase",
5+
"version": "2.0.0",
6+
"title": "Knowledge Base",
7+
"category": "design",
8+
"icon": "book",
9+
"keywords": [
10+
"knowledgbase",
11+
"kb",
12+
"faq"
13+
],
14+
"description": "Display the Knowledge Base",
15+
"supports": {
16+
"html": false
17+
},
18+
"attributes": {
19+
"className": {
20+
"type": "string",
21+
"default": ""
22+
},
23+
"category": {
24+
"type": "string",
25+
"default": ""
26+
},
27+
"limit": {
28+
"type": "string",
29+
"default": ""
30+
},
31+
"showArticleCount": {
32+
"type": "boolean",
33+
"default": false
34+
},
35+
"showExcerpt": {
36+
"type": "boolean",
37+
"default": false
38+
},
39+
"hasClickableSection": {
40+
"type": "boolean",
41+
"default": true
42+
},
43+
"showEmptySections": {
44+
"type": "boolean",
45+
"default": false
46+
},
47+
"columns": {
48+
"type": "string",
49+
"default": ""
50+
},
51+
"other_attributes": {
52+
"type": "string",
53+
"default": ""
54+
}
55+
},
56+
"example": {},
57+
"textdomain": "knowledgebase",
58+
"editorScript": "file:./index.js",
59+
"editorStyle": "file:./index.css"
60+
}

0 commit comments

Comments
 (0)