@lpdfio/lpdf 0.29.0 → 0.30.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/dist/L.d.ts CHANGED
@@ -32,19 +32,24 @@ export declare const L: Readonly<{
32
32
  document: (attrs: import("./kit").DocumentAttr | null, nodes?: import("./kit").LpdfSectionNode[]) => PdfDocument;
33
33
  section: (attrs: import("./kit").SectionAttr | null, nodes?: import("./kit").LpdfSectionChild[]) => import("./kit").LpdfSectionNode;
34
34
  layout: (attrs: import("./attrs").LayoutAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./kit").LpdfLayoutBlock;
35
+ markdown: (attrs: import("./attrs").MarkdownAttr | null, nodes?: (import("./markdown").LpdfMarkdownStylesNode | import("./markdown").LpdfMarkdownContentNode)[]) => import("./markdown").LpdfMarkdownNode;
35
36
  assets: (attrs: DocumentAssets) => DocumentAssets;
36
37
  tokens: (attrs: DocumentTokens) => DocumentTokens;
37
38
  column: (attrs: import("./attrs").ColumnAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfContainerNode;
38
39
  row: (attrs: import("./attrs").RowAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfContainerNode;
39
40
  grid: (attrs: import("./attrs").GridAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfContainerNode;
41
+ list: (attrs: import("./attrs").ListAttr | null, nodes?: import("./layout").LpdfLiNode[]) => import("./layout").LpdfListNode;
42
+ li: (attrs: import("./attrs").LiAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfLiNode;
40
43
  frame: (attrs: import("./attrs").FrameAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfContainerNode;
41
44
  link: (attrs: import("./attrs").LinkAttr, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfContainerNode;
42
45
  table: (attrs: import("./attrs").TableAttr, nodes?: (import("./layout").LpdfTheadNode | import("./layout").LpdfTrNode)[]) => import("./layout").LpdfTableNode;
43
46
  thead: (attrs: import("./attrs").TheadAttr | null, nodes?: import("./layout").LpdfTdNode[]) => import("./layout").LpdfTheadNode;
44
47
  tr: (attrs: import("./attrs").TrAttr | null, nodes?: import("./layout").LpdfTdNode[]) => import("./layout").LpdfTrNode;
45
48
  td: (attrs: import("./attrs").TdAttr | null, nodes?: import("./layout").LpdfNode[]) => import("./layout").LpdfTdNode;
46
- text: (attrs: import("./attrs").TextAttr | null, nodes?: (string | import("./layout").LpdfSpanNode | import("./layout").LpdfFnNode)[]) => import("./layout").LpdfTextNode;
49
+ text: (attrs: import("./attrs").TextAttr | null, nodes?: (string | import("./layout").LpdfSpanNode | import("./layout").LpdfCodeSpanNode | import("./layout").LpdfFnNode)[]) => import("./layout").LpdfTextNode;
50
+ code: (attrs: import("./attrs").CodeAttr | null, nodes?: (string | import("./layout").LpdfSpanNode)[]) => import("./layout").LpdfCodeNode;
47
51
  span: (attrs: import("./attrs").SpanAttr | null, nodes?: string[]) => import("./layout").LpdfSpanNode;
52
+ codeSpan: (attrs: import("./attrs").CodeSpanAttr | null, nodes?: string[]) => import("./layout").LpdfCodeSpanNode;
48
53
  fn: (attrs: null, nodes?: (string | import("./layout").LpdfSpanNode)[]) => import("./layout").LpdfFnNode;
49
54
  divider: (attrs?: import("./attrs").DividerAttr | null) => import("./layout").LpdfDividerNode;
50
55
  img: (attrs: import("./attrs").ImgAttr) => import("./layout").LpdfImgNode;
@@ -59,7 +64,7 @@ export declare const L: Readonly<{
59
64
  ellipse: (attrs: import("./attrs").EllipseAttr) => import("./canvas").LpdfCanvasEllipseNode;
60
65
  circle: (attrs: import("./attrs").CircleAttr) => import("./canvas").LpdfCanvasCircleNode;
61
66
  path: (attrs: import("./attrs").PathAttr) => import("./canvas").LpdfCanvasPathNode;
62
- textAt: (attrs: import("./attrs").TextAtAttr, nodes?: (string | import("./layout").LpdfSpanNode)[]) => import("./canvas").LpdfCanvasTextAtNode;
67
+ textAt: (attrs: import("./attrs").TextAtAttr, nodes?: (string | import("./layout").LpdfSpanNode | import("./layout").LpdfCodeSpanNode)[]) => import("./canvas").LpdfCanvasTextAtNode;
63
68
  imgAt: (attrs: import("./attrs").ImgAtAttr) => import("./canvas").LpdfCanvasImgAtNode;
64
69
  barcodeAt: (attrs: import("./attrs").BarcodeAtAttr) => import("./canvas").LpdfCanvasBarcodeAtNode;
65
70
  }>;
package/dist/L.js CHANGED
@@ -4,6 +4,7 @@ exports.L = exports.NoAttr = void 0;
4
4
  const kit_1 = require("./kit");
5
5
  const layout_1 = require("./layout");
6
6
  const canvas_1 = require("./canvas");
7
+ const markdown_1 = require("./markdown");
7
8
  const engine_1 = require("./engine");
8
9
  const kit_to_xml_1 = require("./kit-to-xml");
9
10
  /** Pass as `attrs` when a node has no attributes. Equivalent to `null`. */
@@ -39,12 +40,15 @@ exports.L = Object.freeze({
39
40
  document: kit_1.LpdfKit.document,
40
41
  section: kit_1.LpdfKit.section,
41
42
  layout: kit_1.LpdfKit.layout,
43
+ markdown: markdown_1.LpdfMarkdown.markdown,
42
44
  assets: (attrs) => attrs,
43
45
  tokens: (attrs) => attrs,
44
46
  // ── Layout ────────────────────────────────────────────────────────────────
45
47
  column: layout_1.LpdfLayout.column,
46
48
  row: layout_1.LpdfLayout.row,
47
49
  grid: layout_1.LpdfLayout.grid,
50
+ list: layout_1.LpdfLayout.list,
51
+ li: layout_1.LpdfLayout.li,
48
52
  frame: layout_1.LpdfLayout.frame,
49
53
  link: layout_1.LpdfLayout.link,
50
54
  table: layout_1.LpdfLayout.table,
@@ -52,7 +56,9 @@ exports.L = Object.freeze({
52
56
  tr: layout_1.LpdfLayout.tr,
53
57
  td: layout_1.LpdfLayout.td,
54
58
  text: layout_1.LpdfLayout.text,
59
+ code: layout_1.LpdfLayout.code,
55
60
  span: layout_1.LpdfLayout.span,
61
+ codeSpan: layout_1.LpdfLayout.codeSpan,
56
62
  fn: layout_1.LpdfLayout.fn,
57
63
  divider: layout_1.LpdfLayout.divider,
58
64
  img: layout_1.LpdfLayout.img,