woocommerce/plugins/woocommerce-admin/package.json

227 lines
9.3 KiB
JSON
Raw Normal View History

2018-04-17 21:03:14 +00:00
{
"name": "@woocommerce/admin-library",
"version": "1.8.0-dev",
"homepage": "https://woocommerce.github.io/woocommerce-admin/",
"repository": {
"type": "git",
"url": "https://github.com:woocommerce/woocommerce-admin.git"
},
"license": "GPL-3.0-or-later",
"author": "Automattic",
"files": [
"dist/**/*.css",
"dist/**/*.js",
"dist/feature-config-core.php",
"includes/class-wc-admin-loader.php",
"includes/features/**/*.php",
"languages/**/*.json",
"license.txt"
],
"scripts": {
"prebuild": "npm run -s install-if-deps-outdated",
"build": "npm run build:feature-config && npm run build:packages && cross-env NODE_ENV=production webpack",
Use Route based code splitting to optimize bundle size (https://github.com/woocommerce/woocommerce-admin/pull/4094) * Use lazy loading to split up the size of the js downloaded * Use lazy loading to split up the size of the js downloaded * Add Moment Timezone plugin to reduce size of data file. * Lazy load header panels and use Dashicons for faster loading * Load assets from the correct publicPath * Load assets from the correct publicPath * PHP cs fixes * Fix missing quotes on string literal. * Fix PropType warning for lazy loaded component. * Separate the task list and dashboard chunks. * Lazy load dashboard sections. * Restore original icons and reduce size by importing only the icons needed * Lazy load alerts to save more Kb on initial load * Minify built JS in production mode. * Add preload tags for WC Admin assets. (https://github.com/woocommerce/woocommerce-admin/pull/4162) * Fix linting errors. * Add modified UnminifiedWebpackPlugin. * Produce minified and unminified bundles for all builds. * Remove unused variable from webpack config. * Run unminify after sourcemap generation. * Only hook after optimization if we're using a devtool. * Add minification suffix in Loader::get_url(). * Lazy load OBW on new home screen. * Move OBW style up a level to layout. * Hydrate ProfileWizard independently of withSelect and withDispatch * Fix order of composition and fallback function when using hydration. Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com> Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-04-29 18:01:27 +00:00
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
"postbuild": "npm run -s i18n:pot && npm run -s i18n:build",
"build:feature-config": "php bin/generate-feature-config.php",
"build:packages": "node ./bin/packages/build.js",
"build:release": "./bin/build-plugin-zip.sh",
"clean": "rimraf ./dist ./packages/*/build ./packages/*/build-module ./packages/*/build-style",
"predev": "npm run -s install-if-deps-outdated && php ./bin/update-version.php",
"dev": "cross-env WC_ADMIN_PHASE=development npm run build:feature-config && cross-env WC_ADMIN_PHASE=development npm run build:packages && cross-env WC_ADMIN_PHASE=development webpack",
"docker:up": "npm explore @woocommerce/e2e-environment -- npm run docker:up",
"docker:down": "npm explore @woocommerce/e2e-environment -- npm run docker:down",
"docs": "node ./bin/generate-docs",
"i18n": "npm run -s i18n:js && npm run -s i18n:check && npm run -s i18n:pot && npm run -s i18n:build",
"i18n:build": "php bin/combine-pot-files.php languages/woocommerce-admin.po languages/woocommerce-admin.pot",
"i18n:check": "grunt checktextdomain",
"i18n:js": "npm run clean && cross-env NODE_ENV=production babel client packages -o /dev/null",
"i18n:json": "./bin/make-i18n-json.sh",
"i18n:pot": "grunt makepot",
"install-if-deps-outdated": "node bin/install-if-deps-outdated.js",
"install-if-no-packages": "node bin/install-if-no-packages.js",
"jest:update": "jest -u --config=tests/js/jest.config.json",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint '**/*.scss'",
"lint:css-fix": "stylelint '**/*.scss' --fix",
"lint:js": "wp-scripts lint-js ./packages ./client",
"lint:js:packages": "wp-scripts lint-js ./packages",
"lint:js:client": "wp-scripts lint-js ./client",
"lint:js-fix": "npm run lint:js -- --fix",
"lint:php": "./vendor/bin/phpcs --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"lint:php-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist $(git ls-files | grep .php$)",
"reformat-files": "wp-scripts format-js -- --ignore-path .eslintignore",
"prepack": "npm install && npm run lint && npm run test && cross-env WC_ADMIN_PHASE=core npm run build",
"publish-packages:check": "npm run build:packages && lerna updated",
"publish-packages:dev": "npm run build:packages && lerna publish from-package --npm-tag next",
"publish-packages:prod": "npm run build:packages && lerna publish from-package",
"prestart": "npm run -s install-if-deps-outdated",
"start": "cross-env WC_ADMIN_PHASE=development npm run build:packages && cross-env WC_ADMIN_PHASE=development npm run build:feature-config && concurrently \"cross-env WC_ADMIN_PHASE=development webpack --watch\" \"node ./bin/packages/watch.js\"",
"pretest": "npm run -s install-if-no-packages",
"test:e2e": "npm explore @woocommerce/e2e-environment -- npm run test:e2e",
"test:e2e-dev": "npm explore @woocommerce/e2e-environment -- npm run test:e2e-dev",
"test": "./node_modules/jest-24.9.0/bin/jest.js --config tests/js/jest.config.json",
"test-staged": "./node_modules/jest-24.9.0/bin/jest.js --bail --config tests/js/jest.config.json --findRelatedTests",
"test:help": "wp-scripts test-unit-js --help",
"test:update-snapshots": "jest --updateSnapshot --config tests/js/jest.config.json",
"test:watch": "npm run test -- --watch",
"test:zip": "npm run clean && composer i && ./bin/build-test-zip.sh",
"example": "webpack --config docs/examples/extensions/examples.config.js --watch",
"pre-release": "./bin/pre-release.sh",
"create-wc-extension": "node ./bin/starter-pack/starter-pack.js",
"storybook": "./bin/import-wp-css-storybook.sh && start-storybook -c ./storybook -p 6007 --ci",
"build-storybook": "build-storybook -c ./storybook",
"changelog": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
"bump-version": "npm run -s install-if-deps-outdated && php ./bin/update-version.php"
},
"changelog": {
"labelPrefix": "[Type]",
"skipLabel": "skip-changelog",
"defaultPrefix": "dev",
"repo": "woocommerce/woocommerce-admin"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "node bin/pre-push-hook.js"
}
},
"dependencies": {
"@woocommerce/e2e-environment": "0.1.6",
"@wordpress/api-fetch": "2.2.8",
"@wordpress/base-styles": "3.1.0",
"@wordpress/components": "11.0.0",
"@wordpress/data": "4.16.1",
"@wordpress/data-controls": "1.10.1",
"@wordpress/date": "3.9.0",
"@wordpress/dom": "2.9.0",
"@wordpress/element": "2.13.1",
"@wordpress/hooks": "2.8.0",
"@wordpress/html-entities": "2.7.0",
"@wordpress/i18n": "3.11.0",
"@wordpress/icons": "2.0.0",
"@wordpress/keycodes": "2.11.0",
"@wordpress/notices": "1.12.0",
"@wordpress/plugins": "2.22.0",
"@wordpress/url": "2.13.0",
"@wordpress/viewport": "2.15.1",
"classnames": "2.2.6",
"core-js": "3.7.0",
"debug": "4.3.1",
"dompurify": "2.2.2",
"gridicons": "3.3.1",
"interpolate-components": "1.1.1",
"memoize-one": "5.1.1",
"qs": "6.9.4",
"react-click-outside": "3.0.1",
"react-dates": "17.2.0",
"react-router-dom": "5.1.2",
"react-transition-group": "4.3.0",
"react-visibility-sensor": "5.1.1",
"redux": "4.0.5"
},
"devDependencies": {
"@automattic/color-studio": "2.3.1",
"@automattic/mini-css-extract-plugin-with-rtl": "0.8.0",
2020-11-25 00:30:44 +00:00
"@babel/cli": "7.12.8",
"@babel/core": "7.12.9",
"@babel/plugin-proposal-class-properties": "7.12.1",
"@babel/plugin-transform-async-to-generator": "7.12.1",
2020-11-25 00:30:44 +00:00
"@babel/plugin-transform-react-jsx": "7.12.7",
"@babel/runtime-corejs2": "7.12.5",
"@octokit/graphql": "4.5.7",
"@storybook/addon-a11y": "6.0.26",
"@storybook/addon-actions": "6.0.26",
"@storybook/addon-console": "1.2.2",
"@storybook/addon-docs": "6.0.26",
"@storybook/addon-knobs": "6.0.26",
"@storybook/addon-links": "6.0.26",
"@storybook/addon-storysource": "6.0.26",
"@storybook/addon-viewport": "6.0.26",
"@storybook/addons": "6.0.26",
"@storybook/react": "6.0.26",
"@testing-library/jest-dom": "5.11.6",
"@testing-library/react": "11.2.2",
"@testing-library/react-hooks": "3.4.2",
"@testing-library/user-event": "12.3.0",
"@woocommerce/components": "file:packages/components",
"@woocommerce/csv-export": "file:packages/csv-export",
"@woocommerce/customer-effort-score": "file:packages/customer-effort-score",
"@woocommerce/currency": "file:packages/currency",
"@woocommerce/data": "file:packages/data",
"@woocommerce/date": "file:packages/date",
"@woocommerce/eslint-plugin": "file:packages/eslint-plugin",
"@woocommerce/navigation": "file:packages/navigation",
"@woocommerce/notices": "file:packages/notices",
"@woocommerce/number": "file:packages/number",
"@woocommerce/tracks": "file:packages/tracks",
"@wordpress/babel-plugin-makepot": "2.1.3",
"@wordpress/babel-preset-default": "4.17.0",
"@wordpress/browserslist-config": "2.6.0",
"@wordpress/custom-templated-path-webpack-plugin": "1.6.0",
"@wordpress/e2e-test-utils": "4.6.0",
"@wordpress/eslint-plugin": "7.1.0",
"@wordpress/jest-preset-default": "5.5.0",
"@wordpress/postcss-plugins-preset": "1.3.0",
"@wordpress/postcss-themes": "1.0.5",
"@wordpress/prettier-config": "0.3.0",
"@wordpress/scripts": "12.0.0",
2020-09-16 01:35:27 +00:00
"ast-types": "0.14.2",
"autoprefixer": "9.8.6",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "26.6.3",
"babel-loader": "8.2.2",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-es2015-template-literals": "6.22.0",
"chalk": "4.1.0",
"concurrently": "5.3.0",
2020-12-02 03:01:51 +00:00
"config": "3.3.3",
"copy-webpack-plugin": "5.1.1",
"cross-env": "7.0.2",
"css-loader": "3.6.0",
"docsify-cli": "4.4.2",
"fs-extra": "8.1.0",
"grunt": "1.3.0",
"grunt-checktextdomain": "1.0.1",
"grunt-wp-i18n": "1.0.3",
2020-09-09 02:41:46 +00:00
"husky": "4.3.0",
"jest-24.9.0": "npm:jest@24.9.0",
"jest-environment-jsdom-sixteen": "1.0.3",
"lerna": "3.22.1",
"lint-staged": "10.5.2",
2020-12-02 03:22:13 +00:00
"md5": "2.3.0",
"merge-config": "2.0.0",
"moment-timezone-data-webpack-plugin": "1.3.0",
"node-sass": "4.14.1",
2020-10-14 02:51:30 +00:00
"node-watch": "0.7.0",
"postcss-color-function": "4.1.0",
"postcss-loader": "3.0.0",
"prettier": "npm:wp-prettier@2.0.5",
"promptly": "3.1.0",
"prop-types": "15.7.2",
"raw-loader": "4.0.1",
"react-docgen": "5.3.0",
"readline-sync": "1.4.10",
"recast": "0.20.3",
"replace": "1.2.0",
"request-promise": "4.2.6",
"rimraf": "3.0.2",
"rtlcss": "2.5.0",
"sass-loader": "8.0.2",
"style-loader": "0.23.1",
"stylelint": "9.10.1",
"stylelint-config-wordpress": "13.1.0",
"terser-webpack-plugin": "2.3.5",
"url-loader": "1.1.2",
"webpack": "4.43.0",
"webpack-bundle-analyzer": "3.6.1",
"webpack-cli": "3.3.11",
"webpack-fix-style-only-entries": "0.4.0",
"webpack-rtl-plugin": "2.0.0",
"zenhub-api": "0.2.0"
},
"engines": {
"node": ">=8.0.0",
Merge final `version/1.0` branch with `master` (https://github.com/woocommerce/woocommerce-admin/pull/3848) * Try: Moving Customers to main Woo Menu (https://github.com/woocommerce/woocommerce-admin/pull/3632) * Only add onboarding settings on wc-admin pages when task list should be shown. (https://github.com/woocommerce/woocommerce-admin/pull/3722) * Use cron for unsnoozing admin notes (https://github.com/woocommerce/woocommerce-admin/pull/3662) * Use wp-cron for admin note snoozing. * Remove "unsnooze" scheduled action. * Use correct version. * Avoid using deprecated method for unscheduling actions. * Onboarding: Fix toggle tracking events (https://github.com/woocommerce/woocommerce-admin/pull/3645) * Fix errant wcadmin prefix on event name * Track the onboarding toggle on the option in case enable_onboarding isn't used * Move toggle actions to separate function * Move onboarding actions * Move onboarding filters * Move help tab updates to add_toggle_actions * Only run onboarding actions when enabled * Onboarding: Add tracks events when profiler steps are completed (https://github.com/woocommerce/woocommerce-admin/pull/3726) * Add tracks for store profiler step completion * Record event when profiler is completed * Ensure continue setup loads the onboarding profiler (https://github.com/woocommerce/woocommerce-admin/pull/3646) * 'All that include' option removed when input field is empty (https://github.com/woocommerce/woocommerce-admin/pull/3700) * 'All that include' option removed when input field is empty Added a control to check that when the input field 'Search by customer name' is empty, the 'All that include' option is not appearing. * Const name improved The constant name hasValues was changed to optionsHaveValues (more descriptive) * Fix select text alignment (https://github.com/woocommerce/woocommerce-admin/pull/3723) * Stock panel indicator - cache and use lookup tables. (https://github.com/woocommerce/woocommerce-admin/pull/3729) * Stock panel indicator - cache and use lookup tables. * Revise query, clear transient on product update. * Fix error, ht Josh. * Checklist: Remove sideloaded images to reduce build size, take 2 (https://github.com/woocommerce/woocommerce-admin/pull/3731) * Remove homepage template images. * Use other-small on all industries, adjust text color. * Remove background dim and opacity set to 0 * Fix/3631 (https://github.com/woocommerce/woocommerce-admin/pull/3730) * Added CBD as an industry type CBD was added as an industry type in API * Industries options modified Modified the industries options. Now we are able to choose if we will use an input or not in the option. * API control changed for industries. API control changed for industries. Now it accepts the data type we need. * Added input in Industries list for the option "Other" Added an input for the option "Other" in the industries list * Added suggested changes in review comments. * Added data preparation for recordEvent * Changed variable to snake_case The variable "industriesWithDetail" was changed to "industries_with_detail" (snake_case) * Onboarding: Create homepage without redirect (https://github.com/woocommerce/woocommerce-admin/pull/3727) * Add link to edit homepage instead of redirect * Add busy state to homepage creation button * Publish homepage on create via API * Update homepage notice to show on first post update * Update homepage creation notice per design * Record event on customize homepage * Set homepage to frontpage on creation * Add deactivation note for feature plugin (https://github.com/woocommerce/woocommerce-admin/pull/3687) * Add version deactivation note * Add the note to deactivate if the version is older than the current WC version * Deactivate wc admin feature plugin on action click * Add notes version hooks * change the Package class namespace to exclude from standalone autoloader * add use statement for FeaturePlugin * add note explaining namespace * use wc-admin-deactivate-plugin note name * Rename file and class to WC_Admin_Notes_Deactivate_Plugin Co-authored-by: Ron Rennick <ron@ronandandrea.com> Co-authored-by: Paul Sealock <psealock@gmail.com> * Add Travis tests on GH for release branch (https://github.com/woocommerce/woocommerce-admin/pull/3751) * Add Travis tests on GH for release branch * fix linter errors * ActivityPanels.php -> use public static functions * Remove free text Search option when no query exists (https://github.com/woocommerce/woocommerce-admin/pull/3755) * Revert changes in woocommerce/woocommerce-admin#3700 * Don't add free text search if no query exists * Add tests for Search without query * Add test for showing free text search option * Fix image sideloading for store industries. (https://github.com/woocommerce/woocommerce-admin/pull/3743) * Fix image sideloading for store industries. Data format changed in https://github.com/woocommerce/woocommerce-admin/pull/3730 * Fix industry image sideload in cases where the count is less than requested. * Be backwards compatible with the old industry data format. * Added event props to identify stores with WCS and Jetpack installed (https://github.com/woocommerce/woocommerce-admin/pull/3750) * Added event props to identify stores with WCS and Jetpack installed Also, added Jeckpack connected status * Improved variable name * Simplified method Simplified method. "intersection" check was removed * Tests errors repeared The method "clear_low_out_of_stock_count_transient" now is static. * OBW: fix sideloading image test error (https://github.com/woocommerce/woocommerce-admin/pull/3762) * Release 0.26.0 changes (https://github.com/woocommerce/woocommerce-admin/pull/3753) * add deactivation hook to Package.php (https://github.com/woocommerce/woocommerce-admin/pull/3770) * Add active version functions (https://github.com/woocommerce/woocommerce-admin/pull/3772) * add active version functions to Package.php Co-authored-by: Joshua T Flowers <joshuatf@gmail.com> * 0.26.1 changes (https://github.com/woocommerce/woocommerce-admin/pull/3773) * Customers Report: fix missing report param in search (https://github.com/woocommerce/woocommerce-admin/pull/3778) * Product titles include encoded entities (https://github.com/woocommerce/woocommerce-admin/pull/3765) * Stripped HTML from product titles and decoded before displaying them Stripped html from product titles and entities are decoded before displaying them * Stripped HTML from product titles and decoded in Stock report Stripped html from product titles and entities are decoded before displaying them. Now in Stock report * Added support for HTML tags and encoded entities on product titles Added support for HTML tags and encoded entities on filtered product list, dropdown menus and tag names. Also, strip_tags() function was replaced with wp_strip_all_tags() instead. * strip_tags() function was replaced with wp_strip_all_tags() instead. * Added control for a variable Added control for "item->data" before applying wp_strip_all_tags method. * pre-commit changes * Test text corrected * Enable taxes on automatic tax setup (https://github.com/woocommerce/woocommerce-admin/pull/3795) * Update Country Labeling to Match Core (https://github.com/woocommerce/woocommerce-admin/pull/3790) * Updated country labeling Country labeling on Customer Report was updated * Updated country labeling in other files * remove .jitm-card notice padding (https://github.com/woocommerce/woocommerce-admin/pull/3814) * OBW Connect: Fix requesting state (https://github.com/woocommerce/woocommerce-admin/pull/3786) * OBW Connect: Fix requesting state * pass down setIsPending * setIspending propType * defaultProps * test * Revert "test" This reverts commit e921092b19401931cc1aec8ee84fa53c53b67f36. * better comparison for redirect * Fixes Taxes Report search bug and adds initial documentation. (https://github.com/woocommerce/woocommerce-admin/pull/3816) * Initial Taxes Report documentation. * Fix taxes endpoint search parameter. * OBW: Fix retry plugin install button disappearing (https://github.com/woocommerce/woocommerce-admin/pull/3787) * OBW: Fix retry plugin install btn disappearing * try suggestion * Revert "try suggestion" This reverts commit 5b9386957a501ac3e729e5f16b0ee71c9d792859. * Fix special character escaping in search. (https://github.com/woocommerce/woocommerce-admin/pull/3826) * Properly prepare/escape special characters in Product search. * Properly prepare/escape special characters in Coupon search. * Properly prepare/escape special characters in Tax code search. * Fix tracking on migrated options (https://github.com/woocommerce/woocommerce-admin/pull/3828) * Don't track onboarding toggle if migrating options * Prevent WC_Tracks from recording event post types not yet registered * Activity Panels: Remove W Panel (https://github.com/woocommerce/woocommerce-admin/pull/3827) * Remove W Notif Panel. * Add back in trapping logic, and hide on non-embed pages. * add npm run test:zip command (https://github.com/woocommerce/woocommerce-admin/pull/3823) * add npm run test:zip command * 1.0.0 release changes🎉 (https://github.com/woocommerce/woocommerce-admin/pull/3831) * 1.0.0 release changes🎉 * changelog * 0.26.1 changelog * Add Report Extension Example: Add default props to ReportFilters (https://github.com/woocommerce/woocommerce-admin/pull/3830) * ReportFilters component: Add sane defaults * styles * add required column * add left join to sku ordering (https://github.com/woocommerce/woocommerce-admin/pull/3845) * Deal with lint errors, and improperly merged files * regenerate package-lock.json * attempting to resolve package lock conflict. Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com> Co-authored-by: Joshua T Flowers <joshuatf@gmail.com> Co-authored-by: Ron Rennick <ron@ronandandrea.com> Co-authored-by: Fernando <ultimoround@gmail.com> Co-authored-by: edmundcwm <edmundcwm@gmail.com> Co-authored-by: Paul Sealock <psealock@gmail.com>
2020-03-10 02:47:39 +00:00
"npm": ">=6.14.2"
}
2018-04-17 21:03:14 +00:00
}