@tooark/wysiwyg 1.9.4 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.pt-BR.md +1 -1
- package/dist/components/ark-wysiwyg-editor.cjs +830 -0
- package/dist/components/ark-wysiwyg-editor.cjs.map +1 -0
- package/dist/components/ark-wysiwyg-editor.js +828 -0
- package/dist/components/ark-wysiwyg-editor.js.map +1 -0
- package/dist/components/ark-wysiwyg-viewer.cjs +125 -0
- package/dist/components/ark-wysiwyg-viewer.cjs.map +1 -0
- package/dist/components/ark-wysiwyg-viewer.js +123 -0
- package/dist/components/ark-wysiwyg-viewer.js.map +1 -0
- package/dist/components/html-element-base.cjs +11 -0
- package/dist/components/html-element-base.cjs.map +1 -0
- package/dist/components/html-element-base.js +9 -0
- package/dist/components/html-element-base.js.map +1 -0
- package/dist/components/test-hooks.cjs +19 -0
- package/dist/components/test-hooks.cjs.map +1 -0
- package/dist/components/test-hooks.js +17 -0
- package/dist/components/test-hooks.js.map +1 -0
- package/dist/components/upgrade-properties.cjs +31 -0
- package/dist/components/upgrade-properties.cjs.map +1 -0
- package/dist/components/upgrade-properties.js +29 -0
- package/dist/components/upgrade-properties.js.map +1 -0
- package/dist/engine/index.cjs +278 -0
- package/dist/engine/index.cjs.map +1 -0
- package/dist/engine/index.js +269 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/i18n.cjs +139 -0
- package/dist/i18n.cjs.map +1 -0
- package/dist/i18n.js +137 -0
- package/dist/i18n.js.map +1 -0
- package/dist/icons.cjs +34 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.js +32 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.cjs +31 -1856
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1837
- package/dist/index.js.map +1 -1
- package/dist/register.cjs +23 -0
- package/dist/register.cjs.map +1 -0
- package/dist/register.js +21 -0
- package/dist/register.js.map +1 -0
- package/dist/security.cjs +117 -0
- package/dist/security.cjs.map +1 -0
- package/dist/security.js +112 -0
- package/dist/security.js.map +1 -0
- package/dist/styles.cjs +283 -0
- package/dist/styles.cjs.map +1 -0
- package/dist/styles.js +279 -0
- package/dist/styles.js.map +1 -0
- package/dist/types/index.cjs +29 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.js +26 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +3 -3
package/dist/i18n.cjs
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Rótulos da toolbar. O pacote não depende de @tooark/core, então carrega o
|
|
4
|
+
// próprio dicionário; `custom` recebe um JSON parcial por cima do inglês.
|
|
5
|
+
const en = {
|
|
6
|
+
textStyle: "Text style",
|
|
7
|
+
paragraph: "Normal",
|
|
8
|
+
heading: "Heading",
|
|
9
|
+
bold: "Bold",
|
|
10
|
+
italic: "Italic",
|
|
11
|
+
underline: "Underline",
|
|
12
|
+
strike: "Strikethrough",
|
|
13
|
+
code: "Code",
|
|
14
|
+
textColor: "Text color",
|
|
15
|
+
highlight: "Highlight",
|
|
16
|
+
noColor: "No color",
|
|
17
|
+
alignLeft: "Align left",
|
|
18
|
+
alignCenter: "Align center",
|
|
19
|
+
alignRight: "Align right",
|
|
20
|
+
alignJustify: "Justify",
|
|
21
|
+
bulletList: "Bulleted list",
|
|
22
|
+
orderedList: "Numbered list",
|
|
23
|
+
indent: "Increase indent",
|
|
24
|
+
outdent: "Decrease indent",
|
|
25
|
+
link: "Link",
|
|
26
|
+
linkUrl: "URL",
|
|
27
|
+
apply: "Apply",
|
|
28
|
+
remove: "Remove",
|
|
29
|
+
invalidUrl: "Enter a valid http(s), mailto or tel address",
|
|
30
|
+
image: "Image",
|
|
31
|
+
video: "Video",
|
|
32
|
+
blockquote: "Quote",
|
|
33
|
+
horizontalRule: "Horizontal rule",
|
|
34
|
+
clearFormat: "Clear formatting",
|
|
35
|
+
undo: "Undo",
|
|
36
|
+
redo: "Redo",
|
|
37
|
+
uploading: "Uploading"
|
|
38
|
+
};
|
|
39
|
+
const pt = {
|
|
40
|
+
textStyle: "Estilo do texto",
|
|
41
|
+
paragraph: "Normal",
|
|
42
|
+
heading: "Título",
|
|
43
|
+
bold: "Negrito",
|
|
44
|
+
italic: "Itálico",
|
|
45
|
+
underline: "Sublinhado",
|
|
46
|
+
strike: "Tachado",
|
|
47
|
+
code: "Código",
|
|
48
|
+
textColor: "Cor do texto",
|
|
49
|
+
highlight: "Marca-texto",
|
|
50
|
+
noColor: "Sem cor",
|
|
51
|
+
alignLeft: "Alinhar à esquerda",
|
|
52
|
+
alignCenter: "Centralizar",
|
|
53
|
+
alignRight: "Alinhar à direita",
|
|
54
|
+
alignJustify: "Justificar",
|
|
55
|
+
bulletList: "Lista com marcadores",
|
|
56
|
+
orderedList: "Lista numerada",
|
|
57
|
+
indent: "Aumentar recuo",
|
|
58
|
+
outdent: "Diminuir recuo",
|
|
59
|
+
link: "Link",
|
|
60
|
+
linkUrl: "URL",
|
|
61
|
+
apply: "Aplicar",
|
|
62
|
+
remove: "Remover",
|
|
63
|
+
invalidUrl: "Informe um endereço http(s), mailto ou tel válido",
|
|
64
|
+
image: "Imagem",
|
|
65
|
+
video: "Vídeo",
|
|
66
|
+
blockquote: "Citação",
|
|
67
|
+
horizontalRule: "Linha horizontal",
|
|
68
|
+
clearFormat: "Limpar formatação",
|
|
69
|
+
undo: "Desfazer",
|
|
70
|
+
redo: "Refazer",
|
|
71
|
+
uploading: "Enviando"
|
|
72
|
+
};
|
|
73
|
+
const es = {
|
|
74
|
+
textStyle: "Estilo del texto",
|
|
75
|
+
paragraph: "Normal",
|
|
76
|
+
heading: "Título",
|
|
77
|
+
bold: "Negrita",
|
|
78
|
+
italic: "Cursiva",
|
|
79
|
+
underline: "Subrayado",
|
|
80
|
+
strike: "Tachado",
|
|
81
|
+
code: "Código",
|
|
82
|
+
textColor: "Color del texto",
|
|
83
|
+
highlight: "Resaltado",
|
|
84
|
+
noColor: "Sin color",
|
|
85
|
+
alignLeft: "Alinear a la izquierda",
|
|
86
|
+
alignCenter: "Centrar",
|
|
87
|
+
alignRight: "Alinear a la derecha",
|
|
88
|
+
alignJustify: "Justificar",
|
|
89
|
+
bulletList: "Lista con viñetas",
|
|
90
|
+
orderedList: "Lista numerada",
|
|
91
|
+
indent: "Aumentar sangría",
|
|
92
|
+
outdent: "Reducir sangría",
|
|
93
|
+
link: "Enlace",
|
|
94
|
+
linkUrl: "URL",
|
|
95
|
+
apply: "Aplicar",
|
|
96
|
+
remove: "Quitar",
|
|
97
|
+
invalidUrl: "Ingrese una dirección http(s), mailto o tel válida",
|
|
98
|
+
image: "Imagen",
|
|
99
|
+
video: "Vídeo",
|
|
100
|
+
blockquote: "Cita",
|
|
101
|
+
horizontalRule: "Línea horizontal",
|
|
102
|
+
clearFormat: "Borrar formato",
|
|
103
|
+
undo: "Deshacer",
|
|
104
|
+
redo: "Rehacer",
|
|
105
|
+
uploading: "Enviando"
|
|
106
|
+
};
|
|
107
|
+
const LOCALES = { en, pt, es };
|
|
108
|
+
/**
|
|
109
|
+
* Resolve os rótulos da toolbar: `en`, `pt` ou `es`, também com região (`pt-BR` usa o `pt`; desconhecido cai em
|
|
110
|
+
* `en`); `localeJson` (objeto ou JSON) sobrescreve chave a chave, e é a única fonte de `custom`. Só strings entram;
|
|
111
|
+
* JSON inválido é ignorado.
|
|
112
|
+
*/
|
|
113
|
+
function resolveWysiwygLabels(lang, localeJson) {
|
|
114
|
+
// Idioma base da tag (`pt-BR` e `pt_br` viram `pt`), buscado como chave própria do mapa.
|
|
115
|
+
const key = (lang || "en").trim().toLowerCase().split(/[-_]/)[0];
|
|
116
|
+
const base = Object.getOwnPropertyDescriptor(LOCALES, key)?.value ?? en;
|
|
117
|
+
let overrides = {};
|
|
118
|
+
if (typeof localeJson === "string" && localeJson.trim()) {
|
|
119
|
+
try {
|
|
120
|
+
overrides = JSON.parse(localeJson);
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
overrides = {};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if (localeJson && typeof localeJson === "object") {
|
|
127
|
+
overrides = localeJson;
|
|
128
|
+
}
|
|
129
|
+
const labels = { ...base };
|
|
130
|
+
for (const key of Object.keys(labels)) {
|
|
131
|
+
const value = overrides[key];
|
|
132
|
+
if (typeof value === "string" && value)
|
|
133
|
+
labels[key] = value;
|
|
134
|
+
}
|
|
135
|
+
return labels;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
exports.resolveWysiwygLabels = resolveWysiwygLabels;
|
|
139
|
+
//# sourceMappingURL=i18n.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.cjs","sources":["../src/i18n.ts"],"sourcesContent":["// Rótulos da toolbar. O pacote não depende de @tooark/core, então carrega o\n// próprio dicionário; `custom` recebe um JSON parcial por cima do inglês.\n\nimport type { ArkWysiwygLabels, ArkWysiwygLang } from \"./types\";\n\nconst en: ArkWysiwygLabels = {\n textStyle: \"Text style\",\n paragraph: \"Normal\",\n heading: \"Heading\",\n bold: \"Bold\",\n italic: \"Italic\",\n underline: \"Underline\",\n strike: \"Strikethrough\",\n code: \"Code\",\n textColor: \"Text color\",\n highlight: \"Highlight\",\n noColor: \"No color\",\n alignLeft: \"Align left\",\n alignCenter: \"Align center\",\n alignRight: \"Align right\",\n alignJustify: \"Justify\",\n bulletList: \"Bulleted list\",\n orderedList: \"Numbered list\",\n indent: \"Increase indent\",\n outdent: \"Decrease indent\",\n link: \"Link\",\n linkUrl: \"URL\",\n apply: \"Apply\",\n remove: \"Remove\",\n invalidUrl: \"Enter a valid http(s), mailto or tel address\",\n image: \"Image\",\n video: \"Video\",\n blockquote: \"Quote\",\n horizontalRule: \"Horizontal rule\",\n clearFormat: \"Clear formatting\",\n undo: \"Undo\",\n redo: \"Redo\",\n uploading: \"Uploading\"\n};\n\nconst pt: ArkWysiwygLabels = {\n textStyle: \"Estilo do texto\",\n paragraph: \"Normal\",\n heading: \"Título\",\n bold: \"Negrito\",\n italic: \"Itálico\",\n underline: \"Sublinhado\",\n strike: \"Tachado\",\n code: \"Código\",\n textColor: \"Cor do texto\",\n highlight: \"Marca-texto\",\n noColor: \"Sem cor\",\n alignLeft: \"Alinhar à esquerda\",\n alignCenter: \"Centralizar\",\n alignRight: \"Alinhar à direita\",\n alignJustify: \"Justificar\",\n bulletList: \"Lista com marcadores\",\n orderedList: \"Lista numerada\",\n indent: \"Aumentar recuo\",\n outdent: \"Diminuir recuo\",\n link: \"Link\",\n linkUrl: \"URL\",\n apply: \"Aplicar\",\n remove: \"Remover\",\n invalidUrl: \"Informe um endereço http(s), mailto ou tel válido\",\n image: \"Imagem\",\n video: \"Vídeo\",\n blockquote: \"Citação\",\n horizontalRule: \"Linha horizontal\",\n clearFormat: \"Limpar formatação\",\n undo: \"Desfazer\",\n redo: \"Refazer\",\n uploading: \"Enviando\"\n};\n\nconst es: ArkWysiwygLabels = {\n textStyle: \"Estilo del texto\",\n paragraph: \"Normal\",\n heading: \"Título\",\n bold: \"Negrita\",\n italic: \"Cursiva\",\n underline: \"Subrayado\",\n strike: \"Tachado\",\n code: \"Código\",\n textColor: \"Color del texto\",\n highlight: \"Resaltado\",\n noColor: \"Sin color\",\n alignLeft: \"Alinear a la izquierda\",\n alignCenter: \"Centrar\",\n alignRight: \"Alinear a la derecha\",\n alignJustify: \"Justificar\",\n bulletList: \"Lista con viñetas\",\n orderedList: \"Lista numerada\",\n indent: \"Aumentar sangría\",\n outdent: \"Reducir sangría\",\n link: \"Enlace\",\n linkUrl: \"URL\",\n apply: \"Aplicar\",\n remove: \"Quitar\",\n invalidUrl: \"Ingrese una dirección http(s), mailto o tel válida\",\n image: \"Imagen\",\n video: \"Vídeo\",\n blockquote: \"Cita\",\n horizontalRule: \"Línea horizontal\",\n clearFormat: \"Borrar formato\",\n undo: \"Deshacer\",\n redo: \"Rehacer\",\n uploading: \"Enviando\"\n};\n\nconst LOCALES: Record<Exclude<ArkWysiwygLang, \"custom\">, ArkWysiwygLabels> = { en, pt, es };\n\n/**\n * Resolve os rótulos da toolbar: `en`, `pt` ou `es`, também com região (`pt-BR` usa o `pt`; desconhecido cai em\n * `en`); `localeJson` (objeto ou JSON) sobrescreve chave a chave, e é a única fonte de `custom`. Só strings entram;\n * JSON inválido é ignorado.\n */\nexport function resolveWysiwygLabels(\n lang?: string | null,\n localeJson?: string | Partial<ArkWysiwygLabels> | null\n): ArkWysiwygLabels {\n // Idioma base da tag (`pt-BR` e `pt_br` viram `pt`), buscado como chave própria do mapa.\n const key = (lang || \"en\").trim().toLowerCase().split(/[-_]/)[0] as Exclude<ArkWysiwygLang, \"custom\">;\n const base: ArkWysiwygLabels = Object.getOwnPropertyDescriptor(LOCALES, key)?.value ?? en;\n let overrides: Partial<ArkWysiwygLabels> = {};\n if (typeof localeJson === \"string\" && localeJson.trim()) {\n try {\n overrides = JSON.parse(localeJson) as Partial<ArkWysiwygLabels>;\n } catch {\n overrides = {};\n }\n } else if (localeJson && typeof localeJson === \"object\") {\n overrides = localeJson;\n }\n const labels: ArkWysiwygLabels = { ...base };\n for (const key of Object.keys(labels) as Array<keyof ArkWysiwygLabels>) {\n const value = overrides[key];\n if (typeof value === \"string\" && value) labels[key] = value;\n }\n return labels;\n}\n"],"names":[],"mappings":";;AAAA;AACA;AAIA,MAAM,EAAE,GAAqB;AAC3B,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,SAAS,EAAE,QAAQ;AACnB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,SAAS,EAAE,YAAY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|
package/dist/i18n.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
// Rótulos da toolbar. O pacote não depende de @tooark/core, então carrega o
|
|
2
|
+
// próprio dicionário; `custom` recebe um JSON parcial por cima do inglês.
|
|
3
|
+
const en = {
|
|
4
|
+
textStyle: "Text style",
|
|
5
|
+
paragraph: "Normal",
|
|
6
|
+
heading: "Heading",
|
|
7
|
+
bold: "Bold",
|
|
8
|
+
italic: "Italic",
|
|
9
|
+
underline: "Underline",
|
|
10
|
+
strike: "Strikethrough",
|
|
11
|
+
code: "Code",
|
|
12
|
+
textColor: "Text color",
|
|
13
|
+
highlight: "Highlight",
|
|
14
|
+
noColor: "No color",
|
|
15
|
+
alignLeft: "Align left",
|
|
16
|
+
alignCenter: "Align center",
|
|
17
|
+
alignRight: "Align right",
|
|
18
|
+
alignJustify: "Justify",
|
|
19
|
+
bulletList: "Bulleted list",
|
|
20
|
+
orderedList: "Numbered list",
|
|
21
|
+
indent: "Increase indent",
|
|
22
|
+
outdent: "Decrease indent",
|
|
23
|
+
link: "Link",
|
|
24
|
+
linkUrl: "URL",
|
|
25
|
+
apply: "Apply",
|
|
26
|
+
remove: "Remove",
|
|
27
|
+
invalidUrl: "Enter a valid http(s), mailto or tel address",
|
|
28
|
+
image: "Image",
|
|
29
|
+
video: "Video",
|
|
30
|
+
blockquote: "Quote",
|
|
31
|
+
horizontalRule: "Horizontal rule",
|
|
32
|
+
clearFormat: "Clear formatting",
|
|
33
|
+
undo: "Undo",
|
|
34
|
+
redo: "Redo",
|
|
35
|
+
uploading: "Uploading"
|
|
36
|
+
};
|
|
37
|
+
const pt = {
|
|
38
|
+
textStyle: "Estilo do texto",
|
|
39
|
+
paragraph: "Normal",
|
|
40
|
+
heading: "Título",
|
|
41
|
+
bold: "Negrito",
|
|
42
|
+
italic: "Itálico",
|
|
43
|
+
underline: "Sublinhado",
|
|
44
|
+
strike: "Tachado",
|
|
45
|
+
code: "Código",
|
|
46
|
+
textColor: "Cor do texto",
|
|
47
|
+
highlight: "Marca-texto",
|
|
48
|
+
noColor: "Sem cor",
|
|
49
|
+
alignLeft: "Alinhar à esquerda",
|
|
50
|
+
alignCenter: "Centralizar",
|
|
51
|
+
alignRight: "Alinhar à direita",
|
|
52
|
+
alignJustify: "Justificar",
|
|
53
|
+
bulletList: "Lista com marcadores",
|
|
54
|
+
orderedList: "Lista numerada",
|
|
55
|
+
indent: "Aumentar recuo",
|
|
56
|
+
outdent: "Diminuir recuo",
|
|
57
|
+
link: "Link",
|
|
58
|
+
linkUrl: "URL",
|
|
59
|
+
apply: "Aplicar",
|
|
60
|
+
remove: "Remover",
|
|
61
|
+
invalidUrl: "Informe um endereço http(s), mailto ou tel válido",
|
|
62
|
+
image: "Imagem",
|
|
63
|
+
video: "Vídeo",
|
|
64
|
+
blockquote: "Citação",
|
|
65
|
+
horizontalRule: "Linha horizontal",
|
|
66
|
+
clearFormat: "Limpar formatação",
|
|
67
|
+
undo: "Desfazer",
|
|
68
|
+
redo: "Refazer",
|
|
69
|
+
uploading: "Enviando"
|
|
70
|
+
};
|
|
71
|
+
const es = {
|
|
72
|
+
textStyle: "Estilo del texto",
|
|
73
|
+
paragraph: "Normal",
|
|
74
|
+
heading: "Título",
|
|
75
|
+
bold: "Negrita",
|
|
76
|
+
italic: "Cursiva",
|
|
77
|
+
underline: "Subrayado",
|
|
78
|
+
strike: "Tachado",
|
|
79
|
+
code: "Código",
|
|
80
|
+
textColor: "Color del texto",
|
|
81
|
+
highlight: "Resaltado",
|
|
82
|
+
noColor: "Sin color",
|
|
83
|
+
alignLeft: "Alinear a la izquierda",
|
|
84
|
+
alignCenter: "Centrar",
|
|
85
|
+
alignRight: "Alinear a la derecha",
|
|
86
|
+
alignJustify: "Justificar",
|
|
87
|
+
bulletList: "Lista con viñetas",
|
|
88
|
+
orderedList: "Lista numerada",
|
|
89
|
+
indent: "Aumentar sangría",
|
|
90
|
+
outdent: "Reducir sangría",
|
|
91
|
+
link: "Enlace",
|
|
92
|
+
linkUrl: "URL",
|
|
93
|
+
apply: "Aplicar",
|
|
94
|
+
remove: "Quitar",
|
|
95
|
+
invalidUrl: "Ingrese una dirección http(s), mailto o tel válida",
|
|
96
|
+
image: "Imagen",
|
|
97
|
+
video: "Vídeo",
|
|
98
|
+
blockquote: "Cita",
|
|
99
|
+
horizontalRule: "Línea horizontal",
|
|
100
|
+
clearFormat: "Borrar formato",
|
|
101
|
+
undo: "Deshacer",
|
|
102
|
+
redo: "Rehacer",
|
|
103
|
+
uploading: "Enviando"
|
|
104
|
+
};
|
|
105
|
+
const LOCALES = { en, pt, es };
|
|
106
|
+
/**
|
|
107
|
+
* Resolve os rótulos da toolbar: `en`, `pt` ou `es`, também com região (`pt-BR` usa o `pt`; desconhecido cai em
|
|
108
|
+
* `en`); `localeJson` (objeto ou JSON) sobrescreve chave a chave, e é a única fonte de `custom`. Só strings entram;
|
|
109
|
+
* JSON inválido é ignorado.
|
|
110
|
+
*/
|
|
111
|
+
function resolveWysiwygLabels(lang, localeJson) {
|
|
112
|
+
// Idioma base da tag (`pt-BR` e `pt_br` viram `pt`), buscado como chave própria do mapa.
|
|
113
|
+
const key = (lang || "en").trim().toLowerCase().split(/[-_]/)[0];
|
|
114
|
+
const base = Object.getOwnPropertyDescriptor(LOCALES, key)?.value ?? en;
|
|
115
|
+
let overrides = {};
|
|
116
|
+
if (typeof localeJson === "string" && localeJson.trim()) {
|
|
117
|
+
try {
|
|
118
|
+
overrides = JSON.parse(localeJson);
|
|
119
|
+
}
|
|
120
|
+
catch {
|
|
121
|
+
overrides = {};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else if (localeJson && typeof localeJson === "object") {
|
|
125
|
+
overrides = localeJson;
|
|
126
|
+
}
|
|
127
|
+
const labels = { ...base };
|
|
128
|
+
for (const key of Object.keys(labels)) {
|
|
129
|
+
const value = overrides[key];
|
|
130
|
+
if (typeof value === "string" && value)
|
|
131
|
+
labels[key] = value;
|
|
132
|
+
}
|
|
133
|
+
return labels;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export { resolveWysiwygLabels };
|
|
137
|
+
//# sourceMappingURL=i18n.js.map
|
package/dist/i18n.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","sources":["../src/i18n.ts"],"sourcesContent":["// Rótulos da toolbar. O pacote não depende de @tooark/core, então carrega o\n// próprio dicionário; `custom` recebe um JSON parcial por cima do inglês.\n\nimport type { ArkWysiwygLabels, ArkWysiwygLang } from \"./types\";\n\nconst en: ArkWysiwygLabels = {\n textStyle: \"Text style\",\n paragraph: \"Normal\",\n heading: \"Heading\",\n bold: \"Bold\",\n italic: \"Italic\",\n underline: \"Underline\",\n strike: \"Strikethrough\",\n code: \"Code\",\n textColor: \"Text color\",\n highlight: \"Highlight\",\n noColor: \"No color\",\n alignLeft: \"Align left\",\n alignCenter: \"Align center\",\n alignRight: \"Align right\",\n alignJustify: \"Justify\",\n bulletList: \"Bulleted list\",\n orderedList: \"Numbered list\",\n indent: \"Increase indent\",\n outdent: \"Decrease indent\",\n link: \"Link\",\n linkUrl: \"URL\",\n apply: \"Apply\",\n remove: \"Remove\",\n invalidUrl: \"Enter a valid http(s), mailto or tel address\",\n image: \"Image\",\n video: \"Video\",\n blockquote: \"Quote\",\n horizontalRule: \"Horizontal rule\",\n clearFormat: \"Clear formatting\",\n undo: \"Undo\",\n redo: \"Redo\",\n uploading: \"Uploading\"\n};\n\nconst pt: ArkWysiwygLabels = {\n textStyle: \"Estilo do texto\",\n paragraph: \"Normal\",\n heading: \"Título\",\n bold: \"Negrito\",\n italic: \"Itálico\",\n underline: \"Sublinhado\",\n strike: \"Tachado\",\n code: \"Código\",\n textColor: \"Cor do texto\",\n highlight: \"Marca-texto\",\n noColor: \"Sem cor\",\n alignLeft: \"Alinhar à esquerda\",\n alignCenter: \"Centralizar\",\n alignRight: \"Alinhar à direita\",\n alignJustify: \"Justificar\",\n bulletList: \"Lista com marcadores\",\n orderedList: \"Lista numerada\",\n indent: \"Aumentar recuo\",\n outdent: \"Diminuir recuo\",\n link: \"Link\",\n linkUrl: \"URL\",\n apply: \"Aplicar\",\n remove: \"Remover\",\n invalidUrl: \"Informe um endereço http(s), mailto ou tel válido\",\n image: \"Imagem\",\n video: \"Vídeo\",\n blockquote: \"Citação\",\n horizontalRule: \"Linha horizontal\",\n clearFormat: \"Limpar formatação\",\n undo: \"Desfazer\",\n redo: \"Refazer\",\n uploading: \"Enviando\"\n};\n\nconst es: ArkWysiwygLabels = {\n textStyle: \"Estilo del texto\",\n paragraph: \"Normal\",\n heading: \"Título\",\n bold: \"Negrita\",\n italic: \"Cursiva\",\n underline: \"Subrayado\",\n strike: \"Tachado\",\n code: \"Código\",\n textColor: \"Color del texto\",\n highlight: \"Resaltado\",\n noColor: \"Sin color\",\n alignLeft: \"Alinear a la izquierda\",\n alignCenter: \"Centrar\",\n alignRight: \"Alinear a la derecha\",\n alignJustify: \"Justificar\",\n bulletList: \"Lista con viñetas\",\n orderedList: \"Lista numerada\",\n indent: \"Aumentar sangría\",\n outdent: \"Reducir sangría\",\n link: \"Enlace\",\n linkUrl: \"URL\",\n apply: \"Aplicar\",\n remove: \"Quitar\",\n invalidUrl: \"Ingrese una dirección http(s), mailto o tel válida\",\n image: \"Imagen\",\n video: \"Vídeo\",\n blockquote: \"Cita\",\n horizontalRule: \"Línea horizontal\",\n clearFormat: \"Borrar formato\",\n undo: \"Deshacer\",\n redo: \"Rehacer\",\n uploading: \"Enviando\"\n};\n\nconst LOCALES: Record<Exclude<ArkWysiwygLang, \"custom\">, ArkWysiwygLabels> = { en, pt, es };\n\n/**\n * Resolve os rótulos da toolbar: `en`, `pt` ou `es`, também com região (`pt-BR` usa o `pt`; desconhecido cai em\n * `en`); `localeJson` (objeto ou JSON) sobrescreve chave a chave, e é a única fonte de `custom`. Só strings entram;\n * JSON inválido é ignorado.\n */\nexport function resolveWysiwygLabels(\n lang?: string | null,\n localeJson?: string | Partial<ArkWysiwygLabels> | null\n): ArkWysiwygLabels {\n // Idioma base da tag (`pt-BR` e `pt_br` viram `pt`), buscado como chave própria do mapa.\n const key = (lang || \"en\").trim().toLowerCase().split(/[-_]/)[0] as Exclude<ArkWysiwygLang, \"custom\">;\n const base: ArkWysiwygLabels = Object.getOwnPropertyDescriptor(LOCALES, key)?.value ?? en;\n let overrides: Partial<ArkWysiwygLabels> = {};\n if (typeof localeJson === \"string\" && localeJson.trim()) {\n try {\n overrides = JSON.parse(localeJson) as Partial<ArkWysiwygLabels>;\n } catch {\n overrides = {};\n }\n } else if (localeJson && typeof localeJson === \"object\") {\n overrides = localeJson;\n }\n const labels: ArkWysiwygLabels = { ...base };\n for (const key of Object.keys(labels) as Array<keyof ArkWysiwygLabels>) {\n const value = overrides[key];\n if (typeof value === \"string\" && value) labels[key] = value;\n }\n return labels;\n}\n"],"names":[],"mappings":"AAAA;AACA;AAIA,MAAM,EAAE,GAAqB;AAC3B,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,SAAS,EAAE,QAAQ;AACnB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,MAAM,EAAE,eAAe;AACvB,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,SAAS,EAAE,WAAW;AACtB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,WAAW,EAAE,cAAc;AAC3B,IAAA,UAAU,EAAE,aAAa;AACzB,IAAA,YAAY,EAAE,SAAS;AACvB,IAAA,UAAU,EAAE,eAAe;AAC3B,IAAA,WAAW,EAAE,eAAe;AAC5B,IAAA,MAAM,EAAE,iBAAiB;AACzB,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,KAAK,E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ClC,IAAoB,EACpB,UAAsD,EAAA;;IAGtD,MAAM,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAsC;AACrG,IAAA,MAAM,IAAI,GAAqB,MAAM,CAAC,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,KAAK,IAAI,EAAE;IACzF,IAAI,SAAS,GAA8B,EAAE;IAC7C,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE;AACvD,QAAA,IAAI;AACF,YAAA,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAA8B;QACjE;AAAE,QAAA,MAAM;YACN,SAAS,GAAG,EAAE;QAChB;IACF;AAAO,SAAA,IAAI,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QACvD,SAAS,GAAG,UAAU;IACxB;AACA,IAAA,MAAM,MAAM,GAAqB,EAAE,GAAG,IAAI,EAAE;IAC5C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAkC,EAAE;AACtE,QAAA,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC;AAC5B,QAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK;AAAE,YAAA,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK;IAC7D;AACA,IAAA,OAAO,MAAM;AACf;;"}
|
package/dist/icons.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Ícones da toolbar (traços de 24x24 no estilo Lucide), constantes: o único
|
|
4
|
+
// HTML que o pacote injeta por innerHTML.
|
|
5
|
+
const svg = (body) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${body}</svg>`;
|
|
6
|
+
const ICONS = {
|
|
7
|
+
bold: svg('<path d="M6 4h8a4 4 0 0 1 0 8H6z"/><path d="M6 12h9a4 4 0 0 1 0 8H6z"/>'),
|
|
8
|
+
italic: svg('<line x1="19" y1="4" x2="10" y2="4"/><line x1="14" y1="20" x2="5" y2="20"/><line x1="15" y1="4" x2="9" y2="20"/>'),
|
|
9
|
+
underline: svg('<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" y1="20" x2="20" y2="20"/>'),
|
|
10
|
+
strike: svg('<path d="M16 4H9a3 3 0 0 0-2.83 4"/><path d="M14 12a4 4 0 0 1 0 8H6"/><line x1="4" y1="12" x2="20" y2="12"/>'),
|
|
11
|
+
code: svg('<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>'),
|
|
12
|
+
textColor: svg('<path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/>'),
|
|
13
|
+
highlight: svg('<path d="m9 11-6 6v3h9l3-3"/><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"/>'),
|
|
14
|
+
alignLeft: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="15" y1="12" x2="3" y2="12"/><line x1="17" y1="18" x2="3" y2="18"/>'),
|
|
15
|
+
alignCenter: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="17" y1="12" x2="7" y2="12"/><line x1="19" y1="18" x2="5" y2="18"/>'),
|
|
16
|
+
alignRight: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="12" x2="9" y2="12"/><line x1="21" y1="18" x2="7" y2="18"/>'),
|
|
17
|
+
alignJustify: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="12" x2="3" y2="12"/><line x1="21" y1="18" x2="3" y2="18"/>'),
|
|
18
|
+
bulletList: svg('<line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><circle cx="4" cy="6" r="1" fill="currentColor"/><circle cx="4" cy="12" r="1" fill="currentColor"/><circle cx="4" cy="18" r="1" fill="currentColor"/>'),
|
|
19
|
+
orderedList: svg('<line x1="10" y1="6" x2="21" y2="6"/><line x1="10" y1="12" x2="21" y2="12"/><line x1="10" y1="18" x2="21" y2="18"/><path d="M4 6h1v4"/><path d="M4 10h2"/><path d="M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"/>'),
|
|
20
|
+
indent: svg('<polyline points="3 8 7 12 3 16"/><line x1="21" y1="12" x2="11" y2="12"/><line x1="21" y1="6" x2="11" y2="6"/><line x1="21" y1="18" x2="11" y2="18"/>'),
|
|
21
|
+
outdent: svg('<polyline points="7 8 3 12 7 16"/><line x1="21" y1="12" x2="11" y2="12"/><line x1="21" y1="6" x2="11" y2="6"/><line x1="21" y1="18" x2="11" y2="18"/>'),
|
|
22
|
+
link: svg('<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>'),
|
|
23
|
+
image: svg('<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/>'),
|
|
24
|
+
video: svg('<rect x="2" y="4" width="14" height="16" rx="2"/><path d="m22 8-6 4 6 4V8z"/>'),
|
|
25
|
+
blockquote: svg('<path d="M10 11H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4"/><path d="M20 11h-4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4"/>'),
|
|
26
|
+
horizontalRule: svg('<line x1="4" y1="12" x2="20" y2="12"/>'),
|
|
27
|
+
clearFormat: svg('<path d="M4 7V4h16v3"/><path d="M5 20h6"/><path d="M13 4 8 20"/><path d="m15 15 5 5"/><path d="m20 15-5 5"/>'),
|
|
28
|
+
undo: svg('<path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/>'),
|
|
29
|
+
redo: svg('<path d="M21 7v6h-6"/><path d="M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7"/>'),
|
|
30
|
+
none: svg('<circle cx="12" cy="12" r="9"/><line x1="5.6" y1="5.6" x2="18.4" y2="18.4"/>')
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.ICONS = ICONS;
|
|
34
|
+
//# sourceMappingURL=icons.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.cjs","sources":["../src/icons.ts"],"sourcesContent":["// Ícones da toolbar (traços de 24x24 no estilo Lucide), constantes: o único\n// HTML que o pacote injeta por innerHTML.\n\nconst svg = (body: string): string =>\n `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">${body}</svg>`;\n\nexport const ICONS = {\n bold: svg('<path d=\"M6 4h8a4 4 0 0 1 0 8H6z\"/><path d=\"M6 12h9a4 4 0 0 1 0 8H6z\"/>'),\n italic: svg(\n '<line x1=\"19\" y1=\"4\" x2=\"10\" y2=\"4\"/><line x1=\"14\" y1=\"20\" x2=\"5\" y2=\"20\"/><line x1=\"15\" y1=\"4\" x2=\"9\" y2=\"20\"/>'\n ),\n underline: svg('<path d=\"M6 4v6a6 6 0 0 0 12 0V4\"/><line x1=\"4\" y1=\"20\" x2=\"20\" y2=\"20\"/>'),\n strike: svg(\n '<path d=\"M16 4H9a3 3 0 0 0-2.83 4\"/><path d=\"M14 12a4 4 0 0 1 0 8H6\"/><line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\"/>'\n ),\n code: svg('<polyline points=\"16 18 22 12 16 6\"/><polyline points=\"8 6 2 12 8 18\"/>'),\n textColor: svg('<path d=\"M4 20h16\"/><path d=\"m6 16 6-12 6 12\"/><path d=\"M8 12h8\"/>'),\n highlight: svg(\n '<path d=\"m9 11-6 6v3h9l3-3\"/><path d=\"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4\"/>'\n ),\n alignLeft: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"15\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"17\" y1=\"18\" x2=\"3\" y2=\"18\"/>'\n ),\n alignCenter: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"17\" y1=\"12\" x2=\"7\" y2=\"12\"/><line x1=\"19\" y1=\"18\" x2=\"5\" y2=\"18\"/>'\n ),\n alignRight: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"21\" y1=\"12\" x2=\"9\" y2=\"12\"/><line x1=\"21\" y1=\"18\" x2=\"7\" y2=\"18\"/>'\n ),\n alignJustify: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"21\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"21\" y1=\"18\" x2=\"3\" y2=\"18\"/>'\n ),\n bulletList: svg(\n '<line x1=\"8\" y1=\"6\" x2=\"21\" y2=\"6\"/><line x1=\"8\" y1=\"12\" x2=\"21\" y2=\"12\"/><line x1=\"8\" y1=\"18\" x2=\"21\" y2=\"18\"/><circle cx=\"4\" cy=\"6\" r=\"1\" fill=\"currentColor\"/><circle cx=\"4\" cy=\"12\" r=\"1\" fill=\"currentColor\"/><circle cx=\"4\" cy=\"18\" r=\"1\" fill=\"currentColor\"/>'\n ),\n orderedList: svg(\n '<line x1=\"10\" y1=\"6\" x2=\"21\" y2=\"6\"/><line x1=\"10\" y1=\"12\" x2=\"21\" y2=\"12\"/><line x1=\"10\" y1=\"18\" x2=\"21\" y2=\"18\"/><path d=\"M4 6h1v4\"/><path d=\"M4 10h2\"/><path d=\"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1\"/>'\n ),\n indent: svg(\n '<polyline points=\"3 8 7 12 3 16\"/><line x1=\"21\" y1=\"12\" x2=\"11\" y2=\"12\"/><line x1=\"21\" y1=\"6\" x2=\"11\" y2=\"6\"/><line x1=\"21\" y1=\"18\" x2=\"11\" y2=\"18\"/>'\n ),\n outdent: svg(\n '<polyline points=\"7 8 3 12 7 16\"/><line x1=\"21\" y1=\"12\" x2=\"11\" y2=\"12\"/><line x1=\"21\" y1=\"6\" x2=\"11\" y2=\"6\"/><line x1=\"21\" y1=\"18\" x2=\"11\" y2=\"18\"/>'\n ),\n link: svg(\n '<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>'\n ),\n image: svg(\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"/><polyline points=\"21 15 16 10 5 21\"/>'\n ),\n video: svg('<rect x=\"2\" y=\"4\" width=\"14\" height=\"16\" rx=\"2\"/><path d=\"m22 8-6 4 6 4V8z\"/>'),\n blockquote: svg(\n '<path d=\"M10 11H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4\"/><path d=\"M20 11h-4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4\"/>'\n ),\n horizontalRule: svg('<line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\"/>'),\n clearFormat: svg(\n '<path d=\"M4 7V4h16v3\"/><path d=\"M5 20h6\"/><path d=\"M13 4 8 20\"/><path d=\"m15 15 5 5\"/><path d=\"m20 15-5 5\"/>'\n ),\n undo: svg('<path d=\"M3 7v6h6\"/><path d=\"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13\"/>'),\n redo: svg('<path d=\"M21 7v6h-6\"/><path d=\"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7\"/>'),\n none: svg('<circle cx=\"12\" cy=\"12\" r=\"9\"/><line x1=\"5.6\" y1=\"5.6\" x2=\"18.4\" y2=\"18.4\"/>')\n} as const;\n\nexport type ArkWysiwygIcon = keyof typeof ICONS;\n"],"names":[],"mappings":";;AAAA;AACA;AAEA,MAAM,GAAG,GAAG,CAAC,IAAY,KACvB,CAAA,8IAAA,EAAiJ,IAAI,CAAA,MAAA,CAAQ;AAExJ,MAAM,KAAK,GAAG;AACnB,IAAA,IAAI,EAAE,GAAG,CAAC,yEAAyE,CAAC;AACpF,IAAA,MAAM,EAAE,GAAG,CACT,kHAAkH,CACnH;AACD,IAAA,SAAS,EAAE,GAAG,CAAC,2EAA2E,CAAC;AAC3F,IAAA,MAAM,EAAE,GAAG,CACT,8GAA8G,CAC/G;AACD,IAAA,IAAI,EAAE,GAAG,CAAC,yEAAyE,CAAC;AACpF,IAAA,SAAS,EAAE,GAAG,CAAC,oEAAoE,CAAC;AACpF,IAAA,SAAS,EAAE,GAAG,CACZ,uGAAuG,CACxG;AACD,IAAA,SAAS,EAAE,GAAG,CACZ,kHAAkH,CACnH;AACD,IAAA,WAAW,EAAE,GAAG,CACd,kHAAkH,CACnH;AACD,IAAA,UAAU,EAAE,GAAG,CACb,kHAAkH,CACnH;AACD,IAAA,YAAY,EAAE,GAAG,CACf,kHAAkH,CACnH;AACD,IAAA,UAAU,EAAE,GAAG,CACb,uQAAuQ,CACxQ;AACD,IAAA,WAAW,EAAE,GAAG,CACd,sMAAsM,CACvM;AACD,IAAA,MAAM,EAAE,GAAG,CACT,uJAAuJ,CACxJ;AACD,IAAA,OAAO,EAAE,GAAG,CACV,uJAAuJ,CACxJ;AACD,IAAA,IAAI,EAAE,GAAG,CACP,iJAAiJ,CAClJ;AACD,IAAA,KAAK,EAAE,GAAG,CACR,kIAAkI,CACnI;AACD,IAAA,KAAK,EAAE,GAAG,CAAC,+EAA+E,CAAC;AAC3F,IAAA,UAAU,EAAE,GAAG,CACb,uKAAuK,CACxK;AACD,IAAA,cAAc,EAAE,GAAG,CAAC,wCAAwC,CAAC;AAC7D,IAAA,WAAW,EAAE,GAAG,CACd,8GAA8G,CAC/G;AACD,IAAA,IAAI,EAAE,GAAG,CAAC,2EAA2E,CAAC;AACtF,IAAA,IAAI,EAAE,GAAG,CAAC,6EAA6E,CAAC;AACxF,IAAA,IAAI,EAAE,GAAG,CAAC,8EAA8E;;;"}
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Ícones da toolbar (traços de 24x24 no estilo Lucide), constantes: o único
|
|
2
|
+
// HTML que o pacote injeta por innerHTML.
|
|
3
|
+
const svg = (body) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${body}</svg>`;
|
|
4
|
+
const ICONS = {
|
|
5
|
+
bold: svg('<path d="M6 4h8a4 4 0 0 1 0 8H6z"/><path d="M6 12h9a4 4 0 0 1 0 8H6z"/>'),
|
|
6
|
+
italic: svg('<line x1="19" y1="4" x2="10" y2="4"/><line x1="14" y1="20" x2="5" y2="20"/><line x1="15" y1="4" x2="9" y2="20"/>'),
|
|
7
|
+
underline: svg('<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" y1="20" x2="20" y2="20"/>'),
|
|
8
|
+
strike: svg('<path d="M16 4H9a3 3 0 0 0-2.83 4"/><path d="M14 12a4 4 0 0 1 0 8H6"/><line x1="4" y1="12" x2="20" y2="12"/>'),
|
|
9
|
+
code: svg('<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>'),
|
|
10
|
+
textColor: svg('<path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/>'),
|
|
11
|
+
highlight: svg('<path d="m9 11-6 6v3h9l3-3"/><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"/>'),
|
|
12
|
+
alignLeft: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="15" y1="12" x2="3" y2="12"/><line x1="17" y1="18" x2="3" y2="18"/>'),
|
|
13
|
+
alignCenter: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="17" y1="12" x2="7" y2="12"/><line x1="19" y1="18" x2="5" y2="18"/>'),
|
|
14
|
+
alignRight: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="12" x2="9" y2="12"/><line x1="21" y1="18" x2="7" y2="18"/>'),
|
|
15
|
+
alignJustify: svg('<line x1="21" y1="6" x2="3" y2="6"/><line x1="21" y1="12" x2="3" y2="12"/><line x1="21" y1="18" x2="3" y2="18"/>'),
|
|
16
|
+
bulletList: svg('<line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><circle cx="4" cy="6" r="1" fill="currentColor"/><circle cx="4" cy="12" r="1" fill="currentColor"/><circle cx="4" cy="18" r="1" fill="currentColor"/>'),
|
|
17
|
+
orderedList: svg('<line x1="10" y1="6" x2="21" y2="6"/><line x1="10" y1="12" x2="21" y2="12"/><line x1="10" y1="18" x2="21" y2="18"/><path d="M4 6h1v4"/><path d="M4 10h2"/><path d="M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"/>'),
|
|
18
|
+
indent: svg('<polyline points="3 8 7 12 3 16"/><line x1="21" y1="12" x2="11" y2="12"/><line x1="21" y1="6" x2="11" y2="6"/><line x1="21" y1="18" x2="11" y2="18"/>'),
|
|
19
|
+
outdent: svg('<polyline points="7 8 3 12 7 16"/><line x1="21" y1="12" x2="11" y2="12"/><line x1="21" y1="6" x2="11" y2="6"/><line x1="21" y1="18" x2="11" y2="18"/>'),
|
|
20
|
+
link: svg('<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>'),
|
|
21
|
+
image: svg('<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/>'),
|
|
22
|
+
video: svg('<rect x="2" y="4" width="14" height="16" rx="2"/><path d="m22 8-6 4 6 4V8z"/>'),
|
|
23
|
+
blockquote: svg('<path d="M10 11H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4"/><path d="M20 11h-4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4"/>'),
|
|
24
|
+
horizontalRule: svg('<line x1="4" y1="12" x2="20" y2="12"/>'),
|
|
25
|
+
clearFormat: svg('<path d="M4 7V4h16v3"/><path d="M5 20h6"/><path d="M13 4 8 20"/><path d="m15 15 5 5"/><path d="m20 15-5 5"/>'),
|
|
26
|
+
undo: svg('<path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/>'),
|
|
27
|
+
redo: svg('<path d="M21 7v6h-6"/><path d="M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7"/>'),
|
|
28
|
+
none: svg('<circle cx="12" cy="12" r="9"/><line x1="5.6" y1="5.6" x2="18.4" y2="18.4"/>')
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { ICONS };
|
|
32
|
+
//# sourceMappingURL=icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.js","sources":["../src/icons.ts"],"sourcesContent":["// Ícones da toolbar (traços de 24x24 no estilo Lucide), constantes: o único\n// HTML que o pacote injeta por innerHTML.\n\nconst svg = (body: string): string =>\n `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">${body}</svg>`;\n\nexport const ICONS = {\n bold: svg('<path d=\"M6 4h8a4 4 0 0 1 0 8H6z\"/><path d=\"M6 12h9a4 4 0 0 1 0 8H6z\"/>'),\n italic: svg(\n '<line x1=\"19\" y1=\"4\" x2=\"10\" y2=\"4\"/><line x1=\"14\" y1=\"20\" x2=\"5\" y2=\"20\"/><line x1=\"15\" y1=\"4\" x2=\"9\" y2=\"20\"/>'\n ),\n underline: svg('<path d=\"M6 4v6a6 6 0 0 0 12 0V4\"/><line x1=\"4\" y1=\"20\" x2=\"20\" y2=\"20\"/>'),\n strike: svg(\n '<path d=\"M16 4H9a3 3 0 0 0-2.83 4\"/><path d=\"M14 12a4 4 0 0 1 0 8H6\"/><line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\"/>'\n ),\n code: svg('<polyline points=\"16 18 22 12 16 6\"/><polyline points=\"8 6 2 12 8 18\"/>'),\n textColor: svg('<path d=\"M4 20h16\"/><path d=\"m6 16 6-12 6 12\"/><path d=\"M8 12h8\"/>'),\n highlight: svg(\n '<path d=\"m9 11-6 6v3h9l3-3\"/><path d=\"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4\"/>'\n ),\n alignLeft: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"15\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"17\" y1=\"18\" x2=\"3\" y2=\"18\"/>'\n ),\n alignCenter: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"17\" y1=\"12\" x2=\"7\" y2=\"12\"/><line x1=\"19\" y1=\"18\" x2=\"5\" y2=\"18\"/>'\n ),\n alignRight: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"21\" y1=\"12\" x2=\"9\" y2=\"12\"/><line x1=\"21\" y1=\"18\" x2=\"7\" y2=\"18\"/>'\n ),\n alignJustify: svg(\n '<line x1=\"21\" y1=\"6\" x2=\"3\" y2=\"6\"/><line x1=\"21\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"21\" y1=\"18\" x2=\"3\" y2=\"18\"/>'\n ),\n bulletList: svg(\n '<line x1=\"8\" y1=\"6\" x2=\"21\" y2=\"6\"/><line x1=\"8\" y1=\"12\" x2=\"21\" y2=\"12\"/><line x1=\"8\" y1=\"18\" x2=\"21\" y2=\"18\"/><circle cx=\"4\" cy=\"6\" r=\"1\" fill=\"currentColor\"/><circle cx=\"4\" cy=\"12\" r=\"1\" fill=\"currentColor\"/><circle cx=\"4\" cy=\"18\" r=\"1\" fill=\"currentColor\"/>'\n ),\n orderedList: svg(\n '<line x1=\"10\" y1=\"6\" x2=\"21\" y2=\"6\"/><line x1=\"10\" y1=\"12\" x2=\"21\" y2=\"12\"/><line x1=\"10\" y1=\"18\" x2=\"21\" y2=\"18\"/><path d=\"M4 6h1v4\"/><path d=\"M4 10h2\"/><path d=\"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1\"/>'\n ),\n indent: svg(\n '<polyline points=\"3 8 7 12 3 16\"/><line x1=\"21\" y1=\"12\" x2=\"11\" y2=\"12\"/><line x1=\"21\" y1=\"6\" x2=\"11\" y2=\"6\"/><line x1=\"21\" y1=\"18\" x2=\"11\" y2=\"18\"/>'\n ),\n outdent: svg(\n '<polyline points=\"7 8 3 12 7 16\"/><line x1=\"21\" y1=\"12\" x2=\"11\" y2=\"12\"/><line x1=\"21\" y1=\"6\" x2=\"11\" y2=\"6\"/><line x1=\"21\" y1=\"18\" x2=\"11\" y2=\"18\"/>'\n ),\n link: svg(\n '<path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>'\n ),\n image: svg(\n '<rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\"/><polyline points=\"21 15 16 10 5 21\"/>'\n ),\n video: svg('<rect x=\"2\" y=\"4\" width=\"14\" height=\"16\" rx=\"2\"/><path d=\"m22 8-6 4 6 4V8z\"/>'),\n blockquote: svg(\n '<path d=\"M10 11H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4\"/><path d=\"M20 11h-4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6a4 4 0 0 1-4 4\"/>'\n ),\n horizontalRule: svg('<line x1=\"4\" y1=\"12\" x2=\"20\" y2=\"12\"/>'),\n clearFormat: svg(\n '<path d=\"M4 7V4h16v3\"/><path d=\"M5 20h6\"/><path d=\"M13 4 8 20\"/><path d=\"m15 15 5 5\"/><path d=\"m20 15-5 5\"/>'\n ),\n undo: svg('<path d=\"M3 7v6h6\"/><path d=\"M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13\"/>'),\n redo: svg('<path d=\"M21 7v6h-6\"/><path d=\"M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7\"/>'),\n none: svg('<circle cx=\"12\" cy=\"12\" r=\"9\"/><line x1=\"5.6\" y1=\"5.6\" x2=\"18.4\" y2=\"18.4\"/>')\n} as const;\n\nexport type ArkWysiwygIcon = keyof typeof ICONS;\n"],"names":[],"mappings":"AAAA;AACA;AAEA,MAAM,GAAG,GAAG,CAAC,IAAY,KACvB,CAAA,8IAAA,EAAiJ,IAAI,CAAA,MAAA,CAAQ;AAExJ,MAAM,KAAK,GAAG;AACnB,IAAA,IAAI,EAAE,GAAG,CAAC,yEAAyE,CAAC;AACpF,IAAA,MAAM,EAAE,G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