boltdocs 1.4.0 → 1.5.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.
Files changed (39) hide show
  1. package/dist/{SearchDialog-FBNGKRPK.mjs → SearchDialog-5ISK64QY.mjs} +1 -1
  2. package/dist/{SearchDialog-O3V36MXA.css → SearchDialog-CEVPEMT3.css} +54 -5
  3. package/dist/{cache-GQHF6BXI.mjs → cache-KNL5B4EE.mjs} +1 -1
  4. package/dist/{chunk-CYBWLFOG.mjs → chunk-FFBNU6IJ.mjs} +2 -1
  5. package/dist/{chunk-D7YBQG6H.mjs → chunk-FMQ4HRKZ.mjs} +311 -133
  6. package/dist/client/index.css +54 -5
  7. package/dist/client/index.d.mts +3 -3
  8. package/dist/client/index.d.ts +3 -3
  9. package/dist/client/index.js +624 -475
  10. package/dist/client/index.mjs +2 -4
  11. package/dist/client/ssr.css +54 -5
  12. package/dist/client/ssr.d.mts +1 -1
  13. package/dist/client/ssr.d.ts +1 -1
  14. package/dist/client/ssr.js +544 -395
  15. package/dist/client/ssr.mjs +1 -1
  16. package/dist/{config-BD5ZHz15.d.mts → config-DkZg5aCf.d.mts} +2 -0
  17. package/dist/{config-BD5ZHz15.d.ts → config-DkZg5aCf.d.ts} +2 -0
  18. package/dist/node/index.d.mts +2 -2
  19. package/dist/node/index.d.ts +2 -2
  20. package/dist/node/index.js +24 -17
  21. package/dist/node/index.mjs +25 -19
  22. package/dist/{types-CvrzTbEX.d.mts → types-DGIo1VKD.d.mts} +2 -0
  23. package/dist/{types-CvrzTbEX.d.ts → types-DGIo1VKD.d.ts} +2 -0
  24. package/package.json +1 -1
  25. package/src/client/app/index.tsx +2 -12
  26. package/src/client/app/preload.tsx +3 -1
  27. package/src/client/theme/components/CodeBlock/CodeBlock.tsx +0 -11
  28. package/src/client/theme/styles/markdown.css +1 -5
  29. package/src/client/theme/ui/Link/Link.tsx +156 -18
  30. package/src/client/theme/ui/Link/LinkPreview.tsx +64 -0
  31. package/src/client/theme/ui/Link/link-preview.css +64 -0
  32. package/src/client/types.ts +2 -0
  33. package/src/node/config.ts +15 -6
  34. package/src/node/mdx.ts +11 -4
  35. package/src/node/routes/parser.ts +24 -2
  36. package/src/node/ssg/index.ts +1 -10
  37. package/src/node/utils.ts +4 -1
  38. package/dist/CodeBlock-QYIKJMEB.mjs +0 -7
  39. package/dist/chunk-KS5B3O6W.mjs +0 -43
@@ -1,5 +1,58 @@
1
1
  @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";
2
2
 
3
+ /* src/client/theme/ui/Link/link-preview.css */
4
+ .boltdocs-link-preview {
5
+ position: fixed;
6
+ z-index: 1000;
7
+ width: 320px;
8
+ padding: 1rem;
9
+ background-color: var(--ld-navbar-bg);
10
+ backdrop-filter: blur(var(--ld-navbar-blur));
11
+ -webkit-backdrop-filter: blur(var(--ld-navbar-blur));
12
+ border: 1px solid var(--ld-border-subtle);
13
+ border-radius: var(--ld-radius-md);
14
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
15
+ pointer-events: none;
16
+ opacity: 0;
17
+ transform: translateY(10px) scale(0.95);
18
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
19
+ font-family: var(--ld-font-sans);
20
+ }
21
+ .boltdocs-link-preview.is-visible {
22
+ opacity: 1;
23
+ transform: translateY(0) scale(1);
24
+ }
25
+ .boltdocs-link-preview-title {
26
+ display: block;
27
+ font-weight: 600;
28
+ font-size: 0.95rem;
29
+ color: var(--ld-text-main);
30
+ margin-bottom: 0.5rem;
31
+ line-height: 1.4;
32
+ }
33
+ .boltdocs-link-preview-summary {
34
+ display: block;
35
+ font-size: 0.85rem;
36
+ color: var(--ld-text-muted);
37
+ line-height: 1.5;
38
+ display: -webkit-box;
39
+ -webkit-line-clamp: 4;
40
+ line-clamp: 4;
41
+ -webkit-box-orient: vertical;
42
+ overflow: hidden;
43
+ }
44
+ [data-theme=dark] .boltdocs-link-preview {
45
+ background-color: var(--ld-navbar-bg);
46
+ border-color: var(--ld-border-subtle);
47
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
48
+ }
49
+ [data-theme=dark] .boltdocs-link-preview-title {
50
+ color: #f8fafc;
51
+ }
52
+ [data-theme=dark] .boltdocs-link-preview-summary {
53
+ color: #94a3b8;
54
+ }
55
+
3
56
  /* src/client/theme/styles/variables.css */
4
57
  :root[data-theme=light],
5
58
  :root.theme-light {
@@ -1072,7 +1125,7 @@ a {
1072
1125
  right: 0.75rem;
1073
1126
  z-index: 50;
1074
1127
  padding: 0.4rem;
1075
- background-color: rgba(20, 20, 30, 0.8);
1128
+ background-color: var(--ld-surface);
1076
1129
  backdrop-filter: blur(8px);
1077
1130
  -webkit-backdrop-filter: blur(8px);
1078
1131
  border: 1px solid var(--ld-border-subtle);
@@ -1081,13 +1134,9 @@ a {
1081
1134
  cursor: pointer;
1082
1135
  transition: all 0.2s ease;
1083
1136
  opacity: 0;
1084
- visibility: hidden;
1085
- pointer-events: none;
1086
1137
  }
1087
1138
  .code-block-wrapper:hover .code-block-copy {
1088
1139
  opacity: 1;
1089
- visibility: visible;
1090
- pointer-events: auto;
1091
1140
  }
1092
1141
  .code-block-copy:hover {
1093
1142
  color: var(--ld-text-main);
@@ -1,6 +1,6 @@
1
- import { B as BoltdocsConfig } from '../config-BD5ZHz15.mjs';
2
- export { a as BoltdocsThemeConfig } from '../config-BD5ZHz15.mjs';
3
- import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-CvrzTbEX.mjs';
1
+ import { B as BoltdocsConfig } from '../config-DkZg5aCf.mjs';
2
+ export { a as BoltdocsThemeConfig } from '../config-DkZg5aCf.mjs';
3
+ import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-DGIo1VKD.mjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import React from 'react';
6
6
  import 'vite';
@@ -1,6 +1,6 @@
1
- import { B as BoltdocsConfig } from '../config-BD5ZHz15.js';
2
- export { a as BoltdocsThemeConfig } from '../config-BD5ZHz15.js';
3
- import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-CvrzTbEX.js';
1
+ import { B as BoltdocsConfig } from '../config-DkZg5aCf.js';
2
+ export { a as BoltdocsThemeConfig } from '../config-DkZg5aCf.js';
3
+ import { C as CreateBoltdocsAppOptions, a as ComponentRoute } from '../types-DGIo1VKD.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import React from 'react';
6
6
  import 'vite';