@apexcura/ui-components 0.0.15-Beta85 → 0.0.15-Beta87

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/dist/index.js CHANGED
@@ -377,15 +377,50 @@ var CkEditor = (props) => {
377
377
  // src/Components/Editor.tsx
378
378
  var import_react10 = __toESM(require("react"));
379
379
  var import_ckeditor5_react = require("@ckeditor/ckeditor5-react");
380
- var import_ckeditor5_build_classic = __toESM(require("@ckeditor/ckeditor5-build-classic"));
380
+ var import_ckeditor5 = require("ckeditor5");
381
381
  var Editor2 = (props) => {
382
382
  const [ckEditor, setckEditor] = (0, import_react10.useState)(null);
383
383
  console.log(ckEditor);
384
384
  return /* @__PURE__ */ import_react10.default.createElement(
385
385
  import_ckeditor5_react.CKEditor,
386
386
  {
387
- editor: import_ckeditor5_build_classic.default,
388
- config: { placeholder: `Enter Text`, toolbar: ["bold", "italic", "forecolor", "alignleft", "aligncenter", "bulletedList", "numberedList"] },
387
+ editor: import_ckeditor5.ClassicEditor,
388
+ config: {
389
+ placeholder: `Enter Text`,
390
+ toolbar: {
391
+ items: [
392
+ "undo",
393
+ "redo",
394
+ "|",
395
+ "blocks",
396
+ "|",
397
+ "bold",
398
+ "italic",
399
+ "forecolor",
400
+ "|",
401
+ "alignleft",
402
+ "aligncenter",
403
+ "|",
404
+ "alignright",
405
+ "alignjustify",
406
+ "|",
407
+ "bullist",
408
+ "numlist",
409
+ "outdent",
410
+ "indent",
411
+ "|",
412
+ "removeformat",
413
+ "|",
414
+ "help"
415
+ ]
416
+ },
417
+ plugins: [
418
+ import_ckeditor5.Bold,
419
+ import_ckeditor5.Essentials,
420
+ import_ckeditor5.Italic,
421
+ import_ckeditor5.Paragraph
422
+ ]
423
+ },
389
424
  data: props.value || "",
390
425
  onReady: (editor) => {
391
426
  try {
package/dist/index.mjs CHANGED
@@ -307,7 +307,7 @@ var CkEditor = (props) => {
307
307
  // src/Components/Editor.tsx
308
308
  import React9, { useState as useState4 } from "react";
309
309
  import { CKEditor } from "@ckeditor/ckeditor5-react";
310
- import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
310
+ import { ClassicEditor, Bold, Essentials, Italic, Paragraph } from "ckeditor5";
311
311
  var Editor2 = (props) => {
312
312
  const [ckEditor, setckEditor] = useState4(null);
313
313
  console.log(ckEditor);
@@ -315,7 +315,42 @@ var Editor2 = (props) => {
315
315
  CKEditor,
316
316
  {
317
317
  editor: ClassicEditor,
318
- config: { placeholder: `Enter Text`, toolbar: ["bold", "italic", "forecolor", "alignleft", "aligncenter", "bulletedList", "numberedList"] },
318
+ config: {
319
+ placeholder: `Enter Text`,
320
+ toolbar: {
321
+ items: [
322
+ "undo",
323
+ "redo",
324
+ "|",
325
+ "blocks",
326
+ "|",
327
+ "bold",
328
+ "italic",
329
+ "forecolor",
330
+ "|",
331
+ "alignleft",
332
+ "aligncenter",
333
+ "|",
334
+ "alignright",
335
+ "alignjustify",
336
+ "|",
337
+ "bullist",
338
+ "numlist",
339
+ "outdent",
340
+ "indent",
341
+ "|",
342
+ "removeformat",
343
+ "|",
344
+ "help"
345
+ ]
346
+ },
347
+ plugins: [
348
+ Bold,
349
+ Essentials,
350
+ Italic,
351
+ Paragraph
352
+ ]
353
+ },
319
354
  data: props.value || "",
320
355
  onReady: (editor) => {
321
356
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta85",
3
+ "version": "0.0.15-Beta87",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",