@tinacms/mdx 1.3.20 → 1.3.21

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.
@@ -38355,14 +38355,15 @@ var blockElement = (content3, field, imageCallback) => {
38355
38355
  const table = content3.props;
38356
38356
  return {
38357
38357
  type: "table",
38358
+ align: table.align,
38358
38359
  children: table.tableRows.map((tableRow) => {
38359
38360
  const tr2 = {
38360
38361
  type: "tableRow",
38361
- children: tableRow.tableCells.map(({ tableCell }) => {
38362
+ children: tableRow.tableCells.map(({ value }) => {
38362
38363
  return {
38363
38364
  type: "tableCell",
38364
38365
  children: eat2(
38365
- tableCell?.children?.at(0)?.children || [],
38366
+ value?.children?.at(0)?.children || [],
38366
38367
  field,
38367
38368
  imageCallback
38368
38369
  )
@@ -39024,14 +39025,15 @@ var blockElement2 = (content3, field, imageCallback) => {
39024
39025
  const table = content3.props;
39025
39026
  return {
39026
39027
  type: "table",
39028
+ align: table.align,
39027
39029
  children: table.tableRows.map((tableRow) => {
39028
39030
  const tr2 = {
39029
39031
  type: "tableRow",
39030
- children: tableRow.tableCells.map(({ tableCell }) => {
39032
+ children: tableRow.tableCells.map(({ value }) => {
39031
39033
  return {
39032
39034
  type: "tableCell",
39033
39035
  children: eat3(
39034
- tableCell?.children?.at(0)?.children || [],
39036
+ value?.children?.at(0)?.children || [],
39035
39037
  field,
39036
39038
  imageCallback
39037
39039
  )
@@ -46367,11 +46369,12 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
46367
46369
  children: [{ type: "text", text: "" }],
46368
46370
  name: "table",
46369
46371
  props: {
46372
+ align: content4.align?.filter((item) => !!item),
46370
46373
  tableRows: content4.children.map((child) => {
46371
46374
  return {
46372
46375
  tableCells: child.children.map((child2) => {
46373
46376
  return {
46374
- tableCell: {
46377
+ value: {
46375
46378
  type: "root",
46376
46379
  children: [
46377
46380
  {
package/dist/index.js CHANGED
@@ -40244,15 +40244,16 @@ var blockElement = (content3, field, imageCallback) => {
40244
40244
  const table = content3.props;
40245
40245
  return {
40246
40246
  type: "table",
40247
+ align: table.align,
40247
40248
  children: table.tableRows.map((tableRow) => {
40248
40249
  const tr2 = {
40249
40250
  type: "tableRow",
40250
- children: tableRow.tableCells.map(({ tableCell }) => {
40251
+ children: tableRow.tableCells.map(({ value }) => {
40251
40252
  var _a3, _b;
40252
40253
  return {
40253
40254
  type: "tableCell",
40254
40255
  children: eat2(
40255
- ((_b = (_a3 = tableCell == null ? void 0 : tableCell.children) == null ? void 0 : _a3.at(0)) == null ? void 0 : _b.children) || [],
40256
+ ((_b = (_a3 = value == null ? void 0 : value.children) == null ? void 0 : _a3.at(0)) == null ? void 0 : _b.children) || [],
40256
40257
  field,
40257
40258
  imageCallback
40258
40259
  )
@@ -40919,15 +40920,16 @@ var blockElement2 = (content3, field, imageCallback) => {
40919
40920
  const table = content3.props;
40920
40921
  return {
40921
40922
  type: "table",
40923
+ align: table.align,
40922
40924
  children: table.tableRows.map((tableRow) => {
40923
40925
  const tr2 = {
40924
40926
  type: "tableRow",
40925
- children: tableRow.tableCells.map(({ tableCell }) => {
40927
+ children: tableRow.tableCells.map(({ value }) => {
40926
40928
  var _a3, _b;
40927
40929
  return {
40928
40930
  type: "tableCell",
40929
40931
  children: eat3(
40930
- ((_b = (_a3 = tableCell == null ? void 0 : tableCell.children) == null ? void 0 : _a3.at(0)) == null ? void 0 : _b.children) || [],
40932
+ ((_b = (_a3 = value == null ? void 0 : value.children) == null ? void 0 : _a3.at(0)) == null ? void 0 : _b.children) || [],
40931
40933
  field,
40932
40934
  imageCallback
40933
40935
  )
@@ -48262,6 +48264,7 @@ var directiveElement = (node, field, imageCallback, raw) => {
48262
48264
  var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
48263
48265
  const mdxJsxElement2 = skipMDXProcess ? (node) => node : mdxJsxElement;
48264
48266
  const content3 = (content4) => {
48267
+ var _a3;
48265
48268
  switch (content4.type) {
48266
48269
  case "table": {
48267
48270
  return {
@@ -48269,11 +48272,12 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
48269
48272
  children: [{ type: "text", text: "" }],
48270
48273
  name: "table",
48271
48274
  props: {
48275
+ align: (_a3 = content4.align) == null ? void 0 : _a3.filter((item) => !!item),
48272
48276
  tableRows: content4.children.map((child) => {
48273
48277
  return {
48274
48278
  tableCells: child.children.map((child2) => {
48275
48279
  return {
48276
- tableCell: {
48280
+ value: {
48277
48281
  type: "root",
48278
48282
  children: [
48279
48283
  {
package/dist/index.mjs CHANGED
@@ -40227,14 +40227,15 @@ var blockElement = (content3, field, imageCallback) => {
40227
40227
  const table = content3.props;
40228
40228
  return {
40229
40229
  type: "table",
40230
+ align: table.align,
40230
40231
  children: table.tableRows.map((tableRow) => {
40231
40232
  const tr2 = {
40232
40233
  type: "tableRow",
40233
- children: tableRow.tableCells.map(({ tableCell }) => {
40234
+ children: tableRow.tableCells.map(({ value }) => {
40234
40235
  return {
40235
40236
  type: "tableCell",
40236
40237
  children: eat2(
40237
- tableCell?.children?.at(0)?.children || [],
40238
+ value?.children?.at(0)?.children || [],
40238
40239
  field,
40239
40240
  imageCallback
40240
40241
  )
@@ -40896,14 +40897,15 @@ var blockElement2 = (content3, field, imageCallback) => {
40896
40897
  const table = content3.props;
40897
40898
  return {
40898
40899
  type: "table",
40900
+ align: table.align,
40899
40901
  children: table.tableRows.map((tableRow) => {
40900
40902
  const tr2 = {
40901
40903
  type: "tableRow",
40902
- children: tableRow.tableCells.map(({ tableCell }) => {
40904
+ children: tableRow.tableCells.map(({ value }) => {
40903
40905
  return {
40904
40906
  type: "tableCell",
40905
40907
  children: eat3(
40906
- tableCell?.children?.at(0)?.children || [],
40908
+ value?.children?.at(0)?.children || [],
40907
40909
  field,
40908
40910
  imageCallback
40909
40911
  )
@@ -48239,11 +48241,12 @@ var remarkToSlate = (root3, field, imageCallback, raw, skipMDXProcess) => {
48239
48241
  children: [{ type: "text", text: "" }],
48240
48242
  name: "table",
48241
48243
  props: {
48244
+ align: content4.align?.filter((item) => !!item),
48242
48245
  tableRows: content4.children.map((child) => {
48243
48246
  return {
48244
48247
  tableCells: child.children.map((child2) => {
48245
48248
  return {
48246
- tableCell: {
48249
+ value: {
48247
48250
  type: "root",
48248
48251
  children: [
48249
48252
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/mdx",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
4
4
  "typings": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "browser": "dist/index.browser.mjs",