@siladev/qalam 0.3.0 → 0.3.1

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,7 +1,15 @@
1
1
  import { MarkdownManager } from "@tiptap/markdown";
2
- import type { QalamDoc } from "../schema/types";
2
+ import type { QalamDoc, QalamDocResolved } from "../schema/types";
3
3
  export declare function createMarkdownManager(): MarkdownManager;
4
4
  export declare function docToMarkdown(doc: QalamDoc): string;
5
5
  export declare function markdownToDoc(markdown: string): QalamDoc;
6
+ export declare function resolvedDocToMarkdown(doc: QalamDocResolved): string;
7
+ /**
8
+ * Parse markdown containing resolved Quran data (>> payload) into QalamDocResolved.
9
+ * The resolved payload is trusted as-is — the consumer is responsible for ensuring
10
+ * consistency between attrs and resolved data. Use this for pre-compiled/cached content
11
+ * where quran data is not available. For source documents, use markdownToDoc() instead.
12
+ */
13
+ export declare function markdownToResolvedDoc(markdown: string): QalamDocResolved;
6
14
  export { MarkdownManager };
7
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAkBnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAuBhD,wBAAgB,qBAAqB,IAAI,eAAe,CAMvD;AASD,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAUxD;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/markdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAkBnD,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAuBlE,wBAAgB,qBAAqB,IAAI,eAAe,CAMvD;AASD,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAEnD;AAgBD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAKxD;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,gBAAgB,GAAG,MAAM,CAEnE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAIxE;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siladev/qalam",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Islamic content editor with Quran verse references",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",