├── .nvmrc
├── .jshintignore
├── .npmrc
├── packages
├── a11y
│ ├── .npmrc
│ └── src
│ │ └── clear.js
├── blob
│ └── .npmrc
├── data
│ ├── .npmrc
│ └── src
│ │ ├── plugins
│ │ ├── index.js
│ │ └── controls
│ │ │ └── index.js
│ │ ├── default-registry.js
│ │ └── components
│ │ └── async-mode-provider
│ │ └── index.js
├── date
│ └── .npmrc
├── dom
│ ├── .npmrc
│ └── src
│ │ └── index.js
├── editor
│ ├── src
│ │ ├── hooks
│ │ │ ├── index.native.js
│ │ │ └── index.js
│ │ ├── utils
│ │ │ ├── index.native.js
│ │ │ ├── index.js
│ │ │ └── test
│ │ │ │ └── url.js
│ │ ├── components
│ │ │ ├── post-excerpt
│ │ │ │ ├── style.scss
│ │ │ │ └── check.js
│ │ │ ├── autocompleters
│ │ │ │ ├── index.js
│ │ │ │ └── README.md
│ │ │ ├── error-boundary
│ │ │ │ └── style.scss
│ │ │ ├── post-title
│ │ │ │ └── style.native.scss
│ │ │ ├── template-validation-notice
│ │ │ │ └── style.scss
│ │ │ ├── post-trash
│ │ │ │ └── style.scss
│ │ │ ├── global-keyboard-shortcuts
│ │ │ │ └── text-editor-shortcuts.js
│ │ │ ├── index.native.js
│ │ │ └── server-side-render
│ │ │ │ └── README.md
│ │ ├── editor-styles
│ │ │ ├── test
│ │ │ │ └── __snapshots__
│ │ │ │ │ └── traverse.js.snap
│ │ │ └── ast
│ │ │ │ └── index.js
│ │ └── index.native.js
│ └── .npmrc
├── i18n
│ ├── .npmrc
│ └── benchmark
│ │ └── index.js
├── nux
│ ├── .npmrc
│ └── src
│ │ ├── style.scss
│ │ └── index.js
├── url
│ └── .npmrc
├── viewport
│ ├── src
│ │ └── index.native.js
│ └── .npmrc
├── api-fetch
│ └── .npmrc
├── autop
│ └── .npmrc
├── blocks
│ ├── .npmrc
│ └── src
│ │ ├── api
│ │ └── raw-handling
│ │ │ ├── index.native.js
│ │ │ ├── google-docs-uid-remover.js
│ │ │ ├── head-remover.js
│ │ │ ├── blockquote-normaliser.js
│ │ │ └── iframe-remover.js
│ │ └── store
│ │ └── index.js
├── compose
│ └── .npmrc
├── core-data
│ ├── .npmrc
│ └── src
│ │ ├── queried-data
│ │ └── index.js
│ │ ├── name.js
│ │ └── utils
│ │ └── index.js
├── docgen
│ ├── .npmrc
│ ├── src
│ │ ├── test
│ │ │ ├── fixtures
│ │ │ │ ├── namespace
│ │ │ │ │ ├── code.js
│ │ │ │ │ └── module.js
│ │ │ │ ├── named-default
│ │ │ │ │ ├── code.js
│ │ │ │ │ ├── module-code.js
│ │ │ │ │ └── module-ir.json
│ │ │ │ ├── named-default-exported
│ │ │ │ │ ├── code.js
│ │ │ │ │ ├── module-code.js
│ │ │ │ │ └── module-ir.json
│ │ │ │ ├── default-variable
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-class
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-class-anonymous
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-undocumented-oneliner
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-function
│ │ │ │ │ ├── code.js
│ │ │ │ │ └── ir.json
│ │ │ │ ├── named-import-namespace
│ │ │ │ │ ├── module-code.js
│ │ │ │ │ ├── module-ir.json
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-variable
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-import-named
│ │ │ │ │ ├── module-ir.json
│ │ │ │ │ ├── module-code.js
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-undocumented-nocomments
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-class-named
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-function-anonymous
│ │ │ │ │ └── code.js
│ │ │ │ ├── namespace-commented
│ │ │ │ │ ├── code.js
│ │ │ │ │ └── module.js
│ │ │ │ ├── default-function-named
│ │ │ │ │ ├── code.js
│ │ │ │ │ └── ir.json
│ │ │ │ ├── named-identifier
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-identifier
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-import-default
│ │ │ │ │ ├── module-ir.json
│ │ │ │ │ ├── code.js
│ │ │ │ │ └── module-code.js
│ │ │ │ ├── named-import-named
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-variables
│ │ │ │ │ └── code.js
│ │ │ │ ├── default-named-export
│ │ │ │ │ └── code.js
│ │ │ │ ├── tags-variable
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-identifier-destructuring
│ │ │ │ │ └── code.js
│ │ │ │ ├── named-identifiers
│ │ │ │ │ ├── ir.json
│ │ │ │ │ └── code.js
│ │ │ │ └── named-identifiers-and-inline
│ │ │ │ │ └── code.js
│ │ │ └── engine.js
│ │ └── get-dependency-path.js
│ └── CHANGELOG.md
├── dom-ready
│ └── .npmrc
├── e2e-tests
│ ├── .npmrc
│ ├── fixtures
│ │ ├── blocks
│ │ │ ├── core__search.html
│ │ │ ├── core__calendar.html
│ │ │ ├── core__search.serialized.html
│ │ │ ├── core__archives.serialized.html
│ │ │ ├── core__block.html
│ │ │ ├── core__calendar.serialized.html
│ │ │ ├── core__legacy-widget.html
│ │ │ ├── core__block.serialized.html
│ │ │ ├── core__categories.serialized.html
│ │ │ ├── core__4-invalid-starting-letter.html
│ │ │ ├── core__invalid-Capitals.html
│ │ │ ├── core__invalid-special.html
│ │ │ ├── core__latest-posts.serialized.html
│ │ │ ├── core__legacy-widget.serialized.html
│ │ │ ├── core__tag-cloud.html
│ │ │ ├── core__latest-comments.serialized.html
│ │ │ ├── core__invalid-special.serialized.html
│ │ │ ├── core__tag-cloud.serialized.html
│ │ │ ├── core__4-invalid-starting-letter.serialized.html
│ │ │ ├── core__invalid-Capitals.serialized.html
│ │ │ ├── core__more.html
│ │ │ ├── core__more.serialized.html
│ │ │ ├── core__archives.html
│ │ │ ├── core__archives__showPostCounts.serialized.html
│ │ │ ├── core__latest-posts.html
│ │ │ ├── core__nextpage.html
│ │ │ ├── core__nextpage.serialized.html
│ │ │ ├── core__tag-cloud__showTagCounts.html
│ │ │ ├── core__archives__showPostCounts.html
│ │ │ ├── core__latest-posts__displayPostDate.serialized.html
│ │ │ ├── core__shortcode.html
│ │ │ ├── core__shortcode.serialized.html
│ │ │ ├── core__latest-posts__displayPostDate.html
│ │ │ ├── core__tag-cloud__showTagCounts.serialized.html
│ │ │ ├── core__separator.html
│ │ │ ├── core__separator.serialized.html
│ │ │ ├── core__categories.html
│ │ │ ├── core__heading__h2-em.html
│ │ │ ├── core__heading__h2-em.serialized.html
│ │ │ ├── core__latest-comments.html
│ │ │ ├── core__paragraph__deprecated.html
│ │ │ ├── core__paragraph__deprecated.serialized.html
│ │ │ ├── core__subhead.html
│ │ │ ├── core__subhead.serialized.html
│ │ │ ├── core__verse.html
│ │ │ ├── core__verse.serialized.html
│ │ │ ├── core__search__custom-text.html
│ │ │ ├── core__spacer.html
│ │ │ ├── core__heading__h2.html
│ │ │ ├── core__heading__h2.serialized.html
│ │ │ ├── core__spacer.serialized.html
│ │ │ ├── core__freeform__undelimited.html
│ │ │ ├── core__html.html
│ │ │ ├── core__html.serialized.html
│ │ │ ├── core__search__custom-text.serialized.html
│ │ │ ├── core__freeform.serialized.html
│ │ │ ├── core__freeform__undelimited.serialized.html
│ │ │ ├── core__text__converts-to-paragraph.html
│ │ │ ├── core__preformatted.html
│ │ │ ├── core__preformatted.serialized.html
│ │ │ ├── core__more__custom-text-teaser.html
│ │ │ ├── core__more__custom-text-teaser.serialized.html
│ │ │ ├── core__text__converts-to-paragraph.serialized.html
│ │ │ ├── core__rss.html
│ │ │ ├── core__code.serialized.html
│ │ │ ├── core__rss.serialized.html
│ │ │ ├── core__code.html
│ │ │ ├── core__freeform.html
│ │ │ ├── core__quote__deprecated-1.serialized.html
│ │ │ ├── core__paragraph__align-right.html
│ │ │ ├── core__paragraph__align-right.serialized.html
│ │ │ ├── core__pullquote.serialized.html
│ │ │ ├── core__pullquote__deprecated-2.html
│ │ │ ├── core__pullquote__deprecated-2.serialized.html
│ │ │ ├── core__image.html
│ │ │ ├── core__image.serialized.html
│ │ │ ├── core__pullquote.html
│ │ │ ├── core__quote__deprecated-1.html
│ │ │ ├── core__button__center.html
│ │ │ ├── core__button__center.serialized.html
│ │ │ ├── core__pullquote__multi-paragraph.serialized.html
│ │ │ ├── core__calendar.json
│ │ │ ├── core__missing.html
│ │ │ ├── core__pullquote__deprecated-1.html
│ │ │ ├── core__pullquote__deprecated-1.serialized.html
│ │ │ ├── core__legacy-widget.json
│ │ │ ├── core__missing.serialized.html
│ │ │ ├── core__text-columns.serialized.html
│ │ │ ├── core__nextpage.json
│ │ │ ├── core__quote__style-2.html
│ │ │ ├── core__quote__style-2.serialized.html
│ │ │ ├── core__embed.serialized.html
│ │ │ ├── core__tag-cloud.parsed.json
│ │ │ ├── core__audio.serialized.html
│ │ │ ├── core__block.json
│ │ │ ├── core__file__no-download-button.html
│ │ │ ├── core__separator.json
│ │ │ ├── core__column.html
│ │ │ ├── core__column.serialized.html
│ │ │ ├── core__audio.html
│ │ │ ├── core__file__no-download-button.serialized.html
│ │ │ ├── core__image__deprecated-1.serialized.html
│ │ │ ├── core__embed.html
│ │ │ ├── core__file__no-text-link.serialized.html
│ │ │ ├── core__more.json
│ │ │ ├── core__4-invalid-starting-letter.parsed.json
│ │ │ ├── core__archives.parsed.json
│ │ │ ├── core__image__deprecated-1.html
│ │ │ ├── core__invalid-special.parsed.json
│ │ │ ├── core__pullquote__multi-paragraph.html
│ │ │ ├── core__file__no-text-link.html
│ │ │ ├── core__image__custom-link.html
│ │ │ ├── core__image__custom-link.serialized.html
│ │ │ ├── core__invalid-Capitals.parsed.json
│ │ │ ├── core__list__ul.html
│ │ │ ├── core__tag-cloud__showTagCounts.parsed.json
│ │ │ ├── core__archives__showPostCounts.parsed.json
│ │ │ ├── core__list__ul.serialized.html
│ │ │ ├── core__text-columns.html
│ │ │ ├── core__image__custom-link-rel.html
│ │ │ ├── core__image__custom-link-rel.serialized.html
│ │ │ ├── core__image__deprecated-2.html
│ │ │ ├── core__image__attachment-link.html
│ │ │ ├── core__image__attachment-link.serialized.html
│ │ │ ├── core__image__custom-link-class.html
│ │ │ ├── core__image__custom-link-class.serialized.html
│ │ │ ├── core__shortcode.json
│ │ │ ├── core__archives.json
│ │ │ ├── core__tag-cloud.json
│ │ │ ├── core__image__deprecated-3.html
│ │ │ ├── core__image__deprecated-2.serialized.html
│ │ │ ├── core__image__deprecated-3.serialized.html
│ │ │ ├── core__tag-cloud__showTagCounts.json
│ │ │ ├── core__archives__showPostCounts.json
│ │ │ ├── core__search.json
│ │ │ ├── core__spacer.json
│ │ │ ├── core__4-invalid-starting-letter.json
│ │ │ ├── core__subhead.json
│ │ │ ├── core__group.html
│ │ │ ├── core__group.serialized.html
│ │ │ └── core__invalid-Capitals.json
│ │ └── index.js
│ ├── assets
│ │ ├── 10x10_e2e_test_image_z9T8jK.png
│ │ └── greeting-reusable-block.json
│ ├── specs
│ │ ├── blocks
│ │ │ └── __snapshots__
│ │ │ │ ├── classic.test.js.snap
│ │ │ │ ├── media-text.test.js.snap
│ │ │ │ ├── separator.test.js.snap
│ │ │ │ ├── code.test.js.snap
│ │ │ │ └── html.test.js.snap
│ │ ├── plugins
│ │ │ └── __snapshots__
│ │ │ │ ├── wp-editor-meta-box.test.js.snap
│ │ │ │ ├── meta-attribute-block.test.js.snap
│ │ │ │ └── format-api.test.js.snap
│ │ └── __snapshots__
│ │ │ ├── mentions.test.js.snap
│ │ │ ├── compatibility-classic-editor.test.js.snap
│ │ │ ├── style-variation.test.js.snap
│ │ │ ├── reusable-blocks.test.js.snap
│ │ │ └── embedding.test.js.snap
│ ├── CHANGELOG.md
│ ├── config
│ │ └── gutenberg-phase.js
│ ├── README.md
│ ├── mu-plugins
│ │ └── disable-login-autofocus.php
│ └── jest.config.js
├── edit-post
│ ├── .npmrc
│ └── src
│ │ ├── hooks
│ │ └── index.js
│ │ ├── components
│ │ ├── sidebar
│ │ │ ├── post-status
│ │ │ │ └── style.scss
│ │ │ ├── post-link
│ │ │ │ └── style.scss
│ │ │ ├── plugin-post-status-info
│ │ │ │ └── test
│ │ │ │ │ └── __snapshots__
│ │ │ │ │ └── index.js.snap
│ │ │ ├── last-revision
│ │ │ │ └── style.scss
│ │ │ └── post-author
│ │ │ │ └── style.scss
│ │ ├── options-modal
│ │ │ ├── section.js
│ │ │ └── options
│ │ │ │ └── index.js
│ │ └── browser-url
│ │ │ └── README.md
│ │ └── store
│ │ ├── defaults.js
│ │ └── constants.js
├── element
│ ├── .npmrc
│ └── src
│ │ ├── react-platform.native.js
│ │ └── index.js
├── hooks
│ └── .npmrc
├── keycodes
│ ├── .npmrc
│ └── src
│ │ └── platform.native.js
├── notices
│ ├── .npmrc
│ └── src
│ │ ├── index.js
│ │ └── store
│ │ └── controls.js
├── plugins
│ ├── .npmrc
│ └── src
│ │ ├── index.js
│ │ └── components
│ │ └── index.js
├── rich-text
│ ├── .npmrc
│ └── src
│ │ ├── special-characters.js
│ │ ├── get-text-content.js
│ │ ├── get-format-types.js
│ │ ├── store
│ │ └── index.js
│ │ ├── test
│ │ └── is-collapsed.js
│ │ └── get-format-type.js
├── scripts
│ ├── .npmrc
│ ├── scripts
│ │ └── test-unit-js.js
│ ├── config
│ │ ├── .stylelintrc.json
│ │ ├── npmpackagejsonlint.json
│ │ ├── .eslintrc.js
│ │ ├── puppeteer.config.js
│ │ └── babel-transform.js
│ └── bin
│ │ └── wp-scripts.js
├── shortcode
│ └── .npmrc
├── wordcount
│ └── .npmrc
├── annotations
│ ├── .npmrc
│ ├── src
│ │ ├── index.js
│ │ └── format
│ │ │ └── index.js
│ └── CHANGELOG.md
├── block-editor
│ ├── .npmrc
│ └── src
│ │ ├── components
│ │ ├── font-sizes
│ │ │ ├── index.native.js
│ │ │ ├── index.js
│ │ │ └── style.scss
│ │ ├── contrast-checker
│ │ │ └── style.scss
│ │ ├── alignment-toolbar
│ │ │ └── index.native.js
│ │ ├── color-palette
│ │ │ ├── control.scss
│ │ │ └── index.js
│ │ ├── block-types-list
│ │ │ └── style.scss
│ │ ├── rich-text
│ │ │ ├── style.native.scss
│ │ │ ├── shortcut.native.js
│ │ │ └── input-event.native.js
│ │ ├── plain-text
│ │ │ ├── style.native.scss
│ │ │ └── style.scss
│ │ ├── writing-flow
│ │ │ └── style.scss
│ │ ├── colors
│ │ │ └── index.js
│ │ ├── block-title
│ │ │ └── README.md
│ │ ├── inner-blocks
│ │ │ └── style.scss
│ │ ├── panel-color-settings
│ │ │ └── style.scss
│ │ └── default-block-appender
│ │ │ └── style.native.scss
│ │ ├── hooks
│ │ ├── index.native.js
│ │ └── index.js
│ │ └── index.js
├── block-library
│ ├── .npmrc
│ └── src
│ │ ├── separator
│ │ ├── save.js
│ │ ├── block.json
│ │ ├── edit.js
│ │ ├── theme.scss
│ │ └── icon.js
│ │ ├── heading
│ │ ├── style.native.scss
│ │ ├── editor.native.scss
│ │ ├── shared.js
│ │ └── test
│ │ │ └── shared.js
│ │ ├── nextpage
│ │ ├── block.json
│ │ ├── save.js
│ │ ├── edit.js
│ │ └── editor.native.scss
│ │ ├── quote
│ │ ├── editor.scss
│ │ └── style.scss
│ │ ├── template
│ │ ├── block.json
│ │ ├── edit.js
│ │ └── save.js
│ │ ├── archives
│ │ └── editor.scss
│ │ ├── audio
│ │ ├── theme.scss
│ │ ├── editor.scss
│ │ └── style.scss
│ │ ├── embed
│ │ ├── theme.scss
│ │ └── embed-loading.js
│ │ ├── image
│ │ └── theme.scss
│ │ ├── paragraph
│ │ ├── style.native.scss
│ │ └── icon.js
│ │ ├── verse
│ │ ├── style.scss
│ │ ├── editor.scss
│ │ ├── icon.js
│ │ ├── block.json
│ │ └── save.js
│ │ ├── video
│ │ ├── theme.scss
│ │ ├── editor.scss
│ │ └── style.scss
│ │ ├── preformatted
│ │ ├── editor.scss
│ │ ├── block.json
│ │ ├── save.js
│ │ └── theme.scss
│ │ ├── search
│ │ ├── theme.scss
│ │ └── style.scss
│ │ ├── subhead
│ │ ├── style.scss
│ │ ├── editor.scss
│ │ ├── block.json
│ │ ├── icon.js
│ │ ├── save.js
│ │ └── tranforms.js
│ │ ├── code
│ │ ├── save.js
│ │ ├── theme.native.scss
│ │ ├── block.json
│ │ ├── theme.scss
│ │ └── icon.js
│ │ ├── categories
│ │ ├── editor.scss
│ │ └── style.scss
│ │ ├── spacer
│ │ ├── save.js
│ │ ├── block.json
│ │ ├── editor.scss
│ │ └── icon.js
│ │ ├── pullquote
│ │ └── shared.js
│ │ ├── text-columns
│ │ └── editor.scss
│ │ ├── list
│ │ ├── editor.scss
│ │ ├── block.json
│ │ └── save.js
│ │ ├── html
│ │ ├── block.json
│ │ ├── save.js
│ │ └── icon.js
│ │ ├── rss
│ │ └── editor.scss
│ │ ├── classic
│ │ ├── block.json
│ │ └── save.js
│ │ ├── latest-posts
│ │ └── editor.scss
│ │ ├── shortcode
│ │ ├── save.js
│ │ └── icon.js
│ │ ├── group
│ │ ├── theme.scss
│ │ └── block.json
│ │ ├── table
│ │ └── theme.scss
│ │ ├── more
│ │ ├── block.json
│ │ └── icon.js
│ │ ├── columns
│ │ ├── block.json
│ │ └── icon.js
│ │ ├── column
│ │ └── block.json
│ │ ├── media-text
│ │ └── icon.js
│ │ ├── tag-cloud
│ │ └── editor.scss
│ │ ├── missing
│ │ ├── save.js
│ │ └── block.json
│ │ ├── button
│ │ └── icon.js
│ │ └── file
│ │ └── icon.js
├── components
│ ├── .npmrc
│ └── src
│ │ ├── primitives
│ │ ├── horizontal-rule
│ │ │ ├── index.js
│ │ │ └── index.native.js
│ │ ├── block-quotation
│ │ │ ├── index.js
│ │ │ ├── style.native.scss
│ │ │ ├── style.scss
│ │ │ └── index.native.js
│ │ └── index.js
│ │ ├── dashicon
│ │ ├── style.scss
│ │ ├── icon-class.js
│ │ ├── icon-class.native.js
│ │ └── README.md
│ │ ├── scroll-lock
│ │ └── style.scss
│ │ ├── spinner
│ │ ├── style.native.scss
│ │ ├── index.js
│ │ └── README.md
│ │ ├── text-control
│ │ └── style.scss
│ │ ├── checkbox-control
│ │ └── style.scss
│ │ ├── textarea-control
│ │ └── style.scss
│ │ ├── dropdown-menu
│ │ └── index.native.js
│ │ ├── sandbox
│ │ ├── style.scss
│ │ └── README.md
│ │ ├── form-file-upload
│ │ └── style.scss
│ │ ├── mobile
│ │ └── bottom-sheet
│ │ │ ├── cellStyles.ios.scss
│ │ │ └── cellStyles.android.scss
│ │ ├── external-link
│ │ ├── style.scss
│ │ └── README.md
│ │ ├── toolbar
│ │ ├── style.native.scss
│ │ └── toolbar-container.js
│ │ ├── navigable-container
│ │ └── index.js
│ │ ├── toolbar-button
│ │ ├── toolbar-button-container.js
│ │ └── toolbar-button-container.native.js
│ │ ├── color-indicator
│ │ ├── README.md
│ │ ├── style.scss
│ │ ├── test
│ │ │ └── __snapshots__
│ │ │ │ └── index.js.snap
│ │ └── index.js
│ │ ├── panel
│ │ ├── header.js
│ │ └── row.js
│ │ ├── placeholder
│ │ └── README.md
│ │ ├── higher-order
│ │ └── README.md
│ │ ├── menu-group
│ │ └── style.scss
│ │ ├── responsive-wrapper
│ │ └── style.scss
│ │ ├── tooltip
│ │ └── index.native.js
│ │ ├── radio-control
│ │ └── style.scss
│ │ ├── disabled
│ │ └── style.scss
│ │ ├── toggle-control
│ │ └── style.scss
│ │ └── button-group
│ │ └── index.js
├── deprecated
│ └── .npmrc
├── e2e-test-utils
│ ├── .npmrc
│ └── src
│ │ ├── clear-local-storage.js
│ │ ├── click-block-appender.js
│ │ ├── enable-pre-publish-checks.js
│ │ ├── disable-pre-publish-checks.js
│ │ ├── mocks
│ │ └── index.js
│ │ ├── click-button.js
│ │ ├── select-block-by-client-id.js
│ │ └── shared
│ │ └── config.js
├── edit-widgets
│ ├── .npmrc
│ ├── CHANGELOG.md
│ └── src
│ │ ├── components
│ │ ├── widget-area
│ │ │ └── style.scss
│ │ └── layout
│ │ │ └── style.scss
│ │ └── store
│ │ └── constants.js
├── escape-html
│ ├── .npmrc
│ └── CHANGELOG.md
├── eslint-plugin
│ ├── .npmrc
│ ├── rules
│ │ └── index.js
│ ├── configs
│ │ ├── index.js
│ │ └── recommended.js
│ └── index.js
├── format-library
│ ├── .npmrc
│ └── src
│ │ ├── link
│ │ └── modal.native.scss
│ │ ├── style.scss
│ │ ├── default-formats.native.js
│ │ └── index.js
├── html-entities
│ └── .npmrc
├── jest-console
│ ├── .npmrc
│ └── src
│ │ └── supported-matchers.js
├── postcss-themes
│ ├── .npmrc
│ ├── CHANGELOG.md
│ └── README.md
├── priority-queue
│ ├── .npmrc
│ └── CHANGELOG.md
├── redux-routine
│ └── .npmrc
├── token-list
│ ├── .npmrc
│ └── CHANGELOG.md
├── browserslist-config
│ ├── .npmrc
│ └── index.js
├── is-shallow-equal
│ ├── .npmrc
│ ├── test
│ │ └── .eslintrc.json
│ ├── benchmark
│ │ └── .eslintrc.json
│ └── .eslintrc.json
├── jest-preset-default
│ ├── .npmrc
│ ├── scripts
│ │ └── style-mock.js
│ └── index.js
├── jest-puppeteer-axe
│ ├── .npmrc
│ └── CHANGELOG.md
├── babel-plugin-makepot
│ └── .npmrc
├── babel-preset-default
│ ├── .npmrc
│ └── test
│ │ └── fixtures
│ │ └── input.js
├── list-reusable-blocks
│ ├── .npmrc
│ └── src
│ │ ├── components
│ │ ├── import-dropdown
│ │ │ └── style.scss
│ │ └── import-form
│ │ │ └── style.scss
│ │ └── style.scss
├── npm-package-json-lint-config
│ └── .npmrc
├── babel-plugin-import-jsx-pragma
│ └── .npmrc
├── block-serialization-default-parser
│ └── .npmrc
├── block-serialization-spec-parser
│ ├── .npmrc
│ ├── .gitignore
│ └── .npmignore
├── custom-templated-path-webpack-plugin
│ ├── .npmrc
│ └── test
│ │ └── fixtures
│ │ └── entry
│ │ └── index.js
├── library-export-default-webpack-plugin
│ ├── .npmrc
│ ├── test
│ │ └── fixtures
│ │ │ ├── boo
│ │ │ └── index.js
│ │ │ └── foo
│ │ │ └── index.js
│ └── CHANGELOG.md
├── dependency-extraction-webpack-plugin
│ ├── test
│ │ └── fixtures
│ │ │ ├── no-deps
│ │ │ ├── index.js
│ │ │ └── webpack.config.js
│ │ │ ├── no-default
│ │ │ ├── index.js
│ │ │ └── webpack.config.js
│ │ │ ├── dynamic-import
│ │ │ ├── index.js
│ │ │ ├── util.js
│ │ │ └── webpack.config.js
│ │ │ ├── wordpress
│ │ │ ├── webpack.config.js
│ │ │ └── index.js
│ │ │ ├── wordpress-require
│ │ │ ├── webpack.config.js
│ │ │ └── index.js
│ │ │ ├── function-output-filename
│ │ │ ├── index.js
│ │ │ └── webpack.config.js
│ │ │ └── with-externs
│ │ │ └── webpack.config.js
│ └── CHANGELOG.md
└── data-controls
│ └── CHANGELOG.md
├── vendor
└── .gitignore
├── .browserslistrc
├── test
├── integration
│ └── fixtures
│ │ ├── plain-in.html
│ │ ├── gutenberg-out.html
│ │ ├── gutenberg-in.html
│ │ ├── iframe-embed-in.html
│ │ ├── wordpress-in.html
│ │ ├── plain-out.html
│ │ ├── iframe-embed-out.html
│ │ ├── one-image-in.html
│ │ ├── shortcode-caption.html
│ │ ├── classic-in.html
│ │ ├── one-image-out.html
│ │ ├── shortcode-caption-with-caption-link.html
│ │ ├── google-docs-table-out.html
│ │ ├── google-docs-table-with-comments-out.html
│ │ ├── two-images-in.html
│ │ └── shortcode-caption-with-link.html
└── unit
│ ├── __mocks__
│ └── @wordpress
│ │ └── block-library.js
│ └── config
│ └── gutenberg-phase.js
├── docs
├── designers-developers
│ ├── developers
│ │ ├── backward-compatibility
│ │ │ └── README.md
│ │ ├── tutorials
│ │ │ ├── metabox
│ │ │ │ └── meta-block.png
│ │ │ └── notices
│ │ │ │ ├── block-editor-notice.png
│ │ │ │ └── classic-editor-notice.png
│ │ └── themes
│ │ │ └── README.md
│ ├── assets
│ │ ├── inspector.png
│ │ ├── toolbar-text.png
│ │ ├── plugin-more-menu-item.png
│ │ ├── fancy-quote-in-inspector.png
│ │ ├── fancy-quote-with-style.png
│ │ ├── plugin-pre-publish-panel.png
│ │ ├── sidebar-up-and-running.png
│ │ ├── plugin-post-publish-panel.png
│ │ ├── plugin-sidebar-open-state.png
│ │ ├── sidebar-style-and-controls.png
│ │ ├── toolbar-with-custom-button.png
│ │ ├── js-tutorial-console-log-error.png
│ │ ├── plugin-sidebar-closed-state.png
│ │ ├── plugin-sidebar-more-menu-item.gif
│ │ ├── js-tutorial-console-log-success.png
│ │ ├── js-tutorial-error-blocks-undefined.png
│ │ ├── plugin-post-status-info-location.png
│ │ └── plugin-block-settings-menu-item-screenshot.png
│ └── designers
│ │ ├── assets
│ │ ├── blocks-do.png
│ │ ├── blocks-dont.png
│ │ ├── placeholder-do.png
│ │ ├── placeholder-dont.png
│ │ ├── block-controls-do.png
│ │ ├── block-controls-dont.png
│ │ ├── advanced-settings-do.png
│ │ ├── block-descriptions-do.png
│ │ └── block-descriptions-dont.png
│ │ └── README.md
└── contributors
│ └── release-screenshot.png
├── bin
├── patches
│ └── README.md
└── reset-local-e2e-tests.sh
├── .eslintignore
├── babel.config.js
├── playground
├── .babelrc
└── src
│ └── index.html
├── docker-compose-localdev.yml
├── jsconfig.json
├── lerna.json
├── .gitignore
├── SECURITY.md
├── assets
└── stylesheets
│ └── _animations.scss
└── phpunit.xml.dist
/.nvmrc:
--------------------------------------------------------------------------------
1 | lts/*
2 |
--------------------------------------------------------------------------------
/.jshintignore:
--------------------------------------------------------------------------------
1 | **/*.js
2 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | save-exact = true
2 |
--------------------------------------------------------------------------------
/packages/a11y/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/blob/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/data/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/date/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/dom/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/editor/src/hooks/index.native.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/editor/src/utils/index.native.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/i18n/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/nux/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/url/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/viewport/src/index.native.js:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/vendor/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/packages/api-fetch/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/autop/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/blocks/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/compose/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/core-data/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/docgen/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/dom-ready/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/edit-post/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/editor/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/element/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/element/src/react-platform.native.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/hooks/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/keycodes/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/notices/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/plugins/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/rich-text/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/scripts/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/shortcode/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/viewport/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/wordcount/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/annotations/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/block-editor/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/block-library/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/components/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/deprecated/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/e2e-test-utils/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/edit-widgets/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/escape-html/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/eslint-plugin/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/format-library/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/html-entities/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/jest-console/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/postcss-themes/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/priority-queue/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/redux-routine/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/token-list/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/.browserslistrc:
--------------------------------------------------------------------------------
1 | extends @wordpress/browserslist-config
2 |
--------------------------------------------------------------------------------
/packages/browserslist-config/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/is-shallow-equal/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/jest-preset-default/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/jest-puppeteer-axe/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-makepot/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/babel-preset-default/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/list-reusable-blocks/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/npm-package-json-lint-config/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/babel-plugin-import-jsx-pragma/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/block-serialization-default-parser/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/block-serialization-spec-parser/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/test/integration/fixtures/plain-in.html:
--------------------------------------------------------------------------------
1 | test
test
test
2 |
--------------------------------------------------------------------------------
/packages/custom-templated-path-webpack-plugin/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__search.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/jest-preset-default/scripts/style-mock.js:
--------------------------------------------------------------------------------
1 | module.exports = {};
2 |
--------------------------------------------------------------------------------
/packages/library-export-default-webpack-plugin/.npmrc:
--------------------------------------------------------------------------------
1 | package-lock=false
2 |
--------------------------------------------------------------------------------
/packages/nux/src/style.scss:
--------------------------------------------------------------------------------
1 | @import "./components/dot-tip/style.scss";
2 |
--------------------------------------------------------------------------------
/packages/scripts/scripts/test-unit-js.js:
--------------------------------------------------------------------------------
1 | require( './test-unit-jest' );
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__calendar.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__search.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/namespace/code.js:
--------------------------------------------------------------------------------
1 | export * from './namespace-module';
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__archives.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__block.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__calendar.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__legacy-widget.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/plugins/src/index.js:
--------------------------------------------------------------------------------
1 | export * from './components';
2 | export * from './api';
3 |
--------------------------------------------------------------------------------
/packages/priority-queue/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ### 1.0.0 (2019-03-06)
2 |
3 | Initial release.
4 |
--------------------------------------------------------------------------------
/docs/designers-developers/developers/backward-compatibility/README.md:
--------------------------------------------------------------------------------
1 | # Backward Compatibility
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__block.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__categories.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/eslint-plugin/rules/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require( 'requireindex' )( __dirname );
2 |
--------------------------------------------------------------------------------
/packages/notices/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Internal dependencies
3 | */
4 | import './store';
5 |
--------------------------------------------------------------------------------
/packages/scripts/config/.stylelintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "stylelint-config-wordpress"
3 | }
4 |
--------------------------------------------------------------------------------
/packages/block-serialization-spec-parser/.gitignore:
--------------------------------------------------------------------------------
1 | # Build Artifacts
2 | parser.js
3 | parser.php
4 |
--------------------------------------------------------------------------------
/packages/components/src/primitives/horizontal-rule/index.js:
--------------------------------------------------------------------------------
1 | export const HorizontalRule = 'hr';
2 |
--------------------------------------------------------------------------------
/packages/custom-templated-path-webpack-plugin/test/fixtures/entry/index.js:
--------------------------------------------------------------------------------
1 | module.exports = null;
2 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/named-default/code.js:
--------------------------------------------------------------------------------
1 | export { default } from './module-code';
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__4-invalid-starting-letter.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__invalid-Capitals.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__invalid-special.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__latest-posts.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__legacy-widget.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__tag-cloud.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/eslint-plugin/configs/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require( 'requireindex' )( __dirname );
2 |
--------------------------------------------------------------------------------
/packages/format-library/src/link/modal.native.scss:
--------------------------------------------------------------------------------
1 | .clearLinkButton {
2 | color: $alert-red;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/jest-preset-default/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require( './scripts/setup-test-framework' );
2 |
--------------------------------------------------------------------------------
/bin/patches/README.md:
--------------------------------------------------------------------------------
1 | This directory contains patches required to build
2 | older versions of PHP on trusty.
--------------------------------------------------------------------------------
/packages/block-library/src/separator/save.js:
--------------------------------------------------------------------------------
1 | export default function save() {
2 | return
Test
3 | 4 | -------------------------------------------------------------------------------- /packages/block-library/src/heading/style.native.scss: -------------------------------------------------------------------------------- 1 | 2 | .blockText { 3 | min-height: $min-height-heading; 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/nextpage/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/nextpage", 3 | "category": "layout" 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/quote/editor.scss: -------------------------------------------------------------------------------- 1 | .wp-block-quote__citation { 2 | font-size: $default-font-size; 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/separator/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/separator", 3 | "category": "layout" 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/template/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/template", 3 | "category": "reusable" 4 | } 5 | -------------------------------------------------------------------------------- /packages/components/src/scroll-lock/style.scss: -------------------------------------------------------------------------------- 1 | html.lockscroll, 2 | body.lockscroll { 3 | overflow: hidden; 4 | } 5 | -------------------------------------------------------------------------------- /packages/data-controls/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Master 2 | 3 | Initial release of the @wordpress/data-controls package. 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__invalid-special.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__tag-cloud.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/editor/src/hooks/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Internal dependencies 3 | */ 4 | import './default-autocompleters'; 5 | -------------------------------------------------------------------------------- /packages/is-shallow-equal/test/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": "../../../.eslintrc.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/scripts/config/npmpackagejsonlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@wordpress/npm-package-json-lint-config" 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/archives/editor.scss: -------------------------------------------------------------------------------- 1 | .block-editor ul.wp-block-archives { 2 | padding-left: 2.5em; 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/audio/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-audio figcaption { 2 | @include caption-style-theme(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/embed/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-embed figcaption { 2 | @include caption-style-theme(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/image/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-image figcaption { 2 | @include caption-style-theme(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/paragraph/style.native.scss: -------------------------------------------------------------------------------- 1 | 2 | .blockText { 3 | min-height: $min-height-paragraph; 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/verse/style.scss: -------------------------------------------------------------------------------- 1 | pre.wp-block-verse { 2 | white-space: nowrap; 3 | overflow: auto; 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/video/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-video figcaption { 2 | @include caption-style-theme(); 3 | } 4 | -------------------------------------------------------------------------------- /packages/components/src/spinner/style.native.scss: -------------------------------------------------------------------------------- 1 | .spinner { 2 | height: 6; 3 | background: $blue-wordpress; 4 | } 5 | -------------------------------------------------------------------------------- /packages/docgen/src/get-dependency-path.js: -------------------------------------------------------------------------------- 1 | module.exports = function( token ) { 2 | return token.source.value; 3 | }; 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__4-invalid-starting-letter.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__invalid-Capitals.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__more.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__more.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/is-shallow-equal/benchmark/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "extends": "../../../.eslintrc.js" 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-editor/src/components/font-sizes/index.native.js: -------------------------------------------------------------------------------- 1 | export { getFontSize, getFontSizeClass } from './utils'; 2 | -------------------------------------------------------------------------------- /packages/block-library/src/heading/editor.native.scss: -------------------------------------------------------------------------------- 1 | 2 | .wp-block-heading { 3 | min-height: $min-height-heading; 4 | } 5 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__archives.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/block-library/src/preformatted/editor.scss: -------------------------------------------------------------------------------- 1 | .wp-block-preformatted { 2 | pre { 3 | white-space: pre-wrap; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/components/src/text-control/style.scss: -------------------------------------------------------------------------------- 1 | .components-text-control__input { 2 | width: 100%; 3 | padding: 6px 8px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-default-exported/code.js: -------------------------------------------------------------------------------- 1 | export { default as moduleName } from './named-default-module'; 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__archives__showPostCounts.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/edit-widgets/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.1.0 (2019-03-06) 2 | 3 | ### New Features 4 | 5 | - Initial version of the module. 6 | -------------------------------------------------------------------------------- /packages/eslint-plugin/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | configs: require( './configs' ), 3 | rules: require( './rules' ), 4 | }; 5 | -------------------------------------------------------------------------------- /docs/contributors/release-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/contributors/release-screenshot.png -------------------------------------------------------------------------------- /packages/block-library/src/search/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-search { 2 | .wp-block-search__label { 3 | font-weight: bold; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/components/src/checkbox-control/style.scss: -------------------------------------------------------------------------------- 1 | .components-checkbox-control__input[type="checkbox"] { 2 | margin-top: 0; 3 | } 4 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-variable/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Variable declaration example. 3 | */ 4 | export default true; 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-class/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * My declaration example. 3 | */ 4 | export class MyDeclaration {} 5 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__latest-posts.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__nextpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__nextpage.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__tag-cloud__showTagCounts.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/library-export-default-webpack-plugin/test/fixtures/boo/index.js: -------------------------------------------------------------------------------- 1 | export default function boo() { 2 | return 'boo'; 3 | } 4 | -------------------------------------------------------------------------------- /packages/library-export-default-webpack-plugin/test/fixtures/foo/index.js: -------------------------------------------------------------------------------- 1 | export default function foo() { 2 | return 'foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/fixtures/gutenberg-in.html: -------------------------------------------------------------------------------- 1 | 2 |Test
3 | 4 | -------------------------------------------------------------------------------- /packages/components/src/spinner/index.js: -------------------------------------------------------------------------------- 1 | export default function Spinner() { 2 | return ; 3 | } 4 | -------------------------------------------------------------------------------- /packages/components/src/textarea-control/style.scss: -------------------------------------------------------------------------------- 1 | .components-textarea-control__input { 2 | width: 100%; 3 | padding: 6px 8px; 4 | } 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-class-anonymous/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Class declaration example. 3 | */ 4 | export default class {} 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-undocumented-oneliner/code.js: -------------------------------------------------------------------------------- 1 | // This comment should be ignored 2 | export default function() { } 3 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-default/module-code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module declaration. 3 | */ 4 | export default function( ) {} 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-function/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * My declaration example. 3 | */ 4 | export function myDeclaration() {} 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-import-namespace/module-code.js: -------------------------------------------------------------------------------- 1 | export { default as controls } from './default-function-named'; 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__archives__showPostCounts.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__latest-posts__displayPostDate.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/editor/src/components/post-excerpt/style.scss: -------------------------------------------------------------------------------- 1 | .editor-post-excerpt__textarea { 2 | width: 100%; 3 | margin-bottom: 10px; 4 | } 5 | -------------------------------------------------------------------------------- /docs/designers-developers/assets/inspector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/inspector.png -------------------------------------------------------------------------------- /packages/block-editor/src/components/contrast-checker/style.scss: -------------------------------------------------------------------------------- 1 | .block-editor-contrast-checker > .components-notice { 2 | margin: 0; 3 | } 4 | -------------------------------------------------------------------------------- /packages/block-library/src/subhead/style.scss: -------------------------------------------------------------------------------- 1 | p.wp-block-subhead { 2 | font-size: 1.1em; 3 | font-style: italic; 4 | opacity: 0.75; 5 | } 6 | -------------------------------------------------------------------------------- /packages/components/src/primitives/index.js: -------------------------------------------------------------------------------- 1 | export * from './svg'; 2 | export * from './horizontal-rule'; 3 | export * from './block-quotation'; 4 | -------------------------------------------------------------------------------- /packages/data/src/plugins/index.js: -------------------------------------------------------------------------------- 1 | export { default as controls } from './controls'; 2 | export { default as persistence } from './persistence'; 3 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-default-exported/module-code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module declaration. 3 | */ 4 | export default function( ) {} 5 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-import-namespace/module-ir.json: -------------------------------------------------------------------------------- 1 | [{"name":"controls","description":"Function declaration example.","tags":[]}] -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-variable/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * My declaration example. 3 | */ 4 | export const myDeclaration = true; 5 | 6 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__shortcode.html: -------------------------------------------------------------------------------- 1 | 2 | [gallery ids="238,338"] 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__shortcode.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | [gallery ids="238,338"] 3 | 4 | -------------------------------------------------------------------------------- /packages/edit-post/src/hooks/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Internal dependencies 3 | */ 4 | import './components'; 5 | import './validate-multiple-use'; 6 | -------------------------------------------------------------------------------- /packages/scripts/config/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ], 4 | }; 5 | -------------------------------------------------------------------------------- /packages/annotations/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Internal dependencies 3 | */ 4 | import './store'; 5 | import './format'; 6 | import './block'; 7 | 8 | -------------------------------------------------------------------------------- /packages/components/src/dropdown-menu/index.native.js: -------------------------------------------------------------------------------- 1 | 2 | function DropdownMenu() { 3 | return null; 4 | } 5 | 6 | export default DropdownMenu; 7 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-import-named/module-ir.json: -------------------------------------------------------------------------------- 1 | [{"name":"functionDeclaration","description":"Function declaration.","tags":[]}] -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-undocumented-nocomments/code.js: -------------------------------------------------------------------------------- 1 | const myDeclaration = function() {}; 2 | 3 | export default myDeclaration; 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__latest-posts__displayPostDate.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__tag-cloud__showTagCounts.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build 2 | build-module 3 | node_modules 4 | packages/e2e-tests/plugins 5 | vendor 6 | packages/block-serialization-spec-parser/parser.js 7 | -------------------------------------------------------------------------------- /docs/designers-developers/assets/toolbar-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/toolbar-text.png -------------------------------------------------------------------------------- /packages/block-library/src/code/save.js: -------------------------------------------------------------------------------- 1 | export default function save( { attributes } ) { 2 | return{ attributes.content };
3 | }
4 |
--------------------------------------------------------------------------------
/packages/components/src/sandbox/style.scss:
--------------------------------------------------------------------------------
1 | .components-sandbox {
2 | overflow: hidden;
3 | }
4 |
5 | iframe.components-sandbox {
6 | width: 100%;
7 | }
8 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/default-class-named/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Class declaration example.
3 | */
4 | export default class ClassDeclaration {}
5 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/default-function-anonymous/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Function declaration example.
3 | */
4 | export default function() {}
5 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/named-default/module-ir.json:
--------------------------------------------------------------------------------
1 | [{
2 | "name": "default",
3 | "description": "Module declaration.",
4 | "tags": []
5 | }]
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/namespace-commented/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * This comment should be ignored.
3 | */
4 | export * from './namespace-module';
5 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__separator.html:
--------------------------------------------------------------------------------
1 |
2 | Unwrapped is still valid.
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__subhead.html: -------------------------------------------------------------------------------- 1 | 2 |This is a subhead.
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__subhead.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |This is a subhead.
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__verse.html: -------------------------------------------------------------------------------- 1 | 2 |A verse…3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__verse.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |
And more!
A verse…3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/specs/blocks/__snapshots__/classic.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Classic should be inserted 1`] = `"test"`; 4 | -------------------------------------------------------------------------------- /packages/editor/src/components/autocompleters/index.js: -------------------------------------------------------------------------------- 1 | export { default as blockAutocompleter } from './block'; 2 | export { default as userAutocompleter } from './user'; 3 | -------------------------------------------------------------------------------- /docs/designers-developers/assets/plugin-post-publish-panel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/plugin-post-publish-panel.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/plugin-sidebar-open-state.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/plugin-sidebar-open-state.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/sidebar-style-and-controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/sidebar-style-and-controls.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/toolbar-with-custom-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/toolbar-with-custom-button.png -------------------------------------------------------------------------------- /docs/designers-developers/designers/assets/placeholder-dont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/designers/assets/placeholder-dont.png -------------------------------------------------------------------------------- /packages/block-editor/src/components/color-palette/control.scss: -------------------------------------------------------------------------------- 1 | .block-editor-color-palette-control__color-palette { 2 | display: inline-block; 3 | margin-top: 0.6rem; 4 | } 5 | -------------------------------------------------------------------------------- /packages/block-library/src/audio/editor.scss: -------------------------------------------------------------------------------- 1 | .wp-block-audio { 2 | // Remove the left and right margin the figure is born with. 3 | margin-left: 0; 4 | margin-right: 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/block-library/src/pullquote/shared.js: -------------------------------------------------------------------------------- 1 | export const SOLID_COLOR_STYLE_NAME = 'solid-color'; 2 | export const SOLID_COLOR_CLASS = `is-style-${ SOLID_COLOR_STYLE_NAME }`; 3 | -------------------------------------------------------------------------------- /packages/components/src/mobile/bottom-sheet/cellStyles.android.scss: -------------------------------------------------------------------------------- 1 | .labelIconSeparator { 2 | width: 32px; 3 | } 4 | 5 | .separatorMarginLeft { 6 | margin-left: 56px; 7 | } 8 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-function-named/ir.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "default", 4 | "description": "Function declaration example.", 5 | "tags": [] 6 | } 7 | ] -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-identifier/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Class declaration example. 3 | */ 4 | class ClassDeclaration {} 5 | 6 | export default ClassDeclaration; 7 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-import-default/module-ir.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "default", 4 | "description": "Function declaration.", 5 | "tags": [] 6 | } 7 | ] -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-import-named/code.js: -------------------------------------------------------------------------------- 1 | export { 2 | functionDeclaration, 3 | variableDeclaration, 4 | ClassDeclaration, 5 | } from './named-identifiers'; 6 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-variables/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * My declaration example. 3 | */ 4 | export const firstDeclaration = true, 5 | secondDeclaration = 42; 6 | 7 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__search__custom-text.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__spacer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/list-reusable-blocks/src/components/import-dropdown/style.scss: -------------------------------------------------------------------------------- 1 | .list-reusable-blocks-import-dropdown__content .components-popover__content { 2 | padding: 10px; 3 | } 4 | -------------------------------------------------------------------------------- /test/integration/fixtures/iframe-embed-in.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docs/designers-developers/assets/js-tutorial-console-log-error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/js-tutorial-console-log-error.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/plugin-sidebar-closed-state.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/plugin-sidebar-closed-state.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/plugin-sidebar-more-menu-item.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/plugin-sidebar-more-menu-item.gif -------------------------------------------------------------------------------- /docs/designers-developers/designers/assets/block-controls-do.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/designers/assets/block-controls-do.png -------------------------------------------------------------------------------- /docs/designers-developers/designers/assets/block-controls-dont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/designers/assets/block-controls-dont.png -------------------------------------------------------------------------------- /packages/dependency-extraction-webpack-plugin/test/fixtures/no-default/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * External dependencies 3 | */ 4 | import _ from 'lodash'; 5 | 6 | _.map( [], _.identity ); 7 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__heading__h2.html: -------------------------------------------------------------------------------- 1 | 2 |
And more!
This is a paragraph.
3 |[gallery ids="1"]
7 | -------------------------------------------------------------------------------- /docs/designers-developers/assets/js-tutorial-error-blocks-undefined.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/js-tutorial-error-blocks-undefined.png -------------------------------------------------------------------------------- /docs/designers-developers/assets/plugin-post-status-info-location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/assets/plugin-post-status-info-location.png -------------------------------------------------------------------------------- /docs/designers-developers/designers/assets/block-descriptions-dont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/designers/assets/block-descriptions-dont.png -------------------------------------------------------------------------------- /docs/designers-developers/developers/tutorials/metabox/meta-block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derweili/gutenberg/master/docs/designers-developers/developers/tutorials/metabox/meta-block.png -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/default-import-default/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Internal dependencies 3 | */ 4 | import fnDeclaration from './module-code'; 5 | 6 | export default fnDeclaration; 7 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__freeform__undelimited.html: -------------------------------------------------------------------------------- 1 | Testing freeform block with some 2 |test
test
test
Hello there
\n" 5 | } -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__freeform.serialized.html: -------------------------------------------------------------------------------- 1 |Testing freeform block with some
2 |Testing freeform block with some
2 |This is an old-style text block. Changed to paragraph in #2135.
2 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = function( api ) {
2 | api.cache( true );
3 |
4 | return {
5 | presets: [ '@wordpress/babel-preset-default' ],
6 | plugins: [ 'babel-plugin-inline-json-import' ],
7 | };
8 | };
9 |
--------------------------------------------------------------------------------
/packages/block-editor/src/components/rich-text/style.native.scss:
--------------------------------------------------------------------------------
1 |
2 | .block-editor-rich-text {
3 | font-family: $default-regular-font;
4 | text-decoration-color: $gray;
5 | min-height: $min-height-paragraph;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/block-library/src/spacer/block.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "core/spacer",
3 | "category": "layout",
4 | "attributes": {
5 | "height": {
6 | "type": "number",
7 | "default": 100
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/packages/components/src/spinner/README.md:
--------------------------------------------------------------------------------
1 | # Spinner
2 |
3 | ## Usage
4 |
5 | ```jsx
6 | import { Spinner } from '@wordpress/components';
7 |
8 | const MySpinner = () => (
9 | Some preformatted text...3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__preformatted.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |
And more!
Some preformatted text...3 | 4 | -------------------------------------------------------------------------------- /packages/scripts/config/puppeteer.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | launch: { 3 | headless: process.env.PUPPETEER_HEADLESS !== 'false', 4 | slowMo: parseInt( process.env.PUPPETEER_SLOWMO, 10 ) || 0, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /test/integration/fixtures/shortcode-caption.html: -------------------------------------------------------------------------------- 1 |
And more!
[caption id="attachment_122" align="alignnone" width="300"]
test[/caption]
This is an old-style text block. Changed to paragraph in #2135.
Typing in a metabox
"`; 4 | -------------------------------------------------------------------------------- /test/unit/__mocks__/@wordpress/block-library.js: -------------------------------------------------------------------------------- 1 | // Make sure the classic block is registered. 2 | window.wp = window.wp || {}; 3 | window.wp.oldEditor = {}; 4 | 5 | export * from '../../../../packages/block-library/src'; 6 | -------------------------------------------------------------------------------- /packages/block-library/src/classic/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/freeform", 3 | "category": "formatting", 4 | "attributes": { 5 | "content": { 6 | "type": "string", 7 | "source": "html" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/block-library/src/template/edit.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { InnerBlocks } from '@wordpress/block-editor'; 5 | 6 | export default function TemplateEdit() { 7 | returnexport default function MyButton() {
3 | return <Button>Click Me!</Button>;
4 | }
5 |
6 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__rss.serialized.html:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/packages/element/src/index.js:
--------------------------------------------------------------------------------
1 | export * from './react';
2 | export * from './react-platform';
3 | export * from './utils';
4 | export { default as renderToString } from './serialize';
5 | export { default as RawHTML } from './raw-html';
6 |
--------------------------------------------------------------------------------
/packages/jest-console/src/supported-matchers.js:
--------------------------------------------------------------------------------
1 | const supportedMatchers = {
2 | error: 'toHaveErrored',
3 | info: 'toHaveInformed',
4 | log: 'toHaveLogged',
5 | warn: 'toHaveWarned',
6 | };
7 |
8 | export default supportedMatchers;
9 |
--------------------------------------------------------------------------------
/packages/block-editor/src/components/plain-text/style.native.scss:
--------------------------------------------------------------------------------
1 |
2 | .block-editor-plain-text {
3 | font-family: $default-regular-font;
4 | box-shadow: none;
5 |
6 | border-width: 0;
7 |
8 | padding: 0;
9 | margin: 0;
10 | }
11 |
--------------------------------------------------------------------------------
/packages/core-data/src/name.js:
--------------------------------------------------------------------------------
1 | /**
2 | * The reducer key used by core data in store registration.
3 | * This is defined in a separate file to avoid cycle-dependency
4 | *
5 | * @type {string}
6 | */
7 | export const REDUCER_KEY = 'core';
8 |
--------------------------------------------------------------------------------
/packages/dependency-extraction-webpack-plugin/test/fixtures/no-deps/webpack.config.js:
--------------------------------------------------------------------------------
1 | const DependencyExtractionWebpackPlugin = require( '../../..' );
2 |
3 | module.exports = {
4 | plugins: [ new DependencyExtractionWebpackPlugin() ],
5 | };
6 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__code.html:
--------------------------------------------------------------------------------
1 |
2 | export default function MyButton() {
3 | return <Button>Click Me!</Button>;
4 | }
5 |
6 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__freeform.html:
--------------------------------------------------------------------------------
1 |
2 | Testing freeform block with some
3 | 3 | 4 | -------------------------------------------------------------------------------- /packages/jest-puppeteer-axe/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.1.0 (2019-05-21) 2 | 3 | ### New Feature 4 | 5 | - Added optional `disabledRules` option to use with `toPassAxeTests` matcher. 6 | 7 | ## 1.0.0 (2019-03-06) 8 | 9 | - Initial release. 10 | -------------------------------------------------------------------------------- /packages/notices/src/store/controls.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { speak } from '@wordpress/a11y'; 5 | 6 | export default { 7 | SPEAK( action ) { 8 | speak( action.message, 'assertive' ); 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /test/integration/fixtures/classic-in.html: -------------------------------------------------------------------------------- 1 |Testing deprecated quote block...
...with a caption
First paragraph
2 | 3 |Second paragraph
4 |Third paragraph
5 | 6 |Fourth paragraph
7 |Fifth paragraph
8 |Sixth paragraph
9 | -------------------------------------------------------------------------------- /packages/block-editor/src/components/font-sizes/index.js: -------------------------------------------------------------------------------- 1 | export { getFontSize, getFontSizeClass } from './utils'; 2 | export { default as FontSizePicker } from './font-size-picker'; 3 | export { default as withFontSizes } from './with-font-sizes'; 4 | -------------------------------------------------------------------------------- /packages/dependency-extraction-webpack-plugin/test/fixtures/wordpress/webpack.config.js: -------------------------------------------------------------------------------- 1 | const DependencyExtractionWebpackPlugin = require( '../../..' ); 2 | 3 | module.exports = { 4 | plugins: [ new DependencyExtractionWebpackPlugin() ], 5 | }; 6 | -------------------------------------------------------------------------------- /packages/postcss-themes/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 2.0.0 (2019-03-06) 2 | 3 | ### Breaking change 4 | 5 | - Stop using Babel transpilation internally and set node 8 as a minimal version required ([#13540](https://github.com/WordPress/gutenberg/pull/13540)). 6 | -------------------------------------------------------------------------------- /packages/scripts/config/babel-transform.js: -------------------------------------------------------------------------------- 1 | /** 2 | * External dependencies 3 | */ 4 | const babelJest = require( 'babel-jest' ); 5 | 6 | module.exports = babelJest.createTransformer( { 7 | presets: [ '@wordpress/babel-preset-default' ], 8 | } ); 9 | -------------------------------------------------------------------------------- /playground/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["@wordpress/babel-preset-default"], 3 | "plugins": [ 4 | [ "@babel/plugin-transform-react-jsx", { 5 | "pragma": "createElement" 6 | } ], 7 | "babel-plugin-inline-json-import" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /docker-compose-localdev.yml: -------------------------------------------------------------------------------- 1 | version: '3.1' 2 | 3 | services: 4 | 5 | wordpress: 6 | volumes: 7 | - ./wordpress:/var/www/html 8 | 9 | cli: 10 | image: wordpress:cli 11 | volumes: 12 | - ./wordpress:/var/www/html 13 | -------------------------------------------------------------------------------- /packages/block-library/src/code/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/code", 3 | "category": "formatting", 4 | "attributes": { 5 | "content": { 6 | "type": "string", 7 | "source": "text", 8 | "selector": "code" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/block-library/src/html/save.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { RawHTML } from '@wordpress/element'; 5 | 6 | export default function save( { attributes } ) { 7 | return... like this one, which is separate from the above and right aligned.
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__paragraph__align-right.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |... like this one, which is separate from the above and right aligned.
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__pullquote.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |Testing pullquote block...
...with a caption
I am @admin.
6 | " 7 | `; 8 | -------------------------------------------------------------------------------- /packages/editor/src/components/autocompleters/README.md: -------------------------------------------------------------------------------- 1 | Autocompleters 2 | ============== 3 | 4 | The Autocompleter interface is documented [here](/packages/components/src/autocomplete/README.md) with the `Autocomplete` component in `@wordpress/components`. 5 | -------------------------------------------------------------------------------- /packages/editor/src/editor-styles/ast/index.js: -------------------------------------------------------------------------------- 1 | // Adapted from https://github.com/reworkcss/css 2 | // because we needed to remove source map support. 3 | 4 | export { default as parse } from './parse'; 5 | export { default as stringify } from './stringify'; 6 | -------------------------------------------------------------------------------- /packages/block-library/src/code/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-code { 2 | font-family: $editor-html-font; 3 | font-size: $text-editor-font-size; 4 | color: $dark-gray-800; 5 | padding: 0.8em 1em; 6 | border: 1px solid $light-gray-500; 7 | border-radius: 4px; 8 | } 9 | -------------------------------------------------------------------------------- /packages/block-library/src/group/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-group { 2 | &.has-background { 3 | // Matches paragraph Block padding 4 | // Todo: normalise with variables 5 | padding: 20px 30px; 6 | margin-top: 0; 7 | margin-bottom: 0; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/components/src/toolbar-button/toolbar-button-container.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * External dependencies 3 | */ 4 | import { View } from 'react-native'; 5 | 6 | export default ( props ) => ( 7 |
[caption id="attachment_122" align="alignnone" width="300"]
test[/caption]
3 |6 | 7 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__pullquote__deprecated-2.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |Testing deprecated pullquote block...
4 | ...with a caption 5 |
Testing deprecated pullquote block...
...with a caption
| One | Two | Three |
| 1 | 2 | 3 |
| I | II | III |
4 |6 |Testing pullquote block...
...with a caption 5 |
3 |6 | 7 | -------------------------------------------------------------------------------- /packages/edit-post/src/components/sidebar/post-link/style.scss: -------------------------------------------------------------------------------- 1 | .edit-post-post-link__link-post-name { 2 | font-weight: 600; 3 | } 4 | 5 | .edit-post-post-link__preview-label { 6 | margin: 0; 7 | } 8 | 9 | .edit-post-post-link__link { 10 | word-wrap: break-word; 11 | } 12 | -------------------------------------------------------------------------------- /packages/block-editor/src/components/colors/index.js: -------------------------------------------------------------------------------- 1 | export { 2 | getColorClassName, 3 | getColorObjectByAttributeValues, 4 | getColorObjectByColorValue, 5 | } from './utils'; 6 | export { 7 | createCustomColorsHOC, 8 | default as withColors, 9 | } from './with-colors'; 10 | -------------------------------------------------------------------------------- /packages/block-library/src/columns/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/columns", 3 | "category": "layout", 4 | "attributes": { 5 | "columns": { 6 | "type": "number", 7 | "default": 2 8 | }, 9 | "verticalAlignment": { 10 | "type": "string" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/block-library/src/preformatted/block.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "core/preformatted", 3 | "category": "formatting", 4 | "attributes": { 5 | "content": { 6 | "type": "string", 7 | "source": "html", 8 | "selector": "pre", 9 | "default": "" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__button__center.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__button__center.serialized.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__pullquote__multi-paragraph.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |Testing deprecated quote block...
4 | 5 |
Paragraph one
Paragraph two
by whomever
Testing missing block with some
3 |3 |6 | 7 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__pullquote__deprecated-1.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |Testing deprecated pullquote block...
4 | 5 |
Testing deprecated pullquote block...
...with a caption
| One | Two | Three |
| 1 | 2 | 3 |
| I | II | III |
<?php
6 | "
7 | `;
8 |
--------------------------------------------------------------------------------
/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "paths": {
5 | "@wordpress/*": ["./*", "./packages/*/src"]
6 | }
7 | },
8 | "exclude": [
9 | "build",
10 | "build-module",
11 | "node_modules",
12 | "packages/e2e-tests/plugins",
13 | "vendor"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/packages/annotations/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.5 (2019-01-03)
2 |
3 | ## 1.0.4 (2018-12-12)
4 |
5 | ## 1.0.3 (2018-11-21)
6 |
7 | ## 1.0.2 (2018-11-20)
8 |
9 | ## 1.0.1 (2018-11-15)
10 |
11 | ## 1.0.0 (2018-11-12)
12 |
13 | ### New Features
14 |
15 | - Implement annotations API in the editor.
16 |
--------------------------------------------------------------------------------
/packages/block-library/src/subhead/block.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "core/subhead",
3 | "category": "common",
4 | "attributes": {
5 | "align": {
6 | "type": "string"
7 | },
8 | "content": {
9 | "type": "string",
10 | "source": "html",
11 | "selector": "p"
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/packages/block-library/src/subhead/icon.js:
--------------------------------------------------------------------------------
1 | /**
2 | * WordPress dependencies
3 | */
4 | import { Path, SVG } from '@wordpress/components';
5 |
6 | export default (
7 |
8 | );
9 |
--------------------------------------------------------------------------------
/packages/components/src/higher-order/README.md:
--------------------------------------------------------------------------------
1 | Higher Order Components
2 | =======================
3 |
4 | This directory includes a library of generic Higher Order React Components.
5 |
6 | [Learn more about Higher Order Components](https://facebook.github.io/react/docs/higher-order-components.html)
7 |
--------------------------------------------------------------------------------
/packages/components/src/menu-group/style.scss:
--------------------------------------------------------------------------------
1 | .components-menu-group {
2 | width: 100%;
3 | padding: ($grid-size - $border-width) 0;
4 | }
5 |
6 | .components-menu-group__label {
7 | margin-bottom: $grid-size;
8 | color: $dark-gray-300;
9 | padding: 0 ($grid-size - $border-width);
10 | }
11 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__legacy-widget.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "clientId": "_clientId_0",
4 | "name": "core/legacy-widget",
5 | "isValid": true,
6 | "attributes": {},
7 | "innerBlocks": [],
8 | "originalContent": ""
9 | }
10 | ]
11 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__missing.serialized.html:
--------------------------------------------------------------------------------
1 |
2 | Testing missing block with some
3 |One
Two
3 | 4 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__quote__style-2.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |There is no greater agony than bearing an untold story inside you.
Maya Angelou
3 | 4 | -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "command": { 3 | "publish": { 4 | "message": "chore(release): publish" 5 | } 6 | }, 7 | "ignoreChanges": [ 8 | "**/benchmark/*.js", 9 | "**/CHANGELOG.md", 10 | "**/test/**" 11 | ], 12 | "packages": [ 13 | "packages/*" 14 | ], 15 | "version": "independent" 16 | } 17 | -------------------------------------------------------------------------------- /packages/block-editor/src/components/plain-text/style.scss: -------------------------------------------------------------------------------- 1 | .block-editor .block-editor-plain-text { 2 | box-shadow: none; 3 | font-family: inherit; 4 | font-size: inherit; 5 | color: inherit; 6 | line-height: inherit; 7 | border: none; 8 | padding: 0; 9 | margin: 0; 10 | width: 100%; 11 | } 12 | -------------------------------------------------------------------------------- /packages/block-library/src/separator/theme.scss: -------------------------------------------------------------------------------- 1 | .wp-block-separator { 2 | border: none; 3 | border-bottom: 2px solid $dark-gray-100; 4 | margin-left: auto; 5 | margin-right: auto; 6 | 7 | // Default, thin style 8 | &:not(.is-style-wide):not(.is-style-dots) { 9 | max-width: 100px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/dependency-extraction-webpack-plugin/test/fixtures/function-output-filename/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { isBlobURL } from '@wordpress/blob'; 5 | 6 | /** 7 | * External dependencies 8 | */ 9 | import _ from 'lodash'; 10 | 11 | _.isEmpty( isBlobURL( '' ) ); 12 | -------------------------------------------------------------------------------- /packages/docgen/src/test/fixtures/named-identifiers/ir.json: -------------------------------------------------------------------------------- 1 | [{"name":"ClassDeclaration","description":"Class declaration example.","tags":[]},{"name":"functionDeclaration","description":"Function declaration example.","tags":[]},{"name":"variableDeclaration","description":"Variable declaration example.","tags":[]}] -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__embed.serialized.html: -------------------------------------------------------------------------------- 1 | 2 |There is no greater agony than bearing an untold story inside you.
Maya Angelou
Column One, Paragraph One
5 | 6 | 7 |Column One, Paragraph Two
8 | 9 |Column One, Paragraph One
4 | 5 | 6 | 7 |Column One, Paragraph Two
8 |Pythagorean theorem: 6 | a2 + b2 = c2
7 | " 8 | `; 9 | -------------------------------------------------------------------------------- /packages/edit-post/src/store/defaults.js: -------------------------------------------------------------------------------- 1 | export const PREFERENCES_DEFAULTS = { 2 | editorMode: 'visual', 3 | isGeneralSidebarDismissed: false, 4 | panels: { 5 | 'post-status': { 6 | opened: true, 7 | }, 8 | }, 9 | features: { 10 | fixedToolbar: false, 11 | }, 12 | pinnedPluginItems: {}, 13 | hiddenBlockTypes: [], 14 | }; 15 | -------------------------------------------------------------------------------- /packages/e2e-tests/README.md: -------------------------------------------------------------------------------- 1 | # E2E Tests 2 | 3 | End-To-End (E2E) tests for WordPress. 4 | 5 | ## Installation 6 | 7 | Install the module 8 | 9 | ```bash 10 | npm install @wordpress/e2e-tests --save-dev 11 | ``` 12 | 13 |
4 |8 |Paragraph one
5 |Paragraph two
6 | by whomever 7 |

One
5 |Two
8 |6 | " 7 | `; 8 | -------------------------------------------------------------------------------- /packages/e2e-tests/specs/plugins/__snapshots__/format-api.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Using Format API Clicking the control wraps the selected text properly with HTML code 1`] = ` 4 | " 5 |Quote content
First paragraph
6 | " 7 | `; 8 | -------------------------------------------------------------------------------- /assets/stylesheets/_animations.scss: -------------------------------------------------------------------------------- 1 | @mixin edit-post__loading-fade-animation { 2 | animation: edit-post__loading-fade-animation 1.6s ease-in-out infinite; 3 | } 4 | 5 | @mixin edit-post__fade-in-animation($speed: 0.2s, $delay: 0s) { 6 | animation: edit-post__fade-in-animation $speed ease-out $delay; 7 | animation-fill-mode: forwards; 8 | @include reduce-motion; 9 | } 10 | -------------------------------------------------------------------------------- /packages/dependency-extraction-webpack-plugin/test/fixtures/with-externs/webpack.config.js: -------------------------------------------------------------------------------- 1 | const DependencyExtractionWebpackPlugin = require( '../../..' ); 2 | 3 | module.exports = { 4 | externals: { 5 | '@wordpress/blob': 'wp.blob', 6 | 'rxjs/operators': 'rxjs.operators', 7 | rxjs: true, 8 | }, 9 | plugins: [ new DependencyExtractionWebpackPlugin() ], 10 | }; 11 | -------------------------------------------------------------------------------- /packages/e2e-tests/fixtures/blocks/core__image__custom-link-rel.html: -------------------------------------------------------------------------------- 1 | 2 |{ __( 'Embedding…' ) }
11 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/packages/babel-preset-default/test/fixtures/input.js:
--------------------------------------------------------------------------------
1 | describe( 'Babel preset default', () => {
2 | async function* foo() {
3 | await 1;
4 | yield 2;
5 | }
6 |
7 | test( 'support for async generator functions', async () => {
8 | const generator = foo();
9 |
10 | expect( await generator.next() ).toEqual( {
11 | done: false,
12 | value: 2,
13 | } );
14 | } );
15 | } );
16 |
--------------------------------------------------------------------------------
/packages/block-editor/src/components/default-block-appender/style.native.scss:
--------------------------------------------------------------------------------
1 | // @format
2 |
3 | .blockHolder {
4 | flex: 1 1 auto;
5 | }
6 |
7 | .blockContainer {
8 | background-color: $white;
9 | padding-top: 0;
10 | padding-left: 16px;
11 | padding-right: 16px;
12 | }
13 |
14 | .textView {
15 | color: $gray;
16 | font-size: 16px;
17 | font-family: $default-regular-font;
18 | }
19 |
--------------------------------------------------------------------------------
/packages/block-library/src/heading/test/shared.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Internal dependencies
3 | */
4 | import { getLevelFromHeadingNodeName } from '../shared';
5 |
6 | describe( 'getLevelFromHeadingNodeName()', () => {
7 | it( 'should return a numeric value from nodeName', () => {
8 | const level = getLevelFromHeadingNodeName( 'H4' );
9 |
10 | expect( level ).toBe( 4 );
11 | } );
12 | } );
13 |
--------------------------------------------------------------------------------
/packages/block-library/src/verse/save.js:
--------------------------------------------------------------------------------
1 | /**
2 | * WordPress dependencies
3 | */
4 | import { RichText } from '@wordpress/block-editor';
5 |
6 | export default function save( { attributes } ) {
7 | const { textAlign, content } = attributes;
8 |
9 | return (
10 | Hello there!
6 | 7 | 8 | 9 |Second paragraph
10 | " 11 | `; 12 | -------------------------------------------------------------------------------- /packages/eslint-plugin/configs/recommended.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parser: 'babel-eslint', 3 | extends: [ 4 | require.resolve( './jsx-a11y.js' ), 5 | require.resolve( './react.js' ), 6 | require.resolve( './custom.js' ), 7 | require.resolve( './esnext.js' ), 8 | ], 9 | env: { 10 | node: true, 11 | }, 12 | globals: { 13 | window: true, 14 | document: true, 15 | }, 16 | }; 17 | -------------------------------------------------------------------------------- /packages/block-library/src/columns/icon.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { G, Path, SVG } from '@wordpress/components'; 5 | 6 | export default ( 7 | 8 | ); 9 | -------------------------------------------------------------------------------- /packages/block-library/src/list/save.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { RichText } from '@wordpress/block-editor'; 5 | 6 | export default function save( { attributes } ) { 7 | const { ordered, values } = attributes; 8 | const tagName = ordered ? 'ol' : 'ul'; 9 | 10 | return ( 11 |https://twitter.com/wooyaygutenberg123454312
6 | " 7 | `; 8 | -------------------------------------------------------------------------------- /packages/rich-text/src/get-format-type.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { select } from '@wordpress/data'; 5 | 6 | /** 7 | * Returns a registered format type. 8 | * 9 | * @param {string} name Format name. 10 | * 11 | * @return {?Object} Format type. 12 | */ 13 | export function getFormatType( name ) { 14 | return select( 'core/rich-text' ).getFormatType( name ); 15 | } 16 | -------------------------------------------------------------------------------- /packages/block-library/src/subhead/tranforms.js: -------------------------------------------------------------------------------- 1 | /** 2 | * WordPress dependencies 3 | */ 4 | import { createBlock } from '@wordpress/blocks'; 5 | 6 | const transforms = { 7 | to: [ 8 | { 9 | type: 'block', 10 | blocks: [ 'core/paragraph' ], 11 | transform: ( attributes ) => 12 | createBlock( 'core/paragraph', attributes ), 13 | }, 14 | ], 15 | }; 16 | 17 | export default transforms; 18 | -------------------------------------------------------------------------------- /packages/components/src/primitives/block-quotation/index.native.js: -------------------------------------------------------------------------------- 1 | /** 2 | * External dependencies 3 | */ 4 | import { View } from 'react-native'; 5 | /** 6 | * Internal dependencies 7 | */ 8 | import styles from './style.scss'; 9 | 10 | export const BlockQuotation = ( props ) => { 11 | return ( 12 |This is a subhead.
" 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /packages/edit-post/src/components/sidebar/post-author/style.scss: -------------------------------------------------------------------------------- 1 | .editor-post-author__select { 2 | margin: -5px 0; 3 | 4 | // Set the width of the author select box in IE11 to prevent it overflowing 5 | // outside of the container because of IE11 flexbox bugs. 6 | // We reset it to `width: auto;` for non-IE11 browsers. 7 | width: 100%; 8 | @supports (position: sticky) { 9 | width: auto; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /test/integration/fixtures/shortcode-caption-with-link.html: -------------------------------------------------------------------------------- 1 | [caption id="attachment_754" align="alignnone" width="604"]
Bell on wharf in San Francisco[/caption]
2 |
--------------------------------------------------------------------------------
/packages/block-editor/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * WordPress dependencies
3 | */
4 | import '@wordpress/blocks';
5 | import '@wordpress/core-data';
6 | import '@wordpress/rich-text';
7 | import '@wordpress/viewport';
8 |
9 | /**
10 | * Internal dependencies
11 | */
12 | import './store';
13 | import './hooks';
14 |
15 | export * from './components';
16 |
17 | export { SETTINGS_DEFAULTS } from './store/defaults';
18 |
--------------------------------------------------------------------------------
/packages/docgen/src/test/fixtures/named-identifiers-and-inline/code.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Function declaration example.
3 | */
4 | function functionDeclaration() {}
5 |
6 | /**
7 | * Class declaration example.
8 | */
9 | class ClassDeclaration {}
10 |
11 | export { functionDeclaration, ClassDeclaration };
12 |
13 | /**
14 | * Variable declaration example.
15 | */
16 | export const variableDeclaration = true;
17 |
18 |
--------------------------------------------------------------------------------
/packages/e2e-tests/fixtures/blocks/core__group.html:
--------------------------------------------------------------------------------
1 |
2 | This is a group block.
5 | 6 | 7 | 8 |Group block content.
9 |This is a group block.
4 | 5 | 6 | 7 |Group block content.
8 |