postext-citeproc 1.12.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/generated/styles.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,yEAAyE;AACzE,MAAM,CAAC,MAAM,MAAM,GAAqC;IACtD,8BAA8B,EAAE,mjYAAmjY;IACnlY,KAAK,EAAE,+4xFAA+4xF;IACt5xF,qBAAqB,EAAE,mx7KAAmx7K;IAC1y7K,4BAA4B,EAAE,6y2PAA6y2P;IAC302P,oDAAoD,EAAE,ktgBAAktgB;IACxwgB,6CAA6C,EAAE,wpgBAAwpgB;IACvsgB,gDAAgD,EAAE,0meAA0me;IAC5pe,oBAAoB,EAAE,6mMAA6mM;IACnoM,yBAAyB,EAAE,mqWAAmqW;IAC9rW,MAAM,EAAE,wglBAAwglB;IAChhlB,uBAAuB,EAAE,+kwBAA+kwB;IACxmwB,uBAAuB,EAAE,6zoBAA6zoB;IACt1oB,mBAAmB,EAAE,kmlBAAkmlB;IACvnlB,6BAA6B,EAAE,2k8CAA2k8C;IAC1m8C,QAAQ,EAAE,i0NAAi0N;IAC30N,QAAQ,EAAE,goxBAAgoxB;CAC3oxB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * postext-citeproc: citation formatting for Postext. Registers a CSL
3
+ * engine (citeproc-js) with the bundled styles and locales:
4
+ *
5
+ * ```ts
6
+ * import 'postext-citeproc/register';
7
+ * ```
8
+ *
9
+ * or, to choose what is bundled, `registerCitationEngine(createCiteprocEngine({ styles, locales }))`.
10
+ */
11
+ export { createCiteprocEngine, pickLocale, type CslSources } from './engine';
12
+ export { parseBibtex, latexToText, type BibtexIssue } from 'postext';
13
+ export { STYLE_CATALOG } from './catalog';
14
+ export { STYLES } from './generated/styles';
15
+ export { LOCALES } from './generated/locales';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * postext-citeproc: citation formatting for Postext. Registers a CSL
3
+ * engine (citeproc-js) with the bundled styles and locales:
4
+ *
5
+ * ```ts
6
+ * import 'postext-citeproc/register';
7
+ * ```
8
+ *
9
+ * or, to choose what is bundled, `registerCitationEngine(createCiteprocEngine({ styles, locales }))`.
10
+ */
11
+ export { createCiteprocEngine, pickLocale } from './engine';
12
+ export { parseBibtex, latexToText } from 'postext';
13
+ export { STYLE_CATALOG } from './catalog';
14
+ export { STYLES } from './generated/styles';
15
+ export { LOCALES } from './generated/locales';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAmB,MAAM,UAAU,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAoB,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ // Side effect: register the citeproc engine, with every bundled style and
2
+ // locale, as the engine Postext builds format citations with.
3
+ import { registerCitationEngine } from 'postext';
4
+ import { createCiteprocEngine } from './engine';
5
+ import { LOCALES } from './generated/locales';
6
+ import { STYLES } from './generated/styles';
7
+ registerCitationEngine(createCiteprocEngine({ styles: STYLES, locales: LOCALES }));
8
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8DAA8D;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "postext-citeproc",
3
+ "version": "1.12.0",
4
+ "description": "Citation formatting for Postext: CSL styles (APA, Chicago, MLA, IEEE, Vancouver, ISO 690, GB/T 7714, OSCOLA…) through citeproc-js, CSL locales and a BibTeX reader.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "homepage": "https://postext.dev/",
8
+ "keywords": [
9
+ "postext",
10
+ "citations",
11
+ "bibliography",
12
+ "csl",
13
+ "citeproc",
14
+ "bibtex",
15
+ "apa",
16
+ "gb7714",
17
+ "typesetting"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/drnachio/postext.git",
22
+ "directory": "packages/postext-citeproc"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "THIRD_PARTY_LICENSES.md"
27
+ ],
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./dist/index.js"
32
+ },
33
+ "./register": {
34
+ "types": "./dist/register.d.ts",
35
+ "default": "./dist/register.js"
36
+ },
37
+ "./catalog": {
38
+ "types": "./dist/catalog.d.ts",
39
+ "default": "./dist/catalog.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "sideEffects": [
44
+ "./dist/register.js"
45
+ ],
46
+ "peerDependencies": {
47
+ "postext": "^1.12.0"
48
+ },
49
+ "dependencies": {
50
+ "citeproc": "^2.4.63"
51
+ },
52
+ "devDependencies": {
53
+ "@postext/typescript-config": "0.0.0",
54
+ "@types/node": "^26.5.0",
55
+ "eslint": "^9.39.4",
56
+ "postext": "1.12.0",
57
+ "typescript": "^6.0.3",
58
+ "typescript-eslint": "^8.70.0",
59
+ "vitest": "^5.0.0"
60
+ },
61
+ "scripts": {
62
+ "embed": "node scripts/embed-csl.mjs",
63
+ "build": "rm -rf dist && node scripts/embed-csl.mjs && tsc",
64
+ "dev": "node scripts/embed-csl.mjs && tsc --watch",
65
+ "check-types": "node scripts/embed-csl.mjs && tsc --noEmit",
66
+ "lint": "eslint .",
67
+ "pretest": "node scripts/embed-csl.mjs",
68
+ "test": "vitest run"
69
+ }
70
+ }