Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 657d0c7

Browse files
Merge pull request #318 from technote-space/release/next-v2.3.0
release: v3.0.0
2 parents 6b5c543 + acb41ad commit 657d0c7

30 files changed

+2479
-2975
lines changed

.travis.yml

Lines changed: 0 additions & 109 deletions
This file was deleted.

README.ja.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Marker Animation
22

33
[![CI Status](https://github.com/technote-space/marker-animation/workflows/CI/badge.svg)](https://github.com/technote-space/marker-animation/actions)
4-
[![Build Status](https://travis-ci.com/technote-space/marker-animation.svg?branch=master)](https://travis-ci.com/technote-space/marker-animation)
54
[![codecov](https://codecov.io/gh/technote-space/marker-animation/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/marker-animation)
65
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/marker-animation/badge)](https://www.codefactor.io/repository/github/technote-space/marker-animation)
76
[![License: GPL v2+](https://img.shields.io/badge/License-GPL%20v2%2B-blue.svg)](http://www.gnu.org/licenses/gpl-2.0.html)
87
[![PHP: >=5.6](https://img.shields.io/badge/PHP-%3E%3D5.6-orange.svg)](http://php.net/)
9-
[![WordPress: >=4.6](https://img.shields.io/badge/WordPress-%3E%3D4.6-brightgreen.svg)](https://wordpress.org/)
8+
[![WordPress: >=5.4](https://img.shields.io/badge/WordPress-%3E%3D5.4-brightgreen.svg)](https://wordpress.org/)
109

1110
![バナー](https://raw.githubusercontent.com/technote-space/marker-animation/images/.github/images/banner-772x250.png)
1211

@@ -78,7 +77,7 @@
7877

7978
## 要件
8079
- PHP 5.6 以上
81-
- WordPress 4.6 以上
80+
- WordPress 5.4 以上
8281

8382
## 導入手順
8483
1. 最新版をGitHubからダウンロード

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Marker Animation
22

33
[![CI Status](https://github.com/technote-space/marker-animation/workflows/CI/badge.svg)](https://github.com/technote-space/marker-animation/actions)
4-
[![Build Status](https://travis-ci.com/technote-space/marker-animation.svg?branch=master)](https://travis-ci.com/technote-space/marker-animation)
54
[![codecov](https://codecov.io/gh/technote-space/marker-animation/branch/master/graph/badge.svg)](https://codecov.io/gh/technote-space/marker-animation)
65
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/marker-animation/badge)](https://www.codefactor.io/repository/github/technote-space/marker-animation)
76
[![License: GPL v2+](https://img.shields.io/badge/License-GPL%20v2%2B-blue.svg)](http://www.gnu.org/licenses/gpl-2.0.html)
87
[![PHP: >=5.6](https://img.shields.io/badge/PHP-%3E%3D5.6-orange.svg)](http://php.net/)
9-
[![WordPress: >=4.6](https://img.shields.io/badge/WordPress-%3E%3D4.6-brightgreen.svg)](https://wordpress.org/)
8+
[![WordPress: >=5.4](https://img.shields.io/badge/WordPress-%3E%3D5.4-brightgreen.svg)](https://wordpress.org/)
109

1110
![Banner](https://raw.githubusercontent.com/technote-space/marker-animation/images/.github/images/banner-772x250.png)
1211

@@ -77,7 +76,7 @@ This plugin will add the ability to display animations like painting with a high
7776

7877
## Requirements
7978
- \>= PHP 5.6
80-
- \>= WordPress 4.6
79+
- \>= WordPress 5.4
8180

8281
## Installation
8382
1. Download latest version

assets/css/gutenberg.css

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/**
2-
* @version 1.7.3
32
* @author Technote
4-
* @since 1.2.4
53
* @copyright Technote All Rights Reserved
64
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2
75
* @link https://technote.space/
@@ -13,58 +11,7 @@
1311
background-repeat: repeat-x;
1412
}
1513

16-
.marker-animation-nav.editor-styles-wrapper {
17-
background: white;
18-
}
19-
20-
.marker-animation-is-active.components-dropdown-menu .components-dropdown-menu__toggle {
21-
box-shadow: none;
22-
background-color: #555d66;
23-
color: #fff;
24-
}
25-
26-
.components-tooltip .components-popover__content .marker-animation-nav-item-title {
27-
color: black;
28-
background-color: white;
29-
font-size: 1em !important;
30-
line-height: 1.5em;
31-
display: flex !important;
32-
background-position: left -100% bottom -40% !important;
33-
background-size: 200% 1em !important;
34-
padding: 2px !important;
35-
}
36-
37-
.marker-animation-nav-item-title-wrapper {
38-
width: 100%;
39-
text-align: left;
40-
}
41-
42-
.marker-animation-nav .components-dropdown-menu__menu-item {
43-
display: flex !important;
44-
background-position: left -100% bottom 10% !important;
45-
background-size: 200% 1em !important;
46-
font-weight: normal !important;
47-
padding: 6px !important;
48-
}
49-
50-
.components-button.marker-animation-nav-item,
51-
.components-button.marker-animation-nav-item:hover {
52-
background-position: left -100% bottom 10% !important;
53-
background-repeat: repeat-x !important;
54-
padding-bottom: 3px !important;
55-
}
56-
57-
.marker-animation-nav.editor-styles-wrapper::before,
58-
.marker-animation-nav.editor-styles-wrapper::after,
59-
.marker-animation-nav-item-title-wrapper.editor-styles-wrapper::before,
60-
.marker-animation-nav-item-title-wrapper.editor-styles-wrapper::after,
61-
.components-toolbar > .editor-styles-wrapper::before,
62-
.components-toolbar > .editor-styles-wrapper::after {
63-
content: none;
64-
display: none;
65-
}
66-
67-
.marker-animation-nav-item-title-wrapper.editor-styles-wrapper,
68-
.components-toolbar > .editor-styles-wrapper {
69-
background: transparent !important;
14+
.marker-animation-menu .components-dropdown-menu__menu-item.is-active {
15+
color: #1e1e1e;
16+
background: #ddd;
7017
}
Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,65 @@
11
/* eslint-disable no-magic-numbers */
2+
import React from 'react';
23
import { mount } from 'enzyme';
34
import toJson from 'enzyme-to-json';
45
import MyTextControl from '../../src/gutenberg/components/text-control';
56

6-
describe( 'MyTextControl', () => {
7-
it( 'should render text control', () => {
8-
const onChange = jest.fn( value => {
9-
expect( value ).toBe( 'xyz' );
10-
} );
11-
const args = {
7+
describe('MyTextControl', () => {
8+
it('should render text control', () => {
9+
const onChange = jest.fn(value => {
10+
expect(value).toBe('xyz');
11+
});
12+
const args = {
1213
value: {
1314
start: 0,
1415
end: 1,
1516
text: 'test',
1617
},
1718
};
18-
const wrapper = mount( <MyTextControl
19+
const wrapper = mount(<MyTextControl
1920
id='test-id'
2021
key='test-key'
2122
label='test-label'
22-
args={ args }
23+
args={args}
2324
value='abc'
24-
onChange={ onChange }
25-
/> );
25+
onChange={onChange}
26+
/>);
2627

27-
expect( toJson( wrapper, { mode: 'deep' } ) ).toMatchSnapshot( 'render1' );
28-
expect( wrapper.find( '#test-id' ).hostNodes() ).toHaveLength( 1 );
28+
expect(toJson(wrapper, { mode: 'deep' })).toMatchSnapshot('render1');
29+
expect(wrapper.find('#test-id').hostNodes()).toHaveLength(1);
2930

30-
wrapper.find( '#test-id' ).hostNodes().simulate( 'change', { target: { value: 'xyz' } } );
31-
expect( onChange ).not.toBeCalled();
32-
expect( toJson( wrapper, { mode: 'deep' } ) ).toMatchSnapshot( 'changed1' );
31+
wrapper.find('#test-id').hostNodes().simulate('change', { target: { value: 'xyz' } });
32+
expect(onChange).not.toBeCalled();
33+
expect(toJson(wrapper, { mode: 'deep' })).toMatchSnapshot('changed1');
3334

34-
wrapper.find( '#test-id' ).hostNodes().simulate( 'blur' );
35-
expect( onChange ).toBeCalled();
36-
expect( toJson( wrapper, { mode: 'deep' } ) ).toMatchSnapshot( 'blur1' );
37-
} );
35+
wrapper.find('#test-id').hostNodes().simulate('blur');
36+
expect(onChange).toBeCalled();
37+
expect(toJson(wrapper, { mode: 'deep' })).toMatchSnapshot('blur1');
38+
});
3839

39-
it( 'should render text control', () => {
40+
it('should render text control', () => {
4041
const onChange = jest.fn();
41-
const args = {
42+
const args = {
4243
value: {
4344
start: 0,
4445
end: 1,
4546
text: 'test',
4647
},
4748
};
48-
const wrapper = mount( <MyTextControl
49+
const wrapper = mount(<MyTextControl
4950
id='test-id'
5051
key='test-key'
5152
label='test-label'
52-
args={ args }
53+
args={args}
5354
value='abc'
54-
onChange={ onChange }
55-
/> );
55+
onChange={onChange}
56+
/>);
5657

57-
expect( toJson( wrapper, { mode: 'deep' } ) ).toMatchSnapshot( 'render2' );
58-
expect( wrapper.find( '#test-id' ).hostNodes() ).toHaveLength( 1 );
58+
expect(toJson(wrapper, { mode: 'deep' })).toMatchSnapshot('render2');
59+
expect(wrapper.find('#test-id').hostNodes()).toHaveLength(1);
5960

60-
wrapper.find( '#test-id' ).hostNodes().simulate( 'blur' );
61-
expect( onChange ).not.toBeCalled();
62-
expect( toJson( wrapper, { mode: 'deep' } ) ).toMatchSnapshot( 'blur2' );
63-
} );
64-
} );
61+
wrapper.find('#test-id').hostNodes().simulate('blur');
62+
expect(onChange).not.toBeCalled();
63+
expect(toJson(wrapper, { mode: 'deep' })).toMatchSnapshot('blur2');
64+
});
65+
});

0 commit comments

Comments
 (0)