@circlesac/mack 26.2.0 → 26.2.2

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.
@@ -116,7 +116,7 @@ export declare function section(text: string): SectionBlock;
116
116
  export declare function divider(): DividerBlock;
117
117
  export declare function header(text: string): HeaderBlock;
118
118
  export declare function image(url: string, altText: string, title?: string): ImageBlock;
119
- export declare function richTextList(items: RichTextElement[], style?: "bullet" | "ordered", indent?: number): RichTextBlock;
119
+ export declare function richTextList(items: RichTextElement[], style?: "bullet" | "ordered", indent?: number, offset?: number): RichTextBlock;
120
120
  export declare function richTextCode(code: string): RichTextBlock;
121
121
  export declare function richTextQuote(elements: RichTextSectionElement[]): RichTextBlock;
122
122
  export interface VideoBlockOptions {
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  exports.__esModule = true;
3
14
  exports.table = exports.video = exports.richTextQuote = exports.richTextCode = exports.richTextList = exports.image = exports.header = exports.divider = exports.section = void 0;
4
15
  var validation_1 = require("./validation");
@@ -50,18 +61,13 @@ function image(url, altText, title) {
50
61
  };
51
62
  }
52
63
  exports.image = image;
53
- function richTextList(items, style, indent) {
64
+ function richTextList(items, style, indent, offset) {
54
65
  if (style === void 0) { style = "bullet"; }
55
66
  if (indent === void 0) { indent = 0; }
56
67
  return {
57
68
  type: "rich_text",
58
69
  elements: [
59
- {
60
- type: "rich_text_list",
61
- style: style,
62
- indent: indent,
63
- elements: items
64
- }
70
+ __assign(__assign({ type: "rich_text_list", style: style, indent: indent }, (offset !== undefined && { offset: offset })), { elements: items })
65
71
  ]
66
72
  };
67
73
  }