diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 799db17b880d..323963d8bddc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -139,6 +139,7 @@ importers: '@wordpress/components': 20.0.0 '@wordpress/compose': 5.14.0 '@wordpress/date': 4.16.0 + '@wordpress/element': 4.14.0 '@wordpress/i18n': 4.16.0 '@wordpress/icons': 9.7.0 classnames: 2.3.1 @@ -160,6 +161,7 @@ importers: '@wordpress/components': 20.0.0_cw5jtwuj6ehcs2uqnpd5xfmnry '@wordpress/compose': 5.14.0_react@17.0.2 '@wordpress/date': 4.16.0 + '@wordpress/element': 4.14.0 '@wordpress/i18n': 4.16.0 '@wordpress/icons': 9.7.0 classnames: 2.3.1 @@ -205,7 +207,7 @@ importers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-config': workspace:* || ^0.1 '@babel/core': 7.18.13 '@babel/preset-react': 7.18.6 @@ -326,7 +328,7 @@ importers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@babel/core': 7.18.13 '@babel/preset-react': 7.18.6 '@wordpress/base-styles': 4.7.0 @@ -364,7 +366,7 @@ importers: specifiers: '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@babel/core': 7.18.13 '@babel/preset-react': 7.18.6 '@testing-library/dom': 8.16.0 @@ -405,7 +407,7 @@ importers: specifiers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@babel/core': 7.18.13 '@babel/preset-react': 7.18.6 @@ -452,7 +454,7 @@ importers: specifiers: '@automattic/color-studio': 2.5.0 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-shared-extension-utils': workspace:* || ^0.6 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@automattic/social-previews': 1.1.5 @@ -555,7 +557,7 @@ importers: projects/js-packages/storybook: specifiers: - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@babel/core': 7.18.13 '@babel/plugin-syntax-jsx': 7.18.6 '@babel/preset-react': 7.18.6 @@ -750,7 +752,7 @@ importers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -922,7 +924,7 @@ importers: '@automattic/format-currency': 1.0.1 '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-licensing': workspace:* || ^0.5 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 @@ -1009,7 +1011,7 @@ importers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -1130,7 +1132,7 @@ importers: specifiers: '@automattic/calypso-color-schemes': 2.1.1 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -1229,7 +1231,7 @@ importers: '@automattic/color-studio': 2.5.0 '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 '@babel/plugin-proposal-nullish-coalescing-operator': 7.18.6 @@ -1341,7 +1343,7 @@ importers: projects/plugins/boost: specifiers: '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@babel/core': 7.18.13 '@babel/preset-env': 7.18.10 '@babel/preset-react': 7.18.6 @@ -1438,7 +1440,7 @@ importers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-api': workspace:* || ^0.13 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-licensing': workspace:* || ^0.5 '@automattic/jetpack-partner-coupon': workspace:* || ^0.2 @@ -1667,7 +1669,7 @@ importers: specifiers: '@automattic/jetpack-analytics': workspace:* || ^0.1 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -1742,7 +1744,7 @@ importers: '@automattic/calypso-color-schemes': 2.1.1 '@automattic/color-studio': 2.5.0 '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-publicize-components': workspace:* || ^0.6 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 @@ -1803,7 +1805,7 @@ importers: projects/plugins/starter-plugin: specifiers: '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -1863,7 +1865,7 @@ importers: projects/plugins/videopress: specifiers: '@automattic/jetpack-base-styles': workspace:* || ^0.3 - '@automattic/jetpack-components': workspace:* || ^0.20 + '@automattic/jetpack-components': workspace:* || ^0.21 '@automattic/jetpack-connection': workspace:* || ^0.20 '@automattic/jetpack-webpack-config': workspace:* || ^1.3 '@babel/core': 7.18.13 @@ -3059,6 +3061,16 @@ packages: '@babel/core': 7.18.13 '@babel/helper-plugin-utils': 7.19.0 + /@babel/plugin-syntax-jsx/7.18.6_@babel+core@7.19.0: + resolution: {integrity: sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-plugin-utils': 7.19.0 + dev: true + /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.18.13: resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} peerDependencies: @@ -3494,6 +3506,16 @@ packages: '@babel/core': 7.18.13 '@babel/helper-plugin-utils': 7.19.0 + /@babel/plugin-transform-react-display-name/7.18.6_@babel+core@7.19.0: + resolution: {integrity: sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-plugin-utils': 7.19.0 + dev: true + /@babel/plugin-transform-react-jsx-development/7.18.6_@babel+core@7.18.13: resolution: {integrity: sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==} engines: {node: '>=6.9.0'} @@ -3503,6 +3525,16 @@ packages: '@babel/core': 7.18.13 '@babel/plugin-transform-react-jsx': 7.19.0_@babel+core@7.18.13 + /@babel/plugin-transform-react-jsx-development/7.18.6_@babel+core@7.19.0: + resolution: {integrity: sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/plugin-transform-react-jsx': 7.19.0_@babel+core@7.19.0 + dev: true + /@babel/plugin-transform-react-jsx/7.18.10_@babel+core@7.18.13: resolution: {integrity: sha512-gCy7Iikrpu3IZjYZolFE4M1Sm+nrh1/6za2Ewj77Z+XirT4TsbJcvOFOyF+fRPwU6AKKK136CZxx6L8AbSFG6A==} engines: {node: '>=6.9.0'} @@ -3530,6 +3562,20 @@ packages: '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.18.13 '@babel/types': 7.19.0 + /@babel/plugin-transform-react-jsx/7.19.0_@babel+core@7.19.0: + resolution: {integrity: sha512-UVEvX3tXie3Szm3emi1+G63jyw1w5IcMY0FSKM+CRnKRI5Mr1YbCNgsSTwoTwKphQEG9P+QqmuRFneJPZuHNhg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-annotate-as-pure': 7.18.6 + '@babel/helper-module-imports': 7.18.6 + '@babel/helper-plugin-utils': 7.19.0 + '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.19.0 + '@babel/types': 7.19.0 + dev: true + /@babel/plugin-transform-react-pure-annotations/7.18.6_@babel+core@7.18.13: resolution: {integrity: sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==} engines: {node: '>=6.9.0'} @@ -3540,6 +3586,17 @@ packages: '@babel/helper-annotate-as-pure': 7.18.6 '@babel/helper-plugin-utils': 7.19.0 + /@babel/plugin-transform-react-pure-annotations/7.18.6_@babel+core@7.19.0: + resolution: {integrity: sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-annotate-as-pure': 7.18.6 + '@babel/helper-plugin-utils': 7.19.0 + dev: true + /@babel/plugin-transform-regenerator/7.18.6_@babel+core@7.18.13: resolution: {integrity: sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==} engines: {node: '>=6.9.0'} @@ -3612,6 +3669,16 @@ packages: '@babel/core': 7.18.13 '@babel/helper-plugin-utils': 7.19.0 + /@babel/plugin-transform-template-literals/7.18.9_@babel+core@7.19.0: + resolution: {integrity: sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-plugin-utils': 7.19.0 + dev: true + /@babel/plugin-transform-typeof-symbol/7.18.9_@babel+core@7.18.13: resolution: {integrity: sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==} engines: {node: '>=6.9.0'} @@ -3862,6 +3929,21 @@ packages: '@babel/plugin-transform-react-jsx-development': 7.18.6_@babel+core@7.18.13 '@babel/plugin-transform-react-pure-annotations': 7.18.6_@babel+core@7.18.13 + /@babel/preset-react/7.18.6_@babel+core@7.19.0: + resolution: {integrity: sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.19.0 + '@babel/helper-plugin-utils': 7.19.0 + '@babel/helper-validator-option': 7.18.6 + '@babel/plugin-transform-react-display-name': 7.18.6_@babel+core@7.19.0 + '@babel/plugin-transform-react-jsx': 7.19.0_@babel+core@7.19.0 + '@babel/plugin-transform-react-jsx-development': 7.18.6_@babel+core@7.19.0 + '@babel/plugin-transform-react-pure-annotations': 7.18.6_@babel+core@7.19.0 + dev: true + /@babel/preset-typescript/7.18.6_@babel+core@7.18.13: resolution: {integrity: sha512-s9ik86kXBAnD760aybBucdpnLsAt0jK1xqJn2juOn9lkOvSHV60os5hxoVJsPzMQxvnUJFAlkont2DvvaYEBtQ==} engines: {node: '>=6.9.0'} @@ -5915,7 +5997,7 @@ packages: typescript: optional: true dependencies: - '@babel/core': 7.18.13 + '@babel/core': 7.19.0 '@storybook/addons': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@storybook/api': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@storybook/channel-postmessage': 6.5.10 @@ -5932,7 +6014,7 @@ packages: '@storybook/store': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@storybook/theming': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@types/node': 16.11.58 - babel-loader: 8.2.5_m5tdevr4bs72kc3uk2yich4vse + babel-loader: 8.2.5_gcpowfmloeq2qxes2zb2i6tu5q babel-plugin-named-exports-order: 0.0.2 browser-assert: 1.2.1 case-sensitive-paths-webpack-plugin: 2.4.0 @@ -6460,9 +6542,9 @@ packages: typescript: optional: true dependencies: - '@babel/core': 7.18.13 - '@babel/plugin-transform-template-literals': 7.18.9_@babel+core@7.18.13 - '@babel/preset-react': 7.18.6_@babel+core@7.18.13 + '@babel/core': 7.19.0 + '@babel/plugin-transform-template-literals': 7.18.9_@babel+core@7.19.0 + '@babel/preset-react': 7.18.6_@babel+core@7.19.0 '@storybook/addons': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@storybook/core-client': 6.5.10_r26yox34l5e4rxinohcfftvhfy '@storybook/core-common': 6.5.10_lvjraxmr6x5tfufieyioadep3e @@ -6470,7 +6552,7 @@ packages: '@storybook/theming': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@storybook/ui': 6.5.10_sfoxds7t5ydpegc3knd667wn6m '@types/node': 16.11.58 - babel-loader: 8.2.5_m5tdevr4bs72kc3uk2yich4vse + babel-loader: 8.2.5_gcpowfmloeq2qxes2zb2i6tu5q case-sensitive-paths-webpack-plugin: 2.4.0 chalk: 4.1.2 core-js: 3.25.1 @@ -7427,20 +7509,20 @@ packages: /@types/wordpress__data/6.0.1: resolution: {integrity: sha512-jTLl9mbw54rUq4wuTEmg9bBUaV66MIbg7vVoutpf3Etdnk+kwsuucAdoW+mJTzKEVkGQB5LDIZ/vohd6QrtQ2w==} dependencies: - '@types/react': 17.0.47 + '@types/react': 17.0.49 redux: 4.2.0 dev: true /@types/wordpress__notices/3.5.0: resolution: {integrity: sha512-te9fZ4ErxmoiMYNCjmsVNQ4sKUrNw14OxvL5pUeXTgkXdTfIKyYjAJ61Mb9mO2iurRy6ITJGPVaWu3SjNgBBsw==} dependencies: - '@types/react': 17.0.47 + '@types/react': 17.0.49 dev: true /@types/wordpress__rich-text/3.4.6: resolution: {integrity: sha512-MeLSATBHrcN3fp8cVylbpx+BKRJ1aootPNtbTblcUAHcuRo6avKu1kaDLxIZb/8YbsD+/3Wm8d1uldeNz9/lhw==} dependencies: - '@types/react': 17.0.47 + '@types/react': 17.0.49 '@types/wordpress__data': 6.0.1 dev: true @@ -9700,6 +9782,21 @@ packages: - supports-color dev: true + /babel-loader/8.2.5_gcpowfmloeq2qxes2zb2i6tu5q: + resolution: {integrity: sha512-OSiFfH89LrEMiWd4pLNqGz4CwJDtbs2ZVc+iGu2HrkRfPxId9F2anQj38IxWpmRfsUY0aBZYi1EFcd3mhtRMLQ==} + engines: {node: '>= 8.9'} + peerDependencies: + '@babel/core': ^7.0.0 + webpack: '>=2' + dependencies: + '@babel/core': 7.19.0 + find-cache-dir: 3.3.2 + loader-utils: 2.0.2 + make-dir: 3.1.0 + schema-utils: 2.7.1 + webpack: 5.72.1_webpack-cli@4.9.1 + dev: true + /babel-loader/8.2.5_m5tdevr4bs72kc3uk2yich4vse: resolution: {integrity: sha512-OSiFfH89LrEMiWd4pLNqGz4CwJDtbs2ZVc+iGu2HrkRfPxId9F2anQj38IxWpmRfsUY0aBZYi1EFcd3mhtRMLQ==} engines: {node: '>= 8.9'} diff --git a/projects/js-packages/components/changelog/update-pricing-table-design b/projects/js-packages/components/changelog/update-pricing-table-design new file mode 100644 index 000000000000..119bdecae189 --- /dev/null +++ b/projects/js-packages/components/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Changed design to latest design patterns. diff --git a/projects/js-packages/components/components/icon-tooltip/index.tsx b/projects/js-packages/components/components/icon-tooltip/index.tsx index 2895d392b1ed..a20577224069 100644 --- a/projects/js-packages/components/components/icon-tooltip/index.tsx +++ b/projects/js-packages/components/components/icon-tooltip/index.tsx @@ -32,6 +32,7 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { placement = 'bottom-end', animate = true, iconCode = 'info-outline', + iconSize = 18, title, children, } ) => { @@ -57,7 +58,6 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { }; const args = { - iconCode, // To be compatible with deprecating prop `position`. position: placementsToPositions( placement ), placement, @@ -77,7 +77,7 @@ const IconTooltip: React.FC< IconTooltipProps > = ( { onMouseEnter={ createToggleIsOver( 'onMouseEnter', true ) } onMouseLeave={ createToggleIsOver( 'onMouseLeave' ) } > - +
diff --git a/projects/js-packages/components/components/icon-tooltip/types.ts b/projects/js-packages/components/components/icon-tooltip/types.ts index 52319f689a8b..105f41e1de7b 100644 --- a/projects/js-packages/components/components/icon-tooltip/types.ts +++ b/projects/js-packages/components/components/icon-tooltip/types.ts @@ -17,4 +17,5 @@ export type IconTooltipProps = { iconCode?: string; title?: string; children?: React.ReactNode; + iconSize?: number; }; diff --git a/projects/js-packages/components/components/pricing-table/index.tsx b/projects/js-packages/components/components/pricing-table/index.tsx index 346000e557e6..3a03c57b7d3c 100644 --- a/projects/js-packages/components/components/pricing-table/index.tsx +++ b/projects/js-packages/components/components/pricing-table/index.tsx @@ -1,5 +1,6 @@ +import { createInterpolateElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; -import { Icon, check, info, closeSmall } from '@wordpress/icons'; +import { Icon, check, closeSmall } from '@wordpress/icons'; import classnames from 'classnames'; import { createContext, @@ -10,6 +11,8 @@ import { ReactElement, } from 'react'; import React, { CSSProperties } from 'react'; +import { getRedirectUrl } from '../../../components'; +import IconTooltip from '../icon-tooltip'; import useBreakpointMatch from '../layout/use-breakpoint-match'; import Text from '../text'; import styles from './styles.module.scss'; @@ -20,27 +23,50 @@ import { PricingTableItemProps, } from './types'; +const ToS = createInterpolateElement( + __( + 'By clicking the button above, you agree to our Terms of Service and to share details with WordPress.com.', + 'jetpack' + ), + { + tosLink: , + shareDetailsLink: ( + + ), + } +); + const PricingTableContext = createContext( undefined ); export const PricingTableItem: React.FC< PricingTableItemProps > = ( { isIncluded, index = 0, label = null, + tooltipInfo, + tooltipTitle, } ) => { const [ isLg ] = useBreakpointMatch( 'lg' ); const items = useContext( PricingTableContext ); - const rowLabel = items[ index ]; + const rowLabel = items[ index ].name; + const defaultTooltipInfo = items[ index ].tooltipInfo; + const defaultTooltipTitle = items[ index ].tooltipTitle; const includedLabel = __( 'Included', 'jetpack' ); const notIncludedLabel = __( 'Not included', 'jetpack' ); + const showTooltip = tooltipInfo || ( ! isLg && defaultTooltipInfo ); + let defaultLabel = isIncluded ? includedLabel : notIncludedLabel; defaultLabel = isLg ? defaultLabel : rowLabel; - if ( ! isLg && ! isIncluded ) { + if ( ! isLg && ! isIncluded && label === null ) { return null; } return ( - +
= ( { size={ 32 } icon={ isIncluded ? check : closeSmall } /> - { label || defaultLabel } - + { label || defaultLabel } + { showTooltip && ( + + { tooltipInfo || defaultTooltipInfo } + + ) } +
); }; @@ -58,11 +95,14 @@ export const PricingTableHeader: React.FC< PricingTableHeaderProps > = ( { child
{ children }
); -export const PricingTableColumn: React.FC< PricingTableColumnProps > = ( { children } ) => { +export const PricingTableColumn: React.FC< PricingTableColumnProps > = ( { + primary = false, + children, +} ) => { let index = 0; return ( -
+
{ Children.map( children, child => { const item = child as ReactElement< PropsWithChildren< PricingTableHeaderProps | PricingTableItemProps > @@ -97,17 +137,35 @@ const PricingTable: React.FC< PricingTableProps > = ( { title, items, children } { title } { isLg && items.map( ( item, i ) => ( - - - { item } - + + { item.name } + + { item.tooltipInfo && ( + + { item.tooltipInfo } + + ) } +
) ) } { children }
+
+ + { ToS } + +
); diff --git a/projects/js-packages/components/components/pricing-table/stories/index.tsx b/projects/js-packages/components/components/pricing-table/stories/index.tsx index f091d5830179..29b36880826a 100644 --- a/projects/js-packages/components/components/pricing-table/stories/index.tsx +++ b/projects/js-packages/components/components/pricing-table/stories/index.tsx @@ -11,19 +11,24 @@ export default { const Template: ComponentStory< typeof PricingTable > = args => ( - + Up to 1000 } /> - - + + @@ -35,10 +40,14 @@ const Template: ComponentStory< typeof PricingTable > = args => ( + + - - ); @@ -46,11 +55,15 @@ const Template: ComponentStory< typeof PricingTable > = args => ( const DefaultArgs = { title: 'Buy premium, or start for free', items: [ - 'Feature A with limit', - 'Feature B', - 'Feature C with a longer title that will span multiple lines', - 'Feature D', - 'Feature E', + { name: 'Feature A with limit', tooltipInfo: 'Default info for Feature A' }, + { name: 'Feature B', tooltipInfo: 'Default info for Feature B' }, + { + name: 'Feature C with a longer title that will span multiple lines', + tooltipInfo: 'Default info for Feature C', + tooltipTitle: 'Title for C', + }, + { name: 'Feature D', tooltipInfo: 'Default info for Feature D', tooltipTitle: 'Title for D' }, + { name: 'Feature E' }, ], }; diff --git a/projects/js-packages/components/components/pricing-table/styles.module.scss b/projects/js-packages/components/components/pricing-table/styles.module.scss index 815606df83b6..96f43414e739 100644 --- a/projects/js-packages/components/components/pricing-table/styles.module.scss +++ b/projects/js-packages/components/components/pricing-table/styles.module.scss @@ -1,6 +1,7 @@ .container { --padding: calc( var( --spacing-base ) * 4 ); color: var( --jp-black ); + } .table { @@ -15,6 +16,7 @@ grid-auto-flow: column; grid-template-rows: repeat( var( --rows ), minmax( min-content, max-content ) ); column-gap: var( --gap ); + overflow: hidden; } } @@ -25,21 +27,28 @@ display: contents; } - > * { - background: var( --jp-white ); - border: solid var( --jp-gray ); - border-width: 0 1px; - box-shadow: 0px 4px 24px rgba( 0, 0, 0, 0.05 ); - clip-path: inset( - 0px -24px -24px -24px - ); // Offset clip-path everywhere but the top to display the shadows. + &.is-primary { + > * { + background: var( --jp-white ); + position: relative; + + &::after { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + box-shadow: 0px 4px 24px rgba( 0, 0, 0, 0.05 ); + } + } } > :first-child { border-top-left-radius: var( --jp-border-radius ); border-top-right-radius: var( --jp-border-radius ); border-width: 1px 1px 0; - clip-path: none; // Allow shadows everywhere. } > :last-child { @@ -59,16 +68,18 @@ padding-bottom: calc( var( --spacing-base ) * 2 ); position: relative; - &:not( :first-of-type ) { + &:not( :nth-child(2) ) { padding-top: calc( var( --spacing-base ) * 2 ); &::before { content: ''; position: absolute; top: 0; - left: var( --border-offset, 0 ); - right: var( --border-offset, 0 ); height: 1px; + .is-viewport-large & { + width: 150%; + } + z-index: 5; background-color: var( --jp-gray ); } } @@ -78,12 +89,11 @@ } } -.label { - margin-right: var( --padding ); +.last-feature { + padding-bottom: var( --padding ); } .value { - --border-offset: var( --padding ); padding-left: var( --padding ); padding-right: var( --padding ); } @@ -101,3 +111,43 @@ .icon-cross { --fill: var( --jp-red-50 ); } + +.popover { + margin-left: auto; + + .is-viewport-large & { + top: 1px; + margin: 0 var( --spacing-base ); + } +} + +.popover-icon { + fill: var( --fill, var( --jp-gray ) ); + flex-shrink: 0; +} + +.tos { + text-align: center; + width: fit-content; + + > a { + color: black; + } + + .is-viewport-large & { + padding-left: var( --padding ); + padding-right: var( --padding ); + grid-column: 2; + white-space: nowrap; + overflow: hidden; + } +} + +.tos-container { + .is-viewport-large & { + display: grid; + grid-template-columns: repeat( var( --columns ), 1fr ); + grid-auto-flow: column; + column-gap: var( --gap ); + } +} \ No newline at end of file diff --git a/projects/js-packages/components/components/pricing-table/test/component.tsx b/projects/js-packages/components/components/pricing-table/test/component.tsx index 089a63f36e49..2a4a93f7302d 100644 --- a/projects/js-packages/components/components/pricing-table/test/component.tsx +++ b/projects/js-packages/components/components/pricing-table/test/component.tsx @@ -4,7 +4,11 @@ import PricingTable, { PricingTableColumn, PricingTableHeader, PricingTableItem describe( 'PricingTable', () => { const testProps = { title: 'Dummy Pricing Table', - items: [ 'Dummy Item 1', 'Dummy Item 2', 'Dummy Item 3' ], + items: [ + { name: 'Dummy Item 1', tooltipInfo: 'Default Info' }, + { name: 'Dummy Item 2', tooltipInfo: 'Default Info' }, + { name: 'Dummy Item 3', tooltipInfo: 'Default Info' }, + ], children: ( <> diff --git a/projects/js-packages/components/components/pricing-table/types.ts b/projects/js-packages/components/components/pricing-table/types.ts index c18108b2c49a..a661d7da5fb4 100644 --- a/projects/js-packages/components/components/pricing-table/types.ts +++ b/projects/js-packages/components/components/pricing-table/types.ts @@ -7,7 +7,11 @@ export type PricingTableProps = { /** * Array of items to display in the pricing table. */ - items: string[]; + items: { + name: string; + tooltipInfo?: string; + tooltipTitle?: string; + }[]; /** * The columns to add to the table. @@ -16,6 +20,11 @@ export type PricingTableProps = { }; export type PricingTableColumnProps = { + /** + * Whether the column has the primary style. + */ + primary?: boolean; + /** * Items to show in a column. */ @@ -44,4 +53,14 @@ export type PricingTableItemProps = { * Index of the item, relative to other PricingTableItem components. Internal use only. */ index?: number; + + /* + * If the item has more description a popover info can contain that. + */ + tooltipInfo?: string; + + /** + * Title for the popover, not required. + */ + tooltipTitle?: string; }; diff --git a/projects/js-packages/components/components/product-price/index.tsx b/projects/js-packages/components/components/product-price/index.tsx index aa648c7a0a8d..afd57f90feaf 100644 --- a/projects/js-packages/components/components/product-price/index.tsx +++ b/projects/js-packages/components/components/product-price/index.tsx @@ -16,6 +16,7 @@ const ProductPrice: React.FC< ProductPriceProps > = ( { offPrice, currency = '', showNotOffPrice = true, + promoLabel = '', leyend = __( '/month, paid yearly', 'jetpack' ), isNotConvenientPrice = false, hidePriceFraction = false, @@ -29,6 +30,12 @@ const ProductPrice: React.FC< ProductPriceProps > = ( { return ( <>
+ { showNotOffPrice && ( = ( { hidePriceFraction={ hidePriceFraction } /> ) } - + { promoLabel && { promoLabel } }
- { leyend && { leyend } } + { { leyend } } ); }; diff --git a/projects/js-packages/components/components/product-price/price.tsx b/projects/js-packages/components/components/product-price/price.tsx index 69e8d8925000..bc4706a73fa5 100644 --- a/projects/js-packages/components/components/product-price/price.tsx +++ b/projects/js-packages/components/components/product-price/price.tsx @@ -21,13 +21,13 @@ export const Price: React.FC< PriceProps > = ( { value, currency, isOff, hidePri return ( - + { symbol } { integer } { showPriceFraction && ( - - { fraction } + + { fraction } ) } diff --git a/projects/js-packages/components/components/product-price/style.module.scss b/projects/js-packages/components/components/product-price/style.module.scss index a60156cc80af..99d0b916946f 100644 --- a/projects/js-packages/components/components/product-price/style.module.scss +++ b/projects/js-packages/components/components/product-price/style.module.scss @@ -2,6 +2,7 @@ display: flex; flex-wrap: wrap; align-items: flex-end; + position: relative; } .price { @@ -33,4 +34,24 @@ .leyend { color: var( --jp-gray-40 ); margin-bottom: calc( var( --spacing-base ) * 3 ); + + &::after { + content: "\200B"; // Pseudo element to keep height + } } + +.promo-label { + position: absolute; + top: 0; + right: 0; + background-color: var( --jp-yellow-10); + border-radius: 4px; + padding-left: var( --spacing-base ); + padding-right: var( --spacing-base ); + font-weight: 600; + font-size: 13px; +} + +.symbol { + font-weight: 400; +} \ No newline at end of file diff --git a/projects/js-packages/components/components/product-price/types.ts b/projects/js-packages/components/components/product-price/types.ts index 16e4e8b2fe9a..cdce5c132854 100644 --- a/projects/js-packages/components/components/product-price/types.ts +++ b/projects/js-packages/components/components/product-price/types.ts @@ -33,6 +33,11 @@ export type ProductPriceProps = { * Hides the price fraction if fraction is zero. */ hidePriceFraction?: boolean; + + /** + * Promo label to show top right of the price. + */ + promoLabel?: string; }; export type PriceProps = { diff --git a/projects/js-packages/components/package.json b/projects/js-packages/components/package.json index 36fc00319790..b7f8c095f788 100644 --- a/projects/js-packages/components/package.json +++ b/projects/js-packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@automattic/jetpack-components", - "version": "0.20.1-alpha", + "version": "0.21.0-alpha", "description": "Jetpack Components Package", "author": "Automattic", "license": "GPL-2.0-or-later", @@ -10,6 +10,7 @@ "@wordpress/components": "20.0.0", "@wordpress/compose": "5.14.0", "@wordpress/date": "4.16.0", + "@wordpress/element": "4.14.0", "@wordpress/i18n": "4.16.0", "@wordpress/icons": "9.7.0", "classnames": "2.3.1", diff --git a/projects/js-packages/connection/changelog/update-pricing-table-design b/projects/js-packages/connection/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/connection/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/connection/package.json b/projects/js-packages/connection/package.json index 711a97cb5521..bfb0fe0fdd05 100644 --- a/projects/js-packages/connection/package.json +++ b/projects/js-packages/connection/package.json @@ -7,7 +7,7 @@ "dependencies": { "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-config": "workspace:* || ^0.1", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-api": "workspace:* || ^0.13", "@wordpress/base-styles": "4.7.0", "@wordpress/browserslist-config": "5.0.0", diff --git a/projects/js-packages/idc/changelog/update-pricing-table-design b/projects/js-packages/idc/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/idc/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/idc/package.json b/projects/js-packages/idc/package.json index be1b0ab7b555..8e48b8a9408e 100644 --- a/projects/js-packages/idc/package.json +++ b/projects/js-packages/idc/package.json @@ -1,6 +1,6 @@ { "name": "@automattic/jetpack-idc", - "version": "0.10.22", + "version": "0.10.23-alpha", "description": "Jetpack Connection Component", "author": "Automattic", "license": "GPL-2.0-or-later", @@ -8,7 +8,7 @@ "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@wordpress/base-styles": "4.7.0", "@wordpress/components": "20.0.0", "@wordpress/compose": "5.14.0", diff --git a/projects/js-packages/licensing/changelog/update-pricing-table-design b/projects/js-packages/licensing/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/licensing/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/licensing/package.json b/projects/js-packages/licensing/package.json index 868aee6bf52f..e43afc095154 100644 --- a/projects/js-packages/licensing/package.json +++ b/projects/js-packages/licensing/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-licensing", - "version": "0.5.13", + "version": "0.5.14-alpha", "description": "Jetpack licensing flow", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/licensing/#readme", "bugs": { @@ -21,7 +21,7 @@ }, "dependencies": { "@automattic/jetpack-api": "workspace:* || ^0.13", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@wordpress/components": "20.0.0", "@wordpress/element": "4.14.0", "@wordpress/i18n": "4.16.0", diff --git a/projects/js-packages/partner-coupon/changelog/update-pricing-table-design b/projects/js-packages/partner-coupon/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/partner-coupon/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/partner-coupon/package.json b/projects/js-packages/partner-coupon/package.json index d6de5d9bde13..080ce9973eaf 100644 --- a/projects/js-packages/partner-coupon/package.json +++ b/projects/js-packages/partner-coupon/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-partner-coupon", - "version": "0.2.26", + "version": "0.2.27-alpha", "description": "This package aims to add components to make it easier to redeem partner coupons", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/partner-coupon/#readme", "bugs": { @@ -42,7 +42,7 @@ "react-dom": "17.0.2" }, "dependencies": { - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@wordpress/i18n": "4.16.0", "classnames": "2.3.1", diff --git a/projects/js-packages/publicize-components/changelog/update-pricing-table-design b/projects/js-packages/publicize-components/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/publicize-components/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/publicize-components/package.json b/projects/js-packages/publicize-components/package.json index c7b69db6a409..60760aa0fb08 100644 --- a/projects/js-packages/publicize-components/package.json +++ b/projects/js-packages/publicize-components/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-publicize-components", - "version": "0.6.0", + "version": "0.6.1-alpha", "description": "A library of JS components required by the Publicize editor plugin", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/publicize-components/#readme", "bugs": { @@ -19,7 +19,7 @@ "test-coverage": "pnpm run test --coverageDirectory=\"$COVERAGE_DIR\" --coverage --coverageReporters=clover" }, "dependencies": { - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-shared-extension-utils": "workspace:* || ^0.6", "@automattic/social-previews": "1.1.5", "@wordpress/annotations": "2.16.0", diff --git a/projects/js-packages/storybook/changelog/update-pricing-table-design b/projects/js-packages/storybook/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/js-packages/storybook/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/js-packages/storybook/package.json b/projects/js-packages/storybook/package.json index 7d33a50f1fc1..7a767cda437f 100644 --- a/projects/js-packages/storybook/package.json +++ b/projects/js-packages/storybook/package.json @@ -22,7 +22,7 @@ "test-coverage": "jest tests/ --coverage --collectCoverageFrom='src/**/*.js' --coverageDirectory=\"$COVERAGE_DIR\" --coverageReporters=clover" }, "devDependencies": { - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@babel/core": "7.18.13", "@babel/plugin-syntax-jsx": "7.18.6", "@babel/preset-react": "7.18.6", diff --git a/projects/packages/backup/changelog/update-pricing-table-design b/projects/packages/backup/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/packages/backup/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/backup/package.json b/projects/packages/backup/package.json index 47f74a067779..be1950f804d9 100644 --- a/projects/packages/backup/package.json +++ b/projects/packages/backup/package.json @@ -27,7 +27,7 @@ "dependencies": { "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@wordpress/api-fetch": "6.13.0", "@wordpress/data": "7.0.0", diff --git a/projects/packages/backup/src/class-package-version.php b/projects/packages/backup/src/class-package-version.php index 6196d3adc65a..165d533a19a2 100644 --- a/projects/packages/backup/src/class-package-version.php +++ b/projects/packages/backup/src/class-package-version.php @@ -12,7 +12,7 @@ */ class Package_Version { - const PACKAGE_VERSION = '1.8.1'; + const PACKAGE_VERSION = '1.8.2-alpha'; const PACKAGE_SLUG = 'backup'; diff --git a/projects/packages/my-jetpack/changelog/update-pricing-table-design b/projects/packages/my-jetpack/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/my-jetpack/package.json b/projects/packages/my-jetpack/package.json index 2cc140ed4a86..01ba7c64c274 100644 --- a/projects/packages/my-jetpack/package.json +++ b/projects/packages/my-jetpack/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-my-jetpack", - "version": "2.1.0", + "version": "2.1.1-alpha", "description": "WP Admin page with information and configuration shared among all Jetpack stand-alone plugins", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/my-jetpack/#readme", "bugs": { @@ -25,7 +25,7 @@ "@automattic/format-currency": "1.0.1", "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@automattic/jetpack-licensing": "workspace:* || ^0.5", "@wordpress/api-fetch": "6.13.0", diff --git a/projects/packages/my-jetpack/src/class-initializer.php b/projects/packages/my-jetpack/src/class-initializer.php index 4b0ab0b972b6..d2effd96a64d 100644 --- a/projects/packages/my-jetpack/src/class-initializer.php +++ b/projects/packages/my-jetpack/src/class-initializer.php @@ -29,7 +29,7 @@ class Initializer { * * @var string */ - const PACKAGE_VERSION = '2.1.0'; + const PACKAGE_VERSION = '2.1.1-alpha'; /** * Initialize My Jetapack diff --git a/projects/packages/search/changelog/update-pricing-table-design b/projects/packages/search/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/packages/search/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/search/package.json b/projects/packages/search/package.json index bf963b432626..a56087262273 100644 --- a/projects/packages/search/package.json +++ b/projects/packages/search/package.json @@ -1,6 +1,6 @@ { "name": "jetpack-search", - "version": "0.22.2", + "version": "0.22.3-alpha", "description": "Package for Jetpack Search products", "main": "main.js", "directories": { @@ -42,7 +42,7 @@ "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@wordpress/base-styles": "4.7.0", "@wordpress/block-editor": "9.8.0", diff --git a/projects/packages/search/src/class-package.php b/projects/packages/search/src/class-package.php index 7c639323a7e6..7224ed72009b 100644 --- a/projects/packages/search/src/class-package.php +++ b/projects/packages/search/src/class-package.php @@ -11,7 +11,7 @@ * Search package general information */ class Package { - const VERSION = '0.22.2'; + const VERSION = '0.22.3-alpha'; const SLUG = 'search'; /** diff --git a/projects/packages/videopress/changelog/update-pricing-table-design b/projects/packages/videopress/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/packages/videopress/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/videopress/package.json b/projects/packages/videopress/package.json index 17566d74ee76..726c2322b6ad 100644 --- a/projects/packages/videopress/package.json +++ b/projects/packages/videopress/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-videopress", - "version": "0.4.0", + "version": "0.4.1-alpha", "description": "VideoPress package", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/videopress/#readme", "bugs": { @@ -60,7 +60,7 @@ }, "dependencies": { "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@storybook/addon-actions": "6.5.10", "@wordpress/components": "20.0.0", diff --git a/projects/packages/videopress/src/class-package-version.php b/projects/packages/videopress/src/class-package-version.php index 142080000a08..f1a8fb8fcf4d 100644 --- a/projects/packages/videopress/src/class-package-version.php +++ b/projects/packages/videopress/src/class-package-version.php @@ -11,7 +11,7 @@ * The Package_Version class. */ class Package_Version { - const PACKAGE_VERSION = '0.4.0'; + const PACKAGE_VERSION = '0.4.1-alpha'; const PACKAGE_SLUG = 'videopress'; diff --git a/projects/packages/wordads/changelog/update-pricing-table-design b/projects/packages/wordads/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/packages/wordads/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/packages/wordads/package.json b/projects/packages/wordads/package.json index 8f050970ac6d..0c522eb16e67 100644 --- a/projects/packages/wordads/package.json +++ b/projects/packages/wordads/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-wordads", - "version": "0.2.15", + "version": "0.2.16-alpha", "description": "Earn income by allowing Jetpack to display high quality ads.", "main": "main.js", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/wordads/#readme", @@ -34,7 +34,7 @@ "@automattic/color-studio": "2.5.0", "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@wordpress/base-styles": "4.7.0", "@wordpress/block-editor": "9.8.0", "@wordpress/data": "7.0.0", diff --git a/projects/packages/wordads/src/class-package.php b/projects/packages/wordads/src/class-package.php index b1274cc9ef82..292fba7d8752 100644 --- a/projects/packages/wordads/src/class-package.php +++ b/projects/packages/wordads/src/class-package.php @@ -11,7 +11,7 @@ * WordAds package general information */ class Package { - const VERSION = '0.2.15'; + const VERSION = '0.2.16-alpha'; const SLUG = 'wordads'; /** diff --git a/projects/plugins/boost/changelog/update-pricing-table-design b/projects/plugins/boost/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/plugins/boost/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/boost/package.json b/projects/plugins/boost/package.json index 27b290cbc74b..467ced493545 100644 --- a/projects/plugins/boost/package.json +++ b/projects/plugins/boost/package.json @@ -15,7 +15,7 @@ "svelte-navigator": "3.1.5" }, "devDependencies": { - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@babel/core": "7.18.13", "@babel/preset-env": "7.18.10", "@babel/preset-react": "7.18.6", diff --git a/projects/plugins/jetpack/changelog/update-pricing-table-design b/projects/plugins/jetpack/changelog/update-pricing-table-design new file mode 100644 index 000000000000..1eaea6a769e8 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Updated package dependencies. diff --git a/projects/plugins/jetpack/package.json b/projects/plugins/jetpack/package.json index 00b7c09f722a..990b41a2df03 100644 --- a/projects/plugins/jetpack/package.json +++ b/projects/plugins/jetpack/package.json @@ -50,7 +50,7 @@ "@automattic/format-currency": "1.0.1", "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@automattic/jetpack-api": "workspace:* || ^0.13", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@automattic/jetpack-licensing": "workspace:* || ^0.5", "@automattic/jetpack-partner-coupon": "workspace:* || ^0.2", diff --git a/projects/plugins/protect/changelog/update-pricing-table-design b/projects/plugins/protect/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/plugins/protect/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/protect/package.json b/projects/plugins/protect/package.json index be7478436b94..8132c08787e6 100644 --- a/projects/plugins/protect/package.json +++ b/projects/plugins/protect/package.json @@ -26,7 +26,7 @@ ], "dependencies": { "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@automattic/jetpack-analytics": "workspace:* || ^0.1", "@wordpress/api-fetch": "6.13.0", diff --git a/projects/plugins/social/changelog/update-pricing-table-design b/projects/plugins/social/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/plugins/social/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/social/package.json b/projects/plugins/social/package.json index 5ce73bed35e4..dcd62bf51400 100644 --- a/projects/plugins/social/package.json +++ b/projects/plugins/social/package.json @@ -27,7 +27,7 @@ ], "dependencies": { "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@automattic/jetpack-publicize-components": "workspace:* || ^0.6", "@wordpress/data": "7.0.0", diff --git a/projects/plugins/starter-plugin/changelog/update-pricing-table-design b/projects/plugins/starter-plugin/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/plugins/starter-plugin/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/starter-plugin/package.json b/projects/plugins/starter-plugin/package.json index 5d9ff3588f0e..2a0689e0f678 100644 --- a/projects/plugins/starter-plugin/package.json +++ b/projects/plugins/starter-plugin/package.json @@ -26,7 +26,7 @@ ], "dependencies": { "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@wordpress/data": "7.0.0", "@wordpress/element": "4.14.0", diff --git a/projects/plugins/videopress/changelog/update-pricing-table-design b/projects/plugins/videopress/changelog/update-pricing-table-design new file mode 100644 index 000000000000..c47cb18e8299 --- /dev/null +++ b/projects/plugins/videopress/changelog/update-pricing-table-design @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Updated package dependencies. diff --git a/projects/plugins/videopress/package.json b/projects/plugins/videopress/package.json index 8e01362e2820..0cbfc4155c48 100644 --- a/projects/plugins/videopress/package.json +++ b/projects/plugins/videopress/package.json @@ -17,7 +17,7 @@ ], "dependencies": { "@automattic/jetpack-base-styles": "workspace:* || ^0.3", - "@automattic/jetpack-components": "workspace:* || ^0.20", + "@automattic/jetpack-components": "workspace:* || ^0.21", "@automattic/jetpack-connection": "workspace:* || ^0.20", "@wordpress/data": "7.0.0", "@wordpress/element": "4.14.0",