@publisle/adapter-core 0.2.1 → 0.2.3
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/async.d.ts +5 -0
- package/dist/async.d.ts.map +1 -0
- package/dist/async.js +28 -0
- package/dist/async.js.map +1 -0
- package/dist/publication-core.d.ts +76 -0
- package/dist/publication-core.d.ts.map +1 -0
- package/dist/publication-core.js +202 -0
- package/dist/publication-core.js.map +1 -0
- package/dist/publication.d.ts +4 -75
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js +8 -200
- package/dist/publication.js.map +1 -1
- package/dist/render-plan-core.d.ts +17 -0
- package/dist/render-plan-core.d.ts.map +1 -0
- package/dist/render-plan-core.js +981 -0
- package/dist/render-plan-core.js.map +1 -0
- package/dist/render-plan.d.ts +4 -14
- package/dist/render-plan.d.ts.map +1 -1
- package/dist/render-plan.js +6 -974
- package/dist/render-plan.js.map +1 -1
- package/package.json +9 -4
- package/src/async.ts +29 -0
- package/src/publication-core.ts +341 -0
- package/src/publication.ts +9 -339
- package/src/render-plan-core.ts +1426 -0
- package/src/render-plan.ts +10 -1416
package/dist/publication.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../src/publication.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../src/publication.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,IAAI,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACtE,cAAc,uBAAuB,CAAC;AACtC,sDAAsD;AACtD,MAAM,UAAU,kBAAkB,CAChC,GAAG,IAAgC;IAEnC,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAC3B,OAAO,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type PreparedDocument } from "@publisle/schema";
|
|
2
|
+
/** Install the shared renderer after a host explicitly loads math support. */
|
|
3
|
+
export declare function installMathRenderer(renderer: typeof import("katex").default): void;
|
|
4
|
+
import type { AdapterCompilerOptions, RenderPlan } from "./types.js";
|
|
5
|
+
/** Stable identity for a citation cluster, independent of object property order. */
|
|
6
|
+
export declare function citationKey(cluster: {
|
|
7
|
+
readonly items: readonly {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly locator?: string;
|
|
10
|
+
readonly label?: string;
|
|
11
|
+
readonly suppressAuthor?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
readonly prefix?: string;
|
|
14
|
+
readonly suffix?: string;
|
|
15
|
+
}): string;
|
|
16
|
+
export declare function createRenderPlan(document: PreparedDocument, options?: AdapterCompilerOptions): RenderPlan;
|
|
17
|
+
//# sourceMappingURL=render-plan-core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-plan-core.d.ts","sourceRoot":"","sources":["../src/render-plan-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,gBAAgB,EAMtB,MAAM,kBAAkB,CAAC;AAE1B,8EAA8E;AAC9E,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,OAAO,EAAE,OAAO,GACvC,IAAI,CAEN;AAED,OAAO,KAAK,EACV,sBAAsB,EAGtB,UAAU,EACX,mBAAmB;AAWpB,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,OAAO,EAAE;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS;QACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;KACnC,EAAE,CAAC;IACJ,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,MAAM,CAWT;AAurCD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,GAAE,sBAA2B,GACnC,UAAU,CA0BZ"}
|