@riebeckite/core 0.0.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.
Files changed (61) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +94 -0
  3. package/README_ja.md +75 -0
  4. package/dist/index.d.ts +61 -0
  5. package/dist/index.js +3040 -0
  6. package/dist/src/config.d.ts +8 -0
  7. package/dist/src/config_validation.d.ts +7 -0
  8. package/dist/src/content/affected_content.d.ts +7 -0
  9. package/dist/src/content/attachment.d.ts +7 -0
  10. package/dist/src/content/content_build_coordinator.d.ts +25 -0
  11. package/dist/src/content/content_build_state.d.ts +22 -0
  12. package/dist/src/content/content_build_state_store.d.ts +20 -0
  13. package/dist/src/content/content_change_set.d.ts +10 -0
  14. package/dist/src/content/content_collection.d.ts +78 -0
  15. package/dist/src/content/content_entry_reader.d.ts +12 -0
  16. package/dist/src/content/content_fingerprint.d.ts +3 -0
  17. package/dist/src/content/content_graph.d.ts +23 -0
  18. package/dist/src/content/content_index_builder.d.ts +7 -0
  19. package/dist/src/content/content_links.d.ts +2 -0
  20. package/dist/src/content/content_location.d.ts +2 -0
  21. package/dist/src/content/content_location_resolver.d.ts +18 -0
  22. package/dist/src/content/content_manager.d.ts +59 -0
  23. package/dist/src/content/content_metadata.d.ts +3 -0
  24. package/dist/src/content/content_query.d.ts +76 -0
  25. package/dist/src/content/content_source.d.ts +17 -0
  26. package/dist/src/content/file_system_content_source.d.ts +11 -0
  27. package/dist/src/content/graph_layout.d.ts +24 -0
  28. package/dist/src/content/image_extensions.d.ts +1 -0
  29. package/dist/src/content/manifest_builder.d.ts +6 -0
  30. package/dist/src/content/read_only_content_graph.d.ts +4 -0
  31. package/dist/src/observability.d.ts +70 -0
  32. package/dist/src/pipeline.d.ts +25 -0
  33. package/dist/src/plugin/plugin_cache.d.ts +22 -0
  34. package/dist/src/plugin/plugin_dependency.d.ts +2 -0
  35. package/dist/src/plugin/plugin_dependency_error.d.ts +20 -0
  36. package/dist/src/plugin/plugin_lifecycle.d.ts +11 -0
  37. package/dist/src/plugin/plugin_memo.d.ts +20 -0
  38. package/dist/src/plugin/plugin_runtime.d.ts +59 -0
  39. package/dist/src/types/config_validation.d.ts +7 -0
  40. package/dist/src/types/content_manifest.d.ts +87 -0
  41. package/dist/src/types/diagnostic.d.ts +15 -0
  42. package/dist/src/types/generated_output.d.ts +28 -0
  43. package/dist/src/types/plugin.d.ts +71 -0
  44. package/dist/src/types/plugin_asset.d.ts +13 -0
  45. package/dist/src/types/plugin_context.d.ts +85 -0
  46. package/dist/src/types/plugin_diagnostic.d.ts +5 -0
  47. package/dist/src/types/plugin_endpoint.d.ts +22 -0
  48. package/dist/src/types/plugin_head.d.ts +18 -0
  49. package/dist/src/types/plugin_pipeline.d.ts +20 -0
  50. package/dist/src/types/plugin_seo.d.ts +40 -0
  51. package/dist/src/types/post_content.d.ts +20 -0
  52. package/dist/src/types/publish_strategy.d.ts +19 -0
  53. package/dist/src/types/resolved_riebeckite_config.d.ts +26 -0
  54. package/dist/src/types/riebeckite_config.d.ts +23 -0
  55. package/dist/src/types/site_config.d.ts +14 -0
  56. package/dist/src/types/theme_config.d.ts +55 -0
  57. package/dist/src/utils/collections.d.ts +1 -0
  58. package/dist/src/utils/html.d.ts +2 -0
  59. package/dist/src/utils/tags.d.ts +1 -0
  60. package/dist/src/utils/text.d.ts +2 -0
  61. package/package.json +71 -0
@@ -0,0 +1 @@
1
+ export declare function uniqueStrings(values: string[]): string[];
@@ -0,0 +1,2 @@
1
+ export declare function escapeHtml(value: string): string;
2
+ export declare function escapeHtmlAttribute(value: string): string;
@@ -0,0 +1 @@
1
+ export declare function normalizeTag(raw: string): string | null;
@@ -0,0 +1,2 @@
1
+ export declare function stripHtml(html: string): string;
2
+ export declare function calculateReadingTime(html: string): number;
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@riebeckite/core",
3
+ "version": "0.0.1",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "source": "./index.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "LICENSE",
19
+ "README.md",
20
+ "README_ja.md",
21
+ "dist"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "dependencies": {
27
+ "@types/unist": "^3.0.3",
28
+ "extend": "^3.0.2",
29
+ "rehype-format": "^5.0.1",
30
+ "rehype-katex": "^7.0.1",
31
+ "rehype-raw": "^7.0.0",
32
+ "rehype-slug": "^6.0.0",
33
+ "rehype-stringify": "^10.0.1",
34
+ "remark-directive": "^4.0.0",
35
+ "remark-frontmatter": "^5.0.0",
36
+ "remark-gfm": "^4.0.1",
37
+ "remark-math": "^6.0.0",
38
+ "remark-parse": "^11.0.0",
39
+ "remark-rehype": "^11.1.2",
40
+ "unified": "^11.0.5",
41
+ "vfile": "^6.0.3",
42
+ "vfile-matter": "^5.0.1"
43
+ },
44
+ "devDependencies": {
45
+ "tsx": "^4.22.4"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/Rerurate514/riebeckite.git",
50
+ "directory": "packages/core"
51
+ },
52
+ "homepage": "https://github.com/Rerurate514/riebeckite#readme",
53
+ "bugs": {
54
+ "url": "https://github.com/Rerurate514/riebeckite/issues"
55
+ },
56
+ "description": "Core content pipeline, configuration, and extension APIs for Riebeckite.",
57
+ "keywords": [
58
+ "riebeckite",
59
+ "markdown",
60
+ "obsidian",
61
+ "static-site-generator"
62
+ ],
63
+ "engines": {
64
+ "node": "^20.19.0 || >=22.12.0"
65
+ },
66
+ "sideEffects": false,
67
+ "scripts": {
68
+ "build": "node ../../scripts/build_package.mjs",
69
+ "test": "node --import tsx --test \"test/*.test.ts\""
70
+ }
71
+ }