@brillout/docpress 0.6.16 → 0.6.18

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.
@@ -25,7 +25,6 @@ blockquote.note-color-green {
25
25
  border-left-color: rgb(0, 179, 0, 0.3);
26
26
  background-color: rgb(0, 179, 0, 0.08);
27
27
  }
28
- /*
29
28
  blockquote.note-color-pink {
30
29
  --color-strengh-bg: 4;
31
30
  --color-strengh-border: 4;
@@ -33,7 +32,6 @@ blockquote.note-color-pink {
33
32
  border-left-color: rgb(255, 0, 100, 0.3);
34
33
  background-color: rgb(255, 0, 100, 0.1);
35
34
  }
36
- */
37
35
  .blockquote-content {
38
36
  display: inline;
39
37
  }
@@ -1,4 +1,5 @@
1
1
  export { Warning }
2
+ export { Advanced }
2
3
  export { Construction }
3
4
  export { Contribution }
4
5
  export { Danger }
@@ -21,6 +22,9 @@ import './Note.css'
21
22
  function Warning({ children }: { children: React.ReactNode }) {
22
23
  return <NoteGeneric type="warning">{children}</NoteGeneric>
23
24
  }
25
+ function Advanced({ children }: { children: React.ReactNode }) {
26
+ return <NoteGeneric type="advanced">{children}</NoteGeneric>
27
+ }
24
28
  function Construction({ children }: { children: React.ReactNode }) {
25
29
  return <NoteGeneric type="construction">{children}</NoteGeneric>
26
30
  }
@@ -47,7 +51,7 @@ function NoteGeneric({
47
51
  }: {
48
52
  icon?: null | CustomIcon
49
53
  iconMargin?: null | number
50
- type?: 'danger' | 'warning' | 'construction' | 'contribution'
54
+ type?: 'danger' | 'warning' | 'construction' | 'contribution' | 'advanced'
51
55
  children: React.ReactNode
52
56
  }) {
53
57
  assert(icon === null || icon || type, { icon, type })
@@ -75,6 +79,10 @@ function NoteGeneric({
75
79
  icon = '💚'
76
80
  classColor = 'note-color-green'
77
81
  }
82
+ if (type === 'advanced') {
83
+ icon = '🧠'
84
+ classColor = 'note-color-pink'
85
+ }
78
86
  assert(icon)
79
87
  assert(classColor)
80
88
  className = `${className} ${classColor}`
package/css/heading.css CHANGED
@@ -1,6 +1,6 @@
1
1
  h1 { font-size: 2.30em }
2
2
  h2 { font-size: 1.80em }
3
- h3 { font-size: 1.15em }
3
+ h3 { font-size: 1.25em }
4
4
 
5
5
  .doc-page h1 {
6
6
  margin-top: 20px;
@@ -23,7 +23,7 @@ var config = {
23
23
  includeAssetsImportedByServer: true,
24
24
  }),
25
25
  ],
26
- optimizeDeps: { include: ['@mdx-js/react', 'react-dom'] },
26
+ optimizeDeps: { include: ['@brillout/docpress', 'react-dom'] },
27
27
  // @ts-ignore
28
28
  ssr: {
29
29
  noExternal: ['@brillout/docpress'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.6.16",
3
+ "version": "0.6.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "// Build vite.config.ts and +config.ts": "",
package/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="vite/client" />
2
2
 
3
3
  declare module '*.mdx' {
4
- const value: () => JSX.Element
4
+ const value: (props?: any) => JSX.Element
5
5
  export default value
6
6
  export const headings: { level: number; title: string; id: string }[]
7
7
  }
package/vite.config.ts CHANGED
@@ -26,7 +26,7 @@ const config: UserConfig = {
26
26
  includeAssetsImportedByServer: true,
27
27
  }),
28
28
  ],
29
- optimizeDeps: { include: ['@mdx-js/react', 'react-dom'] },
29
+ optimizeDeps: { include: ['@brillout/docpress', 'react-dom'] },
30
30
  // @ts-ignore
31
31
  ssr: {
32
32
  noExternal: ['@brillout/docpress'],