Joshua T Flowers
85080f642b
Add block related assets entry points to product editor build ( #37318 )
...
* Add editorStyle properties to blocks
* Rename style.scss files to editor.scss
* Get block entry points for block related assets
* Copy block assets to core assets build folder
* Remove unusable dependency
* Add changelog entries
* Fix up RTL style builds for block assets
* Update copy-webpack-plugin dependency and lock file
* Fix up lock file after rebase
* Fix order of webpack rtl stylesheet builds to prevent additional stylsheets
* Fix up lock file after rebase
* Fix tsconfig
2023-03-31 10:36:40 -07:00
Matt Sherman
30ea6cfc71
Show spotlight when switching to variable product type ( #37413 )
...
* Show variable product tour
* Only show tour when product type is changed to variable
* Only show tour if it hasn't been shown before
* Add variable_product_tour_shown to UserPreferences type
* Store whether tour has been shown in user preferences
* Record Tracks events
* Add docblock for woocommerce_admin_get_user_data_fields filter
* Add test for tour
2023-03-28 13:49:40 -04:00
Matt Sherman
a77e4abffe
Emit error on webpack build when invalid export name used in import for JS ( #37195 )
2023-03-26 21:42:33 -04:00
Chi-Hsuan Huang
a6e3398e06
Disable React Fast Refresh completely in webpack when running start command
2023-03-17 17:52:24 +08:00
Chi-Hsuan Huang
c804e76156
Set up "React Fast Refresh" in woocommerce-admin ( #37165 )
...
* Add @pmmmwh/react-refresh-webpack-plugin, react-refresh, webpack-dev-server and add start:hot command
* Set up react fast fresh
* Add changelog
* Run prestart in hot command
* Update pnpm-lock.yaml
* Update pnpm-lock.yaml
2023-03-16 11:52:03 +08:00
Matt Sherman
af24637439
Create @woocommerce/admin-layout package ( #37094 )
...
* Initial admin-layout package skeleton
* Changelog files
* Use createOrderedChildren and sortFillsByOrder from @woocommerce/components for WooFooterItem
* Move WooFooterItem to @woocommerce/admin-layout
* Use WooFooterItem from @woocommerce/admin-layout
* Suppress errant TS lint errors
* Exports for @woocommerce/admin-layout
* Fill updates and eslint suppression
* Changelogs
* Remove suppression of tslint errors
* Fix react and @types/react versions
* Load @woocommerce/admin-layout script and styles
* Move WooHeaderItem, WooHeaderNavigationItem, and WooHeaderPageTitle to @woocommerce/admin-layout
* Regenerate lock file post-rebase
* Remove duplicate import post-rebase
* Add wc-admin-layout to app style dependency
* Fix jest mock of @woocommerce/admin-layout
* Fix spacing.
* Export slot names
* Fix typo in .npmrc
* Update lock file
* Try updating lock file
* Update lock file
* Update lock file
* Update to latest lock file from trunk
* Update lock file
* Sync dependencies of @woocommerce/admin-layout
* Manually sync @wordpress dependencies
2023-03-10 09:58:02 -05:00
louwie17
5f0572664f
Add new `@woocommerce/product-editor` JS package ( #36600 )
...
* Bootstrap product-editor package
* Move product section components over to product editor package
* Add changelogs
* Remove unused import leftover from rebase
2023-01-31 09:38:28 -04:00
Joel Thiessen
8405974674
Adding ces exit prompt when product importer abandoned ( #35996 )
2022-12-15 13:18:35 -08:00
louwie17
895cb1561c
Add/35126 ces exit prompt orders ( #35762 )
...
* Add exit tracking for orders
* Update exit page CES action
* Fix order hook name
* Add changelog
* Address PR feedback
2022-12-15 15:50:34 -04:00
louwie17
c7132ec8f0
Add/35126 ces exit prompt settings ( #35761 )
...
* Add exit settings page tracker
* Add exception for when user hits the save button
* Update settings and add icon support
* Add changelog
* Add dismiss track for when user dismisses CES modal
* Add changelog
* Add tests for staticFormDataToObject function
* Fix imports of test file
2022-12-14 10:55:12 -04:00
Chi-Hsuan Huang
1fbe5d330d
Add @babel/plugin-proposal-class-properties to run storybook ( #35867 )
...
* Add @babel/plugin-proposal-class-properties to run storybook
* Add @babel/plugin-proposal-class-properties to webpack config and remove storybook env from babel config
* Add changelog
2022-12-07 22:26:02 +08:00
timur987
8dc954d54b
Feature: Add the In-App Marketplace Tour ( #35278 )
...
Co-authored-by: Michal Iwanow <4765119+mcliwanow@users.noreply.github.com>
2022-11-15 11:12:17 +01:00
Chi-Hsuan Huang
fdbb6be37f
Fix Tour Kit stories loading error ( #34831 )
...
* Exclude debug module from webpack transpile to load tour kit stories
We originally added debug module in https://github.com/woocommerce/woocommerce-admin/pull/5987 to fix a IE11 issue.
Since we've drop IE11 support, it should be fine to remove it.
* Add changelog
2022-09-27 15:38:08 +08:00
RJ
bae061a421
dev: change webpack config to use asset modules instead of custom loaders ( #34649 )
...
- asset modules are a new webpack 5 feature that handles inlining or extracting resources
2022-09-13 17:40:56 +08:00
Chi-Hsuan Huang
04a763d389
Add product page spotlight tour ( #33268 )
...
* Add product-tour admin script
* Update class-wc-admin-pointers.php to show experimental product tour
* Remove unnecessary window.onload
* Replace add new button with Enable guided mode button for product editing
* Show tour when tutorial query = true
* Add logic to show new tour only when a user select the physical product template
* Update product tour last step button text
* Add auto-scroll effect
* Fix i18n text
* Use bottom-start placement and align the arrow to the left
* Update pnpm-lock.yaml
* Update product tour effects
* Add changelog
* Add doc comments & check for tour-kit
* Add focus elements to product tour and wait initial element for tour showup
* Use spotlight query param to toggle new product tour feature
* Update wait seconds
* Update border style for product description & short description when editor is focused
* Add experimental-product-tour feature flag
* Refactor product-tour and support html editor focus style
Co-authored-by: moon <moon.kyong@automattic.com>
2022-06-09 13:02:40 +08:00
Chi-Hsuan Huang
6858195510
Update webpack.config.js to ensure we use styles from build-style ( #33357 )
...
* Update webpack.config.js to ensure we use styles from build-style
* Add changelog
2022-06-09 10:45:36 +08:00
Chi-Hsuan Huang
5db5c8b110
Add tour kit component ( #33229 )
...
* Add tour-kit component
* Add @types/wordpress__viewport to @woocommerce/components devDeps
* Add tour-kit README.md
* Add primaryButtonText option to tour kit step meta
* Add changelog
* Remove unneeded style import
* Set position and z-index style for tour-kit
* Add disable primary button feature for tour kit
* Export TourKitTypes
* Update style-build config for @automattic/* packages
* Add @automattic/* deps for components
* Ignore fs in webpack.config.js
* Update tour-kit stories
* Add tour-kit tests
* Update tour-kit README.md
* Update tour-kit types
* Update webpack.config.js
* Update style.scss
* Add auto focus feature
* Update type doc
2022-06-08 17:16:31 +08:00
Chi-Hsuan Huang
a2813267eb
Fix script version parameter for async chunks ( #33332 )
...
* Fix webpack script version parameter for JS chunks
* Fix webpack script version parameter for CSS chunks
2022-06-07 21:35:04 +08:00
Christopher Allford
bb320a935a
Removed `@woocommerce/notices` Internal Prefix ( #33283 )
...
Since we're exposing the package in some form,
we cannot rename it since that would break backwards
compatibility. This commit changes it back.
2022-06-03 16:05:26 -07:00
Christopher Allford
112b9ac67a
Prefixed Private JS Packages ( #33218 )
...
In order to ease the identification of private packages within the monorepo, this adds an `internal-` prefix to all of the current private packages. This makes it immediately clear when reviewing `packages/js` what is and isn't a private package.
2022-05-31 15:42:00 -07:00
louwie17
61d9d0043f
Add initial tracking for categories, tags, and attribute product pages ( #33118 )
...
* Add initial tracking for categories, tracks, and attribute product pages
* Update list action tracks that add new items without page refresh
* Add changelog
* Add extra category tracks
* Rename constant for add a new tag button
* Remove unneeded props from track
2022-05-30 13:14:25 -03:00
Joshua T Flowers
0702433531
Add tracks to products list page ( #32949 )
...
* Add tracks to products list page
* Remove duplicate tracks
* Add changelog entry
* Check for fields before getting values
* Add bulk actions cancel button
* Check for element before binding event listener
* Check for search input before getting value
2022-05-17 11:52:44 -04:00
Chi-Hsuan Huang
5476f4c80f
Add onboarding load sample products notice
2022-05-04 10:15:03 +08:00
Chi-Hsuan Huang
5063dc3640
Update admin webpack config to resolve wp.components.ui
2022-05-04 10:15:03 +08:00
Paul Sealock
6100df9a04
Storybook: Move code to `tools/` ( #32729 )
2022-04-28 09:54:54 +12:00
Chi-Hsuan Huang
0308873d79
Turn on ForkTsCheckerWebpackPlugin in react admin
2022-04-21 13:18:24 +08:00
Chi-Hsuan Huang
ec16b29b4f
Disable ForkTsCheckerWebpackPlugin in admin webpack
2022-04-15 13:50:58 +08:00
Chi-Hsuan Huang
f6282eefdc
Merge branch 'trunk' into update/webpack-config
2022-04-15 13:48:20 +08:00
Chi-Hsuan Huang
ac95d54669
Add more comments to admin webpacks config & simplify the logic
2022-04-15 12:08:59 +08:00
Chi-Hsuan Huang
b69a923695
Update admin's webpack config
...
- Remove unnessary settings
- Refactor config to make it easier to read
2022-04-14 12:10:10 +08:00
Chi-Hsuan Huang
adda46cc7b
Document Admin’s webpack config
2022-04-14 12:09:00 +08:00
Christopher Allford
93e44b3628
Updated React Admin Build Output
...
This changes the output of the React-based
admin client from WooCommerce Admin to
an appropriate location in the core plugin.
2022-03-18 14:53:25 -07:00
RJ
d9714b55c3
Update webpack 4 to webpack 5 ( https://github.com/woocommerce/woocommerce-admin/pull/8476 )
...
* updated webpack to 5
* fix dependency extraction config
* port unminify.js to webpack 5
* updated packages webpack version
* changelogs
* Updated @wordpress/custom-templated-path-webpack-plugin
- also removed Terser from package.json
* Upgraded storybook config to webpack 5
2022-03-18 18:59:05 +08:00
Chi-Hsuan Huang
86fc8b62e5
Switch to pnpm ( https://github.com/woocommerce/woocommerce-admin/pull/8349 )
...
* Add pnpm-workspace.yaml
* Add missing dependencies & replace file: with workspace:* in
package.json
* Replace "npm" with "pnpm"
* Replace "npx" with "pnpx"
* Remove package-lock.json
* Add pnpm setup action to github workflows
* Update webpack babel exclude path
* Upgrade woo e2e and fix e2e test command
Update e2e.yml
Use pnpm run e2e:docker-up in e2e.yml
* Remove unused docker-compose.yaml
* Replace lerna with pnpm commands
Update publish commands
* Exclude _locutus_shared_bc.js in babel.config.js
* Add .npmrc to set enable-pre-post-scripts=true by default
* Fix storybook babel config
Update babel.config.js
* Add changelog
* Update pnpm-lock.yaml
* Replace pnpx with pnpm exec
* Update pnpm-lock.yaml
* Remove js-tests/package-lock.json
* Fix @woocommerce/tracks -> workspace:*
* Update pnpm-lock.yaml
* Add @woocommerce/experimental to onboarding/package.json
* Add "@woocommerce/component" to onboarding/package.json
* Update pnpm-lock.yaml
* Use || instead of && for "test:watch"
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
* Fix packages/number "clean" command
* Add root: true to .eslintrc.js to enforce it to use the root config file
* Exclude packages/**/node_modules from babel transpiling
* Fix js-tests build config
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2022-03-04 12:01:16 +08:00
Chi-Hsuan Huang
c05ed7777a
Update dependencies to support react 17 ( https://github.com/woocommerce/woocommerce-admin/pull/8305 )
...
* Upgrade dependencies to support react17
Update pkg
Update @wordpress/api-fetch and gridicons
* Update test snapshots
* Update SnackbarList with latest react-spring
* Mock data.dispatch for task-list-item.test.tsx
* Remove '@wordpress/components/src/visually-hidden/style' import
wp-components has included it
* Update interpolateComponents import path
* Fix display-options test
* Add changelogs
Update changelogs
* Add @automattic/explat-client-react-helpers back
* Update webpack.config for explat-client-react-helpers
Update webpack config comment
Fix grammar
2022-02-21 10:34:25 +08:00
louwie17
7f38f6fd0a
Feature/7319 add woocommerce com data ( https://github.com/woocommerce/woocommerce-admin/pull/7553 )
...
* Add woocommerce.com data source poller
* Change data source back to .com
* Fix namespace
* Make use of the sub_title prop to display payment cards
* Fix some styling issue and add TS types
* Rename admin script to keep it more generic
* Add br tag as allowed, and update expected data format
* Update styling
* Address PR feedback
2021-09-09 09:25:13 -03:00
louwie17
4c4161ac3c
Render psuedo wc pay payment gateway in payment method table ( https://github.com/woocommerce/woocommerce-admin/pull/7550 )
...
* Render psuedo wc pay payment gateway in payment method table
* Fix lint errors
* Fix lint error
* Add setup event and make use of script_assets file
* Left align payment icons
* Fix feature import and update pageview track
* Fix broken test and add an extra one
* Fix payment method ordering persistance
* Remove the use of psuedo and addressed several PR related feedback
* Fix PHP lint errors
* Make sure track props use underscore
* Fix test
* Update comment
* Add await
2021-09-08 13:41:00 -03:00
Jeff Stieler
d3e940208e
Refactor package style builds ( https://github.com/woocommerce/woocommerce-admin/pull/7531 )
...
* Build experimental package CSS with webpack.
* Move style-only webpack config to reusable private package.
* Update other packages to use webpack for style builds.
* Add tsbuildinfo to clean scripts.
* Fix main start script.
* Remove defunct package build scripts.
* Move client/ dependencies for style builds.
* DRY.
* Remove defunct IE stylesheet definitions.
* Add missing RTL setup for onboarding styles.
* No need to export a function.
* Add changelog.
* Fix README.
* Revert concurrently script path change.
2021-08-19 10:15:59 -04:00
Jeff Stieler
8e61f55017
Allow packages to be built in isolation. ( https://github.com/woocommerce/woocommerce-admin/pull/7286 )
...
* Use yarn instead of npm.
In prep for workspaces, since we're locked to npm < 7. See: https://github.com/woocommerce/woocommerce-admin/pull/7126#issue-661287749
* Initial workspace creation.
* Add initial tsc build to @woocommerce/number.
* Attempt to build experimental package.
* Try currency package.
* Define all packages as workspaces.
* Use tsconfig common to packages.
* Fix currency package build.
* Build csv-export with tsc.
* Try to build customer-effort-score with tsc.
* Fix JSX pragma.
* Build data package with tsc.
* Build date package with tsc.
* Build experimental package with tsc.
* Try to build explat package with tsc.
* Build navigation package with tsc.
* Build notices package with tsc.
* Build onboarding package with tsc.
* Build components package with tsc.
* Swap in package JS build into main script.
* Fix experimental package build.
* Try per-package css build with components.
* Try to run components package tests in isolation.
Broken on JSX in test files not being transformed.
* Move @woocommerce/wc-admin-settings into a package.
* Try to fix components package tests.
Fails because we aren't setting up the jest/jest-dom globals.
* Move JS test code to reusable (private) package.
* Enable incremental TS builds.
* Use workspaces to run JS tests.
* Use new jest configs for update snapshot scripts.
* Fix style builds.
* Fix package version in components.
* Fix client test debug and watch scripts.
* Update yarn lock.
* Update test-staged behavior.
* Try to fix storybook.
* Fix storybook.
* Update more npm commands to yarn.
* Add changelog.
* Fix lint errors.
* Update packages readme script references.
* Clean up unused gitignore match.
* Fix another npm command.
* Fix JS builds on watch.
* Fix start script.
* Fix start scripts for packages.
* Use tsc to build packages before tests
* yarn -> npm.
# Conflicts:
# package-lock.json
# package.json
* Fix linter error.
* Remove workspace definitions.
* Fix missing Fragment import.
* Fix package lock.
* Fix missing reference.
* Only build commonjs module for js-tests helper.
* Remove errant dependency from components.
* Remove noop scripts.
* Fix package JS build before testing.
* Revert noisy formatting changes.
* Fix precommit and test scripts.
* Fix minimum expected recommended extension count.
Japan test case breaks this.
* Revert babel config changes.
* chore(release): publish
- @woocommerce/components@7.2.0
- @woocommerce/csv-export@1.4.0
- @woocommerce/currency@3.2.0
- @woocommerce/customer-effort-score@1.1.0
- @woocommerce/data@1.4.0
- @woocommerce/date@3.1.0
- @woocommerce/dependency-extraction-webpack-plugin@1.7.0
- @woocommerce/eslint-plugin@1.3.0
- @woocommerce/experimental@1.5.0
- @woocommerce/explat@1.1.0
- @woocommerce/js-tests@1.1.0
- @woocommerce/navigation@6.1.0
- @woocommerce/notices@3.1.0
- @woocommerce/number@2.2.0
- @woocommerce/onboarding@1.1.0
- @woocommerce/tracks@1.1.0
- @woocommerce/wc-admin-settings@1.1.0
* Add script for running 'start' in a package.
* Remove yarn from gitignore.
* Update package changelogs, prep versions for release.
* Try to fix E2E tests after main merge.
* Some cleanup.
* Add changelog.
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-07-14 16:38:57 -04:00
Sam Seay
77906db0ff
Use sass-migrator to migrate division to math.div ( https://github.com/woocommerce/woocommerce-admin/pull/7136 )
2021-06-10 17:09:27 +08:00
Sam Seay
9033d575cc
Remove stylesheets supporting IE11 ( https://github.com/woocommerce/woocommerce-admin/pull/7137 )
...
* Remove stylesheets supporting IE11.
* Add a changelog entry.
2021-06-09 09:11:18 -03:00
Sam Seay
edc8a1bdc5
Publish storybook docs, remove react docgen based docs ( https://github.com/woocommerce/woocommerce-admin/pull/7055 )
2021-06-02 15:54:00 +12:00
Joel Thiessen
bb7f1dc466
Refactoring WCPayCard into new onboarding package ( https://github.com/woocommerce/woocommerce-admin/pull/7058 )
2021-05-28 16:26:38 -07:00
louwie17
69dfdf733c
Add tree shaking support for woocommerce components ( https://github.com/woocommerce/woocommerce-admin/pull/7034 )
...
* Add woocommerce/components tree shaking support
* Compile individual component styles for individual use
* Update readme
* Add changelog
* Fix correct import
* Update readme with dependency extraction updates
* Update dependency extraction naming
2021-05-26 16:35:46 -03:00
louwie17
7859e37221
Making experimental package public and updating its dependency versions ( https://github.com/woocommerce/woocommerce-admin/pull/6810 )
...
* Making experimental package public, and updating the dependency versions
* add experimental to webpack and make explat public
* bump DEWP package version
* use filepath for inter package dependencies
* load experimental script
* remove check for experimental
Co-authored-by: Sam Seay <samueljseay@gmail.com>
Co-authored-by: Paul Sealock <psealock@gmail.com>
2021-04-16 15:34:15 +12:00
Paul Sealock
7ab756b76c
Try ExPlat: Add A/A test ( https://github.com/woocommerce/woocommerce-admin/pull/6669 )
...
* Add basic ExPlat initialization
* add tsx support
2021-04-15 13:32:46 +12:00
Sam Seay
cc01b9816e
Fix TypeScript build for `packages` and add types for wc/data's onboarding store ( https://github.com/woocommerce/woocommerce-admin/pull/6595 )
2021-03-25 10:29:37 +13:00
louwie17
cb3c1e88e8
Add tilde (~) option for client root directory ( https://github.com/woocommerce/woocommerce-admin/pull/6517 )
...
* Add tilde option for client root directory
* Support tilde start as internal to fix lint issues
* Update baseUrl and paths so auto complete works correctly
* Add changelogs
* Add eslint support for webpack resolvers
Co-authored-by: Matt Sherman <matt@jam123.com>
2021-03-10 11:11:37 -04:00
Sam Seay
630f31ae9d
Clean up unused deps and add TS to the build. ( https://github.com/woocommerce/woocommerce-admin/pull/6441 )
2021-03-01 16:01:22 +13:00
Paul Sealock
101df3b019
Add Dependency Extraction Webpack Plugin ( https://github.com/woocommerce/woocommerce-admin/pull/5762 )
...
* Add woo flavored DEWP
* clean up webpack config
* clean
* marketing coupons
* onboarding scripts
* nav scripts
* better imports of deps
* add asset files to bundle
* under git rebase conflict error
* try order
* Add wp_set_script_translations to the scripting loop
* changelog
2021-03-01 12:48:52 +13:00