@wordpress/edit-widgets 4.8.0 → 4.9.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.9.0 (2022-06-29)
6
+
5
7
  ## 4.8.0 (2022-06-15)
6
8
 
7
9
  ## 4.7.0 (2022-06-01)
@@ -34,12 +34,29 @@ const textFormattingShortcuts = [{
34
34
  character: 'k'
35
35
  },
36
36
  description: (0, _i18n.__)('Remove a link.')
37
+ }, {
38
+ keyCombination: {
39
+ character: '[['
40
+ },
41
+ description: (0, _i18n.__)('Insert a link to a post or page')
37
42
  }, {
38
43
  keyCombination: {
39
44
  modifier: 'primary',
40
45
  character: 'u'
41
46
  },
42
47
  description: (0, _i18n.__)('Underline the selected text.')
48
+ }, {
49
+ keyCombination: {
50
+ modifier: 'access',
51
+ character: 'd'
52
+ },
53
+ description: (0, _i18n.__)('Strikethrough the selected text.')
54
+ }, {
55
+ keyCombination: {
56
+ modifier: 'access',
57
+ character: 'x'
58
+ },
59
+ description: (0, _i18n.__)('Make the selected text inline code.')
43
60
  }];
44
61
  exports.textFormattingShortcuts = textFormattingShortcuts;
45
62
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-widgets/src/components/keyboard-shortcut-help-modal/config.js"],"names":["textFormattingShortcuts","keyCombination","modifier","character","description"],"mappings":";;;;;;;AAGA;;AAHA;AACA;AACA;AAGO,MAAMA,uBAAuB,GAAG,CACtC;AACCC,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAE,cAAI,8BAAJ;AAFd,CADsC,EAKtC;AACCH,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAE,cAAI,gCAAJ;AAFd,CALsC,EAStC;AACCH,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAE,cAAI,wCAAJ;AAFd,CATsC,EAatC;AACCH,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,cAAZ;AAA4BC,IAAAA,SAAS,EAAE;AAAvC,GADjB;AAECC,EAAAA,WAAW,EAAE,cAAI,gBAAJ;AAFd,CAbsC,EAiBtC;AACCH,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAE,cAAI,8BAAJ;AAFd,CAjBsC,CAAhC","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n];\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-widgets/src/components/keyboard-shortcut-help-modal/config.js"],"names":["textFormattingShortcuts","keyCombination","modifier","character","description"],"mappings":";;;;;;;AAGA;;AAHA;AACA;AACA;AAGO,MAAMA,uBAAuB,GAAG,CACtC;AACCC,EAA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7BsC,CAAhC","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { character: '[[' },\n\t\tdescription: __( 'Insert a link to a post or page' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'd' },\n\t\tdescription: __( 'Strikethrough the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'x' },\n\t\tdescription: __( 'Make the selected text inline code.' ),\n\t},\n];\n"]}
@@ -26,11 +26,28 @@ export const textFormattingShortcuts = [{
26
26
  character: 'k'
27
27
  },
28
28
  description: __('Remove a link.')
29
+ }, {
30
+ keyCombination: {
31
+ character: '[['
32
+ },
33
+ description: __('Insert a link to a post or page')
29
34
  }, {
30
35
  keyCombination: {
31
36
  modifier: 'primary',
32
37
  character: 'u'
33
38
  },
34
39
  description: __('Underline the selected text.')
40
+ }, {
41
+ keyCombination: {
42
+ modifier: 'access',
43
+ character: 'd'
44
+ },
45
+ description: __('Strikethrough the selected text.')
46
+ }, {
47
+ keyCombination: {
48
+ modifier: 'access',
49
+ character: 'x'
50
+ },
51
+ description: __('Make the selected text inline code.')
35
52
  }];
36
53
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["@wordpress/edit-widgets/src/components/keyboard-shortcut-help-modal/config.js"],"names":["__","textFormattingShortcuts","keyCombination","modifier","character","description"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAT,QAAmB,iBAAnB;AAEA,OAAO,MAAMC,uBAAuB,GAAG,CACtC;AACCC,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,8BAAF;AAFhB,CADsC,EAKtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,gCAAF;AAFhB,CALsC,EAStC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,wCAAF;AAFhB,CATsC,EAatC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,cAAZ;AAA4BC,IAAAA,SAAS,EAAE;AAAvC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,gBAAF;AAFhB,CAbsC,EAiBtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,8BAAF;AAFhB,CAjBsC,CAAhC","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n];\n"]}
1
+ {"version":3,"sources":["@wordpress/edit-widgets/src/components/keyboard-shortcut-help-modal/config.js"],"names":["__","textFormattingShortcuts","keyCombination","modifier","character","description"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAT,QAAmB,iBAAnB;AAEA,OAAO,MAAMC,uBAAuB,GAAG,CACtC;AACCC,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,8BAAF;AAFhB,CADsC,EAKtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,gCAAF;AAFhB,CALsC,EAStC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,wCAAF;AAFhB,CATsC,EAatC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,cAAZ;AAA4BC,IAAAA,SAAS,EAAE;AAAvC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,gBAAF;AAFhB,CAbsC,EAiBtC;AACCE,EAAAA,cAAc,EAAE;AAAEE,IAAAA,SAAS,EAAE;AAAb,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,iCAAF;AAFhB,CAjBsC,EAqBtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,SAAZ;AAAuBC,IAAAA,SAAS,EAAE;AAAlC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,8BAAF;AAFhB,CArBsC,EAyBtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,QAAZ;AAAsBC,IAAAA,SAAS,EAAE;AAAjC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,kCAAF;AAFhB,CAzBsC,EA6BtC;AACCE,EAAAA,cAAc,EAAE;AAAEC,IAAAA,QAAQ,EAAE,QAAZ;AAAsBC,IAAAA,SAAS,EAAE;AAAjC,GADjB;AAECC,EAAAA,WAAW,EAAEL,EAAE,CAAE,qCAAF;AAFhB,CA7BsC,CAAhC","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\nexport const textFormattingShortcuts = [\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'b' },\n\t\tdescription: __( 'Make the selected text bold.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'i' },\n\t\tdescription: __( 'Make the selected text italic.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'k' },\n\t\tdescription: __( 'Convert the selected text into a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primaryShift', character: 'k' },\n\t\tdescription: __( 'Remove a link.' ),\n\t},\n\t{\n\t\tkeyCombination: { character: '[[' },\n\t\tdescription: __( 'Insert a link to a post or page' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'primary', character: 'u' },\n\t\tdescription: __( 'Underline the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'd' },\n\t\tdescription: __( 'Strikethrough the selected text.' ),\n\t},\n\t{\n\t\tkeyCombination: { modifier: 'access', character: 'x' },\n\t\tdescription: __( 'Make the selected text inline code.' ),\n\t},\n];\n"]}
@@ -620,19 +620,14 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
620
620
 
621
621
  .edit-widgets-header__actions {
622
622
  display: flex;
623
- }
624
- .edit-widgets-header__actions .components-button {
625
- margin-left: 4px;
623
+ align-items: center;
624
+ gap: 4px;
626
625
  }
627
626
  @media (min-width: 600px) {
628
- .edit-widgets-header__actions .components-button {
629
- margin-left: 12px;
627
+ .edit-widgets-header__actions {
628
+ gap: 8px;
630
629
  }
631
630
  }
632
- .edit-widgets-header__actions .edit-widgets-more-menu .components-button,
633
- .edit-widgets-header__actions .interface-pinned-items .components-button {
634
- margin-left: 0;
635
- }
636
631
 
637
632
  .edit-widgets-header-toolbar {
638
633
  border: none;
@@ -620,19 +620,14 @@ body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .c
620
620
 
621
621
  .edit-widgets-header__actions {
622
622
  display: flex;
623
- }
624
- .edit-widgets-header__actions .components-button {
625
- margin-right: 4px;
623
+ align-items: center;
624
+ gap: 4px;
626
625
  }
627
626
  @media (min-width: 600px) {
628
- .edit-widgets-header__actions .components-button {
629
- margin-right: 12px;
627
+ .edit-widgets-header__actions {
628
+ gap: 8px;
630
629
  }
631
630
  }
632
- .edit-widgets-header__actions .edit-widgets-more-menu .components-button,
633
- .edit-widgets-header__actions .interface-pinned-items .components-button {
634
- margin-right: 0;
635
- }
636
631
 
637
632
  .edit-widgets-header-toolbar {
638
633
  border: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-widgets",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "Widgets Page module for WordPress..",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,30 +27,30 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.16.0",
30
- "@wordpress/api-fetch": "^6.8.0",
31
- "@wordpress/block-editor": "^9.3.0",
32
- "@wordpress/block-library": "^7.8.0",
33
- "@wordpress/blocks": "^11.10.0",
34
- "@wordpress/components": "^19.13.0",
35
- "@wordpress/compose": "^5.9.0",
36
- "@wordpress/core-data": "^4.9.0",
37
- "@wordpress/data": "^6.11.0",
38
- "@wordpress/deprecated": "^3.11.0",
39
- "@wordpress/dom": "^3.11.0",
40
- "@wordpress/element": "^4.9.0",
41
- "@wordpress/hooks": "^3.11.0",
42
- "@wordpress/i18n": "^4.11.0",
43
- "@wordpress/icons": "^9.2.0",
44
- "@wordpress/interface": "^4.10.0",
45
- "@wordpress/keyboard-shortcuts": "^3.9.0",
46
- "@wordpress/keycodes": "^3.11.0",
47
- "@wordpress/media-utils": "^4.2.0",
48
- "@wordpress/notices": "^3.11.0",
49
- "@wordpress/plugins": "^4.9.0",
50
- "@wordpress/preferences": "^2.3.0",
51
- "@wordpress/reusable-blocks": "^3.9.0",
52
- "@wordpress/url": "^3.12.0",
53
- "@wordpress/widgets": "^2.9.0",
30
+ "@wordpress/api-fetch": "^6.9.0",
31
+ "@wordpress/block-editor": "^9.4.0",
32
+ "@wordpress/block-library": "^7.9.0",
33
+ "@wordpress/blocks": "^11.11.0",
34
+ "@wordpress/components": "^19.14.0",
35
+ "@wordpress/compose": "^5.10.0",
36
+ "@wordpress/core-data": "^4.10.0",
37
+ "@wordpress/data": "^6.12.0",
38
+ "@wordpress/deprecated": "^3.12.0",
39
+ "@wordpress/dom": "^3.12.0",
40
+ "@wordpress/element": "^4.10.0",
41
+ "@wordpress/hooks": "^3.12.0",
42
+ "@wordpress/i18n": "^4.12.0",
43
+ "@wordpress/icons": "^9.3.0",
44
+ "@wordpress/interface": "^4.11.0",
45
+ "@wordpress/keyboard-shortcuts": "^3.10.0",
46
+ "@wordpress/keycodes": "^3.12.0",
47
+ "@wordpress/media-utils": "^4.3.0",
48
+ "@wordpress/notices": "^3.12.0",
49
+ "@wordpress/plugins": "^4.10.0",
50
+ "@wordpress/preferences": "^2.4.0",
51
+ "@wordpress/reusable-blocks": "^3.10.0",
52
+ "@wordpress/url": "^3.13.0",
53
+ "@wordpress/widgets": "^2.10.0",
54
54
  "classnames": "^2.3.1",
55
55
  "lodash": "^4.17.21"
56
56
  },
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
64
+ "gitHead": "a80eeb62ec7cb1418b9915c277e084a29d6665e3"
65
65
  }
@@ -25,18 +25,12 @@
25
25
 
26
26
  .edit-widgets-header__actions {
27
27
  display: flex;
28
+ align-items: center;
28
29
 
29
- .components-button {
30
- margin-right: $grid-unit-05;
31
-
32
- @include break-small() {
33
- margin-right: $grid-unit-15;
34
- }
35
- }
30
+ gap: $grid-unit-05;
36
31
 
37
- .edit-widgets-more-menu .components-button,
38
- .interface-pinned-items .components-button {
39
- margin-right: 0;
32
+ @include break-small() {
33
+ gap: $grid-unit-10;
40
34
  }
41
35
  }
42
36
 
@@ -20,8 +20,20 @@ export const textFormattingShortcuts = [
20
20
  keyCombination: { modifier: 'primaryShift', character: 'k' },
21
21
  description: __( 'Remove a link.' ),
22
22
  },
23
+ {
24
+ keyCombination: { character: '[[' },
25
+ description: __( 'Insert a link to a post or page' ),
26
+ },
23
27
  {
24
28
  keyCombination: { modifier: 'primary', character: 'u' },
25
29
  description: __( 'Underline the selected text.' ),
26
30
  },
31
+ {
32
+ keyCombination: { modifier: 'access', character: 'd' },
33
+ description: __( 'Strikethrough the selected text.' ),
34
+ },
35
+ {
36
+ keyCombination: { modifier: 'access', character: 'x' },
37
+ description: __( 'Make the selected text inline code.' ),
38
+ },
27
39
  ];