react-json-editor-ajrm
Advanced tools
Comparing version 2.5.5 to 2.5.6
@@ -9,2 +9,12 @@ # Changelog | ||
## [2.5.6] - 2018-10-07 | ||
### Added | ||
- Reset option @AndrewRedican. | ||
- Russian translation for warnings @askesis. | ||
- French translation for warnings @cbonaudo. | ||
- Bahasa Indonesia translation for warnings @radityasurya. | ||
### Fixed | ||
- Issue where component did not compare new and previous `placeholder` object correctly. | ||
## [2.5.5] - 2018-09-19 | ||
@@ -11,0 +21,0 @@ ### Added |
@@ -47,3 +47,3 @@ export default { | ||
percent: "percent", | ||
// % | ||
// % | ||
plus: "plus", | ||
@@ -106,3 +106,3 @@ // + | ||
mustBeWrappedByQuotes: "Strings must be wrapped by quotes", | ||
nonAlphanumeric: "Non-alphanemeric token '{token}' is not allowed outside string notation", | ||
nonAlphanumeric: "Non-alphanumeric token '{token}' is not allowed outside string notation", | ||
unexpectedKey: "Unexpected key found at string position" | ||
@@ -109,0 +109,0 @@ }, |
@@ -78,18 +78,18 @@ export default { | ||
tokenSequence: { | ||
prohibited: "符号'{firstToken}' 不能位于 符号'{secondToken}'之后", | ||
permitted: "符号'{firstToken}' 只能位于 符号'{secondToken}'之后" | ||
prohibited: "'{firstToken}' 不能位于 '{secondToken}'之后", | ||
permitted: "'{firstToken}' 只能位于 '{secondToken}'之后" | ||
}, | ||
termSequence: { | ||
prohibited: "符号 {firstTerm} 不能位于符号{secondTerm} 之后", | ||
permitted: "符号 {firstTerm} 只能位于符号{secondTerm} 之后" | ||
prohibited: " {firstTerm} 不能位于{secondTerm} 之后", | ||
permitted: " {firstTerm} 只能位于{secondTerm} 之后" | ||
}, | ||
double: "符号'{token}' 不能位于另一个符号 '{token}' 之后", | ||
useInstead: "符号'{badToken}' 不被接受. 使用 '{goodToken}' 替代", | ||
unexpected: "出乎意料的符号 '{token}' " | ||
double: "'{token}' 不能位于另一个 '{token}' 之后", | ||
useInstead: "'{badToken}' 不被接受. 使用 '{goodToken}' 替代", | ||
unexpected: "出乎意料的 '{token}' " | ||
}, | ||
brace: { | ||
curly: { | ||
missingOpen: "无法找到符号 '{' ", | ||
missingClose: "无法找到符号 '}' ", | ||
cannotWrap: "符号'{token}' 无法被包含在 '{}' 符号中" | ||
missingOpen: "无法找到 '{' ", | ||
missingClose: "无法找到 '}' ", | ||
cannotWrap: "'{token}' 无法被包含在 '{}' 中" | ||
}, | ||
@@ -99,8 +99,8 @@ square: { | ||
missingClose: "无法找到 ']' ", | ||
cannotWrap: "符号'{token}' 无法被包含在 '[]' 符号中" | ||
cannotWrap: "'{token}' 无法被包含在 '[]' 中" | ||
} | ||
}, | ||
string: { | ||
missingOpen: "无法找到/无效的 前缀符号 '{quote}' ", | ||
missingClose: "无法找到/无效的 后缀符号 '{quote}' ", | ||
missingOpen: "无法找到/无效的 前缀 '{quote}' ", | ||
missingClose: "无法找到/无效的 后缀 '{quote}' ", | ||
mustBeWrappedByQuotes: "字符串必须用引号括起来", | ||
@@ -107,0 +107,0 @@ nonAlphanumeric: "非数字字符 '{token}' 无法使用外部字符串表示法", |
@@ -53,3 +53,3 @@ "use strict"; | ||
percent: "percent", | ||
// % | ||
// % | ||
plus: "plus", | ||
@@ -112,3 +112,3 @@ // + | ||
mustBeWrappedByQuotes: "Strings must be wrapped by quotes", | ||
nonAlphanumeric: "Non-alphanemeric token '{token}' is not allowed outside string notation", | ||
nonAlphanumeric: "Non-alphanumeric token '{token}' is not allowed outside string notation", | ||
unexpectedKey: "Unexpected key found at string position" | ||
@@ -115,0 +115,0 @@ }, |
@@ -84,18 +84,18 @@ "use strict"; | ||
tokenSequence: { | ||
prohibited: "符号'{firstToken}' 不能位于 符号'{secondToken}'之后", | ||
permitted: "符号'{firstToken}' 只能位于 符号'{secondToken}'之后" | ||
prohibited: "'{firstToken}' 不能位于 '{secondToken}'之后", | ||
permitted: "'{firstToken}' 只能位于 '{secondToken}'之后" | ||
}, | ||
termSequence: { | ||
prohibited: "符号 {firstTerm} 不能位于符号{secondTerm} 之后", | ||
permitted: "符号 {firstTerm} 只能位于符号{secondTerm} 之后" | ||
prohibited: " {firstTerm} 不能位于{secondTerm} 之后", | ||
permitted: " {firstTerm} 只能位于{secondTerm} 之后" | ||
}, | ||
double: "符号'{token}' 不能位于另一个符号 '{token}' 之后", | ||
useInstead: "符号'{badToken}' 不被接受. 使用 '{goodToken}' 替代", | ||
unexpected: "出乎意料的符号 '{token}' " | ||
double: "'{token}' 不能位于另一个 '{token}' 之后", | ||
useInstead: "'{badToken}' 不被接受. 使用 '{goodToken}' 替代", | ||
unexpected: "出乎意料的 '{token}' " | ||
}, | ||
brace: { | ||
curly: { | ||
missingOpen: "无法找到符号 '{' ", | ||
missingClose: "无法找到符号 '}' ", | ||
cannotWrap: "符号'{token}' 无法被包含在 '{}' 符号中" | ||
missingOpen: "无法找到 '{' ", | ||
missingClose: "无法找到 '}' ", | ||
cannotWrap: "'{token}' 无法被包含在 '{}' 中" | ||
}, | ||
@@ -105,8 +105,8 @@ square: { | ||
missingClose: "无法找到 ']' ", | ||
cannotWrap: "符号'{token}' 无法被包含在 '[]' 符号中" | ||
cannotWrap: "'{token}' 无法被包含在 '[]' 中" | ||
} | ||
}, | ||
string: { | ||
missingOpen: "无法找到/无效的 前缀符号 '{quote}' ", | ||
missingClose: "无法找到/无效的 后缀符号 '{quote}' ", | ||
missingOpen: "无法找到/无效的 前缀 '{quote}' ", | ||
missingClose: "无法找到/无效的 后缀 '{quote}' ", | ||
mustBeWrappedByQuotes: "字符串必须用引号括起来", | ||
@@ -113,0 +113,0 @@ nonAlphanumeric: "非数字字符 '{token}' 无法使用外部字符串表示法", |
{ | ||
"name": "react-json-editor-ajrm", | ||
"version": "2.5.5", | ||
"version": "2.5.6", | ||
"description": "A stylish, editor-like, modular, react component for viewing, editing, and debugging javascript object syntax!", | ||
@@ -5,0 +5,0 @@ "author": "andrew.redican.mejia@gmail.com", |
# react-json-editor-ajrm | ||
![npm](https://img.shields.io/npm/v/react-json-editor-ajrm.svg) ![Build Status](https://travis-ci.com/AndrewRedican/react-json-editor-ajrm.svg?branch=master) ![npm](https://img.shields.io/npm/dm/react-json-editor-ajrm.svg) [![Known Vulnerabilities](https://snyk.io/test/github/AndrewRedican/react-json-editor-ajrm/badge.svg)](https://snyk.io/test/github/{username}/{repo}) [![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors) | ||
![npm](https://img.shields.io/npm/v/react-json-editor-ajrm.svg) ![Build Status](https://travis-ci.com/AndrewRedican/react-json-editor-ajrm.svg?branch=master) ![npm](https://img.shields.io/npm/dm/react-json-editor-ajrm.svg) [![Known Vulnerabilities](https://snyk.io/test/github/AndrewRedican/react-json-editor-ajrm/badge.svg)](https://snyk.io/test/github/{username}/{repo}) [![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors) | ||
@@ -30,3 +30,3 @@ <p align="center"><img src=https://i.imgur.com/ewtebIW.gif><br /><br />A stylish, editor-like, modular, react component for viewing, editing, and debugging javascript object syntax!</p> | ||
*Hint*: There are two different root paths: `react-json-editor-ajrm` and `react-json-editor-ajrm/es`. The first contains polyfilled ES5 code, the second unpolyfilled ES6. If you are unsure of which one you need/want, pick the first - it has the best compatibility with tools and browsers. | ||
*Hint*: There are two different root paths: `react-json-editor-ajrm` and `react-json-editor-ajrm/es`. The first contains polyfilled ES5 code, the second unpolyfilled ES6. The `react-json-editor-ajrm/es` version is **not compatible** with [`react-create-app`](https://github.com/facebook/create-react-app). If you are unsure of which one you need/want, pick the first - it has the best compatibility with tools and browsers. | ||
@@ -63,7 +63,7 @@ ## Examples | ||
## Latest Spotlight Release Notes [v2.5.5] - September 19, 2018 | ||
## Latest Spotlight Release Notes [v2.5.6] - October 7, 2018 | ||
1. `Chinese` locale is now supported. [Read More](https://github.com/AndrewRedican/react-json-editor-ajrm/wiki/Locale-Support) | ||
2. Backslash-related syntax mistakes now have a specific warning. See [issue](https://github.com/AndrewRedican/react-json-editor-ajrm/issues/60) | ||
3. Find more details in [Change Log](https://github.com/AndrewRedican/react-json-editor-ajrm/blob/master/CHANGELOG.md#254---2018-09-19) | ||
1. `Bahasa Indonesia`, `French`, and `Russian` locales are now supported. [Read More](https://github.com/AndrewRedican/react-json-editor-ajrm/wiki/Locale-Support) | ||
2. A new `reset` option is now provided to modify the component's default re-render behavior. See [pull request](https://github.com/AndrewRedican/react-json-editor-ajrm/pull/73) | ||
3. Find more details in [Change Log](https://github.com/AndrewRedican/react-json-editor-ajrm/blob/master/CHANGELOG.md#256---2018-10-07) | ||
@@ -82,3 +82,3 @@ ## Upcoming Features | ||
5. For any valid textContent, calculates and makes available in this.state as plain text, markup text, and javascript object. | ||
6. Locale support for `English`, `German`, `Spanish`, and `Chinese`. | ||
6. Locale support for `English`, `German`, `Spanish`, `Chinese`, `French`, `Bahasa Indonesia`, and `Russian`. | ||
@@ -91,3 +91,4 @@ ## Component Properties | ||
| [locale]() | The locale of your editor. Import locales like this: `import locale from 'react-json-editor-ajrm/locale/en'`. [Learn More](https://github.com/AndrewRedican/react-json-editor-ajrm/wiki/Locale-Support) | object | Mandatory | | ||
| [placeholder]() | Send a valid javascript object to be shown once when component is mounted. | object | Optional | | ||
| [placeholder]() | Send a valid javascript object to be shown once the component is mounted. Assign a different value to have the component's initial content re-rendered. | object | Optional | | ||
| [reset]() | Send `true` to have component always re-render or 'reset' to the value provided on the `placeholder` property. | boolean | Optional | | ||
| [viewOnly]() | Send `true` if you would like for content shown not to be editable. | boolean | Optional | | ||
@@ -174,4 +175,5 @@ | [onChange]() | Whenever `onBlur` or `onKeyPress` events take place, it will return content values. | object | Optional | | ||
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | | ||
| [<img src="https://avatars0.githubusercontent.com/u/13097851?v=4" width="100px;"/><br /><sub><b>Cédric</b></sub>](https://github.com/cbonaudo)<br />[🌍](#translation-cbonaudo "Translation") | [<img src="https://avatars3.githubusercontent.com/u/6660141?v=4" width="100px;"/><br /><sub><b>Radit</b></sub>](http://radityasurya.com)<br />[🌍](#translation-radityasurya "Translation") | [<img src="https://avatars2.githubusercontent.com/u/23220242?v=4" width="100px;"/><br /><sub><b>asketes</b></sub>](https://github.com/askesis)<br />[🌍](#translation-askesis "Translation") | [<img src="https://avatars2.githubusercontent.com/u/40763859?v=4" width="100px;"/><br /><sub><b>C.G.Vedant</b></sub>](https://github.com/cgvedant)<br />[🤔](#ideas-cgvedant "Ideas, Planning, & Feedback") | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
313541
30
7485
175