Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
add defaults to attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
TOUnail committed Oct 4, 2022
1 parent 7496d1d commit 1da02a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3854f71e678ab1527dc1a509dea9af99');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => 'c6d11b08eecb0a83e5f4d6a823a9d10d');
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8339,7 +8339,7 @@ function save(_ref) {
/*! exports provided: name, title, category, textdomain, supports, attributes, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"name\":\"uwai/button\",\"title\":\"UWAI Button\",\"category\":\"common\",\"textdomain\":\"uwai\",\"supports\":{\"html\":false},\"attributes\":{\"title\":{\"type\":\"string\",\"source\":\"text\",\"selector\":\"span\",\"default\":\"A cool button\"},\"url\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"href\"},\"linkTarget\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"target\"},\"rel\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"rel\"},\"style\":{\"type\":\"string\",\"default\":\"btn--lightbg\"},\"size\":{\"type\":\"string\"},\"play\":{\"type\":\"boolean\"},\"disabled\":{\"type\":\"boolean\"}}}");
module.exports = JSON.parse("{\"name\":\"uwai/button\",\"title\":\"UWAI Button\",\"category\":\"common\",\"textdomain\":\"uwai\",\"supports\":{\"html\":false},\"attributes\":{\"title\":{\"type\":\"string\",\"source\":\"text\",\"selector\":\"span\",\"default\":\"A cool button\"},\"url\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"href\"},\"linkTarget\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"target\"},\"rel\":{\"type\":\"string\",\"source\":\"attribute\",\"selector\":\"a\",\"attribute\":\"rel\"},\"style\":{\"type\":\"string\",\"default\":\"btn--lightbg\"},\"size\":{\"type\":\"string\"},\"play\":{\"type\":\"boolean\",\"default\":false},\"disabled\":{\"type\":\"boolean\",\"default\":false}}}");

/***/ }),

Expand Down
6 changes: 4 additions & 2 deletions src/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
"type": "string"
},
"play": {
"type": "boolean"
"type": "boolean",
"default": false
},
"disabled": {
"type": "boolean"
"type": "boolean",
"default": false
}
}
}

0 comments on commit 1da02a9

Please sign in to comment.