Skip to content

Commit 20376f1

Browse files
authored
Merge pull request #72 from t-hamano/fix/typo-and-build-dir
Fix some typos and change the directory where Monaco Editor is built
2 parents fa2b31d + 8ab686b commit 20376f1

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
.eslintrc.js
1313
.gitignore
1414
.npmrc
15+
.nvmrc
1516
.prettierrc.js
1617
.stylelintrc.js
1718
.wp-env.json

bin/delete-sourcemaps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ function deleteMaps( dir ) {
3333
} );
3434
}
3535

36-
[ './build/lib/' ].map( deleteMaps );
36+
[ './build/vendor/' ].map( deleteMaps );

custom-html-block-extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Extend Custom HTML block to evolve into the advanced code editor.
55
* Requires at least: 6.1
66
* Requires PHP: 7.4
7-
* Version: 3.3.0
7+
* Version: 3.3.1
88
* Author: Aki Hamano
99
* Author URI: https://github.com/t-hamano
1010
* License: GPL2 or later

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"stop": "wp-env stop",
99
"start": "wp-scripts start src/admin src/block-editor src/classic-editor src/theme-plugin-editor --output-path build",
1010
"build": "npm run clean && wp-scripts build src/admin src/block-editor src/classic-editor src/theme-plugin-editor --output-path build && npm run copy-lib",
11-
"copy-lib": "cpx -C \"node_modules/monaco-editor/min/**\" \"build/lib/monaco-editor/min\" && node bin/delete-sourcemaps.js",
11+
"copy-lib": "cpx -C \"node_modules/monaco-editor/min/**\" \"build/vendor/monaco-editor/min\" && node bin/delete-sourcemaps.js",
1212
"clean": "rimraf build",
1313
"lint": "npm run lint:php && npm run lint:style && npm run lint:js",
1414
"lint:php": "composer lint",

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: gutenberg, block, html, highlighting, emmet
44
Donate link: https://www.paypal.me/thamanoJP
55
Requires at least: 6.1
66
Tested up to: 6.3
7-
Stable tag: 3.3.0
7+
Stable tag: 3.3.1
88
Requires PHP: 7.4
99
License: GPLv2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -69,6 +69,10 @@ Source: https://www.marksimonson.com/fonts/view/anonymous-pro
6969

7070
== Changelog ==
7171

72+
= 3.3.1 =
73+
74+
* Fix: some typos
75+
7276
= 3.3.0 =
7377
* Tested to WordPress 6.3
7478
* Enhancement: Add filtering function for settings

src/admin/editor-config/editor-options/suggest/show-icons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function SuggestShowIcons() {
4646
title={ title }
4747
items={ [
4848
{
49-
label: __( 'Enabl', 'custom-html-block-extension' ),
49+
label: __( 'Enable', 'custom-html-block-extension' ),
5050
image: 'editor-options/suggest/show-icons_1.jpg',
5151
value: true,
5252
isDefault: true,

src/admin/options/components/permission-editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function PermissionEditor() {
3636

3737
return (
3838
<PanelBody
39-
title={ __( 'Editors roles allowed to use this extension', 'custom-html-block-extension' ) }
39+
title={ __( 'Editors allowed to use this extension', 'custom-html-block-extension' ) }
4040
>
4141
<ToggleControl
4242
label={ __( 'Block editor', 'custom-html-block-extension' ) }

src/lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
55

66
const config = {
77
paths: {
8-
vs: `${ window.chbeObj.pluginUrl }/build/lib/monaco-editor/min/vs`,
8+
vs: `${ window.chbeObj.pluginUrl }/build/vendor/monaco-editor/min/vs`,
99
},
1010
};
1111

0 commit comments

Comments
 (0)