woocommerce / woocommerce-blocks
WooCommerce Blocks 用于 Gutenberg 编辑器。
Requires
- ext-hash: *
- ext-json: *
- automattic/jetpack-autoloader: ^2.11
- automattic/jetpack-config: ^1.15
- automattic/jetpack-connection: ^1.57
- composer/installers: ^1.7.0
Requires (Dev)
- mockery/mockery: 1.6.6
- nikic/php-parser: 4.16.0 as 1.0.0
- phpdocumentor/reflection: 3.0.1
- phpunit/php-code-coverage: 9.2.29
- phpunit/phpunit: 9.6.13
- woocommerce/woocommerce-sniffs: 0.1.3
- wp-hooks/generator: 0.9.0
- yoast/phpunit-polyfills: 2.0.0
- dev-trunk
- 11.7.0
- 11.6.2
- 11.6.1
- 11.6.0
- 11.5.4
- 11.5.3
- 11.5.2
- 11.5.1
- 11.5.0
- 11.4.9
- 11.4.8
- 11.4.7
- 11.4.6
- 11.4.5
- 11.4.4
- 11.4.3
- 11.4.2
- 11.4.1
- 11.4.0
- 11.3.1
- 11.3.0
- 11.2.0
- 11.1.3
- 11.1.2
- 11.1.1
- 11.1.0
- 11.0.0
- 10.9.3
- 10.9.2
- 10.9.1
- 10.9.0
- 10.8.3
- 10.8.2
- 10.8.1
- 10.8.0
- 10.7.1
- 10.7.0
- 10.6.6
- 10.6.5
- 10.6.4
- 10.6.3
- 10.6.2
- 10.6.1
- 10.6.0
- 10.5.0
- 10.4.6
- 10.4.5
- 10.4.4
- 10.4.3
- 10.4.2
- 10.4.1
- 10.4.0
- 10.3.0
- 10.2.4
- 10.2.3
- 10.2.2
- 10.2.1
- 10.2.0
- 10.1.0
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.9.0
- 9.8.5
- 9.8.4
- 9.8.3
- 9.8.2
- v9.8.1
- v9.8.0
- v9.7.2
- v9.7.1
- v9.7.0
- v9.6.6
- v9.6.5
- v9.6.4
- v9.6.3
- v9.6.2
- v9.6.1
- v9.6.0
- v9.5.0
- v9.4.4
- v9.4.3
- v9.4.2
- v9.4.1
- v9.4.0
- v9.3.0
- v9.2.0
- v9.1.5
- v9.1.4
- v9.1.3
- v9.1.2
- v9.1.1
- v9.1.0
- v9.0.0
- v8.9.4
- v8.9.3
- v8.9.2
- v8.9.1
- v8.9.0
- v8.8.2
- v8.8.1
- v8.8.0
- v8.7.6
- v8.7.5
- v8.7.4
- v8.7.3
- v8.7.2
- v8.7.1
- v8.7.0
- v8.6.0
- v8.5.2
- v8.5.1
- v8.5.0
- v8.4.0
- v8.3.3
- v8.3.2
- v8.3.1
- v8.3.0
- v8.2.1
- v8.2.0
- v8.1.0
- v8.0.0
- v7.9.0
- v7.8.3
- v7.8.2
- v7.8.1
- v7.8.0
- v7.7.0
- v7.6.2.x-dev
- v7.6.2
- v7.6.1
- v7.6.0
- v7.5.0
- v7.4.3
- v7.4.2
- v7.4.1
- v7.4.0
- v7.3.0
- v7.2.2
- v7.2.1
- v7.2.0
- v7.1.0
- v7.0.0
- v6.9.0
- v6.8.0
- v6.7.3
- v6.7.2
- v6.7.1
- v6.7.0
- v6.6.0
- v6.5.2
- v6.5.1
- v6.5.0
- v6.4.0
- v6.3.3
- v6.3.2
- v6.3.1
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.9.1
- v5.9.0
- v5.8.0
- v5.7.2
- v5.7.1
- v5.7.0
- v5.6.0
- v5.5.1
- v5.5.0
- v5.4.0
- v5.3.3
- v5.3.2
- v5.3.1
- v5.3.0
- v5.2.0
- v5.1.1
- v5.1.0
- v5.0.0
- v4.9.2
- v4.9.1
- v4.9.0
- v4.8.0
- v4.7.3
- v4.7.2
- v4.7.1
- v4.7.0
- v4.6.0
- v4.5.2
- v4.5.1
- v4.5.0
- v4.4.4
- v4.4.3
- v4.4.2
- v4.4.1
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.9.0
- v3.8.2
- v3.8.1
- v3.8.0
- v3.7.1
- v3.7.0
- v3.6.1
- v3.6.0
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.0
- 3.2
- v3.1.1
- v3.1.0
- v3.0.0
- v2.9.0
- v2.8.0
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.1
- v2.6.0
- v2.6.0-rc1
- v2.6.0-beta3
- v2.6.0-beta-2
- v2.6.0-beta.1
- v2.5.17
- v2.5.16
- v2.5.15
- v2.5.14.1
- v2.5.14
- v2.5.13
- v2.5.12
- v2.5.11.1
- v2.5.11
- v2.5.10
- v2.5.9
- v2.5.8
- v2.5.7
- v2.5.6
- v2.5.5
- v2.5.4
- v2.5.3
- v2.5.2
- v2.5.1
- v2.5.0
- v2.5.0-beta3
- v2.5.0-beta2
- v2.5.0-beta1
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.3.0-rc.1
- v2.3.0-beta.3
- v2.3.0-beta.2
- v2.3.0-beta
- v2.2.1
- v2.2.0
- v2.1.0
- v2.1.0-rc
- v2.0.1
- v2.0.0
- v2.0.0-rc3
- v2.0.0-rc2
- v2.0.0-rc1
- v2.0.0-beta
- v2.0.0-alpha
- v1.4.0
- v1.4.0-RC
- v1.3.1
- v1.3.0
- v1.3.0-RC
- 1.2.0
- dev-dependabot/npm_and_yarn/axios-1.6.0
- dev-add/11585-custom-fields-api
- dev-11933-contribution-test
- dev-add/merge-block-workflow
- dev-fix/11855-update-deprecated-button-props
- dev-11164-contribution-test
- dev-9360-product-collection-filters-price-range
- dev-add/11823-hide-filters-per-collection
- dev-add/10822-new-flow-for-product-collection
- dev-add/reviews-tests
- dev-fix/improve-e2e-test-flakiness
- dev-ci/11802
- dev-fix/pr-11070-payment-methods-index
- dev-fix/9114_session_handler_shims
- dev-fix/11563-notice-styling
- dev-test/price-filter-context
- dev-release/11.6.0
- dev-add/active-filters-interactivity-api
- dev-add/interactivity-rating-filter
- dev-release/11.6.1
- dev-update/8883-optimise-shipping-notice
- dev-fix/10565-express-payment-error
- dev-dev/minor-store-changes-dropdown
- dev-refactor/import-alias
- dev-update/jetpack-tracking
- dev-dev/migrate-price-filter-store-api
- dev-cherry-pick/directive-enhancements
- dev-add/9778-add-option-to-opt-out-from-woocommerce-blocks-patterns
- dev-dev/dropdown-support-multi-select
- dev-fix/product-gallery-e2e-test
- dev-11828/ai-generated-price
- dev-fix/11851-woocommerce-before-thankyou-hook
- dev-add/10822-e2e-failing
- dev-dev/clean-up-ts-action
- dev-fix/11311-product-gallery-refactor-handle-click-action
- dev-fix/generate-ai-content-for-newly-created-products
- dev-block-hook/insert-mini-cart-into-header-template-part
- dev-upodate/fine-tune-ai-prompts
- dev-try/data-processing-filters
- dev-dependabot/npm_and_yarn/testing-library/react-hooks-8.0.1
- dev-dependabot/npm_and_yarn/eslint-import-resolver-typescript-3.6.1
- dev-dependabot/npm_and_yarn/classnames-and-types/classnames-2.3.2
- dev-dependabot/npm_and_yarn/dataloader-2.2.2
- dev-dependabot/github_actions/actions/checkout-4
- dev-update/ai-content-generation-for-products
- dev-add/checkboxlist-storybook
- dev-dependabot/github_actions/WebFreak001/deploy-nightly-3.0.0
- dev-try/block-templates-refactor-poc
- dev-dependabot/composer/woocommerce/woocommerce-sniffs-1.0.0
- dev-11516-cys-improve-footer-with-simple-menu-and-cart-pattern
- dev-enhance/add-default-width-for-site-logo
- dev-11237-fix-height-issues-with-the-product-collections-featured-collection-on-the-editor
- dev-try/add-experimental-collection-filter
- dev-tt4/11328-featured-blocks-rounded-borders
- dev-remove/author-filter-from-product-collection
- dev-11398-cys-woo-express-hero-product-3-split
- dev-try/filter-block-as-view-block
- dev-try/11148-product-gallery-add-max-thumbnails-columns
- dev-try/10946-add-better-product-gallery-dialog-template-part
- dev-fix/9790-shipping-method-switch
- dev-try/product-collection-extendability-attributes
- dev-try/product-recommendations-block
- dev-update/patterns-content
- dev-add/organise-patterns
- dev-fix/add-aspect-ratio-to-patterns
- dev-try/inner-filter-block
- dev-try/new-price-filter
- dev-11088-store-customization-homepage-template-1-review-layout-and-spacing-in-between-patterns
- dev-try/auto-insert-blocks
- dev-experiment/templated-fixtures
- dev-fix/make-pattern-images-more-restrictive
- dev-interactivity-api-sync-with-gutenberg
- dev-experiment/store-notices-with-interactivity-api
- dev-fix/prevent-product-gallery-from-appearing-on-post-editor
- dev-10880-product-gallery-add-support-for-variation-image-updates
- dev-poc/collections-as-variations
- dev-enhancement/10658-store-customization-create-a-new-endpoint-within-store-api-for-updating-patterns-with-ai-generated-content
- dev-try/interactivity-with-mustache
- dev-fix/lint-error
- dev-dev/migrate-product-rating-to-playwright
- dev-try/merge-frontend-requests
- dev-10750-product-gallery-block-different-icons-for-next-previous-block
- dev-10771/featured-categories-grid-pattern
- dev-10771/add-featured-categories-grid-pattern
- dev-revert/9859
- dev-pw/enable-parallelism
- dev-10637-product-hero-pattern-update-the-content-max-width
- dev-test-jetpack-ai
- dev-feat/10713-add-support-to-view-ts-file
- dev-fix/upgrade-package-lock-and-composer-lock-to-prevent-error-when-building
- dev-fix/testing-instructions-10339
- dev-try/optimize-frontend-rendering-stock-filter
- dev-try/storybook7
- dev-try/use-storystorev7
- dev-enhance/auto-insert-the-mini-cart-block-after-navigation-block
- dev-9274-explore-how-to-inject-the-mini-cart-block-into-headers
- dev-10458-store-customization-design-feedback-on-wireframed-and-new-patterns
- dev-try/use-playwright-container
- dev-try/simple-price-filter-block-demo
- dev-fix/10594
- dev-fix/10525-disable-product-query-from-inserter
- dev-update/price-block-improvments
- dev-10511/remove-wp-hardcoded-version
- dev-test-flaky
- dev-9004-playwright-migration-integrate-the-flaky-e2e-test-reporter
- dev-try/cancel-request-middleware
- dev-try/populate-patterns-with-verticals
- dev-product-on-sale-convert-to-ts
- dev-add/e2e-tests-compatiblity-layer
- dev-add/e2e-tests-compatiblity-no-reults
- dev-6516/assign-milestone-after-merging
- dev-fix/migration-for-blockyfied-templates
- dev-7034/fix-best-selling-products-logic
- dev-add/product-gallery-settings-crop-zoom-fullscreen
- dev-test/test-ci-php-error
- dev-try/google-maps-client
- dev-fix/legacy-template-archive
- dev-fix/single-product-duplicate-classname-2
- dev-10259-woocommerce-causing-malfunction-of-the-navigation-block-on-wordpress-63
- dev-fix/9400
- dev-feature/gift-wrapping
- dev-test/pr9614
- dev-update/block-editor
- dev-fix/10228
- dev-9668/show-enabled-express-methods-detect-button-render
- dev-9668/show-enabled-express-methods
- dev-add/an-endpoint-for-updating-customer-by-order
- dev-fix/print_inline_script-is-deprecated-on-wp-6-3
- dev-9438/product-rating-inner-blocks
- dev-experiment/create-data-wc-navigation-id-directive
- dev-add/9943-product-gallery-thumbnails
- dev-add/an-endpoint-for-getting-pay-for-order-orders
- dev-add/product-gallery-next/previous-buttons
- dev-add/migration-path-from-products-to-product-collection
- dev-add/migration-path-from-products-to-product-collection-notice-visibility-logic
- dev-add/block-fixture-generation
- dev-add/6949-interactivity-api-product-button-store
- dev-check/remove-proptypes-product-tag-9758-pr
- dev-contribute-pipeline-check-9758
- dev-add/product-centric-product-collection
- dev-fix/active-filters-tests
- dev-6949-different-behavior-of-the-product-button-block-when-it-is-used-in-the-product-query-block-and-it-is-used-in-the-all-products-block
- dev-enhance/9438-enable-individual-customization-of-stars-and-rating
- dev-test-php-lint-ci
- dev-contribution-pipeline-check-9814
- dev-9847/hero-product-3-split
- dev-disable-php-unit-tests
- dev-run-php-unit-tests-only-for-php-files
- dev-update/products-alignment
- dev-8744-create-a-docker-image-with-the-env-already-setup-to-reduce-the-time-to-run-e2e-tests
- dev-contribution-pipeline-check-9815
- dev-add/hook-up-the-order-update-customer
- dev-add/9745-product-collection-product-summary
- dev-product-collection-use-product-title
- dev-fix/9726-product-meta-inner-blocks-alignment-not-correct-when-product-has-no-sku
- dev-fix/add-d-ts-module-with-product
- dev-9003-playwright-migration-support-multiple-environment
- dev-9637-block-error-is-displayed-on-clearing-customizations-for-woo-templates
- dev-test-9713
- dev-add/enable-blockified-template-more-e2e-tests
- dev-add/add-to-cart-with-options-dedicated-templates
- dev-fix/@wordpress/e2e-test-utils-playwright-official-package
- dev-fix/add-to-cart-with-options-remove-opinionated-font-size
- dev-8771-add-to-cart-form-redirects-to-the-product-page-after-clicking-the-button
- dev-fix/remove-call-to-global-variables-from-gallery-block
- dev-9287-product-rating-add-the-support-for-the-single-product-template
- dev-fix/checkout-error
- dev-fix/php-error-on-pattern
- dev-test/add-text-field
- dev-fix/name-for-add-to-cart-block
- dev-try/products-optimisation-with-api-fetch
- dev-contribution-pipeline-check-9258
- dev-9036/header-2-pattern
- dev-try/wc-payments-fix
- dev-try/filter-by-price-customisation
- dev-add/poc-custom-fields
- dev-fix/attribute-filter-send-data-on-initial-request
- dev-try/global-variable-overwrite
- dev-poc-custom-fields
- dev-try/filters-with-client-side-navigation
- dev-fix/8341-disable-buttons-when-updating-items
- dev-add/rewind-posts-to-product-details-block
- dev-fix/attribute-terms-tree-bug
- dev-8528-product-image-gallery-block-not-showing-sale-badge
- dev-try/add-simple-price-filter-block
- dev-fix/re-add-product-type-product-class
- dev-fix/hide_product_image_gallery_release
- dev-try/mini-cart-show-amount
- dev-fix/avoid-unnecessary-serialization
- dev-try/cherry-pick-wp-components
- dev-add/6909-skip-generate-zip-test
- dev-fix/duplicated-star-ratings
- dev-try/simple-price-filter-ssr
- dev-try/single-product-post-types
- dev-try/single-product-fallback-templates
- dev-fix/stylebook-mini-cart-contents
- dev-8314-blockifying-single-product-template-investigate-how-to-apply-wc-core-styles-to-product-template
- dev-try/single-product-extra-templates
- dev-7649/hide-product-by-templates
- dev-7649/hide-product-by
- dev-fix/stylebook-filter-preview
- dev-add/e2e-test-old-wordpress
- dev-fix-block-tests
- dev-add/product-query-layout-options
- dev-fix/refactor-product-query-e2e-tests
- dev-fix/8048-storybook-productprice-error
- dev-add/breadcrumbs-block
- dev-try/single-product-template-by-type
- dev-try/wrapper-no-wrapper
- dev-try/product-gallery
- dev-enhance/blocks-registration-performance
- dev-try/fix-click-event-not-triggering-in-editor
- dev-try/update-wordpress-components-front
- dev-chore/enable-react-fast-refresh
- dev-try/8002
- dev-fix/cart-block-invalid-coupon-console-error
- dev-fix/stable-reference-to-actions-in-use-forced-layout
- dev-revert-7511-partially
- dev-tests/product-query-variations
- dev-try/reuse-preview-options
- dev-enhancement/update-copy-filter-by-rating-block
- dev-add/product-query-default-pattern
- dev-try/custom-fields
- dev-docs/fix-md-lint-errors
- dev-test/update-comment-monitor-ts
- dev-try/minicart-themejson-icon
- dev-try/typescript-monitor-second-branch
- dev-try/block_single_product
- dev-try/product-connected-patterns
- dev-persist-shipping-as-billing
- dev-fix/cart-express-payment-any-instead-of-or2
- dev-fix/1160
- dev-docs/inner-blocks
- dev-try/product-grid-client-side-transitions-with-filters
- dev-add/payment-docs
- dev-try/extension-layer
- dev-try/use-existing-hook-for-hoc
- dev-backup
- dev-moment-timezone-bug-repro
- dev-fix/6879-coupon-batch-delete-return-type
- dev-new-grid
- dev-try/new-product-grid
- dev-fix/e2e-timeout
- dev-fix/1279
- dev-refactor/e2e-i18n
- dev-fix/active-filters-and-php-templates-2
- dev-fix/6029-3
- dev-try/6064-handpicked-products-add-image-control
- dev-fix/select-element-style
- dev-refactor/goToBlockPage
- dev-chore/5890-rename-legacy-blocks
- dev-add/5666-add-to-cart-button
- dev-poc/payment-methods-block-state
- dev-ts-conversions
- dev-add/4965-price-product
- dev-add/4965-product-image
- dev-chip-improvements
- dev-try/global-background-style-mini-cart
This package is auto-updated.
Last update: 2024-03-22 22:19:38 UTC
README
WooCommerce Blocks 的文档已移至 WooCommerce 单一仓库。
请参考新位置的文档,因为此存储库中的文件将不再更新,并将归档。
WooCommerce Blocks
这是 WooCommerce + Gutenberg 的功能插件。此插件用作迭代和探索新块以及 WooCommerce 现有块的更新的空间,以及 WooCommerce 如何与块编辑器协同工作。
如果您想访问 WooCommerce 可用块的最新版本,请使用此插件。但是,稳定的块已捆绑到 WooCommerce 中,可以从“WooCommerce”部分在块插入器中添加。
目录
文档
要了解更多关于块以及如何使用它们的信息,请访问 WooCommerce.com 上的文档。
如果您想查看我们正在为未来版本开发的内容,或者想帮忙,请继续阅读。
代码文档
- 块 - 特定块的文档。
- 编辑组件 - 在 WooCommerce 块的编辑器(Gutenberg)UI 中使用的共享组件。
- WooCommerce Blocks 手册 - 关于如何扩展或为块做出贡献的文档,以及内部开发人员应如何处理新发布的文档。
- WooCommerce Blocks Storybook - 包含插件中使用的组件列表和演示。
安装插件版本
我们每隔几周在 WordPress.org 上发布一个新的 WooCommerce Blocks 版本,这可以作为预览功能的更简单方法。
注意:该插件遵循支持“L0”策略的版本支持政策。这意味着该插件将需要 WordPress 的最新版本。它还需要发布时的 WooCommerce 核心最新版本。您可以在 此处 了解更多关于此政策的信息。
1. 确保您已在您的网站上安装了最新版本的 WordPress 和 WooCommerce。2. 插件版本可在 WordPress.org 上获得。 在此下载插件版本。3. 激活插件。
安装开发版本
- 确保您已在您的网站上安装了最新版本的 WordPress 和 WooCommerce。
- 使用右侧绿色“克隆或下载”按钮获取此插件的副本。
- 请确保您正在使用 Node.js v16.15。如果您使用 Node 版本管理工具,如
nvm
或n
,则可以通过运行nvm use
或n auto
来执行此操作。 - 运行
npm install
以安装依赖项。 - 运行
composer install
以安装核心依赖项。 - 要编译代码,运行以下命令中的任意一个:
npm run build
(生产构建)。npm run dev
(开发构建)。npm start
(开发构建 + 监视变化)。
- 激活插件。
源代码位于 assets/
文件夹中,编译后的代码存储在 build/
文件夹中。
开始块开发
通过 “编写您的第一个区块类型”教程 快速学习区块构建。
想要深入了解,可以查看 核心区块代码,或者查看有哪些 组件可用。
要开始为 WooCommerce Blocks 插件做出贡献,请参阅我们的 入门指南 和 开发者手册。
其他有用的文档
长期愿景
WooCommerce Blocks 是构建您商店用户界面和展示产品的最简单、最灵活的方式。