@hanology/cham-browser 0.1.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.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/package.json +27 -0
- package/src/index.ts +20 -0
- package/tsconfig.json +16 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { Genre, Role, ChamContributor, ChamDate, PrimaryMeta, SecondaryMeta, ChamMeta, PieceSource, TextBlock, Marker, MarkerTable, SectionMeta, AnnotationSection, AnnotationKind, AnnotationTarget, AnnotationEntry, SkqsVariant, ChamDocument, ChamProject, BookLayer, BookAnnotationDefaults, VolumeConfig, BookConfig, BookMeta, BookData, LibraryScale, BookGenre, CrossRef, LibraryIndex, OutputRange, OutputAnnotation, OutputAnnotationLayer, OutputProseSection, OutputPiece, PieceContributor, } from '@hanology/cham/types';
|
|
2
|
+
export { isSecondaryMeta } from '@hanology/cham/types';
|
|
3
|
+
export { ChamParser, parse, ChamParseError } from '@hanology/cham/parser';
|
|
4
|
+
export { ChamSerializer, serialize } from '@hanology/cham/serializer';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { isSecondaryMeta } from '@hanology/cham/types';
|
|
2
|
+
// Parser & Serializer (pure TypeScript, no Node.js dependencies)
|
|
3
|
+
export { ChamParser, parse, ChamParseError } from '@hanology/cham/parser';
|
|
4
|
+
export { ChamSerializer, serialize } from '@hanology/cham/serializer';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,iEAAiE;AACjE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hanology/cham-browser",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CHAM — browser-compatible parser and serializer for Classical Han Annotated Markdown",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@hanology/cham": "*"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"typescript": "^6.0.0"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Types
|
|
2
|
+
export type {
|
|
3
|
+
Genre, Role, ChamContributor, ChamDate,
|
|
4
|
+
PrimaryMeta, SecondaryMeta, ChamMeta,
|
|
5
|
+
PieceSource, TextBlock, Marker, MarkerTable,
|
|
6
|
+
SectionMeta, AnnotationSection, AnnotationKind,
|
|
7
|
+
AnnotationTarget, AnnotationEntry,
|
|
8
|
+
SkqsVariant, ChamDocument, ChamProject,
|
|
9
|
+
BookLayer, BookAnnotationDefaults, VolumeConfig,
|
|
10
|
+
BookConfig, BookMeta, BookData, LibraryScale, BookGenre,
|
|
11
|
+
CrossRef, LibraryIndex,
|
|
12
|
+
OutputRange, OutputAnnotation, OutputAnnotationLayer,
|
|
13
|
+
OutputProseSection, OutputPiece, PieceContributor,
|
|
14
|
+
} from '@hanology/cham/types'
|
|
15
|
+
|
|
16
|
+
export { isSecondaryMeta } from '@hanology/cham/types'
|
|
17
|
+
|
|
18
|
+
// Parser & Serializer (pure TypeScript, no Node.js dependencies)
|
|
19
|
+
export { ChamParser, parse, ChamParseError } from '@hanology/cham/parser'
|
|
20
|
+
export { ChamSerializer, serialize } from '@hanology/cham/serializer'
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": "src",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src/**/*.ts"],
|
|
15
|
+
"exclude": ["node_modules", "dist"]
|
|
16
|
+
}
|