@toast-ui/editor-plugin-color-syntax
Advanced tools
Comparing version 3.0.1 to 3.0.2
/*! | ||
* TOAST UI Editor : Color Syntax Plugin | ||
* @version 3.0.1 | Wed Jul 07 2021 | ||
* @version 3.0.2 | Wed Oct 27 2021 | ||
* @author NHN FE Development Lab <dl_javascript@nhn.com> | ||
@@ -88,9 +88,85 @@ * @license MIT | ||
!function() { | ||
/* harmony export */ __webpack_require__.d(__webpack_exports__, { | ||
/* harmony export */ "default": function() { return /* binding */ colorSyntaxPlugin; } | ||
/* harmony export */ }); | ||
/* harmony import */ var tui_color_picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(227); | ||
/* harmony import */ var tui_color_picker__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_color_picker__WEBPACK_IMPORTED_MODULE_0__); | ||
// EXPORTS | ||
__webpack_require__.d(__webpack_exports__, { | ||
"default": function() { return /* binding */ colorSyntaxPlugin; } | ||
}); | ||
// EXTERNAL MODULE: external {"commonjs":"tui-color-picker","commonjs2":"tui-color-picker","amd":"tui-color-picker","root":["tui","colorPicker"]} | ||
var external_commonjs_tui_color_picker_commonjs2_tui_color_picker_amd_tui_color_picker_root_tui_colorPicker_ = __webpack_require__(227); | ||
var external_commonjs_tui_color_picker_commonjs2_tui_color_picker_amd_tui_color_picker_root_tui_colorPicker_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_tui_color_picker_commonjs2_tui_color_picker_amd_tui_color_picker_root_tui_colorPicker_); | ||
;// CONCATENATED MODULE: ./src/i18n/langs.ts | ||
function addLangs(i18n) { | ||
i18n.setLanguage('ar', { | ||
'Text color': 'لون النص', | ||
}); | ||
i18n.setLanguage(['cs', 'cs-CZ'], { | ||
'Text color': 'Barva textu', | ||
}); | ||
i18n.setLanguage(['de', 'de-DE'], { | ||
'Text color': 'Textfarbe', | ||
}); | ||
i18n.setLanguage(['en', 'en-US'], { | ||
'Text color': 'Text color', | ||
}); | ||
i18n.setLanguage(['es', 'es-ES'], { | ||
'Text color': 'Color del texto', | ||
}); | ||
i18n.setLanguage(['fi', 'fi-FI'], { | ||
'Text color': 'Tekstin väri', | ||
}); | ||
i18n.setLanguage(['fr', 'fr-FR'], { | ||
'Text color': 'Couleur du texte', | ||
}); | ||
i18n.setLanguage(['gl', 'gl-ES'], { | ||
'Text color': 'Cor do texto', | ||
}); | ||
i18n.setLanguage(['hr', 'hr-HR'], { | ||
'Text color': 'Boja teksta', | ||
}); | ||
i18n.setLanguage(['it', 'it-IT'], { | ||
'Text color': 'Colore del testo', | ||
}); | ||
i18n.setLanguage(['ja', 'ja-JP'], { | ||
'Text color': '文字色相', | ||
}); | ||
i18n.setLanguage(['ko', 'ko-KR'], { | ||
'Text color': '글자 색상', | ||
}); | ||
i18n.setLanguage(['nb', 'nb-NO'], { | ||
'Text color': 'Tekstfarge', | ||
}); | ||
i18n.setLanguage(['nl', 'nl-NL'], { | ||
'Text color': 'Tekstkleur', | ||
}); | ||
i18n.setLanguage(['pl', 'pl-PL'], { | ||
'Text color': 'Kolor tekstu', | ||
}); | ||
i18n.setLanguage(['pt', 'pt-BR'], { | ||
'Text color': 'Cor do texto', | ||
}); | ||
i18n.setLanguage(['ru', 'ru-RU'], { | ||
'Text color': 'Цвет текста', | ||
}); | ||
i18n.setLanguage(['sv', 'sv-SE'], { | ||
'Text color': 'Textfärg', | ||
}); | ||
i18n.setLanguage(['tr', 'tr-TR'], { | ||
'Text color': 'Metin rengi', | ||
}); | ||
i18n.setLanguage(['uk', 'uk-UA'], { | ||
'Text color': 'Колір тексту', | ||
}); | ||
i18n.setLanguage('zh-CN', { | ||
'Text color': '文字颜色', | ||
}); | ||
i18n.setLanguage('zh-TW', { | ||
'Text color': '文字顏色', | ||
}); | ||
} | ||
;// CONCATENATED MODULE: ./src/index.ts | ||
var PREFIX = 'toastui-editor-'; | ||
@@ -103,6 +179,6 @@ function createApplyButton(text) { | ||
} | ||
function createToolbarItemOption(colorPickerContainer) { | ||
function createToolbarItemOption(colorPickerContainer, i18n) { | ||
return { | ||
name: 'color', | ||
tooltip: 'Text color', | ||
tooltip: i18n.get('Text color'), | ||
className: PREFIX + "toolbar-icons color", | ||
@@ -140,6 +216,7 @@ popup: { | ||
var colorPickerOption = { container: container, usageStatistics: usageStatistics }; | ||
addLangs(i18n); | ||
if (preset) { | ||
colorPickerOption.preset = preset; | ||
} | ||
var colorPicker = tui_color_picker__WEBPACK_IMPORTED_MODULE_0___default().create(colorPickerOption); | ||
var colorPicker = external_commonjs_tui_color_picker_commonjs2_tui_color_picker_amd_tui_color_picker_root_tui_colorPicker_default().create(colorPickerOption); | ||
var button = createApplyButton(i18n.get('OK')); | ||
@@ -161,3 +238,3 @@ eventEmitter.listen('focus', function (editType) { | ||
container.appendChild(button); | ||
var toolbarItem = createToolbarItemOption(container); | ||
var toolbarItem = createToolbarItemOption(container, i18n); | ||
return { | ||
@@ -164,0 +241,0 @@ markdownCommands: { |
{ | ||
"name": "@toast-ui/editor-plugin-color-syntax", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TOAST UI Editor : Color Syntax Plugin", | ||
@@ -38,2 +38,3 @@ "keywords": [ | ||
"test": "jest --watch", | ||
"test:ci": "jest", | ||
"serve": "snowpack dev", | ||
@@ -40,0 +41,0 @@ "serve:ie": "webpack serve", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25470
418