@moubing/bing-ui 0.4.0 → 0.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.
- package/README.md +43 -4
- package/dist/bing-ui.css +1 -1
- package/dist/bing-ui.es.js +1733 -1707
- package/dist/bing-ui.umd.js +25 -25
- package/dist/components/BingCodeBlock/BingCodeBlock.types.d.ts +3 -1
- package/dist/components/BingCodeBlock/BingCodeBlock.vue.d.ts +1 -1
- package/dist/components/BingCodeBlock/index.d.ts +1 -1
- package/package.json +15 -16
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { BingResizableProps } from '../BingResizable/BingResizable.types';
|
|
2
2
|
import { SmoothScrollValue } from '../../motion/smoothScroll';
|
|
3
3
|
export type BingCodeBlockHighlightLine = number | [number, number];
|
|
4
|
+
export type BingCodeBlockTheme = 'auto' | 'vitesse-light' | 'vitesse-dark' | 'github-light' | 'github-dark' | 'light-plus' | 'dark-plus' | (string & {});
|
|
4
5
|
export interface BingCodeBlockResizableOptions extends Pick<BingResizableProps, 'defaultSize' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'mode' | 'snapMode' | 'directions' | 'step' | 'disabled' | 'lockAspectRatio' | 'contain' | 'showSize' | 'handleSize' | 'ariaLabel'> {
|
|
5
6
|
}
|
|
6
7
|
export interface BingCodeBlockProps {
|
|
7
8
|
code: string;
|
|
8
9
|
language?: string;
|
|
9
|
-
theme
|
|
10
|
+
/** Shiki theme name. `auto` follows the global Bing UI light/dark/system theme. */
|
|
11
|
+
theme?: BingCodeBlockTheme;
|
|
10
12
|
title?: string;
|
|
11
13
|
languageLabel?: string;
|
|
12
14
|
copyable?: boolean;
|
|
@@ -14,7 +14,7 @@ declare const __VLS_export: import('vue').DefineComponent<BingCodeBlockProps, {}
|
|
|
14
14
|
ariaLabel: string;
|
|
15
15
|
smoothScroll: import('../..').SmoothScrollValue;
|
|
16
16
|
wrap: boolean;
|
|
17
|
-
theme:
|
|
17
|
+
theme: import('./BingCodeBlock.types').BingCodeBlockTheme;
|
|
18
18
|
language: string;
|
|
19
19
|
languageLabel: string;
|
|
20
20
|
copyable: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as BingCodeBlock } from './BingCodeBlock.vue';
|
|
2
|
-
export type { BingCodeBlockCopyPayload, BingCodeBlockEmits, BingCodeBlockHighlightLine, BingCodeBlockProps, BingCodeBlockResizableOptions, } from './BingCodeBlock.types';
|
|
2
|
+
export type { BingCodeBlockCopyPayload, BingCodeBlockEmits, BingCodeBlockHighlightLine, BingCodeBlockProps, BingCodeBlockResizableOptions, BingCodeBlockTheme, } from './BingCodeBlock.types';
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moubing/bing-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"packageManager": "pnpm@11.7.0",
|
|
6
5
|
"publishConfig": {
|
|
7
6
|
"access": "public",
|
|
8
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,19 +27,6 @@
|
|
|
28
27
|
"gsap": "^3.15.0",
|
|
29
28
|
"vue": "^3.5.0"
|
|
30
29
|
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "vite",
|
|
33
|
-
"build": "vue-tsc -b && vite build",
|
|
34
|
-
"preview": "vite preview",
|
|
35
|
-
"test": "vitest",
|
|
36
|
-
"test:run": "vitest run",
|
|
37
|
-
"test:browser": "vitest run --config vitest.browser.config.ts --passWithNoTests",
|
|
38
|
-
"test:visual": "playwright test",
|
|
39
|
-
"storybook": "node scripts/storybook-dev.mjs",
|
|
40
|
-
"build-storybook": "cross-env STORYBOOK=true storybook build",
|
|
41
|
-
"changeset": "changeset",
|
|
42
|
-
"version-packages": "changeset version"
|
|
43
|
-
},
|
|
44
30
|
"devDependencies": {
|
|
45
31
|
"@changesets/cli": "^2.31.0",
|
|
46
32
|
"@playwright/test": "^1.60.0",
|
|
@@ -71,5 +57,18 @@
|
|
|
71
57
|
"lucide-vue-next": "^1.0.0",
|
|
72
58
|
"shiki": "^4.2.0",
|
|
73
59
|
"zod": "^4.4.3"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"dev": "vite",
|
|
63
|
+
"build": "vue-tsc -b && vite build",
|
|
64
|
+
"preview": "vite preview",
|
|
65
|
+
"test": "vitest",
|
|
66
|
+
"test:run": "vitest run",
|
|
67
|
+
"test:browser": "vitest run --config vitest.browser.config.ts --passWithNoTests",
|
|
68
|
+
"test:visual": "playwright test",
|
|
69
|
+
"storybook": "node scripts/storybook-dev.mjs",
|
|
70
|
+
"build-storybook": "cross-env STORYBOOK=true storybook build",
|
|
71
|
+
"changeset": "changeset",
|
|
72
|
+
"version-packages": "changeset version"
|
|
74
73
|
}
|
|
75
|
-
}
|
|
74
|
+
}
|