-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
inpsyde-deploybot
committed
Oct 15, 2023
1 parent
54ecd48
commit f44c0cd
Showing
1,799 changed files
with
918,012 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,5 @@ | |
16.6.0 | ||
16.7.0 | ||
16.7.1 | ||
16.8.1 | ||
16.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Gutenberg | ||
|
||
[![End-to-End Tests](https://github.com/WordPress/gutenberg/workflows/End-to-End%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22End-to-End+Tests%22+branch%3Atrunk) | ||
[![Static Analysis (Linting, License, Type checks...)](<https://github.com/WordPress/gutenberg/workflows/Static%20Analysis%20(Linting,%20License,%20Type%20checks...)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Static+Analysis+%28Linting%2C+License%2C+Type+checks...%29%22+branch%3Atrunk) | ||
[![Unit Tests](https://github.com/WordPress/gutenberg/workflows/Unit%20Tests/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Unit+Tests%22+branch%3Atrunk) | ||
[![Create Block](https://github.com/WordPress/gutenberg/workflows/Create%20Block/badge.svg)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22Create+Block%22+branch%3Atrunk) | ||
[![React Native E2E Tests (iOS)](<https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(iOS)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28iOS%29%22+branch%3Atrunk) | ||
[![React Native E2E Tests (Android)](<https://github.com/WordPress/gutenberg/workflows/React%20Native%20E2E%20Tests%20(Android)/badge.svg>)](https://github.com/WordPress/gutenberg/actions?query=workflow%3A%22React+Native+E2E+Tests+%28Android%29%22+branch%3Atrunk) | ||
|
||
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org) | ||
|
||
![Screenshot of the Gutenberg Editor, editing a post in WordPress](https://user-images.githubusercontent.com/1204802/100067796-fc3e8700-2e36-11eb-993b-6b80b4310b87.png) | ||
|
||
Welcome to the development hub for the WordPress Gutenberg project! | ||
|
||
"Gutenberg" is a codename for a whole new paradigm in WordPress site building and publishing, that aims to revolutionize the entire publishing experience as much as Gutenberg did the printed word. Right now, the project is in the second phase of a four-phase process that will touch every piece of WordPress -- Editing, **Customization** (which includes Full Site Editing, Block Patterns, Block Directory and Block based themes), Collaboration, and Multilingual -- and is focused on a new editing experience, the block editor. | ||
|
||
The block editor introduces a modular approach to pages and posts: each piece of content in the editor, from a paragraph to an image gallery to a headline, is its own block. And just like physical blocks, WordPress blocks can be added, arranged, and rearranged, allowing WordPress users to create media-rich pages in a visually intuitive way -- and without work-arounds like shortcodes or custom HTML. | ||
|
||
The block editor first became available in December 2018, and we're still hard at work refining the experience, creating more and better blocks, and laying the groundwork for the next three phases of work. The Gutenberg plugin gives you the latest version of the block editor, so you can join us in testing bleeding-edge features, start playing with blocks, and maybe get inspired to build your own. | ||
|
||
Check out the [Ways to keep up with Gutenberg & Full Site Editing (FSE)](https://make.wordpress.org/core/2020/05/20/ways-to-keep-up-with-full-site-editing-fse/) | ||
|
||
## Getting Started | ||
|
||
Get hands on: check out the [block editor live demo](https://wordpress.org/gutenberg/) to play with a test instance of the editor. | ||
|
||
### Using Gutenberg | ||
|
||
- **Download:** To use the latest release of the Gutenberg plugin on your WordPress site: install from the plugins page in wp-admin, or [download from the WordPress.org plugins repository](https://wordpress.org/plugins/gutenberg/). | ||
|
||
- **User Documentation:** See the [WordPress Editor documentation](https://wordpress.org/documentation/article/wordpress-block-editor/) for detailed docs on using the editor as an author creating posts and pages. | ||
|
||
- **User Support:** If you have run into an issue, you should check the [Support Forums first](https://wordpress.org/support/forums/). The forums are a great place to get help. If you have a bug to report, please [submit it to the Gutenberg repository](https://github.com/wordpress/gutenberg/issues). Please search prior to creating a new bug to confirm it's not a duplicate. | ||
|
||
### Developing for Gutenberg | ||
|
||
Extending and customizing is at the heart of the WordPress platform, this is no different for the Gutenberg project. The editor and future products can be extended by third-party developers using plugins. | ||
|
||
Review the [Create a Block tutorial](/docs/getting-started/create-block/README.md) for the fastest way to get started extending the block editor. See the [Developer Documentation](https://developer.wordpress.org/block-editor/#develop-for-the-block-editor) for extensive tutorials, documentation, and API references. | ||
|
||
### Contribute to Gutenberg | ||
|
||
Gutenberg is an open-source project and welcomes all contributors from code to design, and from documentation to triage. The project is built by many contributors and volunteers, and we'd love your help building it. | ||
|
||
See the [Contributors Handbook](https://developer.wordpress.org/block-editor/contributors/) for all the details on how you can contribute. | ||
|
||
To get up and running quickly with **code contribution** see [Getting Started With Code Contribution](/docs/contributors/code/getting-started-with-code-contribution.md). Also check out the other resources available on the [Code Contributions](/docs/contributors/code/README.md) page. | ||
|
||
In whichever way you wish to contribute please be sure to read the [Contributing Guidelines](https://github.com/WordPress/gutenberg/blob/HEAD/CONTRIBUTING.md) first. | ||
|
||
As with all WordPress projects, we want to ensure a welcoming environment for everyone. With that in mind, all contributors are expected to follow our [Code of Conduct](https://github.com/WordPress/gutenberg/blob/HEAD/CODE_OF_CONDUCT.md). | ||
|
||
## Get Involved | ||
|
||
You can join us in the `#core-editor` channel in Slack, see the [WordPress Slack page](https://make.wordpress.org/chat/) for signup information; it is free to join. | ||
|
||
**Weekly meetings** The Editor Team meets weekly on Wednesdays at 14:00 UTC in Slack. If you can not join the meeting, [agenda](https://make.wordpress.org/core/tag/core-editor-agenda/) and [notes](https://make.wordpress.org/core/tag/core-editor-summary/) are posted to the [Make WordPress Blog](https://make.wordpress.org/core/). | ||
|
||
## License | ||
|
||
WordPress is free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See [LICENSE.md](LICENSE.md) for complete license. | ||
|
||
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,248 @@ | ||
/******/ (function() { // webpackBootstrap | ||
/******/ "use strict"; | ||
/******/ // The require scope | ||
/******/ var __webpack_require__ = {}; | ||
/******/ | ||
/************************************************************************/ | ||
/******/ /* webpack/runtime/compat get default export */ | ||
/******/ !function() { | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
/******/ __webpack_require__.n = function(module) { | ||
/******/ var getter = module && module.__esModule ? | ||
/******/ function() { return module['default']; } : | ||
/******/ function() { return module; }; | ||
/******/ __webpack_require__.d(getter, { a: getter }); | ||
/******/ return getter; | ||
/******/ }; | ||
/******/ }(); | ||
/******/ | ||
/******/ /* webpack/runtime/define property getters */ | ||
/******/ !function() { | ||
/******/ // define getter functions for harmony exports | ||
/******/ __webpack_require__.d = function(exports, definition) { | ||
/******/ for(var key in definition) { | ||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | ||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | ||
/******/ } | ||
/******/ } | ||
/******/ }; | ||
/******/ }(); | ||
/******/ | ||
/******/ /* webpack/runtime/hasOwnProperty shorthand */ | ||
/******/ !function() { | ||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } | ||
/******/ }(); | ||
/******/ | ||
/******/ /* webpack/runtime/make namespace object */ | ||
/******/ !function() { | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ }(); | ||
/******/ | ||
/************************************************************************/ | ||
var __webpack_exports__ = {}; | ||
// ESM COMPAT FLAG | ||
__webpack_require__.r(__webpack_exports__); | ||
|
||
// EXPORTS | ||
__webpack_require__.d(__webpack_exports__, { | ||
setup: function() { return /* binding */ setup; }, | ||
speak: function() { return /* binding */ speak; } | ||
}); | ||
|
||
;// CONCATENATED MODULE: external ["wp","domReady"] | ||
var external_wp_domReady_namespaceObject = window["wp"]["domReady"]; | ||
var external_wp_domReady_default = /*#__PURE__*/__webpack_require__.n(external_wp_domReady_namespaceObject); | ||
;// CONCATENATED MODULE: external ["wp","i18n"] | ||
var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; | ||
;// CONCATENATED MODULE: ./packages/a11y/build-module/add-intro-text.js | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
|
||
|
||
/** | ||
* Build the explanatory text to be placed before the aria live regions. | ||
* | ||
* This text is initially hidden from assistive technologies by using a `hidden` | ||
* HTML attribute which is then removed once a message fills the aria-live regions. | ||
* | ||
* @return {HTMLParagraphElement} The explanatory text HTML element. | ||
*/ | ||
function addIntroText() { | ||
const introText = document.createElement('p'); | ||
introText.id = 'a11y-speak-intro-text'; | ||
introText.className = 'a11y-speak-intro-text'; | ||
introText.textContent = (0,external_wp_i18n_namespaceObject.__)('Notifications'); | ||
introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); | ||
introText.setAttribute('hidden', 'hidden'); | ||
const { | ||
body | ||
} = document; | ||
if (body) { | ||
body.appendChild(introText); | ||
} | ||
return introText; | ||
} | ||
|
||
;// CONCATENATED MODULE: ./packages/a11y/build-module/add-container.js | ||
/** | ||
* Build the live regions markup. | ||
* | ||
* @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'. | ||
* | ||
* @return {HTMLDivElement} The ARIA live region HTML element. | ||
*/ | ||
function addContainer(ariaLive = 'polite') { | ||
const container = document.createElement('div'); | ||
container.id = `a11y-speak-${ariaLive}`; | ||
container.className = 'a11y-speak-region'; | ||
container.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;'); | ||
container.setAttribute('aria-live', ariaLive); | ||
container.setAttribute('aria-relevant', 'additions text'); | ||
container.setAttribute('aria-atomic', 'true'); | ||
const { | ||
body | ||
} = document; | ||
if (body) { | ||
body.appendChild(container); | ||
} | ||
return container; | ||
} | ||
|
||
;// CONCATENATED MODULE: ./packages/a11y/build-module/clear.js | ||
/** | ||
* Clears the a11y-speak-region elements and hides the explanatory text. | ||
*/ | ||
function clear() { | ||
const regions = document.getElementsByClassName('a11y-speak-region'); | ||
const introText = document.getElementById('a11y-speak-intro-text'); | ||
for (let i = 0; i < regions.length; i++) { | ||
regions[i].textContent = ''; | ||
} | ||
|
||
// Make sure the explanatory text is hidden from assistive technologies. | ||
if (introText) { | ||
introText.setAttribute('hidden', 'hidden'); | ||
} | ||
} | ||
|
||
;// CONCATENATED MODULE: ./packages/a11y/build-module/filter-message.js | ||
let previousMessage = ''; | ||
|
||
/** | ||
* Filter the message to be announced to the screenreader. | ||
* | ||
* @param {string} message The message to be announced. | ||
* | ||
* @return {string} The filtered message. | ||
*/ | ||
function filterMessage(message) { | ||
/* | ||
* Strip HTML tags (if any) from the message string. Ideally, messages should | ||
* be simple strings, carefully crafted for specific use with A11ySpeak. | ||
* When re-using already existing strings this will ensure simple HTML to be | ||
* stripped out and replaced with a space. Browsers will collapse multiple | ||
* spaces natively. | ||
*/ | ||
message = message.replace(/<[^<>]+>/g, ' '); | ||
|
||
/* | ||
* Safari + VoiceOver don't announce repeated, identical strings. We use | ||
* a `no-break space` to force them to think identical strings are different. | ||
*/ | ||
if (previousMessage === message) { | ||
message += '\u00A0'; | ||
} | ||
previousMessage = message; | ||
return message; | ||
} | ||
|
||
;// CONCATENATED MODULE: ./packages/a11y/build-module/index.js | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
|
||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
|
||
|
||
|
||
|
||
|
||
/** | ||
* Create the live regions. | ||
*/ | ||
function setup() { | ||
const introText = document.getElementById('a11y-speak-intro-text'); | ||
const containerAssertive = document.getElementById('a11y-speak-assertive'); | ||
const containerPolite = document.getElementById('a11y-speak-polite'); | ||
if (introText === null) { | ||
addIntroText(); | ||
} | ||
if (containerAssertive === null) { | ||
addContainer('assertive'); | ||
} | ||
if (containerPolite === null) { | ||
addContainer('polite'); | ||
} | ||
} | ||
|
||
/** | ||
* Run setup on domReady. | ||
*/ | ||
external_wp_domReady_default()(setup); | ||
|
||
/** | ||
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions. | ||
* This module is inspired by the `speak` function in `wp-a11y.js`. | ||
* | ||
* @param {string} message The message to be announced by assistive technologies. | ||
* @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'. | ||
* | ||
* @example | ||
* ```js | ||
* import { speak } from '@wordpress/a11y'; | ||
* | ||
* // For polite messages that shouldn't interrupt what screen readers are currently announcing. | ||
* speak( 'The message you want to send to the ARIA live region' ); | ||
* | ||
* // For assertive messages that should interrupt what screen readers are currently announcing. | ||
* speak( 'The message you want to send to the ARIA live region', 'assertive' ); | ||
* ``` | ||
*/ | ||
function speak(message, ariaLive) { | ||
/* | ||
* Clear previous messages to allow repeated strings being read out and hide | ||
* the explanatory text from assistive technologies. | ||
*/ | ||
clear(); | ||
message = filterMessage(message); | ||
const introText = document.getElementById('a11y-speak-intro-text'); | ||
const containerAssertive = document.getElementById('a11y-speak-assertive'); | ||
const containerPolite = document.getElementById('a11y-speak-polite'); | ||
if (containerAssertive && ariaLive === 'assertive') { | ||
containerAssertive.textContent = message; | ||
} else if (containerPolite) { | ||
containerPolite.textContent = message; | ||
} | ||
|
||
/* | ||
* Make the explanatory text available to assistive technologies by removing | ||
* the 'hidden' HTML attribute. | ||
*/ | ||
if (introText) { | ||
introText.removeAttribute('hidden'); | ||
} | ||
} | ||
|
||
(window.wp = window.wp || {}).a11y = __webpack_exports__; | ||
/******/ })() | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'e877cd603c6fb8d5a4ad'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.