Merge branch 'trunk' into update/product-editor-use-block-preview-in-description-block
This commit is contained in:
commit
fcb9b60ced
|
@ -101,3 +101,6 @@ changes.json
|
|||
|
||||
# Support .gitkeep Files
|
||||
!.gitkeep
|
||||
|
||||
# default docs manifest
|
||||
/manifest.json
|
||||
|
|
|
@ -69,40 +69,33 @@ function getPackageOutputs( packageFile ) {
|
|||
exclude: [],
|
||||
};
|
||||
|
||||
// Packages that explicitly declare their outputs have made this easy for us.
|
||||
if ( packageFile.files ) {
|
||||
// We're going to make the glob relative to the package directory instead of the dependency directory.
|
||||
// To do this though, we need to transform the path a little bit.
|
||||
for ( const fileGlob of packageFile.files ) {
|
||||
let relativeGlob = fileGlob;
|
||||
// Packages that don't explicitly define files should be excluded from the fingerprint entirely.
|
||||
if ( ! packageFile.files ) {
|
||||
return packageOutputs;
|
||||
}
|
||||
|
||||
// Negation globs need to move the exclamation point to the beginning of the output glob.
|
||||
let negation = relativeGlob.startsWith( '!' ) ? true : false;
|
||||
if ( negation ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
// We're going to make the glob relative to the package directory instead of the dependency directory.
|
||||
// To do this though, we need to transform the path a little bit.
|
||||
for ( const fileGlob of packageFile.files ) {
|
||||
let relativeGlob = fileGlob;
|
||||
|
||||
// Remove leading slashes.
|
||||
if ( relativeGlob.startsWith( '/' ) ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
|
||||
// Now we can construct a glob relative to the package directory.
|
||||
if ( negation ) {
|
||||
packageOutputs.exclude.push( `!${ basePath }/${ relativeGlob }` );
|
||||
} else {
|
||||
packageOutputs.include.push( `${ basePath }/${ relativeGlob }` );
|
||||
}
|
||||
// Negation globs need to move the exclamation point to the beginning of the output glob.
|
||||
let negation = relativeGlob.startsWith( '!' ) ? true : false;
|
||||
if ( negation ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
} else {
|
||||
// This is a VERY heavy-handed approach and will simply include every file in the package directory.
|
||||
packageOutputs.include.push( `${ basePath }/` );
|
||||
|
||||
// We can make this a little bit smarter by ignoring some common directories.
|
||||
packageOutputs.exclude.push( `!${ basePath }/node_modules` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/.git` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/.svn` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/src` ); // We generally name our source directories "src" and don't need source files.
|
||||
// Remove leading slashes.
|
||||
if ( relativeGlob.startsWith( '/' ) ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
|
||||
// Now we can construct a glob relative to the package directory.
|
||||
if ( negation ) {
|
||||
packageOutputs.exclude.push( `!${ basePath }/${ relativeGlob }` );
|
||||
} else {
|
||||
packageOutputs.include.push( `${ basePath }/${ relativeGlob }` );
|
||||
}
|
||||
}
|
||||
|
||||
return packageOutputs;
|
||||
|
@ -120,7 +113,7 @@ function isLinkedPackage( packagePath, lockVersion ) {
|
|||
// We can parse the version that PNPM stores in order to get the relative path to the package.
|
||||
// file: dependencies use a relative path with dependencies listed in parentheses after it.
|
||||
// workspace: dependencies just store the relative path from the package itself.
|
||||
const match = lockVersion.match( /^(?:file:|link:)((?:\.?\/|\.\.\/)[^\^<>:"|?*()]+)/i );
|
||||
const match = lockVersion.match( /^(?:file:|link:)([^\^<>:"|?*()]+)/i );
|
||||
if ( ! match ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -132,6 +125,14 @@ function isLinkedPackage( packagePath, lockVersion ) {
|
|||
relativePath = path.join( packagePath, relativePath );
|
||||
}
|
||||
|
||||
// Local relative paths won't always start with './' so we want to make sure that the path
|
||||
// exists before we return it. We do this instead of checking for the existeince of the
|
||||
// package.json file later because we want to be able to detect cases where the
|
||||
// package file should exist but for some reason can't be loaded.
|
||||
if ( ! match[ 1 ].startsWith( '.' ) && ! fs.existsSync( relativePath ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return relativePath;
|
||||
}
|
||||
|
||||
|
@ -174,8 +175,8 @@ function getLinkedPackages( packagePath, lockPackage ) {
|
|||
* Hooks up all of the dependency outputs as file dependencies for wireit to fingerprint them.
|
||||
*
|
||||
* @param {Object.<string, Object>} lockPackages The paths to all of the packages we're processing.
|
||||
* @param {Object} context The hook context object.
|
||||
* @param {Function.<string>} context.log Logs a message to the console.
|
||||
* @param {Object} context The hook context object.
|
||||
* @param {Function.<string>} context.log Logs a message to the console.
|
||||
*/
|
||||
function updateWireitDependencies( lockPackages, context ) {
|
||||
context.log( '[wireit] Updating Dependency Lists' );
|
||||
|
@ -216,7 +217,15 @@ function updateWireitDependencies( lockPackages, context ) {
|
|||
// their outputs to the list. We can then use these are file dependencies for
|
||||
// wireit and it will fingerprint them for us.
|
||||
for ( const linkedPackage of linkedPackages ) {
|
||||
const packageOutputs = getPackageOutputs( linkedPackage );
|
||||
const packageOutputs = getPackageOutputs( linkedPackage, context );
|
||||
|
||||
if ( ! packageOutputs.include.length && ! packageOutputs.include.length ) {
|
||||
context.log(
|
||||
`[wireit][${ packageFile.name }] Missing '${ linkedPackage.name }' Output Definition`
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Put includes at the front and excludes at the end. This is important because otherwise
|
||||
// wireit will blow the call stack due to the way it handles negation globs.
|
||||
packageFile.wireit.dependencyOutputs.files.unshift( ...packageOutputs.include );
|
||||
|
@ -235,11 +244,11 @@ function updateWireitDependencies( lockPackages, context ) {
|
|||
/**
|
||||
* This hook allows for the mutation of the lockfile before it is serialized.
|
||||
*
|
||||
* @param {Object} lockfile The lock file that was produced by PNPM.
|
||||
* @param {string} lockfile.lockfileVersion The version of the lock file spec.
|
||||
* @param {Object.<string, Object>} lockfile.importers The packages in the workspace that are included in the lock file, keyed by the relative path to the package.
|
||||
* @param {Object} context The hook context object.
|
||||
* @param {Function.<string>} context.log Logs a message to the console.
|
||||
* @param {Object} lockfile The lock file that was produced by PNPM.
|
||||
* @param {string} lockfile.lockfileVersion The version of the lock file spec.
|
||||
* @param {Object.<string, Object>} lockfile.importers The packages in the workspace that are included in the lock file, keyed by the relative path to the package.
|
||||
* @param {Object} context The hook context object.
|
||||
* @param {Function.<string>} context.log Logs a message to the console.
|
||||
*
|
||||
* @return {Object} lockfile The updated lockfile.
|
||||
*/
|
||||
|
|
|
@ -589,13 +589,7 @@
|
|||
}
|
||||
}
|
||||
],
|
||||
"categories": [
|
||||
{
|
||||
"category_slug": "_media",
|
||||
"category_title": "_media",
|
||||
"categories": []
|
||||
}
|
||||
]
|
||||
"categories": []
|
||||
},
|
||||
{
|
||||
"content": "\n> ⚠️ **Notice:** This documentation is currently a **work in progress**. While it's open to the public for transparency and collaboration, please be aware that some sections might be incomplete or subject to change. We appreciate your patience and welcome any contributions!\n\nSecurity is paramount. This section will dive into best practices, guidelines, and insights to ensure your WooCommerce projects remain secure from threats. \n",
|
||||
|
@ -676,13 +670,7 @@
|
|||
"id": "c2fde53e1dc3efbded3cfe1fb4df27136a3799a4"
|
||||
}
|
||||
],
|
||||
"categories": [
|
||||
{
|
||||
"category_slug": "_media",
|
||||
"category_title": "_media",
|
||||
"categories": []
|
||||
}
|
||||
]
|
||||
"categories": []
|
||||
},
|
||||
{
|
||||
"content": "\n> ⚠️ **Notice:** This documentation is currently a **work in progress**. While it's open to the public for transparency and collaboration, please be aware that some sections might be incomplete or subject to change. We appreciate your patience and welcome any contributions!\n\nThis section will contain step-by-step guides and walkthroughs tailored for both novice and seasoned WooCommerce enthusiasts. Whether it's setting up a new feature or diving into complex customizations, our tutorials will cover a wide range of topics to help you achieve your goals.\n",
|
||||
|
@ -784,13 +772,7 @@
|
|||
"id": "e735f919214fed8fa5332d30a5340fd2e6a21169"
|
||||
}
|
||||
],
|
||||
"categories": [
|
||||
{
|
||||
"category_slug": "_media",
|
||||
"category_title": "_media",
|
||||
"categories": []
|
||||
}
|
||||
]
|
||||
"categories": []
|
||||
},
|
||||
{
|
||||
"category_slug": "wc-cli",
|
||||
|
@ -814,5 +796,5 @@
|
|||
"categories": []
|
||||
}
|
||||
],
|
||||
"hash": "a0e4d6c0ffdfccb2a64936ea9f0542e13ac05304a2cdc5ee297cd741362ba504"
|
||||
"hash": "a055cc49f6aee473c29380b9a36fb50e253ec04431dc41f54687be939927319d"
|
||||
}
|
|
@ -20,7 +20,7 @@
|
|||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"files": [
|
||||
"/build/",
|
||||
"build",
|
||||
"!*.ts.map",
|
||||
"!*.tsbuildinfo"
|
||||
],
|
||||
|
@ -94,17 +94,7 @@
|
|||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/e2e-environment/",
|
||||
"node_modules/@woocommerce/e2e-utils/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/e2e-utils/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-utils/.git",
|
||||
"!node_modules/@woocommerce/e2e-utils/.svn",
|
||||
"!node_modules/@woocommerce/e2e-utils/src",
|
||||
"!node_modules/@woocommerce/e2e-environment/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-environment/.git",
|
||||
"!node_modules/@woocommerce/e2e-environment/.svn",
|
||||
"!node_modules/@woocommerce/e2e-environment/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -119,20 +125,16 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/components/build",
|
||||
"node_modules/@woocommerce/components/build-module",
|
||||
"node_modules/@woocommerce/components/build-style",
|
||||
"node_modules/@woocommerce/components/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -147,20 +153,14 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,13 +20,13 @@
|
|||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"/dist/",
|
||||
"dist/",
|
||||
"!*.ts.map",
|
||||
"!*.tsbuildinfo",
|
||||
"!/dist/**/__tests__/",
|
||||
"!/dist/**/__mocks__/",
|
||||
"!/dist/**/__snapshops__/",
|
||||
"!/dist/**/__test_data__/"
|
||||
"!dist/**/__tests__/",
|
||||
"!dist/**/__mocks__/",
|
||||
"!dist/**/__snapshops__/",
|
||||
"!dist/**/__test_data__/"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -137,25 +143,17 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/expression-evaluation/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/expression-evaluation/node_modules",
|
||||
"!node_modules/@woocommerce/expression-evaluation/.git",
|
||||
"!node_modules/@woocommerce/expression-evaluation/.svn",
|
||||
"!node_modules/@woocommerce/expression-evaluation/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/expression-evaluation/build",
|
||||
"node_modules/@woocommerce/expression-evaluation/build-module",
|
||||
"node_modules/@woocommerce/expression-evaluation/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
"main": "build/index.js",
|
||||
"module": "build-module/index.js",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -221,45 +227,29 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/csv-export/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/csv-export/node_modules",
|
||||
"!node_modules/@woocommerce/csv-export/.git",
|
||||
"!node_modules/@woocommerce/csv-export/.svn",
|
||||
"!node_modules/@woocommerce/csv-export/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/navigation/build",
|
||||
"node_modules/@woocommerce/navigation/build-module",
|
||||
"node_modules/@woocommerce/navigation/build-types",
|
||||
"node_modules/@woocommerce/date/build",
|
||||
"node_modules/@woocommerce/date/build-module",
|
||||
"node_modules/@woocommerce/date/build-types",
|
||||
"node_modules/@woocommerce/data/build",
|
||||
"node_modules/@woocommerce/data/build-module",
|
||||
"node_modules/@woocommerce/data/build-types",
|
||||
"node_modules/@woocommerce/currency/build",
|
||||
"node_modules/@woocommerce/currency/build-module",
|
||||
"node_modules/@woocommerce/currency/build-types",
|
||||
"node_modules/@woocommerce/csv-export/build",
|
||||
"node_modules/@woocommerce/csv-export/build-module",
|
||||
"node_modules/@woocommerce/csv-export/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -106,15 +111,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -109,20 +114,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"node_modules/@woocommerce/number/build",
|
||||
"node_modules/@woocommerce/number/build-module",
|
||||
"node_modules/@woocommerce/number/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -146,40 +152,27 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"node_modules/@woocommerce/navigation/build",
|
||||
"node_modules/@woocommerce/navigation/build-module",
|
||||
"node_modules/@woocommerce/navigation/build-types",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src"
|
||||
"node_modules/@woocommerce/data/build",
|
||||
"node_modules/@woocommerce/data/build-module",
|
||||
"node_modules/@woocommerce/data/build-types",
|
||||
"node_modules/@woocommerce/experimental/build",
|
||||
"node_modules/@woocommerce/experimental/build-module",
|
||||
"node_modules/@woocommerce/experimental/build-style",
|
||||
"node_modules/@woocommerce/experimental/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: add
|
||||
|
||||
Add meta_data type to Product
|
|
@ -24,6 +24,11 @@
|
|||
"main": "build/index.js",
|
||||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -138,30 +143,21 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"node_modules/@woocommerce/navigation/build",
|
||||
"node_modules/@woocommerce/navigation/build-module",
|
||||
"node_modules/@woocommerce/navigation/build-types",
|
||||
"node_modules/@woocommerce/date/build",
|
||||
"node_modules/@woocommerce/date/build-module",
|
||||
"node_modules/@woocommerce/date/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,6 +98,11 @@ export type Product< Status = ProductStatus, Type = ProductType > = Omit<
|
|||
generated_slug: string;
|
||||
id: number;
|
||||
low_stock_amount: number;
|
||||
meta_data: {
|
||||
id?: number;
|
||||
key: string;
|
||||
value?: string;
|
||||
}[];
|
||||
manage_stock: boolean;
|
||||
menu_order: number;
|
||||
name: string;
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/d3-time-format": "^2.3.4",
|
||||
"@wordpress/date": "wp-6.0",
|
||||
|
@ -116,15 +121,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
"url": "https://github.com/woocommerce/woocommerce/issues"
|
||||
},
|
||||
"main": "src/index.js",
|
||||
"files": [
|
||||
"src/"
|
||||
],
|
||||
"dependencies": {
|
||||
"@wordpress/dependency-extraction-webpack-plugin": "^3.7.0"
|
||||
},
|
||||
|
|
|
@ -25,6 +25,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -156,25 +162,18 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/components/build",
|
||||
"node_modules/@woocommerce/components/build-module",
|
||||
"node_modules/@woocommerce/components/build-style",
|
||||
"node_modules/@woocommerce/components/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"main": "build/index.js",
|
||||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -113,15 +118,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"dependencies": {
|
||||
"@wordpress/i18n": "wp-6.0",
|
||||
"peggy": "^3.0.2"
|
||||
|
@ -99,15 +104,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,15 +115,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
"description": "Utility build files for e2e packages",
|
||||
"private": true,
|
||||
"main": "build.js",
|
||||
"files": [
|
||||
"build.js",
|
||||
"get-babel-config.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^16.14.1",
|
||||
"pnpm": "^8.6.7"
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"root": "packages/js/internal-e2e-builds",
|
||||
"sourceRoot": "packages/js/internal-e2e-builds",
|
||||
"projectType": "library",
|
||||
"targets": {}
|
||||
}
|
|
@ -20,6 +20,11 @@
|
|||
"private": true,
|
||||
"main": "build/util/index.js",
|
||||
"module": "build-module/util/index.js",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"jest-preset.js"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
"url": "https://github.com/woocommerce/woocommerce/issues"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
"abstracts"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
|
||||
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -119,15 +124,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"dependencies": {
|
||||
"locutus": "^2.0.16"
|
||||
},
|
||||
|
@ -105,15 +110,12 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" build:project",
|
||||
"build:project": "pnpm --if-present /^build:project:.*$/",
|
||||
|
@ -142,40 +148,28 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/explat/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/explat/node_modules",
|
||||
"!node_modules/@woocommerce/explat/.git",
|
||||
"!node_modules/@woocommerce/explat/.svn",
|
||||
"!node_modules/@woocommerce/explat/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"node_modules/@woocommerce/explat/build",
|
||||
"node_modules/@woocommerce/explat/build-module",
|
||||
"node_modules/@woocommerce/explat/build-types",
|
||||
"node_modules/@woocommerce/experimental/build",
|
||||
"node_modules/@woocommerce/experimental/build-module",
|
||||
"node_modules/@woocommerce/experimental/build-style",
|
||||
"node_modules/@woocommerce/experimental/build-types",
|
||||
"node_modules/@woocommerce/components/build",
|
||||
"node_modules/@woocommerce/components/build-module",
|
||||
"node_modules/@woocommerce/components/build-style",
|
||||
"node_modules/@woocommerce/components/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-style",
|
||||
"build-types"
|
||||
],
|
||||
"sideEffects": [
|
||||
"build-style/**",
|
||||
"src/**/*.scss"
|
||||
|
@ -194,70 +200,49 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/customer-effort-score/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"node_modules/@woocommerce/block-templates/",
|
||||
"node_modules/@woocommerce/admin-layout/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-layout/node_modules",
|
||||
"!node_modules/@woocommerce/admin-layout/.git",
|
||||
"!node_modules/@woocommerce/admin-layout/.svn",
|
||||
"!node_modules/@woocommerce/admin-layout/src",
|
||||
"!node_modules/@woocommerce/block-templates/node_modules",
|
||||
"!node_modules/@woocommerce/block-templates/.git",
|
||||
"!node_modules/@woocommerce/block-templates/.svn",
|
||||
"!node_modules/@woocommerce/block-templates/src",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/customer-effort-score/node_modules",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.git",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.svn",
|
||||
"!node_modules/@woocommerce/customer-effort-score/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"node_modules/@woocommerce/number/build",
|
||||
"node_modules/@woocommerce/number/build-module",
|
||||
"node_modules/@woocommerce/number/build-types",
|
||||
"node_modules/@woocommerce/navigation/build",
|
||||
"node_modules/@woocommerce/navigation/build-module",
|
||||
"node_modules/@woocommerce/navigation/build-types",
|
||||
"node_modules/@woocommerce/experimental/build",
|
||||
"node_modules/@woocommerce/experimental/build-module",
|
||||
"node_modules/@woocommerce/experimental/build-style",
|
||||
"node_modules/@woocommerce/experimental/build-types",
|
||||
"node_modules/@woocommerce/data/build",
|
||||
"node_modules/@woocommerce/data/build-module",
|
||||
"node_modules/@woocommerce/data/build-types",
|
||||
"node_modules/@woocommerce/customer-effort-score/build",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-module",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-style",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-types",
|
||||
"node_modules/@woocommerce/currency/build",
|
||||
"node_modules/@woocommerce/currency/build-module",
|
||||
"node_modules/@woocommerce/currency/build-types",
|
||||
"node_modules/@woocommerce/components/build",
|
||||
"node_modules/@woocommerce/components/build-module",
|
||||
"node_modules/@woocommerce/components/build-style",
|
||||
"node_modules/@woocommerce/components/build-types",
|
||||
"node_modules/@woocommerce/block-templates/build",
|
||||
"node_modules/@woocommerce/block-templates/build-module",
|
||||
"node_modules/@woocommerce/block-templates/build-style",
|
||||
"node_modules/@woocommerce/block-templates/build-types",
|
||||
"node_modules/@woocommerce/admin-layout/build",
|
||||
"node_modules/@woocommerce/admin-layout/build-module",
|
||||
"node_modules/@woocommerce/admin-layout/build-style",
|
||||
"node_modules/@woocommerce/admin-layout/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,11 @@
|
|||
"module": "build-module/index.js",
|
||||
"types": "build-types",
|
||||
"react-native": "src/index",
|
||||
"files": [
|
||||
"build",
|
||||
"build-module",
|
||||
"build-types"
|
||||
],
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
|
|
|
@ -263,108 +263,73 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/product-editor/",
|
||||
"node_modules/@woocommerce/onboarding/",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"node_modules/@woocommerce/notices/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/explat/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"node_modules/@woocommerce/product-editor/build",
|
||||
"node_modules/@woocommerce/product-editor/build-module",
|
||||
"node_modules/@woocommerce/product-editor/build-style",
|
||||
"node_modules/@woocommerce/product-editor/build-types",
|
||||
"node_modules/@woocommerce/onboarding/build",
|
||||
"node_modules/@woocommerce/onboarding/build-module",
|
||||
"node_modules/@woocommerce/onboarding/build-style",
|
||||
"node_modules/@woocommerce/onboarding/build-types",
|
||||
"node_modules/@woocommerce/number/build",
|
||||
"node_modules/@woocommerce/number/build-module",
|
||||
"node_modules/@woocommerce/number/build-types",
|
||||
"node_modules/@woocommerce/notices/build",
|
||||
"node_modules/@woocommerce/notices/build-module",
|
||||
"node_modules/@woocommerce/notices/build-types",
|
||||
"node_modules/@woocommerce/navigation/build",
|
||||
"node_modules/@woocommerce/navigation/build-module",
|
||||
"node_modules/@woocommerce/navigation/build-types",
|
||||
"node_modules/@woocommerce/internal-style-build/index.js",
|
||||
"node_modules/@woocommerce/internal-style-build/abstracts",
|
||||
"node_modules/@woocommerce/internal-js-tests/build",
|
||||
"node_modules/@woocommerce/internal-js-tests/build-module",
|
||||
"node_modules/@woocommerce/explat/build",
|
||||
"node_modules/@woocommerce/explat/build-module",
|
||||
"node_modules/@woocommerce/explat/build-types",
|
||||
"node_modules/@woocommerce/experimental/build",
|
||||
"node_modules/@woocommerce/experimental/build-module",
|
||||
"node_modules/@woocommerce/experimental/build-style",
|
||||
"node_modules/@woocommerce/experimental/build-types",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/dependency-extraction-webpack-plugin/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/customer-effort-score/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/csv-export/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"node_modules/@woocommerce/ai/",
|
||||
"node_modules/@woocommerce/admin-layout/",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build/",
|
||||
"node_modules/@woocommerce/dependency-extraction-webpack-plugin/src/",
|
||||
"node_modules/@woocommerce/date/build",
|
||||
"node_modules/@woocommerce/date/build-module",
|
||||
"node_modules/@woocommerce/date/build-types",
|
||||
"node_modules/@woocommerce/data/build",
|
||||
"node_modules/@woocommerce/data/build-module",
|
||||
"node_modules/@woocommerce/data/build-types",
|
||||
"node_modules/@woocommerce/customer-effort-score/build",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-module",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-style",
|
||||
"node_modules/@woocommerce/customer-effort-score/build-types",
|
||||
"node_modules/@woocommerce/currency/build",
|
||||
"node_modules/@woocommerce/currency/build-module",
|
||||
"node_modules/@woocommerce/currency/build-types",
|
||||
"node_modules/@woocommerce/csv-export/build",
|
||||
"node_modules/@woocommerce/csv-export/build-module",
|
||||
"node_modules/@woocommerce/csv-export/build-types",
|
||||
"node_modules/@woocommerce/components/build",
|
||||
"node_modules/@woocommerce/components/build-module",
|
||||
"node_modules/@woocommerce/components/build-style",
|
||||
"node_modules/@woocommerce/components/build-types",
|
||||
"node_modules/@woocommerce/ai/build",
|
||||
"node_modules/@woocommerce/ai/build-module",
|
||||
"node_modules/@woocommerce/ai/build-style",
|
||||
"node_modules/@woocommerce/ai/build-types",
|
||||
"node_modules/@woocommerce/admin-layout/build",
|
||||
"node_modules/@woocommerce/admin-layout/build-module",
|
||||
"node_modules/@woocommerce/admin-layout/build-style",
|
||||
"node_modules/@woocommerce/admin-layout/build-types",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo",
|
||||
"!node_modules/@woocommerce/admin-layout/node_modules",
|
||||
"!node_modules/@woocommerce/admin-layout/.git",
|
||||
"!node_modules/@woocommerce/admin-layout/.svn",
|
||||
"!node_modules/@woocommerce/admin-layout/src",
|
||||
"!node_modules/@woocommerce/ai/node_modules",
|
||||
"!node_modules/@woocommerce/ai/.git",
|
||||
"!node_modules/@woocommerce/ai/.svn",
|
||||
"!node_modules/@woocommerce/ai/src",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/csv-export/node_modules",
|
||||
"!node_modules/@woocommerce/csv-export/.git",
|
||||
"!node_modules/@woocommerce/csv-export/.svn",
|
||||
"!node_modules/@woocommerce/csv-export/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/customer-effort-score/node_modules",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.git",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.svn",
|
||||
"!node_modules/@woocommerce/customer-effort-score/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/node_modules",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/.git",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/.svn",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/explat/node_modules",
|
||||
"!node_modules/@woocommerce/explat/.git",
|
||||
"!node_modules/@woocommerce/explat/.svn",
|
||||
"!node_modules/@woocommerce/explat/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/notices/node_modules",
|
||||
"!node_modules/@woocommerce/notices/.git",
|
||||
"!node_modules/@woocommerce/notices/.svn",
|
||||
"!node_modules/@woocommerce/notices/src",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/onboarding/node_modules",
|
||||
"!node_modules/@woocommerce/onboarding/.git",
|
||||
"!node_modules/@woocommerce/onboarding/.svn",
|
||||
"!node_modules/@woocommerce/onboarding/src",
|
||||
"!node_modules/@woocommerce/product-editor/node_modules",
|
||||
"!node_modules/@woocommerce/product-editor/.git",
|
||||
"!node_modules/@woocommerce/product-editor/.svn",
|
||||
"!node_modules/@woocommerce/product-editor/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src"
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -353,12 +353,8 @@
|
|||
"repo": "woocommerce/woocommerce-gutenberg-products-block"
|
||||
},
|
||||
"files": [
|
||||
"assets/**/*.{js,scss,php}",
|
||||
"build/**/*.{js,json,css}",
|
||||
"includes/**/*.php",
|
||||
"languages/**/*.json",
|
||||
"license.txt",
|
||||
"woocommerce-gutenberg-products-block.php"
|
||||
"build",
|
||||
"blocks.ini"
|
||||
],
|
||||
"wireit": {
|
||||
"build:project:bundle": {
|
||||
|
@ -403,22 +399,13 @@
|
|||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/e2e-utils/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/e2e-utils/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-utils/.git",
|
||||
"!node_modules/@woocommerce/e2e-utils/.svn",
|
||||
"!node_modules/@woocommerce/e2e-utils/src"
|
||||
"node_modules/@woocommerce/data/build",
|
||||
"node_modules/@woocommerce/data/build-module",
|
||||
"node_modules/@woocommerce/data/build-types",
|
||||
"node_modules/@woocommerce/tracks/build",
|
||||
"node_modules/@woocommerce/tracks/build-module",
|
||||
"node_modules/@woocommerce/tracks/build-types",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: fix
|
||||
|
||||
Fix problems with pagination and filtering for the database logger list table view
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
Prevent fatal error when submitting an empty search query on the log files screen.
|
|
@ -17,6 +17,12 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
|
|||
}
|
||||
|
||||
class WC_Admin_Log_Table_List extends WP_List_Table {
|
||||
/**
|
||||
* The key for the user option of how many list table items to display per page.
|
||||
*
|
||||
* @const string
|
||||
*/
|
||||
public const PER_PAGE_USER_OPTION_KEY = 'woocommerce_status_log_items_per_page';
|
||||
|
||||
/**
|
||||
* Initialize the log table list.
|
||||
|
@ -330,7 +336,10 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
|||
|
||||
$this->prepare_column_headers();
|
||||
|
||||
$per_page = $this->get_items_per_page( 'woocommerce_status_log_items_per_page', 10 );
|
||||
$per_page = $this->get_items_per_page(
|
||||
self::PER_PAGE_USER_OPTION_KEY,
|
||||
$this->get_per_page_default()
|
||||
);
|
||||
|
||||
$where = $this->get_items_query_where();
|
||||
$order = $this->get_items_query_order();
|
||||
|
@ -367,7 +376,11 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
|||
protected function get_items_query_limit() {
|
||||
global $wpdb;
|
||||
|
||||
$per_page = $this->get_items_per_page( 'woocommerce_status_log_items_per_page', 10 );
|
||||
$per_page = $this->get_items_per_page(
|
||||
self::PER_PAGE_USER_OPTION_KEY,
|
||||
$this->get_per_page_default()
|
||||
);
|
||||
|
||||
return $wpdb->prepare( 'LIMIT %d', $per_page );
|
||||
}
|
||||
|
||||
|
@ -381,7 +394,10 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
|||
protected function get_items_query_offset() {
|
||||
global $wpdb;
|
||||
|
||||
$per_page = $this->get_items_per_page( 'woocommerce_status_log_items_per_page', 10 );
|
||||
$per_page = $this->get_items_per_page(
|
||||
self::PER_PAGE_USER_OPTION_KEY,
|
||||
$this->get_per_page_default()
|
||||
);
|
||||
$current_page = $this->get_pagenum();
|
||||
if ( 1 < $current_page ) {
|
||||
$offset = $per_page * ( $current_page - 1 );
|
||||
|
@ -457,4 +473,13 @@ class WC_Admin_Log_Table_List extends WP_List_Table {
|
|||
$this->get_sortable_columns(),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to get the default value for the per_page arg.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_per_page_default(): int {
|
||||
return 20;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -326,6 +326,7 @@ class WC_Admin_Menus {
|
|||
'woocommerce_webhooks_per_page',
|
||||
FileListTable::PER_PAGE_USER_OPTION_KEY,
|
||||
SearchListTable::PER_PAGE_USER_OPTION_KEY,
|
||||
WC_Admin_Log_Table_List::PER_PAGE_USER_OPTION_KEY,
|
||||
);
|
||||
|
||||
if ( in_array( $option, $screen_options, true ) ) {
|
||||
|
|
|
@ -15,6 +15,12 @@ defined( 'ABSPATH' ) || exit;
|
|||
* WC_Admin_Status Class.
|
||||
*/
|
||||
class WC_Admin_Status {
|
||||
/**
|
||||
* An instance of the DB log handler list table.
|
||||
*
|
||||
* @var WC_Admin_Log_Table_List
|
||||
*/
|
||||
private static $db_log_list_table;
|
||||
|
||||
/**
|
||||
* Handles output of the reports page in admin.
|
||||
|
@ -133,15 +139,17 @@ class WC_Admin_Status {
|
|||
* Show the log page contents for db log handler.
|
||||
*/
|
||||
public static function status_logs_db() {
|
||||
if ( ! empty( $_REQUEST['flush-logs'] ) ) { // WPCS: input var ok, CSRF ok.
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce handled in flush_db_logs().
|
||||
if ( isset( $_REQUEST['flush-logs'] ) ) {
|
||||
self::flush_db_logs();
|
||||
}
|
||||
|
||||
if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['log'] ) ) { // WPCS: input var ok, CSRF ok.
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce handled in log_table_bulk_actions().
|
||||
if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['log'] ) ) {
|
||||
self::log_table_bulk_actions();
|
||||
}
|
||||
|
||||
$log_table_list = new WC_Admin_Log_Table_List();
|
||||
$log_table_list = self::get_db_log_list_table();
|
||||
$log_table_list->prepare_items();
|
||||
|
||||
include_once __DIR__ . '/views/html-admin-page-status-logs-db.php';
|
||||
|
@ -306,20 +314,38 @@ class WC_Admin_Status {
|
|||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a stored instance of the DB log list table class.
|
||||
*
|
||||
* @return WC_Admin_Log_Table_List
|
||||
*/
|
||||
public static function get_db_log_list_table() {
|
||||
if ( is_null( self::$db_log_list_table ) ) {
|
||||
self::$db_log_list_table = new WC_Admin_Log_Table_List();
|
||||
}
|
||||
|
||||
return self::$db_log_list_table;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clear DB log table.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
private static function flush_db_logs() {
|
||||
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-status-logs' ) ) { // WPCS: input var ok, sanitization ok.
|
||||
wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) );
|
||||
check_admin_referer( 'bulk-logs' );
|
||||
|
||||
if ( ! current_user_can( 'manage_woocommerce' ) ) {
|
||||
wp_die( esc_html__( 'You do not have permission to manage log entries.', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
WC_Log_Handler_DB::flush();
|
||||
|
||||
wp_safe_redirect( esc_url_raw( admin_url( 'admin.php?page=wc-status&tab=logs' ) ) );
|
||||
exit();
|
||||
$sendback = wp_sanitize_redirect( admin_url( 'admin.php?page=wc-status&tab=logs' ) );
|
||||
|
||||
wp_safe_redirect( $sendback );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -328,15 +354,22 @@ class WC_Admin_Status {
|
|||
* @since 3.0.0
|
||||
*/
|
||||
private static function log_table_bulk_actions() {
|
||||
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'woocommerce-status-logs' ) ) { // WPCS: input var ok, sanitization ok.
|
||||
wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'woocommerce' ) );
|
||||
check_admin_referer( 'bulk-logs' );
|
||||
|
||||
if ( ! current_user_can( 'manage_woocommerce' ) ) {
|
||||
wp_die( esc_html__( 'You do not have permission to manage log entries.', 'woocommerce' ) );
|
||||
}
|
||||
|
||||
$log_ids = array_map( 'absint', (array) isset( $_REQUEST['log'] ) ? wp_unslash( $_REQUEST['log'] ) : array() ); // WPCS: input var ok, sanitization ok.
|
||||
$log_ids = (array) filter_input( INPUT_GET, 'log', FILTER_CALLBACK, array( 'options' => 'absint' ) );
|
||||
|
||||
if ( ( isset( $_REQUEST['action'] ) && 'delete' === $_REQUEST['action'] ) || ( isset( $_REQUEST['action2'] ) && 'delete' === $_REQUEST['action2'] ) ) { // WPCS: input var ok, sanitization ok.
|
||||
$action = self::get_db_log_list_table()->current_action();
|
||||
|
||||
if ( 'delete' === $action ) {
|
||||
WC_Log_Handler_DB::delete( $log_ids );
|
||||
wp_safe_redirect( esc_url_raw( admin_url( 'admin.php?page=wc-status&tab=logs' ) ) );
|
||||
|
||||
$sendback = remove_query_arg( array( 'action', 'action2', 'log', '_wpnonce', '_wp_http_referer' ), wp_get_referer() );
|
||||
|
||||
wp_safe_redirect( $sendback );
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,16 +9,29 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$delete_confirmation_js = sprintf(
|
||||
"return window.confirm( '%s' )",
|
||||
esc_js( __( 'Are you sure you want to clear all logs from the database?', 'woocommerce' ) )
|
||||
);
|
||||
?>
|
||||
<form method="post" id="mainform" action="">
|
||||
<?php $log_table_list->search_box( __( 'Search logs', 'woocommerce' ), 'log' ); ?>
|
||||
<?php $log_table_list->display(); ?>
|
||||
|
||||
<form method="get" id="mainform">
|
||||
<input type="hidden" name="page" value="wc-status" />
|
||||
<input type="hidden" name="tab" value="logs" />
|
||||
|
||||
<?php submit_button( __( 'Flush all logs', 'woocommerce' ), 'delete', 'flush-logs' ); ?>
|
||||
<?php wp_nonce_field( 'woocommerce-status-logs' ); ?>
|
||||
<?php $log_table_list->search_box( __( 'Search logs', 'woocommerce' ), 'log' ); ?>
|
||||
<?php $log_table_list->display(); ?>
|
||||
|
||||
<?php
|
||||
submit_button(
|
||||
__( 'Flush all logs', 'woocommerce' ),
|
||||
'delete',
|
||||
'flush-logs',
|
||||
true,
|
||||
array(
|
||||
'onclick' => esc_attr( $delete_confirmation_js ),
|
||||
)
|
||||
);
|
||||
?>
|
||||
</form>
|
||||
<script>
|
||||
document.addEventListener( 'DOMContentLoaded', function() {
|
||||
|
@ -49,12 +62,3 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
} );
|
||||
} );
|
||||
</script>
|
||||
<?php
|
||||
wc_enqueue_js(
|
||||
"jQuery( '#flush-logs' ).on( 'click', function() {
|
||||
if ( window.confirm('" . esc_js( __( 'Are you sure you want to clear all logs from the database?', 'woocommerce' ) ) . "') ) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});"
|
||||
);
|
||||
|
|
|
@ -199,23 +199,17 @@
|
|||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/e2e-utils/",
|
||||
"node_modules/@woocommerce/e2e-environment/",
|
||||
"node_modules/@woocommerce/e2e-core-tests/build",
|
||||
"node_modules/@woocommerce/e2e-core-tests/build-module",
|
||||
"node_modules/@woocommerce/e2e-core-tests/test-data",
|
||||
"node_modules/@woocommerce/e2e-core-tests/core-tests-root.js",
|
||||
"node_modules/@woocommerce/e2e-core-tests/installFiles",
|
||||
"node_modules/@woocommerce/e2e-core-tests/CHANGELOG.md",
|
||||
"node_modules/@woocommerce/api-core-tests/",
|
||||
"node_modules/@woocommerce/api/dist/",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build/",
|
||||
"node_modules/@woocommerce/block-library/assets/**/*.{js,scss,php}",
|
||||
"node_modules/@woocommerce/block-library/build/**/*.{js,json,css}",
|
||||
"node_modules/@woocommerce/block-library/includes/**/*.php",
|
||||
"node_modules/@woocommerce/block-library/languages/**/*.json",
|
||||
"node_modules/@woocommerce/block-library/license.txt",
|
||||
"node_modules/@woocommerce/block-library/woocommerce-gutenberg-products-block.php",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build",
|
||||
"node_modules/@woocommerce/block-library/build",
|
||||
"node_modules/@woocommerce/block-library/blocks.ini",
|
||||
"node_modules/@woocommerce/classic-assets/build",
|
||||
"node_modules/@woocommerce/admin-library/build",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
|
||||
|
@ -225,19 +219,7 @@
|
|||
"!node_modules/@woocommerce/api/dist/**/__tests__/",
|
||||
"!node_modules/@woocommerce/api/dist/**/__mocks__/",
|
||||
"!node_modules/@woocommerce/api/dist/**/__snapshops__/",
|
||||
"!node_modules/@woocommerce/api/dist/**/__test_data__/",
|
||||
"!node_modules/@woocommerce/api-core-tests/node_modules",
|
||||
"!node_modules/@woocommerce/api-core-tests/.git",
|
||||
"!node_modules/@woocommerce/api-core-tests/.svn",
|
||||
"!node_modules/@woocommerce/api-core-tests/src",
|
||||
"!node_modules/@woocommerce/e2e-environment/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-environment/.git",
|
||||
"!node_modules/@woocommerce/e2e-environment/.svn",
|
||||
"!node_modules/@woocommerce/e2e-environment/src",
|
||||
"!node_modules/@woocommerce/e2e-utils/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-utils/.git",
|
||||
"!node_modules/@woocommerce/e2e-utils/.svn",
|
||||
"!node_modules/@woocommerce/e2e-utils/src"
|
||||
"!node_modules/@woocommerce/api/dist/**/__test_data__/"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -421,7 +421,7 @@ class FileController {
|
|||
*/
|
||||
public function search_within_files( string $search, array $args = array(), array $file_args = array(), bool $count_only = false ) {
|
||||
if ( '' === $search ) {
|
||||
return array();
|
||||
return $count_only ? 0 : array();
|
||||
}
|
||||
|
||||
$search = esc_html( $search );
|
||||
|
|
|
@ -4,11 +4,13 @@ declare( strict_types = 1 );
|
|||
namespace Automattic\WooCommerce\Internal\Admin\Logging;
|
||||
|
||||
use Automattic\Jetpack\Constants;
|
||||
use Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2;
|
||||
use Automattic\WooCommerce\Internal\Admin\Logging\FileV2\{ FileController, FileListTable, SearchListTable };
|
||||
use Automattic\WooCommerce\Internal\Traits\AccessiblePrivateMethods;
|
||||
use WC_Admin_Status;
|
||||
use WP_List_Table;
|
||||
use WC_Log_Handler_File, WC_Log_Handler_DB;
|
||||
use WC_Log_Levels;
|
||||
use WP_List_Table;
|
||||
|
||||
/**
|
||||
* PageController class.
|
||||
|
@ -82,7 +84,7 @@ class PageController {
|
|||
$handler = Constants::get_constant( 'WC_LOG_HANDLER' );
|
||||
|
||||
if ( is_null( $handler ) || ! class_exists( $handler ) ) {
|
||||
$handler = \WC_Log_Handler_File::class;
|
||||
$handler = WC_Log_Handler_File::class;
|
||||
}
|
||||
|
||||
return $handler;
|
||||
|
@ -424,11 +426,22 @@ class PageController {
|
|||
* @return void
|
||||
*/
|
||||
private function setup_screen_options(): void {
|
||||
$params = $this->get_query_params( array( 'view' ) );
|
||||
$params = $this->get_query_params( array( 'view' ) );
|
||||
$handler = $this->get_default_handler();
|
||||
$list_table = null;
|
||||
|
||||
if ( in_array( $params['view'], array( 'list_files', 'search_results' ), true ) ) {
|
||||
$list_table = $this->get_list_table( $params['view'] );
|
||||
switch ( $handler ) {
|
||||
case LogHandlerFileV2::class:
|
||||
if ( in_array( $params['view'], array( 'list_files', 'search_results' ), true ) ) {
|
||||
$list_table = $this->get_list_table( $params['view'] );
|
||||
}
|
||||
break;
|
||||
case 'WC_Log_Handler_DB':
|
||||
$list_table = WC_Admin_Status::get_db_log_list_table();
|
||||
break;
|
||||
}
|
||||
|
||||
if ( $list_table instanceof WP_List_Table ) {
|
||||
// Ensure list table columns are initialized early enough to enable column hiding, if available.
|
||||
$list_table->prepare_column_headers();
|
||||
|
||||
|
@ -448,6 +461,11 @@ class PageController {
|
|||
* @return void
|
||||
*/
|
||||
private function handle_list_table_bulk_actions(): void {
|
||||
// Bail if we're not using the file handler.
|
||||
if ( LogHandlerFileV2::class !== $this->get_default_handler() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$params = $this->get_query_params( array( 'file_id', 'view' ) );
|
||||
|
||||
// Bail if this is not the list table view.
|
||||
|
|
|
@ -17,6 +17,7 @@ interface GitHubLabel {
|
|||
interface GitHubProjectField {
|
||||
projectId: string;
|
||||
fieldId: string;
|
||||
fieldName: string;
|
||||
itemId: string;
|
||||
dataType: string;
|
||||
value: {
|
||||
|
@ -157,7 +158,7 @@ export default class TransferIssues extends Command {
|
|||
// can fully transfer the issue with the existing labels, since otherwise,
|
||||
// we would replace the labels that would have been transferred.
|
||||
CliUx.ux.action.start( 'Waiting for GitHub to process transfers' );
|
||||
await new Promise( ( resolve ) => setTimeout( resolve, 5000 ) );
|
||||
await new Promise( ( resolve ) => setTimeout( resolve, 25000 ) );
|
||||
CliUx.ux.action.stop();
|
||||
|
||||
CliUx.ux.action.start( 'Running post-transfer tasks' );
|
||||
|
@ -166,9 +167,9 @@ export default class TransferIssues extends Command {
|
|||
continue;
|
||||
}
|
||||
|
||||
this.updateProjectFields(
|
||||
this.resetProjectFields(
|
||||
authenticatedGraphQL,
|
||||
issue.projectFields
|
||||
issue
|
||||
);
|
||||
|
||||
this.addLabelsToIssue(
|
||||
|
@ -538,6 +539,7 @@ export default class TransferIssues extends Command {
|
|||
const projectField: GitHubProjectField = {
|
||||
projectId: projectItem.project.id,
|
||||
fieldId: fieldValue.field.id,
|
||||
fieldName: fieldValue.field.name,
|
||||
itemId: projectItem.id,
|
||||
dataType: fieldValue.field.dataType,
|
||||
value: {},
|
||||
|
@ -652,16 +654,123 @@ export default class TransferIssues extends Command {
|
|||
}
|
||||
|
||||
/**
|
||||
* Update the project fields for the issue.
|
||||
* Resets the project fields for the issue if necessary.
|
||||
*
|
||||
* @param {graphql} authenticatedGraphQL The graphql object for making requests.
|
||||
* @param {Array.<GitHubLabel>} projectFields The project fields to update for the issue.
|
||||
* @param {graphql} authenticatedGraphQL The graphql object for making requests.
|
||||
* @param {GitHubIssue} issue The GitHub issue to update the project fields for.
|
||||
*/
|
||||
private async updateProjectFields(
|
||||
private async resetProjectFields(
|
||||
authenticatedGraphQL: typeof graphql,
|
||||
projectFields: GitHubProjectField[]
|
||||
issue: GitHubIssue
|
||||
) {
|
||||
for ( const projectField of projectFields ) {
|
||||
// Pull all of the project fields from the issue post-transfer so that we can make sure that they've been transferred correctly.
|
||||
// If they haven't, we need to to try and set them and log the ones that required this step.
|
||||
const { node } = await authenticatedGraphQL< { node: any } >(
|
||||
`
|
||||
query ($nodeID: ID!) {
|
||||
node(id: $nodeID) {
|
||||
... on Issue {
|
||||
id
|
||||
title
|
||||
projectItems(first: 50) {
|
||||
nodes {
|
||||
id
|
||||
project {
|
||||
id
|
||||
title
|
||||
}
|
||||
fieldValues(first: 50) {
|
||||
nodes {
|
||||
... on ProjectV2ItemFieldTextValue {
|
||||
field {
|
||||
... on ProjectV2FieldCommon {
|
||||
id
|
||||
name
|
||||
dataType
|
||||
}
|
||||
}
|
||||
text
|
||||
}
|
||||
... on ProjectV2ItemFieldNumberValue {
|
||||
field {
|
||||
... on ProjectV2FieldCommon {
|
||||
id
|
||||
name
|
||||
dataType
|
||||
}
|
||||
}
|
||||
number
|
||||
}
|
||||
... on ProjectV2ItemFieldDateValue {
|
||||
field {
|
||||
... on ProjectV2FieldCommon {
|
||||
id
|
||||
name
|
||||
dataType
|
||||
}
|
||||
}
|
||||
date
|
||||
}
|
||||
... on ProjectV2ItemFieldSingleSelectValue {
|
||||
field {
|
||||
... on ProjectV2FieldCommon {
|
||||
id
|
||||
name
|
||||
dataType
|
||||
}
|
||||
}
|
||||
optionId
|
||||
}
|
||||
... on ProjectV2ItemFieldIterationValue {
|
||||
field {
|
||||
... on ProjectV2FieldCommon {
|
||||
id
|
||||
name
|
||||
dataType
|
||||
}
|
||||
}
|
||||
iterationId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
{
|
||||
nodeID: issue.newID,
|
||||
}
|
||||
);
|
||||
|
||||
for ( const projectField of issue.projectFields ) {
|
||||
// Check for existing project fields and error if one was not give an error and exit.
|
||||
for ( const project of node.projectItems.nodes ) {
|
||||
if ( project.project.id !== projectField.projectId ) {
|
||||
this.error(
|
||||
'Issue "' + issue.title + '" does not have an entry for project "' + project.project.title + '"!'
|
||||
);
|
||||
}
|
||||
|
||||
let foundField = false;
|
||||
for ( const field of project.fieldValues.nodes ) {
|
||||
if ( ! field.field ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( projectField.fieldId === field.field.id ) {
|
||||
foundField = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! foundField ) {
|
||||
this.error(
|
||||
'Issue "' + issue.title + '" - Project "' + project.project.title + '" is missing "' + projectField.fieldId + '" value "' + JSON.stringify( projectField.value ) + '"!'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const input = {
|
||||
clientMutationId: 'monorepo-merge',
|
||||
projectId: projectField.projectId,
|
||||
|
|
Loading…
Reference in New Issue