@lovett/ui 0.0.8 → 0.0.9
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.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/code-block.tsx +13 -13
- package/src/react-syntax-highlighter-prism.d.ts +16 -1
package/package.json
CHANGED
package/src/code-block.tsx
CHANGED
|
@@ -25,19 +25,19 @@ import { PrismLight as SyntaxHighlighter } from 'react-syntax-highlighter'
|
|
|
25
25
|
// and dead tests, with nothing connecting the two facts.
|
|
26
26
|
import { vscDarkPlus, oneLight } from 'react-syntax-highlighter/dist/esm/styles/prism/index.js'
|
|
27
27
|
|
|
28
|
-
import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash'
|
|
29
|
-
import css from 'react-syntax-highlighter/dist/esm/languages/prism/css'
|
|
30
|
-
import diff from 'react-syntax-highlighter/dist/esm/languages/prism/diff'
|
|
31
|
-
import javascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript'
|
|
32
|
-
import json from 'react-syntax-highlighter/dist/esm/languages/prism/json'
|
|
33
|
-
import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx'
|
|
34
|
-
import markdown from 'react-syntax-highlighter/dist/esm/languages/prism/markdown'
|
|
35
|
-
import markup from 'react-syntax-highlighter/dist/esm/languages/prism/markup'
|
|
36
|
-
import python from 'react-syntax-highlighter/dist/esm/languages/prism/python'
|
|
37
|
-
import sql from 'react-syntax-highlighter/dist/esm/languages/prism/sql'
|
|
38
|
-
import tsx from 'react-syntax-highlighter/dist/esm/languages/prism/tsx'
|
|
39
|
-
import typescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript'
|
|
40
|
-
import yaml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml'
|
|
28
|
+
import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash.js'
|
|
29
|
+
import css from 'react-syntax-highlighter/dist/esm/languages/prism/css.js'
|
|
30
|
+
import diff from 'react-syntax-highlighter/dist/esm/languages/prism/diff.js'
|
|
31
|
+
import javascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript.js'
|
|
32
|
+
import json from 'react-syntax-highlighter/dist/esm/languages/prism/json.js'
|
|
33
|
+
import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx.js'
|
|
34
|
+
import markdown from 'react-syntax-highlighter/dist/esm/languages/prism/markdown.js'
|
|
35
|
+
import markup from 'react-syntax-highlighter/dist/esm/languages/prism/markup.js'
|
|
36
|
+
import python from 'react-syntax-highlighter/dist/esm/languages/prism/python.js'
|
|
37
|
+
import sql from 'react-syntax-highlighter/dist/esm/languages/prism/sql.js'
|
|
38
|
+
import tsx from 'react-syntax-highlighter/dist/esm/languages/prism/tsx.js'
|
|
39
|
+
import typescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript.js'
|
|
40
|
+
import yaml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml.js'
|
|
41
41
|
|
|
42
42
|
import { cn } from './lib/utils'
|
|
43
43
|
|
|
@@ -13,7 +13,22 @@
|
|
|
13
13
|
// `vscDarkPlus`'s types, which is trading a build failure for a typing hole at
|
|
14
14
|
// the one site that already proved it can ship broken.
|
|
15
15
|
//
|
|
16
|
-
//
|
|
16
|
+
// ── AND THE SAME APPLIES TO THE 13 LANGUAGE IMPORTS ─────────────────────────
|
|
17
|
+
// Fixing only the styles directory shipped `0.0.8`, which failed on
|
|
18
|
+
// `.../languages/prism/bash` — a FILE imported without its extension, which
|
|
19
|
+
// Node's ESM resolver also refuses. The directory import was merely the FIRST
|
|
20
|
+
// failure, not the defect. Caught by loading the published artifact under Node
|
|
21
|
+
// rather than trusting the local build, which is the whole of PN-015.
|
|
22
|
+
//
|
|
23
|
+
// Removable when upstream's types declare the file paths directly.
|
|
17
24
|
declare module 'react-syntax-highlighter/dist/esm/styles/prism/index.js' {
|
|
18
25
|
export * from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
19
26
|
}
|
|
27
|
+
|
|
28
|
+
declare module 'react-syntax-highlighter/dist/esm/languages/prism/*.js' {
|
|
29
|
+
// Upstream types these as `any`-shaped syntax definitions passed straight to
|
|
30
|
+
// `registerLanguage`; the wildcard keeps that contract rather than inventing
|
|
31
|
+
// a stricter one this package cannot verify.
|
|
32
|
+
const language: unknown;
|
|
33
|
+
export default language;
|
|
34
|
+
}
|