diff --git a/build/content-helper/dashboard-page-rtl.css b/build/content-helper/dashboard-page-rtl.css index cc4d8b094..6a89652a9 100644 --- a/build/content-helper/dashboard-page-rtl.css +++ b/build/content-helper/dashboard-page-rtl.css @@ -1,2 +1,2 @@ -#wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.parsely-dashboard-page-content{margin:0 auto;padding:var(--grid-unit-40,32px) var(--grid-unit-40,32px) var(--grid-unit-60,48px) var(--grid-unit-40,32px);width:100%}.dashboard-header-background{background:linear-gradient(-303deg,#000 30.51%,#487006 133.77%)}.dashboard-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--grid-unit-25);justify-content:space-between}.dashboard-header .dashboard-header-summary{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-30);width:300px}.dashboard-header .dashboard-header-summary .summary-info{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--grid-unit-10,8px)}.dashboard-header .dashboard-header-summary .summary-info .summary-title{align-self:stretch;font-size:2rem;font-style:normal;font-weight:600;line-height:2.5rem}.dashboard-header .dashboard-header-summary .summary-info .summary-text{align-self:stretch;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.dashboard-header .dashboard-header-summary .summary-button button{background:transparent;border:1px solid #e7e7e7;color:#e7e7e7;cursor:pointer;margin-top:1rem;padding:.5rem 1rem}.dashboard-header .dashboard-header-summary .summary-button button:hover{background:#e7e7e7;color:#1a2a1a}.dashboard-header .dashboard-header-stats{align-content:flex-start;align-items:flex-start;align-self:stretch;display:flex;flex-wrap:wrap;gap:var(--grid-unit-30,24px);justify-content:flex-end;width:500px}.dashboard-header .dashboard-header-stats .header-stat-card{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-05,4px);height:48px;justify-content:center;min-width:150px;width:150px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title{align-items:center;display:flex;font-size:12px;font-style:normal;font-weight:400;gap:var(--grid-unit-05,4px);line-height:16px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title svg{fill:var(--sidebar-white,#e7e7e7)}.dashboard-header .dashboard-header-stats .header-stat-card .card-value{align-items:center;display:flex;font-size:24px;font-style:normal;font-weight:600;gap:var(--grid-unit-05,4px);letter-spacing:-.48px;line-height:32px}.dashboard-header .dashboard-header-stats .header-stat-card .card-value .card-change{font-size:13px;font-style:normal;font-weight:500;line-height:16px}.dashboard-header .dashboard-header-stats .stats-top{align-items:flex-start;border-bottom:var(--Input-Default,1px) solid var(--Gutenberg-White,#fff);display:flex;gap:var(--grid-unit-30,24px);padding-bottom:var(--grid-unit-30,24px)}.dashboard-header .dashboard-header-stats .stats-top .card-title{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-title svg{fill:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-value{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .stat-intro{justify-content:flex-start}.dashboard-header .dashboard-header-stats .stats-top .stat-intro .card-title{color:var(--sidebar-white,#e7e7e7);font-size:14px;font-style:normal;font-weight:500;line-height:20px} +#wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.parsely-dashboard-page-body,.parsely-dashboard-page-header{margin:0 auto;padding:var(--grid-unit-40,32px) var(--grid-unit-40,32px) var(--grid-unit-60,48px) var(--grid-unit-40,32px);width:100%}.dashboard-header-background{background:linear-gradient(-303deg,#000 30.51%,#487006 133.77%)}.dashboard-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--grid-unit-25);justify-content:space-between}.dashboard-header .dashboard-header-summary{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-30);width:300px}.dashboard-header .dashboard-header-summary .summary-info{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--grid-unit-10,8px)}.dashboard-header .dashboard-header-summary .summary-info .summary-title{align-self:stretch;font-size:2rem;font-style:normal;font-weight:600;line-height:2.5rem}.dashboard-header .dashboard-header-summary .summary-info .summary-text{align-self:stretch;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.dashboard-header .dashboard-header-summary .summary-button button{background:transparent;border:1px solid #e7e7e7;color:#e7e7e7;cursor:pointer;margin-top:1rem;padding:.5rem 1rem}.dashboard-header .dashboard-header-summary .summary-button button:hover{background:#e7e7e7;color:#1a2a1a}.dashboard-header .dashboard-header-stats{align-content:flex-start;align-items:flex-start;align-self:stretch;display:flex;flex-wrap:wrap;gap:var(--grid-unit-30,24px);justify-content:flex-end;width:500px}.dashboard-header .dashboard-header-stats .header-stat-card{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-05,4px);height:48px;justify-content:center;min-width:150px;width:150px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title{align-items:center;display:flex;font-size:12px;font-style:normal;font-weight:400;gap:var(--grid-unit-05,4px);line-height:16px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title svg{fill:var(--sidebar-white,#e7e7e7)}.dashboard-header .dashboard-header-stats .header-stat-card .card-value{align-items:center;display:flex;font-size:24px;font-style:normal;font-weight:600;gap:var(--grid-unit-05,4px);letter-spacing:-.48px;line-height:32px}.dashboard-header .dashboard-header-stats .header-stat-card .card-value .card-change{font-size:13px;font-style:normal;font-weight:500;line-height:16px}.dashboard-header .dashboard-header-stats .stats-top{align-items:flex-start;border-bottom:var(--Input-Default,1px) solid var(--Gutenberg-White,#fff);display:flex;gap:var(--grid-unit-30,24px);padding-bottom:var(--grid-unit-30,24px)}.dashboard-header .dashboard-header-stats .stats-top .card-title{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-title svg{fill:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-value{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .stat-intro{justify-content:flex-start}.dashboard-header .dashboard-header-stats .stats-top .stat-intro .card-title{color:var(--sidebar-white,#e7e7e7);font-size:14px;font-style:normal;font-weight:500;line-height:20px} #wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.wp-parsely-dashboard-container{margin-right:-1.25rem} diff --git a/build/content-helper/dashboard-page.asset.php b/build/content-helper/dashboard-page.asset.php index a5abb9a4e..233f35eb8 100644 --- a/build/content-helper/dashboard-page.asset.php +++ b/build/content-helper/dashboard-page.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-primitives'), 'version' => '4dad102779844dcacc87'); + array('react', 'react-dom', 'wp-components', 'wp-dom-ready', 'wp-element', 'wp-primitives'), 'version' => '10a5823bc3b4d0041341'); diff --git a/build/content-helper/dashboard-page.css b/build/content-helper/dashboard-page.css index 25520f3e0..668775e17 100644 --- a/build/content-helper/dashboard-page.css +++ b/build/content-helper/dashboard-page.css @@ -1,2 +1,2 @@ -#wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.parsely-dashboard-page-content{margin:0 auto;padding:var(--grid-unit-40,32px) var(--grid-unit-40,32px) var(--grid-unit-60,48px) var(--grid-unit-40,32px);width:100%}.dashboard-header-background{background:linear-gradient(303deg,#000 30.51%,#487006 133.77%)}.dashboard-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--grid-unit-25);justify-content:space-between}.dashboard-header .dashboard-header-summary{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-30);width:300px}.dashboard-header .dashboard-header-summary .summary-info{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--grid-unit-10,8px)}.dashboard-header .dashboard-header-summary .summary-info .summary-title{align-self:stretch;font-size:2rem;font-style:normal;font-weight:600;line-height:2.5rem}.dashboard-header .dashboard-header-summary .summary-info .summary-text{align-self:stretch;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.dashboard-header .dashboard-header-summary .summary-button button{background:transparent;border:1px solid #e7e7e7;color:#e7e7e7;cursor:pointer;margin-top:1rem;padding:.5rem 1rem}.dashboard-header .dashboard-header-summary .summary-button button:hover{background:#e7e7e7;color:#1a2a1a}.dashboard-header .dashboard-header-stats{align-content:flex-start;align-items:flex-start;align-self:stretch;display:flex;flex-wrap:wrap;gap:var(--grid-unit-30,24px);justify-content:flex-end;width:500px}.dashboard-header .dashboard-header-stats .header-stat-card{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-05,4px);height:48px;justify-content:center;min-width:150px;width:150px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title{align-items:center;display:flex;font-size:12px;font-style:normal;font-weight:400;gap:var(--grid-unit-05,4px);line-height:16px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title svg{fill:var(--sidebar-white,#e7e7e7)}.dashboard-header .dashboard-header-stats .header-stat-card .card-value{align-items:center;display:flex;font-size:24px;font-style:normal;font-weight:600;gap:var(--grid-unit-05,4px);letter-spacing:-.48px;line-height:32px}.dashboard-header .dashboard-header-stats .header-stat-card .card-value .card-change{font-size:13px;font-style:normal;font-weight:500;line-height:16px}.dashboard-header .dashboard-header-stats .stats-top{align-items:flex-start;border-bottom:var(--Input-Default,1px) solid var(--Gutenberg-White,#fff);display:flex;gap:var(--grid-unit-30,24px);padding-bottom:var(--grid-unit-30,24px)}.dashboard-header .dashboard-header-stats .stats-top .card-title{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-title svg{fill:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-value{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .stat-intro{justify-content:flex-start}.dashboard-header .dashboard-header-stats .stats-top .stat-intro .card-title{color:var(--sidebar-white,#e7e7e7);font-size:14px;font-style:normal;font-weight:500;line-height:20px} +#wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.parsely-dashboard-page-body,.parsely-dashboard-page-header{margin:0 auto;padding:var(--grid-unit-40,32px) var(--grid-unit-40,32px) var(--grid-unit-60,48px) var(--grid-unit-40,32px);width:100%}.dashboard-header-background{background:linear-gradient(303deg,#000 30.51%,#487006 133.77%)}.dashboard-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:var(--grid-unit-25);justify-content:space-between}.dashboard-header .dashboard-header-summary{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-30);width:300px}.dashboard-header .dashboard-header-summary .summary-info{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:var(--grid-unit-10,8px)}.dashboard-header .dashboard-header-summary .summary-info .summary-title{align-self:stretch;font-size:2rem;font-style:normal;font-weight:600;line-height:2.5rem}.dashboard-header .dashboard-header-summary .summary-info .summary-text{align-self:stretch;font-size:12px;font-style:normal;font-weight:400;line-height:16px}.dashboard-header .dashboard-header-summary .summary-button button{background:transparent;border:1px solid #e7e7e7;color:#e7e7e7;cursor:pointer;margin-top:1rem;padding:.5rem 1rem}.dashboard-header .dashboard-header-summary .summary-button button:hover{background:#e7e7e7;color:#1a2a1a}.dashboard-header .dashboard-header-stats{align-content:flex-start;align-items:flex-start;align-self:stretch;display:flex;flex-wrap:wrap;gap:var(--grid-unit-30,24px);justify-content:flex-end;width:500px}.dashboard-header .dashboard-header-stats .header-stat-card{align-items:flex-start;color:var(--sidebar-white,#e7e7e7);display:flex;flex-direction:column;gap:var(--grid-unit-05,4px);height:48px;justify-content:center;min-width:150px;width:150px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title{align-items:center;display:flex;font-size:12px;font-style:normal;font-weight:400;gap:var(--grid-unit-05,4px);line-height:16px}.dashboard-header .dashboard-header-stats .header-stat-card .card-title svg{fill:var(--sidebar-white,#e7e7e7)}.dashboard-header .dashboard-header-stats .header-stat-card .card-value{align-items:center;display:flex;font-size:24px;font-style:normal;font-weight:600;gap:var(--grid-unit-05,4px);letter-spacing:-.48px;line-height:32px}.dashboard-header .dashboard-header-stats .header-stat-card .card-value .card-change{font-size:13px;font-style:normal;font-weight:500;line-height:16px}.dashboard-header .dashboard-header-stats .stats-top{align-items:flex-start;border-bottom:var(--Input-Default,1px) solid var(--Gutenberg-White,#fff);display:flex;gap:var(--grid-unit-30,24px);padding-bottom:var(--grid-unit-30,24px)}.dashboard-header .dashboard-header-stats .stats-top .card-title{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-title svg{fill:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .card-value{color:#b9f16b}.dashboard-header .dashboard-header-stats .stats-top .stat-intro{justify-content:flex-start}.dashboard-header .dashboard-header-stats .stats-top .stat-intro .card-title{color:var(--sidebar-white,#e7e7e7);font-size:14px;font-style:normal;font-weight:500;line-height:20px} #wp-parsely-dashboard-widget,.components-button[aria-controls="wp-parsely-block-editor-sidebar:wp-parsely-content-helper"],.editor-post-excerpt,.settings_page_parsely,.wp-parsely-block-overlay,.wp-parsely-content-helper,.wp-parsely-dashboard-container,.wp-parsely-excerpt-generator,.wp-parsely-panel,.wp-parsely-popover,.wp-parsely-preview-editor,.wp-parsely-smart-linking-close-dialog,.wp-parsely-smart-linking-review-modal,.wp-parsely-suggested-title-modal{--base-font:"source-sans-pro",arial,sans-serif;--numeric-font:"ff-din-round-web",sans-serif;--parsely-green-components:107,42%,46%;--parsely-green:hsl(var(--parsely-green-components));--parsely-green-10:#c7ecb1;--parsely-green-65:#2a691b;--gray-200:#f7f8f9;--gray-300:#edeeef;--gray-400:#d7dbdf;--gray-500:#959da5;--gray-600:#586069;--gray-700:#444d56;--gray-900:#24292e;--blue-500:#44a8e5;--blue-550:#2596db;--green-500:#7bc01b;--green-900:#3d6307;--ref-direct:205,13%,52%;--ref-internal:161,91%,41%;--ref-social:210,72%,41%;--ref-search:42,100%,50%;--ref-other:3,76%,58%;--base-text:var(--gray-900);--base-text-2:var(--gray-600);--base-3:var(--gray-400);--border:var(--gray-400);--data:var(--green-500);--control:var(--blue-500);--grid-unit-5:0.25rem;--grid-unit-10:0.5rem;--grid-unit-15:0.75rem;--grid-unit-20:1rem;--grid-unit-25:1.25rem;--grid-unit-30:1.5rem;--grid-unit-40:2rem;--font-size--smaller:0.688rem;--font-size--small:0.75rem;--font-size--medium:0.875rem;--font-size--large:1rem;--font-size--extra-large:1.2rem;--black:#000;--sidebar-black:#1e1e1e;--sidebar-white:#f0f0f0}.wp-parsely-dashboard-container{margin-left:-1.25rem} diff --git a/build/content-helper/dashboard-page.js b/build/content-helper/dashboard-page.js index 18f01a206..41a8701f4 100644 --- a/build/content-helper/dashboard-page.js +++ b/build/content-helper/dashboard-page.js @@ -1 +1 @@ -!function(){"use strict";var e={20:function(e,t,r){var n=r(609),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!s.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:l.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},848:function(e,t,r){e.exports=r(20)},609:function(e){e.exports=window.React}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){r.d({},{U:function(){return we}});var e,t=r(848),n=window.wp.domReady,a=r.n(n),o=window.wp.element,i=r(609),l=window.ReactDOM;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var m;function g(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let a=T(("string"==typeof t?v(t):t).pathname||"/",r);if(null==a)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let l=k([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),y(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:_(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of x(e.path))a(e,t,r);else a(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=x(n.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(m||(m={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,b=3,E=2,j=1,S=10,R=-2,P=e=>"*"===e;function _(e,t){let r=e.split("/"),n=r.length;return r.some(P)&&(n+=R),t&&(n+=E),r.filter((e=>!P(e))).reduce(((e,t)=>e+(w.test(t)?b:""===t?j:S)),n)}function C(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function N(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}const k=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");Error;const F=["post","put","patch","delete"],B=(new Set(F),["get",...F]);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t0))return null;e=r.matches}}let l=e,s=null==(a=r)?void 0:a.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||u(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,h=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?l.slice(0,h+1):[l[0]];break}}}return l.reduceRight(((e,n,a)=>{let o,u=!1,d=null,p=null;var f;r&&(o=s&&n.route.id?s[n.route.id]:void 0,d=n.route.errorElement||Y,c&&(h<0&&0===a?(G[f="route-fallback"]||(G[f]=!0),u=!0,p=null):h===a&&(u=!0,p=n.route.hydrateFallbackElement||null)));let v=t.concat(l.slice(0,a+1)),m=()=>{let t;return t=o?d:u?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(J,{match:n,routeContext:{outlet:e,matches:v,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(Z,{location:r.location,revalidation:r.revalidation,component:d,error:o,children:m(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):m()}),null)}(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:k([h,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:k([h,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,a);return r&&w?i.createElement(D.Provider,{value:{location:L({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:e.Pop}},w):w}function q(){let e=function(){var e;let t=i.useContext(H),r=function(){let e=i.useContext(M);return e||u(!1),e}(K.UseRouteError),n=function(){let e=function(){let e=i.useContext(W);return e||u(!1),e}(),t=e.matches[e.matches.length-1];return t.route.id||u(!1),t.route.id}(K.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:n},r):null,null)}const Y=i.createElement(q,null);class Z extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(W.Provider,{value:this.props.routeContext},i.createElement(H.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(A);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(W.Provider,{value:t},n)}var K=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(K||{});const G={},Q={},X=(e,t,r)=>{var n;Q[n="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+"."]||(Q[n]=!0,console.warn(n))};function ee(e){u(!1)}function te(t){let{basename:r="/",children:n=null,location:a,navigationType:o=e.Pop,navigator:l,static:s=!1,future:c}=t;I()&&u(!1);let h=r.replace(/^\/*/,"/"),d=i.useMemo((()=>({basename:h,navigator:l,static:s,future:L({v7_relativeSplatPath:!1},c)})),[h,c,l,s]);"string"==typeof a&&(a=v(a));let{pathname:p="/",search:f="",hash:m="",state:g=null,key:y="default"}=a,x=i.useMemo((()=>{let e=T(p,h);return null==e?null:{location:{pathname:e,search:f,hash:m,state:g,key:y},navigationType:o}}),[h,p,f,m,g,y,o]);return null==x?null:i.createElement($.Provider,{value:d},i.createElement(D.Provider,{children:n,value:x}))}function re(e){let{children:t,location:r}=e;return V(ne(t),r)}function ne(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,ne(e.props.children,a));e.type!==ee&&u(!1),e.props.index&&e.props.children&&u(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ne(e.props.children,a)),r.push(o)})),r}i.startTransition,new Promise((()=>{})),i.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const ae=i.startTransition;function oe(t){let{basename:r,children:n,future:a,window:o}=t,l=i.useRef();var m;null==l.current&&(l.current=(void 0===(m={window:o,v5Compat:!0})&&(m={}),function(t,r,n,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,l=o.history,h=e.Pop,v=null,m=g();function g(){return(l.state||{idx:null}).idx}function y(){h=e.Pop;let t=g(),r=null==t?null:t-m;m=t,v&&v({action:h,location:w.location,delta:r})}function x(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:f(e);return r=r.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==m&&(m=0,l.replaceState(s({},l.state,{idx:m}),""));let w={get action(){return h},get location(){return t(o,l)},listen(e){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(c,y),v=e,()=>{o.removeEventListener(c,y),v=null}},createHref(e){return r(o,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){h=e.Push;let a=p(w.location,t,r);n&&n(a,t),m=g()+1;let s=d(a,m),c=w.createHref(a);try{l.pushState(s,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(c)}i&&v&&v({action:h,location:w.location,delta:1})},replace:function(t,r){h=e.Replace;let a=p(w.location,t,r);n&&n(a,t),m=g();let o=d(a,m),s=w.createHref(a);l.replaceState(o,"",s),i&&v&&v({action:h,location:w.location,delta:0})},go(e){return l.go(e)}};return w}((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=v(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:f(t))}),(function(e,t){h("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),m)));let g=l.current,[y,x]=i.useState({action:g.action,location:g.location}),{v7_startTransition:w}=a||{},b=i.useCallback((e=>{w&&ae?ae((()=>x(e))):x(e)}),[x,w]);return i.useLayoutEffect((()=>g.listen(b)),[g,b]),i.useEffect((()=>{return null!=(e=a)&&e.v7_startTransition||X("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||X("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),void(t&&(t.v7_fetcherPersist||X("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||X("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||X("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||X("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation")));var e,t}),[a]),i.createElement(te,{basename:r,children:n,location:y.location,navigationType:y.action,navigator:g,future:a})}var ie,le,se;l.flushSync,i.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(se=ie||(ie={})).UseScrollRestoration="useScrollRestoration",se.UseSubmit="useSubmit",se.UseSubmitFetcher="useSubmitFetcher",se.UseFetcher="useFetcher",se.useViewTransitionState="useViewTransitionState",function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(le||(le={}));var ce=window.wp.components,ue=(0,o.forwardRef)((function({icon:e,size:t=24,...r},n){return(0,o.cloneElement)(e,{width:t,height:t,...r,ref:n})})),he=window.wp.primitives,de=(0,t.jsx)(he.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)(he.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),pe=function(){return pe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var v;function g(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let a=T(("string"==typeof t?m(t):t).pathname||"/",r);if(null==a)return null;let o=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let e=0;null==i&&e{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(u(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let l=k([n,i.relativePath]),s=r.concat(i);e.children&&e.children.length>0&&(u(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),y(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:_(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of x(e.path))a(e,t,r);else a(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=x(n.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,b=3,j=2,E=1,S=10,R=-2,P=e=>"*"===e;function _(e,t){let r=e.split("/"),n=r.length;return r.some(P)&&(n+=R),t&&(n+=j),r.filter((e=>!P(e))).reduce(((e,t)=>e+(w.test(t)?b:""===t?E:S)),n)}function C(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function O(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}const k=e=>e.join("/").replace(/\/\/+/g,"/"),U=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");Error;const B=["post","put","patch","delete"],L=(new Set(B),["get",...B]);function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t0))return null;e=r.matches}}let l=e,s=null==(a=r)?void 0:a.errors;if(null!=s){let e=l.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||u(!1),l=l.slice(0,Math.min(l.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,n,a)=>{let o,u=!1,h=null,p=null;var f;r&&(o=s&&n.route.id?s[n.route.id]:void 0,h=n.route.errorElement||Y,c&&(d<0&&0===a?(G[f="route-fallback"]||(G[f]=!0),u=!0,p=null):d===a&&(u=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,a+1)),v=()=>{let t;return t=o?h:u?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(J,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(Z,{location:r.location,revalidation:r.revalidation,component:h,error:o,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:k([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:k([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,a);return r&&w?i.createElement($.Provider,{value:{location:F({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:e.Pop}},w):w}function q(){let e=function(){var e;let t=i.useContext(H),r=function(){let e=i.useContext(M);return e||u(!1),e}(K.UseRouteError),n=function(){let e=function(){let e=i.useContext(D);return e||u(!1),e}(),t=e.matches[e.matches.length-1];return t.route.id||u(!1),t.route.id}(K.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:n},r):null,null)}const Y=i.createElement(q,null);class Z extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(D.Provider,{value:this.props.routeContext},i.createElement(H.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(A);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(D.Provider,{value:t},n)}var K=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(K||{});const G={},Q={},X=(e,t,r)=>{var n;Q[n="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+r+"."]||(Q[n]=!0,console.warn(n))};function ee(e){u(!1)}function te(t){let{basename:r="/",children:n=null,location:a,navigationType:o=e.Pop,navigator:l,static:s=!1,future:c}=t;I()&&u(!1);let d=r.replace(/^\/*/,"/"),h=i.useMemo((()=>({basename:d,navigator:l,static:s,future:F({v7_relativeSplatPath:!1},c)})),[d,c,l,s]);"string"==typeof a&&(a=m(a));let{pathname:p="/",search:f="",hash:v="",state:g=null,key:y="default"}=a,x=i.useMemo((()=>{let e=T(p,d);return null==e?null:{location:{pathname:e,search:f,hash:v,state:g,key:y},navigationType:o}}),[d,p,f,v,g,y,o]);return null==x?null:i.createElement(W.Provider,{value:h},i.createElement($.Provider,{children:n,value:x}))}function re(e){let{children:t,location:r}=e;return V(ne(t),r)}function ne(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,((e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,ne(e.props.children,a));e.type!==ee&&u(!1),e.props.index&&e.props.children&&u(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ne(e.props.children,a)),r.push(o)})),r}i.startTransition,new Promise((()=>{})),i.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const ae=i.startTransition;function oe(t){let{basename:r,children:n,future:a,window:o}=t,l=i.useRef();var v;null==l.current&&(l.current=(void 0===(v={window:o,v5Compat:!0})&&(v={}),function(t,r,n,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,l=o.history,d=e.Pop,m=null,v=g();function g(){return(l.state||{idx:null}).idx}function y(){d=e.Pop;let t=g(),r=null==t?null:t-v;v=t,m&&m({action:d,location:w.location,delta:r})}function x(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:f(e);return r=r.replace(/ $/,"%20"),u(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,l.replaceState(s({},l.state,{idx:v}),""));let w={get action(){return d},get location(){return t(o,l)},listen(e){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(c,y),m=e,()=>{o.removeEventListener(c,y),m=null}},createHref(e){return r(o,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){d=e.Push;let a=p(w.location,t,r);n&&n(a,t),v=g()+1;let s=h(a,v),c=w.createHref(a);try{l.pushState(s,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(c)}i&&m&&m({action:d,location:w.location,delta:1})},replace:function(t,r){d=e.Replace;let a=p(w.location,t,r);n&&n(a,t),v=g();let o=h(a,v),s=w.createHref(a);l.replaceState(o,"",s),i&&m&&m({action:d,location:w.location,delta:0})},go(e){return l.go(e)}};return w}((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=m(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:f(t))}),(function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),v)));let g=l.current,[y,x]=i.useState({action:g.action,location:g.location}),{v7_startTransition:w}=a||{},b=i.useCallback((e=>{w&&ae?ae((()=>x(e))):x(e)}),[x,w]);return i.useLayoutEffect((()=>g.listen(b)),[g,b]),i.useEffect((()=>{return null!=(e=a)&&e.v7_startTransition||X("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||X("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),void(t&&(t.v7_fetcherPersist||X("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||X("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||X("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||X("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation")));var e,t}),[a]),i.createElement(te,{basename:r,children:n,location:y.location,navigationType:y.action,navigator:g,future:a})}var ie,le,se;l.flushSync,i.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(se=ie||(ie={})).UseScrollRestoration="useScrollRestoration",se.UseSubmit="useSubmit",se.UseSubmitFetcher="useSubmitFetcher",se.UseFetcher="useFetcher",se.useViewTransitionState="useViewTransitionState",function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(le||(le={}));var ce=function(e){var r=e.className,n=e.name,a=e.children;return(0,t.jsx)("div",{className:"parsely-menu-page parsely-menu-page-"+n+(r?" "+r:""),children:a})},ue=function(e){var r=e.className,n=e.children,a=e.maxWidth,o=void 0===a?Ee:a;return(0,t.jsx)("main",{className:"parsely-dashboard-page-body"+(r?" "+r:""),style:{maxWidth:o+"px"},children:n})},de=function(e){var r=e.className,n=e.children,a=e.maxWidth,o=void 0===a?Ee:a;return(0,t.jsx)("header",{className:"parsely-dashboard-page-header"+(r?" "+r:""),style:{maxWidth:o+"px"},children:n})},he=window.wp.components,pe=(0,o.forwardRef)((function({icon:e,size:t=24,...r},n){return(0,o.cloneElement)(e,{width:t,height:t,...r,ref:n})})),fe=window.wp.primitives,me=(0,t.jsx)(fe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t.jsx)(fe.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})}),ve=function(){return ve=Object.assign||function(e){for(var t,r=1,n=arguments.length;r ): React.JSX.Element => { + return ( +
+ { children } +
+ ); +}; diff --git a/src/content-helper/dashboard-page/components/page-container-component.tsx b/src/content-helper/dashboard-page/components/page-container-component.tsx new file mode 100644 index 000000000..fa937e302 --- /dev/null +++ b/src/content-helper/dashboard-page/components/page-container-component.tsx @@ -0,0 +1,34 @@ +/** + * Props for the PageContainerProps component + */ +type PageContainerProps = { + className?: string; + name: string + children: React.ReactNode; +} + +/** + * Page container component. + * + * Used to wrap the main content of a dashboard page, including the + * header and body. + * + * @since 3.18.0 + * + * @param {PageContainerProps} props The component props. + */ +export const PageContainer = ( { + className, + name, + children, +}: Readonly ): React.JSX.Element => { + return ( +
+ { children } +
+ ); +}; diff --git a/src/content-helper/dashboard-page/components/page-header-component.tsx b/src/content-helper/dashboard-page/components/page-header-component.tsx new file mode 100644 index 000000000..7432c5a13 --- /dev/null +++ b/src/content-helper/dashboard-page/components/page-header-component.tsx @@ -0,0 +1,39 @@ +/** + * Internal dependencies + */ +import { PARSELY_DASHBOARD_MAX_PAGE_WIDTH } from '../dashboard-page'; + +/** + * Props for the PageHeader component + * + * @since 3.18.0 + */ +type PageHeaderProps = { + className?: string; + children: React.ReactNode; + maxWidth?: number; +} + +/** + * Page header component. + * + * Used to wrap the header content of a dashboard page. + * + * @since 3.18.0 + * + * @param {PageHeaderProps} props The component props. + */ +export const PageHeader = ( { + className, + children, + maxWidth = PARSELY_DASHBOARD_MAX_PAGE_WIDTH, +}: Readonly ): React.JSX.Element => { + return ( +
+ { children } +
+ ); +}; diff --git a/src/content-helper/dashboard-page/pages/dashboard/components/header-component.tsx b/src/content-helper/dashboard-page/pages/dashboard/components/header-component.tsx index 92abdace7..cf89e8920 100644 --- a/src/content-helper/dashboard-page/pages/dashboard/components/header-component.tsx +++ b/src/content-helper/dashboard-page/pages/dashboard/components/header-component.tsx @@ -1,8 +1,22 @@ -import '../dashboard.scss'; +/** + * WordPress dependencies + */ import { Button } from '@wordpress/components'; import { Icon, link } from '@wordpress/icons'; -import { PARSELY_DASHBOARD_MAX_PAGE_WIDTH } from '../../../dashboard-page'; +/** + * Internal dependencies + */ +import { PageHeader } from '../../../components'; +import '../dashboard.scss'; + +/** + * Header summary component. + * + * Renders a summary of the site performance. + * + * @since 3.18.0 + */ const HeaderSummary = () => { return (
@@ -18,6 +32,11 @@ const HeaderSummary = () => { ); }; +/** + * Type definition for the HeaderCard component. + * + * @since 3.18.0 + */ type HeaderCardProps = { title?: string; icon?: React.JSX.Element; @@ -26,6 +45,14 @@ type HeaderCardProps = { down?: boolean; className?: string; }; + +/** + * Single stat card component. + * + * @since 3.18.0 + * + * @param {HeaderCardProps} props The component props. + */ const StatCard = ( { title, value, change, down = false, icon, className }: HeaderCardProps ) => { const changeIcon = down ? '↓' : '↑'; @@ -47,33 +74,36 @@ const StatCard = ( { title, value, change, down = false, icon, className }: Head ); }; +/** + * Dashboard header component. + * + * Renders the header of the main dashboard page. + * + * @since 3.18.0 + */ export const DashboardHeader = () => { return (
-
-
- -
-
- - - -
- - { [ - { title: 'Page Views', value: '4.6K', change: '24%' }, - { title: 'Visitors', value: '1.5K', change: '25%' }, - { title: 'Minutes', value: '32', change: '40%' }, - { title: 'Avg. Time', value: '32', change: '40%', down: true }, - { title: 'Soc. Interactions', value: '32', change: '40%' }, - { title: 'New Posts', value: '2', change: '40%' }, - ].map( ( metric, index ) => ( - - ) ) } - + + +
+
+ + +
+ { [ + { title: 'Page Views', value: '4.6K', change: '24%' }, + { title: 'Visitors', value: '1.5K', change: '25%' }, + { title: 'Minutes', value: '32', change: '40%' }, + { title: 'Avg. Time', value: '32', change: '40%', down: true }, + { title: 'Soc. Interactions', value: '32', change: '40%' }, + { title: 'New Posts', value: '2', change: '40%' }, + ].map( ( metric, index ) => ( + + ) ) }
-
+
); }; diff --git a/src/content-helper/dashboard-page/pages/dashboard/dashboard.scss b/src/content-helper/dashboard-page/pages/dashboard/dashboard.scss index 726c971de..3e732c891 100644 --- a/src/content-helper/dashboard-page/pages/dashboard/dashboard.scss +++ b/src/content-helper/dashboard-page/pages/dashboard/dashboard.scss @@ -1,7 +1,8 @@ @import "../../../common/css/functions"; @import "../../../common/css/variables"; -.parsely-dashboard-page-content { +.parsely-dashboard-page-body, +.parsely-dashboard-page-header { margin: 0 auto; width: 100%; padding: var(--grid-unit-40, 32px) var(--grid-unit-40, 32px) var(--grid-unit-60, 48px) var(--grid-unit-40, 32px); diff --git a/src/content-helper/dashboard-page/pages/dashboard/page-component.tsx b/src/content-helper/dashboard-page/pages/dashboard/page-component.tsx index 0a5c72508..eea57ea39 100644 --- a/src/content-helper/dashboard-page/pages/dashboard/page-component.tsx +++ b/src/content-helper/dashboard-page/pages/dashboard/page-component.tsx @@ -1,5 +1,6 @@ +import { PageContainer as PageContainer, PageBody } from '../../components'; import { DashboardHeader } from './components/header-component'; -import { PARSELY_DASHBOARD_MAX_PAGE_WIDTH } from '../../dashboard-page'; + /** * The main dashboard page component. * @@ -7,12 +8,11 @@ import { PARSELY_DASHBOARD_MAX_PAGE_WIDTH } from '../../dashboard-page'; */ export const DashboardPage = () => { return ( - <> + -
+

This is the dashboard page

-
- - + +
); }; diff --git a/src/content-helper/dashboard-page/pages/index.tsx b/src/content-helper/dashboard-page/pages/index.ts similarity index 100% rename from src/content-helper/dashboard-page/pages/index.tsx rename to src/content-helper/dashboard-page/pages/index.ts diff --git a/src/content-helper/dashboard-page/pages/settings/page-component.tsx b/src/content-helper/dashboard-page/pages/settings/page-component.tsx index 925ec087a..4a43ffbca 100644 --- a/src/content-helper/dashboard-page/pages/settings/page-component.tsx +++ b/src/content-helper/dashboard-page/pages/settings/page-component.tsx @@ -1,3 +1,5 @@ +import { PageBody, PageContainer, PageHeader } from '../../components'; + /** * Settings page component. * @@ -5,9 +7,13 @@ */ export const SettingsPage = () => { return ( - <> -

Parse.ly Settings

-

This is a page for settings.

- + + +

Parse.ly Settings

+
+ +

This is a page for settings.

+
+
); }; diff --git a/src/content-helper/dashboard-page/pages/traffic-boost/page-component.tsx b/src/content-helper/dashboard-page/pages/traffic-boost/page-component.tsx index 83e53080e..da84548ca 100644 --- a/src/content-helper/dashboard-page/pages/traffic-boost/page-component.tsx +++ b/src/content-helper/dashboard-page/pages/traffic-boost/page-component.tsx @@ -1,3 +1,5 @@ +import { PageBody, PageContainer, PageHeader } from '../../components'; + /** * Traffic Boost page component. * @@ -5,9 +7,13 @@ */ export const TrafficBoostPage = () => { return ( - <> -

Traffic Boost

-

This is where the amazing Traffic Boost implementation will live.

- + + +

Traffic Boost

+
+ +

This is where the amazing Traffic Boost implementation will live.

+
+
); };