@tailor-cms/ce-table-edit 0.0.2 → 0.0.3

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.cjs CHANGED
@@ -2198,7 +2198,7 @@ function removeCell(row, predicate = {}) {
2198
2198
  function addEmbed(embeds, cellId, tableId) {
2199
2199
  const embed = {
2200
2200
  id: cellId,
2201
- type: "TIPTAP_HTML",
2201
+ type: "JODIT_HTML",
2202
2202
  embedded: true,
2203
2203
  data: { tableId, cellId }
2204
2204
  };
@@ -3440,6 +3440,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3440
3440
  element: _ctx.cell,
3441
3441
  "is-disabled": _ctx.isDisabled,
3442
3442
  parent: _ctx.table,
3443
+ "show-placeholder": false,
3443
3444
  class: "table-cell",
3444
3445
  onSave: save
3445
3446
  }, null, 8, ["id", "element", "is-disabled", "parent"]),
@@ -3493,7 +3494,7 @@ const _export_sfc = (sfc, props) => {
3493
3494
  }
3494
3495
  return target;
3495
3496
  };
3496
- const TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a30da99a"]]);
3497
+ const TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-10d27021"]]);
3497
3498
  const _hoisted_1 = { class: "text-subtitle-2" };
3498
3499
  const _hoisted_2 = { class: "body" };
3499
3500
  const MIN_ROWS = 1;
@@ -3540,7 +3541,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3540
3541
  return find(rows.value, (row) => !!row.cells[cellId]);
3541
3542
  };
3542
3543
  const focusElement = (cell) => {
3543
- emit("focus", {}, { ...cell, type: "HTML" }, props.element);
3544
+ emit("focus", {}, { ...cell, type: "JODIT_HTML" }, props.element);
3544
3545
  };
3545
3546
  const addRow = (cellId, direction = Direction.After) => {
3546
3547
  const row = findRow(cellId);
@@ -3658,7 +3659,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3658
3659
  };
3659
3660
  }
3660
3661
  });
3661
- const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f953641"]]);
3662
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-82c55d1f"]]);
3662
3663
  const manifest = {
3663
3664
  ...index_default,
3664
3665
  Edit
package/dist/index.css CHANGED
@@ -1,24 +1,24 @@
1
- .table-cell[data-v-a30da99a] {
1
+ .table-cell[data-v-10d27021] {
2
2
  display: table-cell;
3
3
  border: 1px solid black;
4
4
  width: 312px;
5
5
  max-width: 312px;
6
6
  height: 100%;
7
7
  vertical-align: top;
8
- }.tce-accordion[data-v-9f953641] {
8
+ }.tce-accordion[data-v-82c55d1f] {
9
9
  text-align: left;
10
10
  margin: 1rem 0;
11
11
  }
12
- .body[data-v-9f953641] {
12
+ .body[data-v-82c55d1f] {
13
13
  overflow-y: auto;
14
14
  }
15
- .table[data-v-9f953641] {
15
+ .table[data-v-82c55d1f] {
16
16
  display: table;
17
17
  border-collapse: collapse;
18
18
  }
19
- .table .table-row[data-v-9f953641] {
19
+ .table .table-row[data-v-82c55d1f] {
20
20
  display: table-row;
21
21
  }
22
- .disabled[data-v-9f953641] {
22
+ .disabled[data-v-82c55d1f] {
23
23
  pointer-events: none;
24
24
  }
package/dist/index.js CHANGED
@@ -2196,7 +2196,7 @@ function removeCell(row, predicate = {}) {
2196
2196
  function addEmbed(embeds, cellId, tableId) {
2197
2197
  const embed = {
2198
2198
  id: cellId,
2199
- type: "TIPTAP_HTML",
2199
+ type: "JODIT_HTML",
2200
2200
  embedded: true,
2201
2201
  data: { tableId, cellId }
2202
2202
  };
@@ -3438,6 +3438,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3438
3438
  element: _ctx.cell,
3439
3439
  "is-disabled": _ctx.isDisabled,
3440
3440
  parent: _ctx.table,
3441
+ "show-placeholder": false,
3441
3442
  class: "table-cell",
3442
3443
  onSave: save
3443
3444
  }, null, 8, ["id", "element", "is-disabled", "parent"]),
@@ -3491,7 +3492,7 @@ const _export_sfc = (sfc, props) => {
3491
3492
  }
3492
3493
  return target;
3493
3494
  };
3494
- const TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-a30da99a"]]);
3495
+ const TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-10d27021"]]);
3495
3496
  const _hoisted_1 = { class: "text-subtitle-2" };
3496
3497
  const _hoisted_2 = { class: "body" };
3497
3498
  const MIN_ROWS = 1;
@@ -3538,7 +3539,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3538
3539
  return find(rows.value, (row) => !!row.cells[cellId]);
3539
3540
  };
3540
3541
  const focusElement = (cell) => {
3541
- emit("focus", {}, { ...cell, type: "HTML" }, props.element);
3542
+ emit("focus", {}, { ...cell, type: "JODIT_HTML" }, props.element);
3542
3543
  };
3543
3544
  const addRow = (cellId, direction = Direction.After) => {
3544
3545
  const row = findRow(cellId);
@@ -3656,7 +3657,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3656
3657
  };
3657
3658
  }
3658
3659
  });
3659
- const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9f953641"]]);
3660
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-82c55d1f"]]);
3660
3661
  const manifest = {
3661
3662
  ...index_default,
3662
3663
  Edit
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS table authoring component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.0.2",
6
+ "version": "0.0.3",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "typescript": "^5.7.3",
25
25
  "vite": "^6.1.0",
26
26
  "vue-tsc": "^2.2.0",
27
- "@tailor-cms/ce-table-manifest": "0.0.2"
27
+ "@tailor-cms/ce-table-manifest": "0.0.3"
28
28
  },
29
29
  "dependencies": {
30
30
  "lodash": "^4.17.21",