Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/v0.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
SofiaSousa committed Jul 16, 2018
2 parents 86779a2 + afc690c commit daa4bb8
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 44 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
languages
webpack.config.js
.babelrc
.eslintignore
.eslintrc
15 changes: 6 additions & 9 deletions src/js/blocks/row/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@ $totalColumns: 12;

.wp-block-gutenbergjs-row {
display: block;

.editor-inner-blocks {
margin-left: -$block-padding;
margin-right: -$block-padding;

> .editor-inner-blocks {
display: grid;
grid-auto-flow: dense;
grid-gap: 0;
grid-template-columns: repeat($totalColumns, 1fr);

.editor-block-list__layout {
&:first-child {
margin-left: -$block-padding;
}
&:last-child {
margin-right: -$block-padding;
}

// This max-width is used to constrain the main editor column, it should not cascade into columns
.editor-block-list__block {
max-width: none;
margin-left: 0px;
margin-right: 0px;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/blocks/section/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const settings = {

return (
<div className={ classes } style={ style } { ...data }>
<div className="wp-block-storypage-section-content">
<div className="wp-block-gutenbergjs-section-content">
<InnerBlocks.Content />
</div>
</div>
Expand Down
18 changes: 8 additions & 10 deletions src/js/blocks/section/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
display: grid;
grid-gap: 1em;
position: relative;
background-size: cover;
background-position: 50%;
min-height: 430px;
width: 100%;
background-size: cover;
background-position: 50%;
min-height: 430px;
width: 100%;

&.has-parallax {
&.has-parallax {
background-attachment: fixed;
}

&.has-background-dim:before {
&.has-background-dim:before {
content: '';
position: absolute;
top: 0;
Expand All @@ -27,7 +27,7 @@
top: 0;
left: 0;
bottom: 0;
right: 0;
right: 0;
z-index: 1;
}
}
Expand All @@ -37,11 +37,9 @@
background-color: rgba( #000, $i * 0.1 );
}
}

&.has-max-width {
margin-left: auto;
margin-right: auto;
}


}
4 changes: 2 additions & 2 deletions src/js/gutenberg-overrides/blocks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# blocks changelog

## 0.0.1 2018-07-
## 0.0.1 2018-07-11

### Added

- `getBlockAttribute` override to handle with `data` attributes when type is `object` (`api/parser.js`)
- `getBlockAttribute` override to handle with `data` attributes when type is `object` ([blocks/api/parser.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/blocks/api/parser.js))
12 changes: 6 additions & 6 deletions src/js/gutenberg-overrides/core-blocks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# core-blocks changelog

## 0.0.1 2018-07-
## 0.0.1 2018-07-11

### Added

- `data` attribute to `cover-image` block and change *onSelectImage* function to set `data` atributes (`cover-image/index.js`)
- `data` attribute to `cover-image` block and change *onSelectImage* function to set `data` atributes ([core-blocks/cover-image/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/cover-image/index.js))

- `data` attribute to `gallery` on `save` (`gallery/index.js`)
- `data` attribute to `gallery` on `save` ([core-blocks/gallery/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/core-blocks/gallery/index.js))

- `data` attribute to **GalleryImage** (`gallery/edit.js`)
- `data` attribute to **GalleryImage** ([core-blocks/gallery/edit.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/core-blocks/gallery/edit.js))

- `data` attribute to be set on `componentDidUpdate` event and then rendered (`gallery/gallery-image.js`)
- `data` attribute to be set on `componentDidUpdate` event and then rendered ([core-blocks/gallery/gallery-image.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/core-blocks/gallery/gallery-image.js))

- `data` attribute to `image` block and change *onSelectImage* function to set `data` atributes (`image/index.js` and `image/edit.js`)
- `data` attribute to `image` block and change *onSelectImage* function to set `data` atributes ([core-blocks/image/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/core-blocks/image/edit.js) and [image/edit.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/core-blocks/image/edit.js))
10 changes: 5 additions & 5 deletions src/js/gutenberg-overrides/edit-post/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# edit-post changelog

## 0.0.1 2018-07-
## 0.0.1 2018-07-11

### Added

- **MediaUpload** override (`hooks/componnets/media-upload/index.js`)
- **MediaUpload** override [edit-post/hooks/componnets/media-upload/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/edit-post/hooks/componnets/media-upload/index.js))

- `OPEN_GENERAL_SIDEBAR` and `CLOSE_GENERAL_SIDEBAR` effects (`store/effects.js`)
- `OPEN_GENERAL_SIDEBAR` and `CLOSE_GENERAL_SIDEBAR` effects [edit-post/store/effects.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/edit-post/store/effects.js))

- **PluginDocumentSidebarPanel** component and **DocumentSidebar** override to included *PluginDocumentSidebarPanel* (`components/sidebar/document-sidebar/index.js`)
- **PluginDocumentSidebarPanel** component and **DocumentSidebar** override to included *PluginDocumentSidebarPanel* ([edit-post/components/sidebar/document-sidebar/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/edit-post/components/sidebar/document-sidebar/index.js))

- Exported the **PluginDocumentSidebarPanel** component (make it accessible from outside) (`index.js`)
- Exported the **PluginDocumentSidebarPanel** component (make it accessible from outside) ([edit-post/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/edit-post/index.js))
18 changes: 9 additions & 9 deletions src/js/gutenberg-overrides/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# editor changelog

## 0.0.1 2018-07-
## 0.0.1 2018-07-11

### Added

- `canPublish`, `canSave` and `canAutosave` properties and default values to `EDITOR_SETTINGS_DEFAULTS` (`store/defaults.js`)
- `canPublish`, `canSave` and `canAutosave` properties and default values to `EDITOR_SETTINGS_DEFAULTS` ([editor/store/defaults.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/store/defaults.js))

- `insertDefaultBlock` override (`store/actions.js`)
- `insertDefaultBlock` override ([editor/store/actions.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/

- `ifCondition` to **AutosaveMonitor**, controlled by `canSave` and `canAutosave` settings (`components/autosave-monitor/index.js`)
- `ifCondition` to **AutosaveMonitor**, controlled by `canSave` and `canAutosave` settings ([editor/components/autosave-monitor/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/components/autosave-monitor/index.js))

- `ifCondition` to **PostPublishPanelToggle**, controlled by `canPublish` setting (`components/post-publish-panel/toggle.js`)
- `ifCondition` to **PostPublishPanelToggle**, controlled by `canPublish` setting ([editor/components/post-publish-panel/toggle.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/components/post-publish-panel/toggle.js))

- `ifCondition` to **PostSavedState**, controlled by `canSave` setting (`components/post-saved-state/index.js`)
- `ifCondition` to **PostSavedState**, controlled by `canSave` setting ([editor/components/post-saved-state/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/components/post-saved-state/index.js))

- `setContent` override (commented `bookmark` workaround) (`components/rich-text/index.js`)
- `setContent` override (commented `bookmark` workaround) ([editor/components/rich-text/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/components/rich-text/index.js))

- `onDrop` override in order to accept blocks from PostItemDraggable (`components/block-drop-zone/index.js`)
- `onDrop` override in order to accept blocks from PostItemDraggable ([editor/components/block-drop-zone/index.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/components/block-drop-zone/index.js))

- `INSERTER_UTILITY_HIGH`, `INSERTER_UTILITY_MEDIUM` and `INSERTER_UTILITY_LOW` overrides with `INSERTER_UTILITY_NONE` so there is no different levels of utility and consequently no **Most Used** panel (`store/selectors.js`)
- `INSERTER_UTILITY_HIGH`, `INSERTER_UTILITY_MEDIUM` and `INSERTER_UTILITY_LOW` overrides with `INSERTER_UTILITY_NONE` so there is no different levels of utility and consequently no **Most Used** panel ([editor/store/selectors.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/editor/store/selectors.js))
4 changes: 2 additions & 2 deletions src/js/gutenberg-overrides/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# utils changelog

## 0.0.1 2018-07-
## 0.0.1 2018-07-11

### Added

- `data` property to `mediaObject` and use `get` function to obtain image `title` in `mediaUpload` function (`mediaupload.js`)
- `data` property to `mediaObject` and use `get` function to obtain image `title` in `mediaUpload` function ([utils/mediaupload.js](https://github.com/front/gutenberg-js/blob/v0.0.1/src/js/gutenberg-overrides/utils/mediaupload.js))

0 comments on commit daa4bb8

Please sign in to comment.