Skip to content

Commit

Permalink
Version 2.2.1 -- Fixes #7. Fixes #8. Updates ServerSideRender compone…
Browse files Browse the repository at this point in the history
…nt in blocks code. Adds Build Instructions readme file.
  • Loading branch information
alexmustin committed Feb 18, 2021
1 parent d538183 commit ed29b89
Show file tree
Hide file tree
Showing 10 changed files with 157 additions and 126 deletions.
33 changes: 33 additions & 0 deletions BUILD-INSTRUCTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Build Instructions

This document serves as an instruction manual for how to build the project during development.


## 1. Install NPM

Open a terminal window and navigate inside the project folder.
Enter:
`npm install`

Wait for the process to finish, to ensure you have npm/npx installed.


## 2. Edit files

Edit files as usual.


## 3. Use Webpack to watch the files inside the /blocks/ folder and auto-build

Have Webpack watch the files and compile as necessary:
`npx webpack --watch`

The files will be automatically updated for you.


## Base Tutorials

This project was built by following these tutorials:

1. https://calderaforms.com/2019/01/convert-shortcode-gutenberg-block/
2. https://css-tricks.com/learning-gutenberg-1-series-intro/ ** <-- Steps 3 and 7 are the closest to this project
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ https://buildmybrandid.com/forum/support/plugins/social-proof-testimonial-slider

## Changelog

### 2.2.1 - (Feb 16, 2021)
* Update: Compatible with WordPress 5.6.1
* Fix: Updates Block code to replace older deprecated functions.

### 2.2.0 - (Nov 12, 2019)
* Added: New SP Slider Block: Easily place a 'SP Testimonials Slider' block anywhere on your page and visually configure its display settings in real-time using the Block Editor.
* Update: Compatible with WordPress 5.3
Expand Down
9 changes: 6 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Author: brandiD
Author URI: https://buildmybrandid.com/product/social-proof-testimonial-slider/
Tags: awards, carousel, content slider, custom post type, features, feedback, jquery, portfolio, responsive, reviews, quotes, sidebar, slider, slideshow, social, testimonial, video, vimeo, widget, youtube
Requires at least: 4.5
Tested up to: 5.3
Stable tag: 2.2.0
Version: 2.2.0
Tested up to: 5.6.1
Stable tag: 2.2.1
Version: 2.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -87,6 +87,9 @@ https://buildmybrandid.com/forum/support/plugins/social-proof-testimonial-slider

== Changelog ==

= 2.2.1 - (Feb 16, 2021) =
* Update: Compatible with WordPress 5.6.1

= 2.2.0 - (Nov 12, 2019) =
* Added: New SP Slider Block: Easily place a 'SP Testimonials Slider' block anywhere on your page and visually configure its display settings in real-time using the Block Editor.
* Update: Compatible with WordPress 5.3
Expand Down
8 changes: 4 additions & 4 deletions blocks/dist/blocks.build.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion blocks/src/block/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const { __ } = wp.i18n;
const { AlignmentToolbar, BlockControls, InspectorControls, PanelColorSettings } = wp.blockEditor;

// Import components
const { Icon, ColorPicker, TextControl, SelectControl, ToggleControl, ServerSideRender, PanelBody, PanelRow } = wp.components;
const { Icon, ColorPicker, TextControl, SelectControl, ToggleControl, PanelBody, PanelRow } = wp.components;

const { serverSideRender: ServerSideRender } = wp;

/**
* Internal dependencies
Expand Down
3 changes: 2 additions & 1 deletion blocks/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ const {
RadioControl,
RangeControl,
SelectControl,
ServerSideRender,
TextControl,
ToggleControl,
Tooltip
} = wp.components;

const { serverSideRender: ServerSideRender } = wp;

/**
* Internal dependencies.
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "social-proof-slider",
"version": "2.1.2",
"version": "2.2.1",
"description": "> Showcase your expertise with an easy-to-customize responsive carousel slider of your featured testimonials.",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit ed29b89

Please sign in to comment.