@wordpress/block-library 9.26.1-next.719a03cbe.0 → 9.27.1-next.46f643fa0.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 +2 -0
- package/build/categories/edit.js +15 -3
- package/build/categories/edit.js.map +1 -1
- package/build/cover/edit/block-controls.js +4 -2
- package/build/cover/edit/block-controls.js.map +1 -1
- package/build/cover/edit/index.js +6 -3
- package/build/cover/edit/index.js.map +1 -1
- package/build/cover/edit/inspector-controls.js +13 -4
- package/build/cover/edit/inspector-controls.js.map +1 -1
- package/build/cover/index.js +6 -0
- package/build/cover/index.js.map +1 -1
- package/build/cover/save.js +3 -1
- package/build/cover/save.js.map +1 -1
- package/build/file/edit.js +2 -1
- package/build/file/edit.js.map +1 -1
- package/build/latest-posts/edit.js +0 -2
- package/build/latest-posts/edit.js.map +1 -1
- package/build/media-text/edit.js +2 -2
- package/build/media-text/edit.js.map +1 -1
- package/build/navigation-link/edit.js +32 -15
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/update-attributes.js +112 -14
- package/build/navigation-link/update-attributes.js.map +1 -1
- package/build/navigation-submenu/edit.js +19 -2
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/paragraph/edit.js +2 -2
- package/build/paragraph/edit.js.map +1 -1
- package/build/post-content/edit.js +78 -16
- package/build/post-content/edit.js.map +1 -1
- package/build/post-content/index.js +6 -0
- package/build/post-content/index.js.map +1 -1
- package/build/post-date/deprecated.js +104 -1
- package/build/post-date/deprecated.js.map +1 -1
- package/build/post-date/edit.js +32 -32
- package/build/post-date/edit.js.map +1 -1
- package/build/post-date/index.js +4 -4
- package/build/post-date/index.js.map +1 -1
- package/build/post-date/variations.js +32 -3
- package/build/post-date/variations.js.map +1 -1
- package/build/separator/edit.js +5 -30
- package/build/separator/edit.js.map +1 -1
- package/build/site-tagline/index.js +1 -1
- package/build/social-link/variations.js +51 -49
- package/build/social-link/variations.js.map +1 -1
- package/build/utils/poster-image.js +93 -0
- package/build/utils/poster-image.js.map +1 -0
- package/build/video/edit.js +7 -6
- package/build/video/edit.js.map +1 -1
- package/build/video/tracks-editor.js +95 -104
- package/build/video/tracks-editor.js.map +1 -1
- package/build/video/tracks.js +6 -2
- package/build/video/tracks.js.map +1 -1
- package/build-module/categories/edit.js +15 -3
- package/build-module/categories/edit.js.map +1 -1
- package/build-module/cover/edit/block-controls.js +4 -2
- package/build-module/cover/edit/block-controls.js.map +1 -1
- package/build-module/cover/edit/index.js +6 -3
- package/build-module/cover/edit/index.js.map +1 -1
- package/build-module/cover/edit/inspector-controls.js +12 -4
- package/build-module/cover/edit/inspector-controls.js.map +1 -1
- package/build-module/cover/index.js +6 -0
- package/build-module/cover/index.js.map +1 -1
- package/build-module/cover/save.js +3 -1
- package/build-module/cover/save.js.map +1 -1
- package/build-module/file/edit.js +2 -1
- package/build-module/file/edit.js.map +1 -1
- package/build-module/latest-posts/edit.js +0 -2
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/media-text/edit.js +2 -2
- package/build-module/media-text/edit.js.map +1 -1
- package/build-module/navigation-link/edit.js +32 -15
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/update-attributes.js +113 -15
- package/build-module/navigation-link/update-attributes.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +20 -3
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/paragraph/edit.js +2 -2
- package/build-module/paragraph/edit.js.map +1 -1
- package/build-module/post-content/edit.js +80 -18
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-content/index.js +6 -0
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-date/deprecated.js +104 -1
- package/build-module/post-date/deprecated.js.map +1 -1
- package/build-module/post-date/edit.js +35 -35
- package/build-module/post-date/edit.js.map +1 -1
- package/build-module/post-date/index.js +4 -4
- package/build-module/post-date/index.js.map +1 -1
- package/build-module/post-date/variations.js +32 -3
- package/build-module/post-date/variations.js.map +1 -1
- package/build-module/separator/edit.js +6 -31
- package/build-module/separator/edit.js.map +1 -1
- package/build-module/site-tagline/index.js +1 -1
- package/build-module/social-link/variations.js +52 -50
- package/build-module/social-link/variations.js.map +1 -1
- package/build-module/utils/poster-image.js +85 -0
- package/build-module/utils/poster-image.js.map +1 -0
- package/build-module/video/edit.js +7 -6
- package/build-module/video/edit.js.map +1 -1
- package/build-module/video/tracks-editor.js +96 -105
- package/build-module/video/tracks-editor.js.map +1 -1
- package/build-module/video/tracks.js +6 -2
- package/build-module/video/tracks.js.map +1 -1
- package/build-style/archives/editor-rtl.css +0 -4
- package/build-style/archives/editor.css +0 -4
- package/build-style/editor-rtl.css +67 -18
- package/build-style/editor.css +67 -18
- package/build-style/file/style-rtl.css +1 -1
- package/build-style/file/style.css +1 -1
- package/build-style/navigation/editor-rtl.css +6 -6
- package/build-style/navigation/editor.css +6 -6
- package/build-style/navigation/style-rtl.css +1 -0
- package/build-style/navigation/style.css +1 -0
- package/build-style/page-list/editor-rtl.css +0 -4
- package/build-style/page-list/editor.css +0 -4
- package/build-style/style-rtl.css +3 -1
- package/build-style/style.css +3 -1
- package/build-style/video/editor-rtl.css +0 -4
- package/build-style/video/editor.css +0 -4
- package/build-style/video/style-rtl.css +1 -0
- package/build-style/video/style.css +1 -0
- package/package.json +35 -35
- package/src/archives/editor.scss +0 -4
- package/src/categories/edit.js +13 -1
- package/src/comments-pagination/index.php +7 -2
- package/src/cover/block.json +6 -0
- package/src/cover/edit/block-controls.js +22 -17
- package/src/cover/edit/index.js +4 -1
- package/src/cover/edit/inspector-controls.js +15 -2
- package/src/cover/save.js +2 -0
- package/src/editor.scss +1 -0
- package/src/file/edit.js +4 -1
- package/src/file/style.scss +1 -1
- package/src/latest-posts/edit.js +0 -2
- package/src/media-text/edit.js +1 -1
- package/src/navigation/style.scss +1 -0
- package/src/navigation-link/edit.js +28 -16
- package/src/navigation-link/test/edit.js +738 -6
- package/src/navigation-link/update-attributes.js +125 -12
- package/src/navigation-submenu/edit.js +21 -1
- package/src/page-list/editor.scss +0 -6
- package/src/paragraph/edit.js +2 -2
- package/src/post-content/block.json +6 -0
- package/src/post-content/edit.js +71 -19
- package/src/post-content/index.php +11 -4
- package/src/post-date/block.json +4 -4
- package/src/post-date/deprecated.js +104 -1
- package/src/post-date/edit.js +74 -86
- package/src/post-date/index.php +55 -28
- package/src/post-date/variations.js +37 -3
- package/src/post-featured-image/index.php +3 -2
- package/src/separator/edit.js +8 -43
- package/src/site-tagline/block.json +1 -1
- package/src/social-link/README.md +21 -0
- package/src/social-link/index.php +49 -49
- package/src/social-link/variations.js +51 -49
- package/src/utils/poster-image.js +131 -0
- package/src/utils/poster-image.scss +75 -0
- package/src/video/edit.js +8 -6
- package/src/video/editor.scss +0 -6
- package/src/video/index.php +91 -0
- package/src/video/style.native.scss +1 -0
- package/src/video/style.scss +1 -0
- package/src/video/tracks-editor.js +93 -103
- package/src/video/tracks.js +2 -1
- package/build/video/poster-image.js +0 -81
- package/build/video/poster-image.js.map +0 -1
- package/build-module/video/poster-image.js +0 -74
- package/build-module/video/poster-image.js.map +0 -1
- package/src/video/poster-image.js +0 -86
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["postDate","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","
|
|
1
|
+
{"version":3,"names":["postDate","icon","initBlock","metadata","$schema","apiVersion","name","title","category","description","textdomain","attributes","datetime","type","role","textAlign","format","isLink","usesContext","example","viewportWidth","supports","html","color","gradients","link","__experimentalDefaultControls","background","text","spacing","margin","padding","typography","fontSize","lineHeight","__experimentalFontFamily","__experimentalFontWeight","__experimentalFontStyle","__experimentalTextTransform","__experimentalTextDecoration","__experimentalLetterSpacing","interactivity","clientNavigation","__experimentalBorder","radius","width","style","edit","deprecated","variations","settings","init"],"sources":["@wordpress/block-library/src/post-date/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { postDate as icon } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport initBlock from '../utils/init-block';\nimport metadata from './block.json';\nimport edit from './edit';\nimport deprecated from './deprecated';\nimport variations from './variations';\n\nconst { name } = metadata;\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\tedit,\n\tdeprecated,\n\tvariations,\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,QAAQ,IAAIC,IAAI,QAAQ,kBAAkB;;AAEnD;AACA;AACA;AACA,OAAOC,SAAS,MAAM,qBAAqB;AAAC,MAAAC,QAAA;EAAAC,OAAA;EAAAC,UAAA;EAAAC,IAAA;EAAAC,KAAA;EAAAC,QAAA;EAAAC,WAAA;EAAAC,UAAA;EAAAC,UAAA;IAAAC,QAAA;MAAAC,IAAA;MAAAC,IAAA;IAAA;IAAAC,SAAA;MAAAF,IAAA;IAAA;IAAAG,MAAA;MAAAH,IAAA;IAAA;IAAAI,MAAA;MAAAJ,IAAA;MAAA;MAAAC,IAAA;IAAA;EAAA;EAAAI,WAAA;EAAAC,OAAA;IAAAC,aAAA;EAAA;EAAAC,QAAA;IAAAC,IAAA;IAAAC,KAAA;MAAAC,SAAA;MAAAC,IAAA;MAAAC,6BAAA;QAAAC,UAAA;QAAAC,IAAA;QAAAH,IAAA;MAAA;IAAA;IAAAI,OAAA;MAAAC,MAAA;MAAAC,OAAA;IAAA;IAAAC,UAAA;MAAAC,QAAA;MAAAC,UAAA;MAAAC,wBAAA;MAAAC,wBAAA;MAAAC,uBAAA;MAAAC,2BAAA;MAAAC,4BAAA;MAAAC,2BAAA;MAAAd,6BAAA;QAAAO,QAAA;MAAA;IAAA;IAAAQ,aAAA;MAAAC,gBAAA;IAAA;IAAAC,oBAAA;MAAAC,MAAA;MAAArB,KAAA;MAAAsB,KAAA;MAAAC,KAAA;MAAApB,6BAAA;QAAAkB,MAAA;QAAArB,KAAA;QAAAsB,KAAA;QAAAC,KAAA;MAAA;IAAA;EAAA;AAAA;AAE5C,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,UAAU,MAAM,cAAc;AACrC,OAAOC,UAAU,MAAM,cAAc;AAErC,MAAM;EAAE3C;AAAK,CAAC,GAAGH,QAAQ;AACzB,SAASA,QAAQ,EAAEG,IAAI;AAEvB,OAAO,MAAM4C,QAAQ,GAAG;EACvBjD,IAAI;EACJ8C,IAAI;EACJC,UAAU;EACVC;AACD,CAAC;AAED,OAAO,MAAME,IAAI,GAAGA,CAAA,KAAMjD,SAAS,CAAE;EAAEI,IAAI;EAAEH,QAAQ;EAAE+C;AAAS,CAAE,CAAC","ignoreList":[]}
|
|
@@ -4,14 +4,43 @@
|
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
5
|
import { postDate } from '@wordpress/icons';
|
|
6
6
|
const variations = [{
|
|
7
|
+
name: 'post-date',
|
|
8
|
+
title: __('Post Date'),
|
|
9
|
+
description: __("Display a post's publish date."),
|
|
10
|
+
attributes: {
|
|
11
|
+
metadata: {
|
|
12
|
+
bindings: {
|
|
13
|
+
datetime: {
|
|
14
|
+
source: 'core/post-data',
|
|
15
|
+
args: {
|
|
16
|
+
key: 'date'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
scope: ['block', 'inserter', 'transform'],
|
|
23
|
+
isActive: blockAttributes => blockAttributes?.metadata?.bindings?.datetime?.source === 'core/post-data' && blockAttributes?.metadata?.bindings?.datetime?.args?.key === 'date',
|
|
24
|
+
icon: postDate
|
|
25
|
+
}, {
|
|
7
26
|
name: 'post-date-modified',
|
|
8
27
|
title: __('Modified Date'),
|
|
9
28
|
description: __("Display a post's last updated date."),
|
|
10
29
|
attributes: {
|
|
11
|
-
|
|
30
|
+
metadata: {
|
|
31
|
+
bindings: {
|
|
32
|
+
datetime: {
|
|
33
|
+
source: 'core/post-data',
|
|
34
|
+
args: {
|
|
35
|
+
key: 'modified'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
className: 'wp-block-post-date__modified-date'
|
|
12
41
|
},
|
|
13
|
-
scope: ['block', 'inserter'],
|
|
14
|
-
isActive: blockAttributes => blockAttributes
|
|
42
|
+
scope: ['block', 'inserter', 'transform'],
|
|
43
|
+
isActive: blockAttributes => blockAttributes?.metadata?.bindings?.datetime?.source === 'core/post-data' && blockAttributes?.metadata?.bindings?.datetime?.args?.key === 'modified',
|
|
15
44
|
icon: postDate
|
|
16
45
|
}];
|
|
17
46
|
export default variations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__","postDate","variations","name","title","description","attributes","
|
|
1
|
+
{"version":3,"names":["__","postDate","variations","name","title","description","attributes","metadata","bindings","datetime","source","args","key","scope","isActive","blockAttributes","icon","className"],"sources":["@wordpress/block-library/src/post-date/variations.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { postDate } from '@wordpress/icons';\n\nconst variations = [\n\t{\n\t\tname: 'post-date',\n\t\ttitle: __( 'Post Date' ),\n\t\tdescription: __( \"Display a post's publish date.\" ),\n\t\tattributes: {\n\t\t\tmetadata: {\n\t\t\t\tbindings: {\n\t\t\t\t\tdatetime: {\n\t\t\t\t\t\tsource: 'core/post-data',\n\t\t\t\t\t\targs: { key: 'date' },\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tscope: [ 'block', 'inserter', 'transform' ],\n\t\tisActive: ( blockAttributes ) =>\n\t\t\tblockAttributes?.metadata?.bindings?.datetime?.source ===\n\t\t\t\t'core/post-data' &&\n\t\t\tblockAttributes?.metadata?.bindings?.datetime?.args?.key === 'date',\n\t\ticon: postDate,\n\t},\n\t{\n\t\tname: 'post-date-modified',\n\t\ttitle: __( 'Modified Date' ),\n\t\tdescription: __( \"Display a post's last updated date.\" ),\n\t\tattributes: {\n\t\t\tmetadata: {\n\t\t\t\tbindings: {\n\t\t\t\t\tdatetime: {\n\t\t\t\t\t\tsource: 'core/post-data',\n\t\t\t\t\t\targs: { key: 'modified' },\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tclassName: 'wp-block-post-date__modified-date',\n\t\t},\n\t\tscope: [ 'block', 'inserter', 'transform' ],\n\t\tisActive: ( blockAttributes ) =>\n\t\t\tblockAttributes?.metadata?.bindings?.datetime?.source ===\n\t\t\t\t'core/post-data' &&\n\t\t\tblockAttributes?.metadata?.bindings?.datetime?.args?.key ===\n\t\t\t\t'modified',\n\t\ticon: postDate,\n\t},\n];\n\nexport default variations;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,MAAMC,UAAU,GAAG,CAClB;EACCC,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAEJ,EAAE,CAAE,WAAY,CAAC;EACxBK,WAAW,EAAEL,EAAE,CAAE,gCAAiC,CAAC;EACnDM,UAAU,EAAE;IACXC,QAAQ,EAAE;MACTC,QAAQ,EAAE;QACTC,QAAQ,EAAE;UACTC,MAAM,EAAE,gBAAgB;UACxBC,IAAI,EAAE;YAAEC,GAAG,EAAE;UAAO;QACrB;MACD;IACD;EACD,CAAC;EACDC,KAAK,EAAE,CAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAE;EAC3CC,QAAQ,EAAIC,eAAe,IAC1BA,eAAe,EAAER,QAAQ,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,MAAM,KACpD,gBAAgB,IACjBK,eAAe,EAAER,QAAQ,EAAEC,QAAQ,EAAEC,QAAQ,EAAEE,IAAI,EAAEC,GAAG,KAAK,MAAM;EACpEI,IAAI,EAAEf;AACP,CAAC,EACD;EACCE,IAAI,EAAE,oBAAoB;EAC1BC,KAAK,EAAEJ,EAAE,CAAE,eAAgB,CAAC;EAC5BK,WAAW,EAAEL,EAAE,CAAE,qCAAsC,CAAC;EACxDM,UAAU,EAAE;IACXC,QAAQ,EAAE;MACTC,QAAQ,EAAE;QACTC,QAAQ,EAAE;UACTC,MAAM,EAAE,gBAAgB;UACxBC,IAAI,EAAE;YAAEC,GAAG,EAAE;UAAW;QACzB;MACD;IACD,CAAC;IACDK,SAAS,EAAE;EACZ,CAAC;EACDJ,KAAK,EAAE,CAAE,OAAO,EAAE,UAAU,EAAE,WAAW,CAAE;EAC3CC,QAAQ,EAAIC,eAAe,IAC1BA,eAAe,EAAER,QAAQ,EAAEC,QAAQ,EAAEC,QAAQ,EAAEC,MAAM,KACpD,gBAAgB,IACjBK,eAAe,EAAER,QAAQ,EAAEC,QAAQ,EAAEC,QAAQ,EAAEE,IAAI,EAAEC,GAAG,KACvD,UAAU;EACZI,IAAI,EAAEf;AACP,CAAC,CACD;AAED,eAAeC,UAAU","ignoreList":[]}
|
|
@@ -6,16 +6,14 @@ import clsx from 'clsx';
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Platform } from '@wordpress/element';
|
|
9
|
+
import { getColorClassName, InspectorControls, useBlockProps, __experimentalUseColorProps as useColorProps } from '@wordpress/block-editor';
|
|
10
|
+
import { HorizontalRule, SelectControl } from '@wordpress/components';
|
|
12
11
|
import { __ } from '@wordpress/i18n';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Internal dependencies
|
|
16
15
|
*/
|
|
17
16
|
import useDeprecatedOpacity from './use-deprecated-opacity';
|
|
18
|
-
import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
|
|
19
17
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
18
|
const HtmlElementControl = ({
|
|
21
19
|
tagName,
|
|
@@ -52,7 +50,6 @@ export default function SeparatorEdit({
|
|
|
52
50
|
const colorProps = useColorProps(attributes);
|
|
53
51
|
const currentColor = colorProps?.style?.backgroundColor;
|
|
54
52
|
const hasCustomColor = !!style?.color?.background;
|
|
55
|
-
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
|
|
56
53
|
useDeprecatedOpacity(opacity, currentColor, setAttributes);
|
|
57
54
|
|
|
58
55
|
// The dots styles uses text for the dots, to change those dots color is
|
|
@@ -71,32 +68,10 @@ export default function SeparatorEdit({
|
|
|
71
68
|
const Wrapper = tagName === 'hr' ? HorizontalRule : tagName;
|
|
72
69
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
73
70
|
children: [/*#__PURE__*/_jsx(InspectorControls, {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
setAttributes: setAttributes
|
|
79
|
-
})
|
|
80
|
-
}) : /*#__PURE__*/_jsx(ToolsPanel, {
|
|
81
|
-
label: __('Settings'),
|
|
82
|
-
resetAll: () => {
|
|
83
|
-
setAttributes({
|
|
84
|
-
tagName: 'hr'
|
|
85
|
-
});
|
|
86
|
-
},
|
|
87
|
-
dropdownMenuProps: dropdownMenuProps,
|
|
88
|
-
children: /*#__PURE__*/_jsx(ToolsPanelItem, {
|
|
89
|
-
hasValue: () => tagName !== 'hr',
|
|
90
|
-
label: __('HTML element'),
|
|
91
|
-
onDeselect: () => setAttributes({
|
|
92
|
-
tagName: 'hr'
|
|
93
|
-
}),
|
|
94
|
-
isShownByDefault: true,
|
|
95
|
-
children: /*#__PURE__*/_jsx(HtmlElementControl, {
|
|
96
|
-
tagName: tagName,
|
|
97
|
-
setAttributes: setAttributes
|
|
98
|
-
})
|
|
99
|
-
})
|
|
71
|
+
group: "advanced",
|
|
72
|
+
children: /*#__PURE__*/_jsx(HtmlElementControl, {
|
|
73
|
+
tagName: tagName,
|
|
74
|
+
setAttributes: setAttributes
|
|
100
75
|
})
|
|
101
76
|
}), /*#__PURE__*/_jsx(Wrapper, {
|
|
102
77
|
...useBlockProps({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clsx","
|
|
1
|
+
{"version":3,"names":["clsx","getColorClassName","InspectorControls","useBlockProps","__experimentalUseColorProps","useColorProps","HorizontalRule","SelectControl","__","useDeprecatedOpacity","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","HtmlElementControl","tagName","setAttributes","label","value","onChange","newValue","options","help","__next40pxDefaultSize","__nextHasNoMarginBottom","SeparatorEdit","attributes","backgroundColor","opacity","style","colorProps","currentColor","hasCustomColor","color","background","colorClass","className","styles","Wrapper","children","group","undefined"],"sources":["@wordpress/block-library/src/separator/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tgetColorClassName,\n\tInspectorControls,\n\tuseBlockProps,\n\t__experimentalUseColorProps as useColorProps,\n} from '@wordpress/block-editor';\nimport { HorizontalRule, SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport useDeprecatedOpacity from './use-deprecated-opacity';\n\nconst HtmlElementControl = ( { tagName, setAttributes } ) => {\n\treturn (\n\t\t<SelectControl\n\t\t\tlabel={ __( 'HTML element' ) }\n\t\t\tvalue={ tagName }\n\t\t\tonChange={ ( newValue ) => setAttributes( { tagName: newValue } ) }\n\t\t\toptions={ [\n\t\t\t\t{ label: __( 'Default (<hr>)' ), value: 'hr' },\n\t\t\t\t{ label: '<div>', value: 'div' },\n\t\t\t] }\n\t\t\thelp={\n\t\t\t\ttagName === 'hr'\n\t\t\t\t\t? __(\n\t\t\t\t\t\t\t'Only select <hr> if the separator conveys important information and should be announced by screen readers.'\n\t\t\t\t\t )\n\t\t\t\t\t: __(\n\t\t\t\t\t\t\t'The <div> element should only be used if the block is a design element with no semantic meaning.'\n\t\t\t\t\t )\n\t\t\t}\n\t\t\t__next40pxDefaultSize\n\t\t\t__nextHasNoMarginBottom\n\t\t/>\n\t);\n};\n\nexport default function SeparatorEdit( { attributes, setAttributes } ) {\n\tconst { backgroundColor, opacity, style, tagName } = attributes;\n\tconst colorProps = useColorProps( attributes );\n\tconst currentColor = colorProps?.style?.backgroundColor;\n\tconst hasCustomColor = !! style?.color?.background;\n\n\tuseDeprecatedOpacity( opacity, currentColor, setAttributes );\n\n\t// The dots styles uses text for the dots, to change those dots color is\n\t// using color, not backgroundColor.\n\tconst colorClass = getColorClassName( 'color', backgroundColor );\n\n\tconst className = clsx(\n\t\t{\n\t\t\t'has-text-color': backgroundColor || currentColor,\n\t\t\t[ colorClass ]: colorClass,\n\t\t\t'has-css-opacity': opacity === 'css',\n\t\t\t'has-alpha-channel-opacity': opacity === 'alpha-channel',\n\t\t},\n\t\tcolorProps.className\n\t);\n\n\tconst styles = {\n\t\tcolor: currentColor,\n\t\tbackgroundColor: currentColor,\n\t};\n\tconst Wrapper = tagName === 'hr' ? HorizontalRule : tagName;\n\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<HtmlElementControl\n\t\t\t\t\ttagName={ tagName }\n\t\t\t\t\tsetAttributes={ setAttributes }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t\t<Wrapper\n\t\t\t\t{ ...useBlockProps( {\n\t\t\t\t\tclassName,\n\t\t\t\t\tstyle: hasCustomColor ? styles : undefined,\n\t\t\t\t} ) }\n\t\t\t/>\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,iBAAiB,EACjBC,iBAAiB,EACjBC,aAAa,EACbC,2BAA2B,IAAIC,aAAa,QACtC,yBAAyB;AAChC,SAASC,cAAc,EAAEC,aAAa,QAAQ,uBAAuB;AACrE,SAASC,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,OAAOC,oBAAoB,MAAM,0BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5D,MAAMC,kBAAkB,GAAGA,CAAE;EAAEC,OAAO;EAAEC;AAAc,CAAC,KAAM;EAC5D,oBACCP,IAAA,CAACJ,aAAa;IACbY,KAAK,EAAGX,EAAE,CAAE,cAAe,CAAG;IAC9BY,KAAK,EAAGH,OAAS;IACjBI,QAAQ,EAAKC,QAAQ,IAAMJ,aAAa,CAAE;MAAED,OAAO,EAAEK;IAAS,CAAE,CAAG;IACnEC,OAAO,EAAG,CACT;MAAEJ,KAAK,EAAEX,EAAE,CAAE,gBAAiB,CAAC;MAAEY,KAAK,EAAE;IAAK,CAAC,EAC9C;MAAED,KAAK,EAAE,OAAO;MAAEC,KAAK,EAAE;IAAM,CAAC,CAC9B;IACHI,IAAI,EACHP,OAAO,KAAK,IAAI,GACbT,EAAE,CACF,4GACA,CAAC,GACDA,EAAE,CACF,kGACA,CACH;IACDiB,qBAAqB;IACrBC,uBAAuB;EAAA,CACvB,CAAC;AAEJ,CAAC;AAED,eAAe,SAASC,aAAaA,CAAE;EAAEC,UAAU;EAAEV;AAAc,CAAC,EAAG;EACtE,MAAM;IAAEW,eAAe;IAAEC,OAAO;IAAEC,KAAK;IAAEd;EAAQ,CAAC,GAAGW,UAAU;EAC/D,MAAMI,UAAU,GAAG3B,aAAa,CAAEuB,UAAW,CAAC;EAC9C,MAAMK,YAAY,GAAGD,UAAU,EAAED,KAAK,EAAEF,eAAe;EACvD,MAAMK,cAAc,GAAG,CAAC,CAAEH,KAAK,EAAEI,KAAK,EAAEC,UAAU;EAElD3B,oBAAoB,CAAEqB,OAAO,EAAEG,YAAY,EAAEf,aAAc,CAAC;;EAE5D;EACA;EACA,MAAMmB,UAAU,GAAGpC,iBAAiB,CAAE,OAAO,EAAE4B,eAAgB,CAAC;EAEhE,MAAMS,SAAS,GAAGtC,IAAI,CACrB;IACC,gBAAgB,EAAE6B,eAAe,IAAII,YAAY;IACjD,CAAEI,UAAU,GAAIA,UAAU;IAC1B,iBAAiB,EAAEP,OAAO,KAAK,KAAK;IACpC,2BAA2B,EAAEA,OAAO,KAAK;EAC1C,CAAC,EACDE,UAAU,CAACM,SACZ,CAAC;EAED,MAAMC,MAAM,GAAG;IACdJ,KAAK,EAAEF,YAAY;IACnBJ,eAAe,EAAEI;EAClB,CAAC;EACD,MAAMO,OAAO,GAAGvB,OAAO,KAAK,IAAI,GAAGX,cAAc,GAAGW,OAAO;EAE3D,oBACCF,KAAA,CAAAF,SAAA;IAAA4B,QAAA,gBACC9B,IAAA,CAACT,iBAAiB;MAACwC,KAAK,EAAC,UAAU;MAAAD,QAAA,eAClC9B,IAAA,CAACK,kBAAkB;QAClBC,OAAO,EAAGA,OAAS;QACnBC,aAAa,EAAGA;MAAe,CAC/B;IAAC,CACgB,CAAC,eACpBP,IAAA,CAAC6B,OAAO;MAAA,GACFrC,aAAa,CAAE;QACnBmC,SAAS;QACTP,KAAK,EAAEG,cAAc,GAAGK,MAAM,GAAGI;MAClC,CAAE;IAAC,CACH,CAAC;EAAA,CACD,CAAC;AAEL","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ const metadata = {
|
|
|
8
8
|
name: "core/site-tagline",
|
|
9
9
|
title: "Site Tagline",
|
|
10
10
|
category: "theme",
|
|
11
|
-
description: "Describe in a few words what
|
|
11
|
+
description: "Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",
|
|
12
12
|
keywords: ["description"],
|
|
13
13
|
textdomain: "default",
|
|
14
14
|
attributes: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { _x } from '@wordpress/i18n';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
@@ -13,175 +13,175 @@ const variations = [{
|
|
|
13
13
|
attributes: {
|
|
14
14
|
service: 'wordpress'
|
|
15
15
|
},
|
|
16
|
-
title:
|
|
16
|
+
title: _x('WordPress', 'social link block variation name'),
|
|
17
17
|
icon: WordPressIcon
|
|
18
18
|
}, {
|
|
19
19
|
name: 'fivehundredpx',
|
|
20
20
|
attributes: {
|
|
21
21
|
service: 'fivehundredpx'
|
|
22
22
|
},
|
|
23
|
-
title:
|
|
23
|
+
title: _x('500px', 'social link block variation name'),
|
|
24
24
|
icon: FivehundredpxIcon
|
|
25
25
|
}, {
|
|
26
26
|
name: 'amazon',
|
|
27
27
|
attributes: {
|
|
28
28
|
service: 'amazon'
|
|
29
29
|
},
|
|
30
|
-
title:
|
|
30
|
+
title: _x('Amazon', 'social link block variation name'),
|
|
31
31
|
icon: AmazonIcon
|
|
32
32
|
}, {
|
|
33
33
|
name: 'bandcamp',
|
|
34
34
|
attributes: {
|
|
35
35
|
service: 'bandcamp'
|
|
36
36
|
},
|
|
37
|
-
title:
|
|
37
|
+
title: _x('Bandcamp', 'social link block variation name'),
|
|
38
38
|
icon: BandcampIcon
|
|
39
39
|
}, {
|
|
40
40
|
name: 'behance',
|
|
41
41
|
attributes: {
|
|
42
42
|
service: 'behance'
|
|
43
43
|
},
|
|
44
|
-
title:
|
|
44
|
+
title: _x('Behance', 'social link block variation name'),
|
|
45
45
|
icon: BehanceIcon
|
|
46
46
|
}, {
|
|
47
47
|
name: 'bluesky',
|
|
48
48
|
attributes: {
|
|
49
49
|
service: 'bluesky'
|
|
50
50
|
},
|
|
51
|
-
title:
|
|
51
|
+
title: _x('Bluesky', 'social link block variation name'),
|
|
52
52
|
icon: BlueskyIcon
|
|
53
53
|
}, {
|
|
54
54
|
name: 'chain',
|
|
55
55
|
attributes: {
|
|
56
56
|
service: 'chain'
|
|
57
57
|
},
|
|
58
|
-
title:
|
|
58
|
+
title: _x('Link', 'social link block variation name'),
|
|
59
59
|
icon: ChainIcon
|
|
60
60
|
}, {
|
|
61
61
|
name: 'codepen',
|
|
62
62
|
attributes: {
|
|
63
63
|
service: 'codepen'
|
|
64
64
|
},
|
|
65
|
-
title:
|
|
65
|
+
title: _x('CodePen', 'social link block variation name'),
|
|
66
66
|
icon: CodepenIcon
|
|
67
67
|
}, {
|
|
68
68
|
name: 'deviantart',
|
|
69
69
|
attributes: {
|
|
70
70
|
service: 'deviantart'
|
|
71
71
|
},
|
|
72
|
-
title:
|
|
72
|
+
title: _x('DeviantArt', 'social link block variation name'),
|
|
73
73
|
icon: DeviantArtIcon
|
|
74
74
|
}, {
|
|
75
75
|
name: 'discord',
|
|
76
76
|
attributes: {
|
|
77
77
|
service: 'discord'
|
|
78
78
|
},
|
|
79
|
-
title:
|
|
79
|
+
title: _x('Discord', 'social link block variation name'),
|
|
80
80
|
icon: DiscordIcon
|
|
81
81
|
}, {
|
|
82
82
|
name: 'dribbble',
|
|
83
83
|
attributes: {
|
|
84
84
|
service: 'dribbble'
|
|
85
85
|
},
|
|
86
|
-
title:
|
|
86
|
+
title: _x('Dribbble', 'social link block variation name'),
|
|
87
87
|
icon: DribbbleIcon
|
|
88
88
|
}, {
|
|
89
89
|
name: 'dropbox',
|
|
90
90
|
attributes: {
|
|
91
91
|
service: 'dropbox'
|
|
92
92
|
},
|
|
93
|
-
title:
|
|
93
|
+
title: _x('Dropbox', 'social link block variation name'),
|
|
94
94
|
icon: DropboxIcon
|
|
95
95
|
}, {
|
|
96
96
|
name: 'etsy',
|
|
97
97
|
attributes: {
|
|
98
98
|
service: 'etsy'
|
|
99
99
|
},
|
|
100
|
-
title:
|
|
100
|
+
title: _x('Etsy', 'social link block variation name'),
|
|
101
101
|
icon: EtsyIcon
|
|
102
102
|
}, {
|
|
103
103
|
name: 'facebook',
|
|
104
104
|
attributes: {
|
|
105
105
|
service: 'facebook'
|
|
106
106
|
},
|
|
107
|
-
title:
|
|
107
|
+
title: _x('Facebook', 'social link block variation name'),
|
|
108
108
|
icon: FacebookIcon
|
|
109
109
|
}, {
|
|
110
110
|
name: 'feed',
|
|
111
111
|
attributes: {
|
|
112
112
|
service: 'feed'
|
|
113
113
|
},
|
|
114
|
-
title:
|
|
114
|
+
title: _x('RSS Feed', 'social link block variation name'),
|
|
115
115
|
icon: FeedIcon
|
|
116
116
|
}, {
|
|
117
117
|
name: 'flickr',
|
|
118
118
|
attributes: {
|
|
119
119
|
service: 'flickr'
|
|
120
120
|
},
|
|
121
|
-
title:
|
|
121
|
+
title: _x('Flickr', 'social link block variation name'),
|
|
122
122
|
icon: FlickrIcon
|
|
123
123
|
}, {
|
|
124
124
|
name: 'foursquare',
|
|
125
125
|
attributes: {
|
|
126
126
|
service: 'foursquare'
|
|
127
127
|
},
|
|
128
|
-
title:
|
|
128
|
+
title: _x('Foursquare', 'social link block variation name'),
|
|
129
129
|
icon: FoursquareIcon
|
|
130
130
|
}, {
|
|
131
131
|
name: 'goodreads',
|
|
132
132
|
attributes: {
|
|
133
133
|
service: 'goodreads'
|
|
134
134
|
},
|
|
135
|
-
title:
|
|
135
|
+
title: _x('Goodreads', 'social link block variation name'),
|
|
136
136
|
icon: GoodreadsIcon
|
|
137
137
|
}, {
|
|
138
138
|
name: 'google',
|
|
139
139
|
attributes: {
|
|
140
140
|
service: 'google'
|
|
141
141
|
},
|
|
142
|
-
title:
|
|
142
|
+
title: _x('Google', 'social link block variation name'),
|
|
143
143
|
icon: GoogleIcon
|
|
144
144
|
}, {
|
|
145
145
|
name: 'github',
|
|
146
146
|
attributes: {
|
|
147
147
|
service: 'github'
|
|
148
148
|
},
|
|
149
|
-
title:
|
|
149
|
+
title: _x('GitHub', 'social link block variation name'),
|
|
150
150
|
icon: GitHubIcon
|
|
151
151
|
}, {
|
|
152
152
|
name: 'gravatar',
|
|
153
153
|
attributes: {
|
|
154
154
|
service: 'gravatar'
|
|
155
155
|
},
|
|
156
|
-
title:
|
|
156
|
+
title: _x('Gravatar', 'social link block variation name'),
|
|
157
157
|
icon: GravatarIcon
|
|
158
158
|
}, {
|
|
159
159
|
name: 'instagram',
|
|
160
160
|
attributes: {
|
|
161
161
|
service: 'instagram'
|
|
162
162
|
},
|
|
163
|
-
title:
|
|
163
|
+
title: _x('Instagram', 'social link block variation name'),
|
|
164
164
|
icon: InstagramIcon
|
|
165
165
|
}, {
|
|
166
166
|
name: 'lastfm',
|
|
167
167
|
attributes: {
|
|
168
168
|
service: 'lastfm'
|
|
169
169
|
},
|
|
170
|
-
title:
|
|
170
|
+
title: _x('Last.fm', 'social link block variation name'),
|
|
171
171
|
icon: LastfmIcon
|
|
172
172
|
}, {
|
|
173
173
|
name: 'linkedin',
|
|
174
174
|
attributes: {
|
|
175
175
|
service: 'linkedin'
|
|
176
176
|
},
|
|
177
|
-
title:
|
|
177
|
+
title: _x('LinkedIn', 'social link block variation name'),
|
|
178
178
|
icon: LinkedInIcon
|
|
179
179
|
}, {
|
|
180
180
|
name: 'mail',
|
|
181
181
|
attributes: {
|
|
182
182
|
service: 'mail'
|
|
183
183
|
},
|
|
184
|
-
title:
|
|
184
|
+
title: _x('Mail', 'social link block variation name'),
|
|
185
185
|
keywords: ['email', 'e-mail'],
|
|
186
186
|
icon: MailIcon
|
|
187
187
|
}, {
|
|
@@ -189,140 +189,142 @@ const variations = [{
|
|
|
189
189
|
attributes: {
|
|
190
190
|
service: 'mastodon'
|
|
191
191
|
},
|
|
192
|
-
title:
|
|
192
|
+
title: _x('Mastodon', 'social link block variation name'),
|
|
193
193
|
icon: MastodonIcon
|
|
194
194
|
}, {
|
|
195
195
|
name: 'meetup',
|
|
196
196
|
attributes: {
|
|
197
197
|
service: 'meetup'
|
|
198
198
|
},
|
|
199
|
-
title:
|
|
199
|
+
title: _x('Meetup', 'social link block variation name'),
|
|
200
200
|
icon: MeetupIcon
|
|
201
201
|
}, {
|
|
202
202
|
name: 'medium',
|
|
203
203
|
attributes: {
|
|
204
204
|
service: 'medium'
|
|
205
205
|
},
|
|
206
|
-
title:
|
|
206
|
+
title: _x('Medium', 'social link block variation name'),
|
|
207
207
|
icon: MediumIcon
|
|
208
208
|
}, {
|
|
209
209
|
name: 'patreon',
|
|
210
210
|
attributes: {
|
|
211
211
|
service: 'patreon'
|
|
212
212
|
},
|
|
213
|
-
title:
|
|
213
|
+
title: _x('Patreon', 'social link block variation name'),
|
|
214
214
|
icon: PatreonIcon
|
|
215
215
|
}, {
|
|
216
216
|
name: 'pinterest',
|
|
217
217
|
attributes: {
|
|
218
218
|
service: 'pinterest'
|
|
219
219
|
},
|
|
220
|
-
title:
|
|
220
|
+
title: _x('Pinterest', 'social link block variation name'),
|
|
221
221
|
icon: PinterestIcon
|
|
222
222
|
}, {
|
|
223
223
|
name: 'pocket',
|
|
224
224
|
attributes: {
|
|
225
225
|
service: 'pocket'
|
|
226
226
|
},
|
|
227
|
-
title:
|
|
227
|
+
title: _x('Pocket', 'social link block variation name'),
|
|
228
228
|
icon: PocketIcon
|
|
229
229
|
}, {
|
|
230
230
|
name: 'reddit',
|
|
231
231
|
attributes: {
|
|
232
232
|
service: 'reddit'
|
|
233
233
|
},
|
|
234
|
-
title:
|
|
234
|
+
title: _x('Reddit', 'social link block variation name'),
|
|
235
235
|
icon: RedditIcon
|
|
236
236
|
}, {
|
|
237
237
|
name: 'skype',
|
|
238
238
|
attributes: {
|
|
239
239
|
service: 'skype'
|
|
240
240
|
},
|
|
241
|
-
title:
|
|
242
|
-
icon: SkypeIcon
|
|
241
|
+
title: _x('Skype', 'social link block variation name'),
|
|
242
|
+
icon: SkypeIcon,
|
|
243
|
+
// Deprecated: Skype service is no longer available.
|
|
244
|
+
scope: []
|
|
243
245
|
}, {
|
|
244
246
|
name: 'snapchat',
|
|
245
247
|
attributes: {
|
|
246
248
|
service: 'snapchat'
|
|
247
249
|
},
|
|
248
|
-
title:
|
|
250
|
+
title: _x('Snapchat', 'social link block variation name'),
|
|
249
251
|
icon: SnapchatIcon
|
|
250
252
|
}, {
|
|
251
253
|
name: 'soundcloud',
|
|
252
254
|
attributes: {
|
|
253
255
|
service: 'soundcloud'
|
|
254
256
|
},
|
|
255
|
-
title:
|
|
257
|
+
title: _x('SoundCloud', 'social link block variation name'),
|
|
256
258
|
icon: SoundCloudIcon
|
|
257
259
|
}, {
|
|
258
260
|
name: 'spotify',
|
|
259
261
|
attributes: {
|
|
260
262
|
service: 'spotify'
|
|
261
263
|
},
|
|
262
|
-
title:
|
|
264
|
+
title: _x('Spotify', 'social link block variation name'),
|
|
263
265
|
icon: SpotifyIcon
|
|
264
266
|
}, {
|
|
265
267
|
name: 'telegram',
|
|
266
268
|
attributes: {
|
|
267
269
|
service: 'telegram'
|
|
268
270
|
},
|
|
269
|
-
title:
|
|
271
|
+
title: _x('Telegram', 'social link block variation name'),
|
|
270
272
|
icon: TelegramIcon
|
|
271
273
|
}, {
|
|
272
274
|
name: 'threads',
|
|
273
275
|
attributes: {
|
|
274
276
|
service: 'threads'
|
|
275
277
|
},
|
|
276
|
-
title:
|
|
278
|
+
title: _x('Threads', 'social link block variation name'),
|
|
277
279
|
icon: ThreadsIcon
|
|
278
280
|
}, {
|
|
279
281
|
name: 'tiktok',
|
|
280
282
|
attributes: {
|
|
281
283
|
service: 'tiktok'
|
|
282
284
|
},
|
|
283
|
-
title:
|
|
285
|
+
title: _x('TikTok', 'social link block variation name'),
|
|
284
286
|
icon: TiktokIcon
|
|
285
287
|
}, {
|
|
286
288
|
name: 'tumblr',
|
|
287
289
|
attributes: {
|
|
288
290
|
service: 'tumblr'
|
|
289
291
|
},
|
|
290
|
-
title:
|
|
292
|
+
title: _x('Tumblr', 'social link block variation name'),
|
|
291
293
|
icon: TumblrIcon
|
|
292
294
|
}, {
|
|
293
295
|
name: 'twitch',
|
|
294
296
|
attributes: {
|
|
295
297
|
service: 'twitch'
|
|
296
298
|
},
|
|
297
|
-
title:
|
|
299
|
+
title: _x('Twitch', 'social link block variation name'),
|
|
298
300
|
icon: TwitchIcon
|
|
299
301
|
}, {
|
|
300
302
|
name: 'twitter',
|
|
301
303
|
attributes: {
|
|
302
304
|
service: 'twitter'
|
|
303
305
|
},
|
|
304
|
-
title:
|
|
306
|
+
title: _x('Twitter', 'social link block variation name'),
|
|
305
307
|
icon: TwitterIcon
|
|
306
308
|
}, {
|
|
307
309
|
name: 'vimeo',
|
|
308
310
|
attributes: {
|
|
309
311
|
service: 'vimeo'
|
|
310
312
|
},
|
|
311
|
-
title:
|
|
313
|
+
title: _x('Vimeo', 'social link block variation name'),
|
|
312
314
|
icon: VimeoIcon
|
|
313
315
|
}, {
|
|
314
316
|
name: 'vk',
|
|
315
317
|
attributes: {
|
|
316
318
|
service: 'vk'
|
|
317
319
|
},
|
|
318
|
-
title:
|
|
320
|
+
title: _x('VK', 'social link block variation name'),
|
|
319
321
|
icon: VkIcon
|
|
320
322
|
}, {
|
|
321
323
|
name: 'whatsapp',
|
|
322
324
|
attributes: {
|
|
323
325
|
service: 'whatsapp'
|
|
324
326
|
},
|
|
325
|
-
title:
|
|
327
|
+
title: _x('WhatsApp', 'social link block variation name'),
|
|
326
328
|
icon: WhatsAppIcon
|
|
327
329
|
}, {
|
|
328
330
|
name: 'x',
|
|
@@ -330,21 +332,21 @@ const variations = [{
|
|
|
330
332
|
service: 'x'
|
|
331
333
|
},
|
|
332
334
|
keywords: ['twitter'],
|
|
333
|
-
title:
|
|
335
|
+
title: _x('X', 'social link block variation name'),
|
|
334
336
|
icon: XIcon
|
|
335
337
|
}, {
|
|
336
338
|
name: 'yelp',
|
|
337
339
|
attributes: {
|
|
338
340
|
service: 'yelp'
|
|
339
341
|
},
|
|
340
|
-
title:
|
|
342
|
+
title: _x('Yelp', 'social link block variation name'),
|
|
341
343
|
icon: YelpIcon
|
|
342
344
|
}, {
|
|
343
345
|
name: 'youtube',
|
|
344
346
|
attributes: {
|
|
345
347
|
service: 'youtube'
|
|
346
348
|
},
|
|
347
|
-
title:
|
|
349
|
+
title: _x('YouTube', 'social link block variation name'),
|
|
348
350
|
icon: YouTubeIcon
|
|
349
351
|
}];
|
|
350
352
|
|