Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
2 changes: 1 addition & 1 deletion assets/build/block.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '5c13835270f8b2070a23');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '748e985bc8616f514a4a');
4,006 changes: 4,005 additions & 1 deletion assets/build/block.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/build/block.js.map

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions assets/build/blocks/QuickSearch/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "wedocs/quick-search",
"version": "1.0.0",
"title": "weDocs - Quick Search",
"icon": "search",
"category": "widgets",
"description": "Add a quick search block that opens a modal with documentation search",
"supports": {
"html": false
},
"render": "file:./render.php",
"attributes": {
"searchBoxPlaceholder": {
"type": "string",
"default": "Quick search..."
},
"modalPlaceholder": {
"type": "string",
"default": "Search documentation"
},
"modalDocsSource": {
"type": "string",
"default": "helpful"
},
"sectionIds": {
"type": "string",
"default": ""
},
"articleIds": {
"type": "string",
"default": ""
},
"helpfulDocsCount": {
"type": "number",
"default": 10
},
"searchBoxStyles": {
"type": "object",
"default": {
"placeholderColor": "#9CA3AF",
"iconColor": "#6B7280",
"commandKeyColor": "#6B7280",
"backgroundColor": "#FFFFFF",
"borderColor": "#D1D5DB",
"borderWidth": "1px",
"borderRadius": "8px",
"padding": {
"top": "12px",
"right": "16px",
"bottom": "12px",
"left": "16px"
},
"margin": {
"top": "0px",
"right": "0px",
"bottom": "0px",
"left": "0px"
},
"fontSize": "16px",
"fontWeight": "400",
"letterSpacing": "0px",
"lineHeight": "1.5"
}
},
"modalStyles": {
"type": "object",
"default": {
"placeholderColor": "#9CA3AF",
"searchIconColor": "#6B7280",
"backgroundColor": "#FFFFFF",
"fieldTextColor": "#111827",
"listItemIconColor": "#3B82F6",
"listItemTextColor": "#111827",
"docLabelColor": "#3B82F6",
"sectionLabelColor": "#3B82F6",
"listItemPadding": {
"top": "12px",
"right": "16px",
"bottom": "12px",
"left": "16px"
},
"listItemMargin": {
"top": "0px",
"right": "0px",
"bottom": "0px",
"left": "0px"
},
"listItemBorderColor": "#E5E7EB",
"listItemBorderWidth": "1px",
"listItemBorderRadius": "4px"
}
}
}
}
Loading