@siladev/qalam 0.2.1 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/blockquote-repeat.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,4FAyB3B,CAAC"}
1
+ {"version":3,"file":"blockquote-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/blockquote-repeat.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,4FA4E3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hadith-ref.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/hadith-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAMrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,SAAS,EAAE;YACT,eAAe,EAAE,CAAC,KAAK,CAAC,EAAE;gBACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAED,eAAO,MAAM,SAAS,gBAmIpB,CAAC"}
1
+ {"version":3,"file":"hadith-ref.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/hadith-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAOrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,SAAS,EAAE;YACT,eAAe,EAAE,CAAC,KAAK,CAAC,EAAE;gBACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAED,eAAO,MAAM,SAAS,gBAuLpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inline-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/inline-repeat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAQrD,eAAO,MAAM,YAAY,gBA2BvB,CAAC"}
1
+ {"version":3,"file":"inline-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/inline-repeat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AASrD,eAAO,MAAM,YAAY,gBAiEvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Find the closing brace for a string starting with `{`.
3
+ * Handles nested `{}` pairs and skips escaped `\}`. Returns the index of the closing `}`, or -1.
4
+ */
5
+ export declare function matchBalancedBraces(src: string): number;
6
+ /**
7
+ * Escape `}` inside brace-delimited mark content.
8
+ */
9
+ export declare function escapeBraces(s: string): string;
10
+ /**
11
+ * Unescape brace content.
12
+ */
13
+ export declare function unescapeBraces(s: string): string;
14
+ /**
15
+ * Escape bare pipe characters for markdown serialization.
16
+ * Does NOT double-escape existing backslashes (MarkedJS handles those).
17
+ */
18
+ export declare function escapePipe(s: string): string;
19
+ /**
20
+ * Split a string on unescaped ` | ` delimiters.
21
+ * Returns unescaped segments.
22
+ */
23
+ export declare function splitOnPipe(s: string): string[];
24
+ //# sourceMappingURL=markdown-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-utils.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/markdown-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAWvD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAmB/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/ordered-list.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,gBAAgB,EAAE;YAChB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,KAAK,UAAU,CAAC;SACnE,CAAC;KACH;CACF;AAED,eAAO,MAAM,gBAAgB,uFA4C3B,CAAC"}
1
+ {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/ordered-list.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,gBAAgB,EAAE;YAChB,kBAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,KAAK,UAAU,CAAC;SACnE,CAAC;KACH;CACF;AAED,eAAO,MAAM,gBAAgB,uFA+F3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/paragraph-repeat.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,0FA8B1B,CAAC"}
1
+ {"version":3,"file":"paragraph-repeat.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/paragraph-repeat.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,0FA6D1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"poem.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/poem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAIrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,IAAI,EAAE;YACJ,UAAU,EAAE,MAAM,UAAU,CAAC;SAC9B,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,gBA4CR,CAAC;AAEH,QAAA,MAAM,IAAI,gBAgDR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"poem.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/poem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAIrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,IAAI,EAAE;YACJ,UAAU,EAAE,MAAM,UAAU,CAAC;SAC9B,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,gBA4CR,CAAC;AAEH,QAAA,MAAM,IAAI,gBAiGR,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"prophetic-speech.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/prophetic-speech.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,eAAe,gBAgB1B,CAAC"}
1
+ {"version":3,"file":"prophetic-speech.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/prophetic-speech.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAGrD,eAAO,MAAM,eAAe,gBA4C1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAIrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,KAAK,EAAE;YACL,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE;gBAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;aAAE,KAAK,UAAU,CAAC;SAC5D,CAAC;KACH;CACF;AAED,eAAO,MAAM,KAAK,gBA0EhB,CAAC"}
1
+ {"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAKrD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,KAAK,EAAE;YACL,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE;gBAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;aAAE,KAAK,UAAU,CAAC;SAC5D,CAAC;KACH;CACF;AAED,eAAO,MAAM,KAAK,gBAmHhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"quran-ref.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/quran-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,YAAY,EAAE,OAAO,CAAC;CACvB;AAUD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,QAAQ,EAAE;YACR,cAAc,EAAE,CAAC,KAAK,EAAE;gBACtB,KAAK,EAAE,MAAM,CAAC;gBACd,SAAS,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;gBACnB,YAAY,CAAC,EAAE,OAAO,CAAC;gBACvB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;aAC3B,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAED,eAAO,MAAM,QAAQ,4BA2EnB,CAAC"}
1
+ {"version":3,"file":"quran-ref.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/quran-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAIrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,YAAY,EAAE,OAAO,CAAC;CACvB;AAUD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,QAAQ,EAAE;YACR,cAAc,EAAE,CAAC,KAAK,EAAE;gBACtB,KAAK,EAAE,MAAM,CAAC;gBACd,SAAS,EAAE,MAAM,CAAC;gBAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;gBACnB,YAAY,CAAC,EAAE,OAAO,CAAC;gBACvB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;aAC3B,KAAK,UAAU,CAAC;SAClB,CAAC;KACH;CACF;AAiDD,eAAO,MAAM,QAAQ,4BA8HnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Q as o, a as Q } from "../QalamEditor-sYrI0Izl.js";
1
+ import { Q as o, a as Q } from "../QalamEditor-BimErEqm.js";
2
2
  export {
3
3
  o as QalamEditor,
4
4
  Q as QuranRef
package/dist/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from "./editor";
3
3
  export * from "./renderer";
4
4
  export * from "./resolver";
5
5
  export * from "./quran";
6
+ export * from "./markdown";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}