Making WordPress.org

Changeset 12433


Ignore:
Timestamp:
02/28/2023 08:32:21 PM (16 months ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@1e5526f

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/build/index.asset.php

    r12387 r12433  
    1 <?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-url'), 'version' => '04071bcc12587723b9b1');
     1<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-primitives', 'wp-url'), 'version' => 'b1857381e640e6b418b8');
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/build/index.js

    r12387 r12433  
    1010Yt((0,o.sprintf)((0,o.__)("Author: %s","wporg-patterns"),t)):r&&
    1111// translators: %s is the category name.
    12 Yt((0,o.sprintf)((0,o.__)("Category: %s","wporg-patterns"),r))}),[e]),null},Jt=Object.prototype.hasOwnProperty;function Zt(e,t,r){for(r of e.keys())if(er(r,t))return r}function er(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&er(e[n],t[n]););return-1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e){if((a=n)&&"object"==typeof a&&!(a=Zt(t,a)))return!1;if(!t.has(a))return!1}return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e){if((a=n[0])&&"object"==typeof a&&!(a=Zt(t,a)))return!1;if(!er(n[1],t.get(a)))return!1}return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return-1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}if(!r||"object"==typeof e){for(r in n=0,e){if(Jt.call(e,r)&&++n&&!Jt.call(t,r))return!1;if(!(r in t)||!er(e[r],t[r]))return!1}return Object.keys(t).length===n}}return e!=e&&t!=t}function tr(e,t){return he.useEffect(e,(r=t,n=he.useRef(r),a=he.useRef(0),er(r,n.current)||(n.current=r,a.current+=1),he.useMemo((function(){return n.current}),[a.current])));var r,n,a}const rr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 1===t?"":(0,o.sprintf)((0,o.__)("Page %1$d of %2$d.","wporg-patterns"),e,t)
     12Yt((0,o.sprintf)((0,o.__)("Category: %s","wporg-patterns"),r))}),[e,t,r]),null},Jt=Object.prototype.hasOwnProperty;function Zt(e,t,r){for(r of e.keys())if(er(r,t))return r}function er(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&er(e[n],t[n]););return-1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e){if((a=n)&&"object"==typeof a&&!(a=Zt(t,a)))return!1;if(!t.has(a))return!1}return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e){if((a=n[0])&&"object"==typeof a&&!(a=Zt(t,a)))return!1;if(!er(n[1],t.get(a)))return!1}return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return-1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}if(!r||"object"==typeof e){for(r in n=0,e){if(Jt.call(e,r)&&++n&&!Jt.call(t,r))return!1;if(!(r in t)||!er(e[r],t[r]))return!1}return Object.keys(t).length===n}}return e!=e&&t!=t}function tr(e,t){return he.useEffect(e,(r=t,n=he.useRef(r),a=he.useRef(0),er(r,n.current)||(n.current=r,a.current+=1),he.useMemo((function(){return n.current}),[a.current])));var r,n,a}const rr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return 1===t?"":(0,o.sprintf)((0,o.__)("Page %1$d of %2$d.","wporg-patterns"),e,t)
    1313/* translators: %1$d: current page. %2$d: total number of pages.  */};var nr=function(e){const{path:t}=P(),[r,n]=(0,a.useState)(),[i]=(0,a.useState)({title:"",links:[]}),{author:l,category:c,count:u,isLoadingPatterns:p,pageLabel:d,query:g}=(0,s.useSelect)((r=>{const{getCategoryById:n,getPatternTotalsByQuery:a,getPatternTotalPagesByQuery:o,getQueryFromUrl:i,isLoadingPatternsByQuery:s}=r(de),l={...i(t),...e.query},c=s(l);return{author:wporgPatternsData.currentAuthorName||(null==l?void 0:l.author_name),category:n(l["pattern-categories"]),count:a(l),isLoadingPatterns:c,pageLabel:l&&!c?rr(l.page,o(l)):"",query:l}}),[t,e.query]);tr((()=>{if(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e.hasOwnProperty("include")||e.include.length>0}(g)&&p)return void n((e=>{let{category:t,author:r}=e;return t&&r?(0,a.createInterpolateElement)((0,o.sprintf)(
    1414/* translators: %1$s category name, %2$s author name. */
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/package.json

    r12148 r12433  
    2727    "devDependencies": {
    2828        "@lodder/grunt-postcss": "3.1.1",
    29         "@wordpress/a11y": "3.20.0",
    30         "@wordpress/api-fetch": "6.17.0",
    31         "@wordpress/block-editor": "10.3.0",
    32         "@wordpress/browserslist-config": "5.3.0",
    33         "@wordpress/components": "21.3.0",
    34         "@wordpress/compose": "5.18.0",
    35         "@wordpress/core-data": "5.3.0",
    36         "@wordpress/data": "7.4.0",
    37         "@wordpress/data-controls": "2.20.0",
    38         "@wordpress/dom": "3.20.0",
    39         "@wordpress/element": "4.18.0",
    40         "@wordpress/html-entities": "3.20.0",
    41         "@wordpress/i18n": "4.20.0",
    42         "@wordpress/icons": "9.11.0",
    43         "@wordpress/keycodes": "3.20.0",
    44         "@wordpress/primitives": "3.18.0",
    45         "@wordpress/scripts": "24.4.0",
    46         "@wordpress/url": "3.21.0",
    47         "@wordpress/viewport": "4.18.0",
    48         "autoprefixer": "10.4.12",
     29        "@wordpress/a11y": "3.27.0",
     30        "@wordpress/api-fetch": "6.24.0",
     31        "@wordpress/block-editor": "11.4.0",
     32        "@wordpress/browserslist-config": "5.10.0",
     33        "@wordpress/components": "23.4.0",
     34        "@wordpress/compose": "6.4.0",
     35        "@wordpress/core-data": "6.4.0",
     36        "@wordpress/data": "8.4.0",
     37        "@wordpress/data-controls": "2.27.0",
     38        "@wordpress/dom": "3.27.0",
     39        "@wordpress/element": "5.4.0",
     40        "@wordpress/html-entities": "3.27.0",
     41        "@wordpress/i18n": "4.27.0",
     42        "@wordpress/icons": "9.18.0",
     43        "@wordpress/keycodes": "3.27.0",
     44        "@wordpress/primitives": "3.25.0",
     45        "@wordpress/scripts": "25.4.0",
     46        "@wordpress/url": "3.28.0",
     47        "@wordpress/viewport": "5.4.0",
     48        "autoprefixer": "10.4.13",
    4949        "classnames": "2.3.2",
    50         "cssnano": "5.1.13",
     50        "cssnano": "5.1.15",
    5151        "grunt": "1.5.3",
    5252        "grunt-contrib-clean": "2.0.1",
     
    5656        "grunt-webpack": "5.0.0",
    5757        "lodash": "4.17.21",
    58         "postcss": "8.4.18",
     58        "postcss": "8.4.21",
    5959        "react-use-gesture": "9.1.3",
    6060        "rtlcss": "4.0.0",
    61         "sass": "1.55.0",
     61        "sass": "1.58.3",
    6262        "use-deep-compare-effect": "1.8.1"
    6363    },
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/src/components/breadcrumb-monitor/index.js

    r11164 r12433  
    4444            setBreadcrumbText( sprintf( __( 'Category: %s', 'wporg-patterns' ), categoryName ) );
    4545        }
    46     }, [ path ] );
     46    }, [ path, authorName, categoryName ] );
    4747
    4848    return null;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/src/store/actions.js

    r11215 r12433  
    137137 * @param {number} patternId The pattern to favorite.
    138138 *
    139  * @return {Object} Action object.
     139 * @return {Object|void} Action object.
    140140 */
    141141export function* addFavorite( patternId ) {
     
    156156 * @param {number} patternId The pattern to unfavorite.
    157157 *
    158  * @return {Object} Action object.
     158 * @return {Object|void} Action object.
    159159 */
    160160export function* removeFavorite( patternId ) {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/theme.json

    r11667 r12433  
    77        },
    88        "layout": {
    9             "contentSize": "800px",
    10             "wideSize": "1000px"
     9            "contentSize": "650px",
     10            "wideSize": "1200px"
    1111        }
    1212    }
Note: See TracChangeset for help on using the changeset viewer.