cosey 0.1.3 → 0.1.4

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 (134) hide show
  1. package/components/audio-card/style/index.d.ts +1 -1
  2. package/components/audio-viewer/style/index.d.ts +1 -1
  3. package/components/close/style/index.d.ts +1 -1
  4. package/components/col/style/index.d.ts +1 -1
  5. package/components/col/style/index.js +1 -1
  6. package/components/config-provider/config-provider.vue.js +8 -4
  7. package/components/config-provider/override-element-plus.d.ts +3 -2
  8. package/components/config-provider/override-element-plus.js +2 -2
  9. package/components/container/container.d.ts +0 -1
  10. package/components/container/container.vue.js +0 -4
  11. package/components/container/style/index.d.ts +1 -1
  12. package/components/context-menu/style/index.d.ts +1 -1
  13. package/components/copy/copy.d.ts +0 -2
  14. package/components/copy/copy.vue.d.ts +1 -7
  15. package/components/copy/copy.vue.js +0 -1
  16. package/components/copy/index.d.ts +3 -19
  17. package/components/copy/style/index.d.ts +1 -1
  18. package/components/dnd-sort/dnd-sort-item.vue.js +1 -1
  19. package/components/dnd-sort/style/index.d.ts +1 -1
  20. package/components/dnd-sort/style/index.js +1 -0
  21. package/components/editor/components/color-picker/color-picker.style.d.ts +1 -1
  22. package/components/editor/components/list/list.style.d.ts +1 -1
  23. package/components/editor/components/picker/picker.style.d.ts +1 -1
  24. package/components/editor/components/resize/resize.style.d.ts +1 -1
  25. package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +1 -1
  26. package/components/editor/components/toolbar/formats/table.style.d.ts +1 -1
  27. package/components/editor/editor.d.ts +0 -2
  28. package/components/editor/editor.vue.js +1 -11
  29. package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +1 -1
  30. package/components/editor/modules/image-uploader/formats/image-loading.style.js +3 -3
  31. package/components/editor/style/hljs.d.ts +1 -1
  32. package/components/editor/style/index.d.ts +1 -1
  33. package/components/file-card/style/index.d.ts +1 -1
  34. package/components/form/style/index.d.ts +1 -1
  35. package/components/form-list/style/index.d.ts +1 -1
  36. package/components/form-query/style/index.d.ts +1 -1
  37. package/components/highlight/highlight.d.ts +1 -1
  38. package/components/highlight/highlight.vue.js +11 -4
  39. package/components/highlight/style/index.d.ts +1 -1
  40. package/components/highlight/style/index.js +15 -5
  41. package/components/horizontal-tree/style/index.d.ts +1 -1
  42. package/components/icon/style/index.d.ts +1 -1
  43. package/components/image-card/style/index.d.ts +1 -1
  44. package/components/index.js +1 -0
  45. package/components/long-text/style/index.d.ts +1 -1
  46. package/components/mask/style/index.d.ts +1 -1
  47. package/components/media-card-group/style/index.d.ts +1 -1
  48. package/components/panel/style/index.d.ts +1 -1
  49. package/components/row/style/index.d.ts +1 -1
  50. package/components/scroll-view/style/index.d.ts +1 -1
  51. package/components/snug-menu/style/index.d.ts +1 -1
  52. package/components/table/style/index.d.ts +1 -1
  53. package/components/table/table-column/style/index.d.ts +1 -1
  54. package/components/table/table-column/table-column.vue.d.ts +3 -3
  55. package/components/table/table-column-editor/item.vue.js +1 -1
  56. package/components/table/table-column-editor/style/index.d.ts +1 -1
  57. package/components/table/table-column-editor/style/index.js +1 -0
  58. package/components/table/table-export/style/index.d.ts +1 -1
  59. package/components/table-action/style/index.d.ts +1 -1
  60. package/components/theme/getGlobalStyleHook.d.ts +2 -3
  61. package/components/theme/getGlobalStyleHook.js +3 -8
  62. package/components/theme/getOverrideStyleHook.d.ts +8 -0
  63. package/components/theme/getOverrideStyleHook.js +39 -0
  64. package/components/theme/getSimpleStyleHook.d.ts +2 -2
  65. package/components/theme/getSimpleStyleHook.js +3 -7
  66. package/components/theme/getStyleHook.d.ts +2 -2
  67. package/components/theme/getStyleHook.js +3 -7
  68. package/components/theme/index.d.ts +2 -1
  69. package/components/theme/index.js +1 -0
  70. package/components/theme/theme-context.d.ts +11 -2
  71. package/components/theme/theme-context.js +36 -6
  72. package/components/theme/useStyleRegister.d.ts +1 -7
  73. package/components/theme/useStyleRegister.js +3 -4
  74. package/components/theme/util/useToken.d.ts +4 -4
  75. package/components/theme/util/useToken.js +6 -6
  76. package/components/transition/style/index.d.ts +1 -1
  77. package/components/transition-group/index.d.ts +3 -3
  78. package/components/transition-group/style/index.d.ts +1 -1
  79. package/components/transition-group/transition-group.vue.d.ts +1 -1
  80. package/components/upload/index.d.ts +0 -3
  81. package/components/upload/style/index.d.ts +1 -1
  82. package/components/upload/upload.d.ts +0 -2
  83. package/components/upload/upload.js +0 -1
  84. package/components/upload/upload.vue.d.ts +0 -1
  85. package/components/upload/upload.vue.js +0 -4
  86. package/components/video-card/style/index.d.ts +1 -1
  87. package/components/video-card/video-card.vue.js +1 -1
  88. package/components/video-viewer/style/index.d.ts +1 -1
  89. package/config/http.d.ts +1 -1
  90. package/config/http.js +1 -1
  91. package/config/index.d.ts +22 -22
  92. package/config/nprogress.style.d.ts +1 -1
  93. package/config/nprogress.style.js +1 -1
  94. package/hooks/useUpsert.d.ts +15 -16
  95. package/hooks/useUpsert.js +3 -3
  96. package/layout/layout-aside/style/index.d.ts +1 -1
  97. package/layout/layout-auth/style/index.d.ts +1 -1
  98. package/layout/layout-base/layout-base.vue.js +8 -8
  99. package/layout/layout-base/style/index.d.ts +1 -1
  100. package/layout/layout-brand/style/index.d.ts +1 -1
  101. package/layout/layout-change-password/style/index.d.ts +1 -1
  102. package/layout/layout-color-scheme/style/index.d.ts +2 -2
  103. package/layout/layout-content/style/index.d.ts +1 -1
  104. package/layout/layout-exception/style/index.d.ts +1 -1
  105. package/layout/layout-header/style/index.d.ts +1 -1
  106. package/layout/layout-iframe/style/index.d.ts +1 -1
  107. package/layout/layout-login/style/index.d.ts +1 -1
  108. package/layout/layout-main/style/index.d.ts +1 -1
  109. package/layout/layout-mask/style/index.d.ts +1 -1
  110. package/layout/layout-menu/layout-menu.vue.js +5 -0
  111. package/layout/layout-menu/style/index.d.ts +1 -1
  112. package/layout/layout-search/style/index.d.ts +1 -1
  113. package/layout/layout-sidebar/style/index.d.ts +1 -1
  114. package/layout/layout-snug-aside/style/index.d.ts +1 -1
  115. package/layout/layout-switch-effect/style/index.d.ts +1 -1
  116. package/layout/layout-tabbar/layout-tabbar.vue.js +6 -1
  117. package/layout/layout-tabbar/style/index.d.ts +1 -1
  118. package/layout/layout-tabbar/style/index.js +4 -0
  119. package/layout/layout-topbar/style/index.d.ts +1 -1
  120. package/layout/layout-user-menu/style/index.d.ts +1 -1
  121. package/package.json +3 -3
  122. package/router/guard/index.js +2 -0
  123. package/router/guard/pageTitle.d.ts +2 -0
  124. package/router/guard/pageTitle.js +11 -0
  125. package/router/index.js +1 -1
  126. package/router/routes/static/auth.js +5 -6
  127. package/router/routes/static/exception.js +3 -3
  128. package/router/utils.js +11 -3
  129. package/store/layout.d.ts +2 -2
  130. package/store/user.d.ts +3 -3
  131. package/store/user.js +1 -0
  132. package/utils/dynamicCSS.d.ts +3 -2
  133. package/utils/dynamicCSS.js +12 -1
  134. package/utils/index.js +1 -1
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface AudioCardToken extends FullToken<'AudioCard'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface AudioViewerToken extends FullToken<'AudioViewer'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface CloseToken extends FullToken<'Close'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -6,7 +6,7 @@ export interface ComponentToken {
6
6
  export interface ColToken extends FullToken<'Col'> {
7
7
  }
8
8
  export declare const getColSizeStyle: (token: ColToken, size: RowSize | null) => CSSObject;
9
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
9
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
10
10
  hashId: import("vue").Ref<string, string>;
11
11
  };
12
12
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { getStyleHook } from '../../theme/getStyleHook.js';
2
- import { rowSizes, rowColumns } from '../../row/row.js';
2
+ import { rowColumns, rowSizes } from '../../row/row.js';
3
3
 
4
4
  const getColSizeStyle = (token, size) => {
5
5
  const { componentCls } = token;
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { defineComponent, computed, onUnmounted, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import useMergeTheme from './useMergeTheme.js';
3
3
  import { useConfig, useConfigProvide } from './config-provider.js';
4
- import { useThemeProvide } from '../theme/theme-context.js';
4
+ import { ThemeManager, useThemeProvide } from '../theme/theme-context.js';
5
5
  import stdin_default$1 from './override-element-plus.js';
6
6
 
7
7
  var stdin_default = /* @__PURE__ */defineComponent({
@@ -38,10 +38,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
38
38
  prefixCls: mergedPrefixCls
39
39
  };
40
40
  useConfigProvide(configProvider);
41
- useThemeProvide(mergedTheme);
41
+ const themeManager = new ThemeManager(mergedTheme);
42
+ onUnmounted(() => {
43
+ themeManager.destroy();
44
+ });
45
+ useThemeProvide(themeManager);
42
46
  const {
43
47
  hashId
44
- } = stdin_default$1("", mergedTheme);
48
+ } = stdin_default$1(themeManager);
45
49
  onMounted(() => {
46
50
  if (!parentContext.theme) {
47
51
  document.documentElement.classList.add(hashId.value);
@@ -1,4 +1,5 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("..").ThemeConfig | undefined>) => {
2
- hashId: import("vue").Ref<string, string>;
1
+ declare const _default: (_themeManager?: import("../theme/theme-context").ThemeManager) => {
2
+ readonly token: import("vue").ComputedRef<import("..").GlobalToken>;
3
+ readonly hashId: import("vue").Ref<string, string>;
3
4
  };
4
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { TinyColor } from '@ctrl/tinycolor';
2
2
  import { capitalize } from 'lodash-es';
3
- import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
3
+ import { getOverrideStyleHook } from '../theme/getOverrideStyleHook.js';
4
4
 
5
5
  function generateColorPalettes(type, token, alias) {
6
6
  const capType = capitalize(type);
@@ -22,7 +22,7 @@ function generateColorPalettes(type, token, alias) {
22
22
  function getRGBVar(color) {
23
23
  return `${color.r},${color.g},${color.b}`;
24
24
  }
25
- var stdin_default = getSimpleStyleHook("OverrideElementPlus", (token) => {
25
+ var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
26
26
  const { hashId } = token;
27
27
  return {
28
28
  [`.${hashId}`]: {
@@ -1,6 +1,5 @@
1
1
  import type { InjectionKey } from 'vue';
2
2
  export interface ContainerProps {
3
- title?: string;
4
3
  fullPage?: boolean;
5
4
  }
6
5
  export interface ContainerSlots {
@@ -9,10 +9,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
9
9
  },
10
10
  __name: "container",
11
11
  props: {
12
- title: {
13
- type: String,
14
- required: false
15
- },
16
12
  fullPage: {
17
13
  type: Boolean,
18
14
  required: false
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface ContainerToken extends FullToken<'Container'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -5,7 +5,7 @@ export interface ComponentToken {
5
5
  export interface ContextMenuToken extends FullToken<'ContextMenu'> {
6
6
  }
7
7
  export declare const getContextMenuContentStyle: GenerateStyle<ContextMenuToken, CSSObject>;
8
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
8
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
9
9
  hashId: import("vue").Ref<string, string>;
10
10
  };
11
11
  export default _default;
@@ -6,8 +6,6 @@ export interface CopySlots {
6
6
  default?: (props: Record<string, never>) => any;
7
7
  }
8
8
  export interface CopyEmits {
9
- (e: 'click'): void;
10
9
  }
11
10
  export interface CopyExpose {
12
- method: () => void;
13
11
  }
@@ -1,12 +1,6 @@
1
1
  import { type CopyProps, type CopySlots } from './copy';
2
2
  type __VLS_Slots = CopySlots;
3
- declare const __VLS_component: import("vue").DefineComponent<CopyProps, {
4
- method: () => void;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
- click: () => any;
7
- }, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{
8
- onClick?: (() => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const __VLS_component: import("vue").DefineComponent<CopyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
5
  export default _default;
12
6
  type __VLS_WithSlots<T, S> = T & {
@@ -20,7 +20,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
20
20
  required: false
21
21
  }
22
22
  },
23
- emits: ["click"],
24
23
  setup(__props, {
25
24
  expose: __expose
26
25
  }) {
@@ -1,33 +1,17 @@
1
1
  export * from './copy';
2
2
  declare const _Copy: {
3
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{
4
- onClick?: (() => any) | undefined;
5
- }>, {
6
- method: () => void;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- click: () => any;
9
- }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
4
  P: {};
11
5
  B: {};
12
6
  D: {};
13
7
  C: {};
14
8
  M: {};
15
9
  Defaults: {};
16
- }, Readonly<import("./copy").CopyProps> & Readonly<{
17
- onClick?: (() => any) | undefined;
18
- }>, {
19
- method: () => void;
20
- }, {}, {}, {}, {}>;
10
+ }, Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
21
11
  __isFragment?: never;
22
12
  __isTeleport?: never;
23
13
  __isSuspense?: never;
24
- } & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{
25
- onClick?: (() => any) | undefined;
26
- }>, {
27
- method: () => void;
28
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
29
- click: () => any;
30
- }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
14
+ } & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
31
15
  $slots: import("./copy").CopySlots;
32
16
  }) & import("vue").Plugin;
33
17
  export { _Copy as Copy };
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface MaskToken extends FullToken<'Mask'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -46,7 +46,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
46
46
  class: `${unref(prefixCls)}-item-holder`
47
47
  }), [createVNode(stdin_default$2, {
48
48
  name: "co:draggable",
49
- size: "xl"
49
+ size: "lg"
50
50
  })], 16
51
51
  /* FULL_PROPS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
52
52
  class: normalizeClass(`${unref(prefixCls)}-item-content`)
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface DndSortToken extends FullToken<'DndSort'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -12,6 +12,7 @@ const getDndSortStyle = (token) => {
12
12
  marginInlineEnd: token.marginXS,
13
13
  width: token.size,
14
14
  flex: "none",
15
+ color: token.colorTextSecondary,
15
16
  cursor: "grab",
16
17
  "&:active": {
17
18
  cursor: "grabbing"
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../../../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -3,8 +3,6 @@ export interface EditorProps {
3
3
  modelValue?: string;
4
4
  placeholder?: string;
5
5
  height?: string;
6
- minHeight?: string;
7
- maxHeight?: string;
8
6
  readonly?: boolean;
9
7
  validateEvent?: boolean;
10
8
  request?: UploadContext['request'];
@@ -34,14 +34,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
34
34
  type: String,
35
35
  required: false
36
36
  },
37
- minHeight: {
38
- type: String,
39
- required: false
40
- },
41
- maxHeight: {
42
- type: String,
43
- required: false
44
- },
45
37
  readonly: {
46
38
  type: Boolean,
47
39
  required: false
@@ -140,9 +132,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
140
132
  ref: element,
141
133
  class: normalizeClass(`${unref(prefixCls)}-container`),
142
134
  style: normalizeStyle({
143
- height: _ctx.height,
144
- minHeight: _ctx.minHeight,
145
- maxHeight: _ctx.maxHeight
135
+ height: _ctx.height
146
136
  })
147
137
  }, null, 6
148
138
  /* CLASS, STYLE */), createVNode(stdin_default$5), createVNode(stdin_default$6)], 2
@@ -1,2 +1,2 @@
1
- declare const _default: (theme?: import("vue").ComputedRef<import("../../../..").ThemeConfig | undefined>) => void;
1
+ declare const _default: (themeManager?: import("../../../../theme/theme-context").ThemeManager) => void;
2
2
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { getGlobalStyleHook } from '../../../../theme/getGlobalStyleHook.js';
2
- import { spinner, contrarotation } from '../../../../style/animation.js';
2
+ import { spinner, rotation } from '../../../../style/animation.js';
3
3
 
4
- var stdin_default = getGlobalStyleHook("co-editor-image-loading", (token) => {
4
+ var stdin_default = getGlobalStyleHook("EditorImageLoading", (token) => {
5
5
  return {
6
6
  ".co-editor-image-loading": {
7
7
  position: "relative",
@@ -22,7 +22,7 @@ var stdin_default = getGlobalStyleHook("co-editor-image-loading", (token) => {
22
22
  display: "inline",
23
23
  height: 42,
24
24
  width: 42,
25
- animationName: contrarotation,
25
+ animationName: rotation,
26
26
  animationDuration: "2s",
27
27
  animationTimingFunction: "linear",
28
28
  animationIterationCount: "infinite",
@@ -1,2 +1,2 @@
1
- declare const _default: (theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => void;
1
+ declare const _default: (themeManager?: import("../../theme/theme-context").ThemeManager) => void;
2
2
  export default _default;
@@ -5,7 +5,7 @@ export interface ComponentToken {
5
5
  export interface EditorToken extends FullToken<'Editor'> {
6
6
  }
7
7
  export declare const getQuillArticleStyle: GenerateStyle<EditorToken, CSSObject>;
8
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
8
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
9
9
  hashId: import("vue").Ref<string, string>;
10
10
  };
11
11
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface FileCardToken extends FullToken<'FileCard'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -4,7 +4,7 @@ export interface ComponentToken {
4
4
  export interface FormToken extends FullToken<'Form'> {
5
5
  formItemCls: string;
6
6
  }
7
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
7
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
8
8
  hashId: import("vue").Ref<string, string>;
9
9
  };
10
10
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface FormListToken extends FullToken<'FormList'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface FormQueryToken extends FullToken<'FormQuery'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -10,7 +10,7 @@ type ts = 'typescript' | 'ts' | 'tsx' | 'mts' | 'cts';
10
10
  type plaintext = 'plaintext' | 'text' | 'txt';
11
11
  export interface HighlightProps {
12
12
  code?: string;
13
- lang?: xml | json | js | ts | plaintext | 'css' | 'scss' | 'less';
13
+ lang?: xml | json | js | ts | plaintext | 'css' | 'scss' | 'less' | (string & {});
14
14
  }
15
15
  export interface HighlightSlots {
16
16
  default?: (props: Record<string, never>) => any;
@@ -1,6 +1,7 @@
1
- import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode } from 'vue';
1
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createVNode } from 'vue';
2
2
  import './highlight.js';
3
3
  import stdin_default$1 from './style/index.js';
4
+ import stdin_default$2 from '../copy/copy.vue.js';
4
5
  import { useComponentConfig } from '../config-provider/config-provider.js';
5
6
  import hljs from 'highlight.js/lib/core';
6
7
 
@@ -35,12 +36,18 @@ var stdin_default = /* @__PURE__ */defineComponent({
35
36
  }).value);
36
37
  __expose();
37
38
  return (_ctx, _cache) => {
38
- return openBlock(), createElementBlock("pre", {
39
+ return openBlock(), createElementBlock("div", {
39
40
  class: normalizeClass([unref(hashId), unref(prefixCls)])
40
- }, [createElementVNode("code", {
41
+ }, [createElementVNode("pre", null, [createElementVNode("code", {
41
42
  class: "hljs",
42
43
  innerHTML: highlightedCode.value
43
- }, null, 8, _hoisted_1)], 2
44
+ }, null, 8, _hoisted_1)]), createElementVNode("div", {
45
+ class: normalizeClass(`${unref(prefixCls)}-copy`)
46
+ }, [createVNode(stdin_default$2, {
47
+ text: _ctx.code,
48
+ class: normalizeClass(`${unref(prefixCls)}-copy`)
49
+ }, null, 8, ["text", "class"])], 2
50
+ /* CLASS */)], 2
44
51
  /* CLASS */);
45
52
  };
46
53
  }
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface MaskToken extends FullToken<'Mask'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -5,11 +5,21 @@ const getMaskStyle = (token) => {
5
5
  const { componentCls } = token;
6
6
  return {
7
7
  [componentCls]: {
8
- padding: token.paddingSM,
9
- overflow: "auto",
10
- color: "#abb2bf",
11
- background: "#282c34",
12
- borderRadius: token.borderRadius,
8
+ position: "relative",
9
+ pre: {
10
+ padding: token.paddingSM,
11
+ overflow: "auto",
12
+ color: "#abb2bf",
13
+ background: "#282c34",
14
+ borderRadius: token.borderRadius
15
+ },
16
+ [`${componentCls}-copy`]: {
17
+ position: "absolute",
18
+ top: token.sizeXXS,
19
+ right: token.sizeXXS,
20
+ zIndex: 10,
21
+ color: token.colorWhite
22
+ },
13
23
  ...getHljs()
14
24
  }
15
25
  };
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface IconToken extends FullToken<'Icon'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface ImageCardToken extends FullToken<'ImageCard'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -87,6 +87,7 @@ export { default as defaultAlgorithm } from './theme/themes/default/index.js';
87
87
  export { generateColorPalettes as defaultGenerateColorPalettes } from './theme/themes/default/colors.js';
88
88
  export { extractCacheStyle, extractStyle } from './theme/extractStyle.js';
89
89
  export { getGlobalStyleHook } from './theme/getGlobalStyleHook.js';
90
+ export { getOverrideStyleHook } from './theme/getOverrideStyleHook.js';
90
91
  export { getSimpleStyleHook } from './theme/getSimpleStyleHook.js';
91
92
  export { getStyleHook } from './theme/getStyleHook.js';
92
93
  export { default as seedToken } from './theme/themes/seed.js';
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface LongTextToken extends FullToken<'LongText'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface MaskToken extends FullToken<'Mask'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface PanelToken extends FullToken<'Panel'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface RowToken extends FullToken<'Row'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface ScrollViewToken extends FullToken<'ScrollView'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface SnugMenuToken extends FullToken<'SnugMenu'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;