@sendbird/actionbook-core 0.10.9 → 0.10.10

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { B as BlockNode, a as BlockquoteNode, b as BoldMark, L as ListItemNode, c as BulletListNode, C as CodeMark, D as DocumentNode, H as HardBreakNode, I as InlineNode, d as HeadingNode, e as HorizontalRuleNode, f as ItalicMark, J as JinjaIfBranch, g as JinjaIfBlockNode, h as JinjaIfInlineNode, i as JumpPointNode, j as LinkMark, N as NoteBlockNode, O as OrderedListNode, P as ParagraphNode, R as ResourceTagType, k as ResourceTagNode, S as StrikethroughMark, T as TableRowNode, l as TableNode, m as TableCellNode, M as Mark, n as TextNode, U as UnderlineMark, A as AstNode, o as NodePath, p as LintRule, q as LintContext, r as LintResult, s as LlmLintRule, t as LlmCompletionEndpoint, u as LintSection } from './types-BQ95zx4j.js';
2
- export { v as JSONContent, w as JUMP_POINT_ID_PATTERN, x as LintSeverity, y as RESOURCE_TAG_TYPES, z as fromProseMirrorJSON } from './types-BQ95zx4j.js';
1
+ import { B as BlockNode, a as BlockquoteNode, b as BoldMark, L as ListItemNode, c as BulletListNode, C as CodeMark, D as DocumentNode, H as HardBreakNode, I as InlineNode, d as HeadingNode, e as HorizontalRuleNode, f as ItalicMark, J as JinjaIfBranch, g as JinjaIfBlockNode, h as JinjaIfInlineNode, i as JumpPointNode, j as LinkMark, N as NoteBlockNode, O as OrderedListNode, P as ParagraphNode, R as ResourceTagType, k as ResourceTagNode, S as StrikethroughMark, T as TableRowNode, l as TableNode, m as TableCellNode, M as Mark, n as TextNode, U as UnderlineMark, A as AstNode, o as NodePath, p as LintRule, q as LintContext, r as LintResult, s as LlmLintRule, t as LlmCompletionEndpoint, u as LintSection } from './types-Bu4_nY3M.js';
2
+ export { v as JSONContent, w as JUMP_POINT_ID_PATTERN, x as LintSeverity, y as RESOURCE_TAG_TYPES, z as fromProseMirrorJSON } from './types-Bu4_nY3M.js';
3
3
  import { Root } from 'mdast';
4
4
 
5
5
  declare const bold: () => BoldMark;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/ast/types.ts
2
- var RESOURCE_TAG_TYPES = ["tool", "manual", "agent_message_template", "handoff", "time_diff", "time_difference"];
2
+ var RESOURCE_TAG_TYPES = ["tool", "manual", "agent_message_template", "handoff", "end_call", "time_diff", "time_difference"];
3
3
  var JUMP_POINT_ID_PATTERN = /^[\p{L}\p{N}_-]+$/u;
4
4
 
5
5
  // src/ast/builders.ts
@@ -2099,7 +2099,7 @@ function listItemWithTaskListItem(node, parent, state, info) {
2099
2099
 
2100
2100
  // src/markdown/plugins/resourceTag.ts
2101
2101
  var RESOURCE_TAG_RE = /\{\{([^:}]+):([^:}]*):([^}]+)\}\}/g;
2102
- var VALID_TYPES = /* @__PURE__ */ new Set(["tool", "manual", "agent_message_template", "handoff", "end_call", "time_diff"]);
2102
+ var VALID_TYPES = /* @__PURE__ */ new Set(["tool", "manual", "agent_message_template", "handoff", "end_call", "time_diff", "time_difference"]);
2103
2103
  function splitTextWithResourceTags(text2) {
2104
2104
  const results = [];
2105
2105
  let lastIndex = 0;
@@ -2186,7 +2186,8 @@ function convertInline(node, marks = [], depth = 0) {
2186
2186
  case "text":
2187
2187
  return [marks.length > 0 ? { type: "text", text: node.value, marks } : { type: "text", text: node.value }];
2188
2188
  case "strong": {
2189
- const childMarks = [...marks, { type: "bold" }];
2189
+ const alreadyBold = marks.some((m) => m.type === "bold");
2190
+ const childMarks = [...marks, { type: alreadyBold ? "italic" : "bold" }];
2190
2191
  return node.children.flatMap((child) => convertInline(child, childMarks, depth + 1));
2191
2192
  }
2192
2193
  case "emphasis": {
@@ -2993,6 +2994,12 @@ function serializeToMarkdown(doc2) {
2993
2994
  text: textHandler,
2994
2995
  link: linkHandler,
2995
2996
  listItem: listItemHandler,
2997
+ emphasis: ((node, _parent, state, info) => {
2998
+ const exit2 = state.enter("emphasis");
2999
+ const value = state.containerPhrasing(node, { ...info, before: "_", after: "_" });
3000
+ exit2();
3001
+ return `__${value}__`;
3002
+ }),
2996
3003
  ...resourceTagToMarkdown().handlers,
2997
3004
  ...jumpPointToMarkdown().handlers
2998
3005
  },
@@ -3436,7 +3443,7 @@ function invertOperation(doc2, op) {
3436
3443
  }
3437
3444
 
3438
3445
  // src/jinja/scanner.ts
3439
- var JINJA_PATTERN = /\{%\s*(if|elif|else|endif)\s*([^%]*?)\s*%\}/g;
3446
+ var JINJA_PATTERN = /\{%\s*(if|elif|else|endif)\s*(.*?)\s*%\}/g;
3440
3447
  function scanJinjaBlocks(text2) {
3441
3448
  const blocks = [];
3442
3449
  JINJA_PATTERN.lastIndex = 0;
@@ -3670,7 +3677,7 @@ function tokenize(input) {
3670
3677
  tokens.push({ type: "STRING", value: str });
3671
3678
  continue;
3672
3679
  }
3673
- if (/[0-9]/.test(input[i]) || input[i] === "-" && i + 1 < input.length && /[0-9]/.test(input[i + 1]) && (tokens.length === 0 || ["AND", "OR", "NOT", "EQ", "NEQ", "LT", "GT", "LTE", "GTE", "LPAREN", "IN", "IS"].includes(tokens[tokens.length - 1].type))) {
3680
+ if (/[0-9]/.test(input[i]) || input[i] === "-" && i + 1 < input.length && /[0-9]/.test(input[i + 1]) && (tokens.length === 0 || ["AND", "OR", "NOT", "EQ", "NEQ", "LT", "GT", "LTE", "GTE", "LPAREN", "IN", "IS", "COMMA"].includes(tokens[tokens.length - 1].type))) {
3674
3681
  let num = "";
3675
3682
  if (input[i] === "-") {
3676
3683
  num = "-";