@linker-design-plus/tiny-peony 1.4.13 → 1.4.16

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 (42) hide show
  1. package/dist/foundation/contentManager/contentManager.d.ts +0 -5
  2. package/dist/index.d.ts +27 -78
  3. package/dist/index.js +34 -42
  4. package/dist/index.mjs +3065 -4577
  5. package/dist/intersection/components/editor/context.d.ts +2 -128
  6. package/dist/intersection/components/editor/editor.d.ts +13 -53
  7. package/dist/intersection/components/editor/index.d.ts +27 -78
  8. package/dist/intersection/hooks/use-editor.d.ts +2 -3
  9. package/dist/plugins/AnchorTagPlugin/plugin.d.ts +0 -4
  10. package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +2 -2
  11. package/dist/plugins/PronunciationTagPlugin/pronunciationor.vue.d.ts +2 -2
  12. package/dist/tiny-peony.css +1 -1
  13. package/dist/typings/actions/i-anchor.d.ts +0 -8
  14. package/dist/typings/intersection/editor.d.ts +3 -12
  15. package/dist/utils/dom.d.ts +1 -19
  16. package/dist/utils/shared.d.ts +0 -11
  17. package/package.json +1 -1
  18. package/dist/index.js.map +0 -1
  19. package/dist/index.mjs.map +0 -1
  20. package/dist/intersection/components/modals/Refine/RefineContent.d.ts +0 -20
  21. package/dist/intersection/components/modals/Refine/RefineGenerator.d.ts +0 -19
  22. package/dist/intersection/components/modals/Refine/RefineInput.d.ts +0 -18
  23. package/dist/intersection/components/modals/Refine/RefineShortcut.d.ts +0 -2
  24. package/dist/intersection/components/modals/Refine/RefineToolbar.d.ts +0 -2
  25. package/dist/intersection/components/modals/Refine/context.d.ts +0 -128
  26. package/dist/intersection/components/modals/Refine/icons/abort.vue.d.ts +0 -2
  27. package/dist/intersection/components/modals/Refine/icons/copy.vue.d.ts +0 -2
  28. package/dist/intersection/components/modals/Refine/icons/delete.vue.d.ts +0 -2
  29. package/dist/intersection/components/modals/Refine/icons/expand.vue.d.ts +0 -2
  30. package/dist/intersection/components/modals/Refine/icons/inexpand.vue.d.ts +0 -2
  31. package/dist/intersection/components/modals/Refine/icons/insert.vue.d.ts +0 -2
  32. package/dist/intersection/components/modals/Refine/icons/moreShortcut.vue.d.ts +0 -2
  33. package/dist/intersection/components/modals/Refine/icons/optimism.vue.d.ts +0 -2
  34. package/dist/intersection/components/modals/Refine/icons/prefix.vue.d.ts +0 -2
  35. package/dist/intersection/components/modals/Refine/icons/refresh.vue.d.ts +0 -2
  36. package/dist/intersection/components/modals/Refine/icons/replace.vue.d.ts +0 -2
  37. package/dist/intersection/components/modals/Refine/icons/send.vue.d.ts +0 -2
  38. package/dist/intersection/components/modals/Refine/index.d.ts +0 -3
  39. package/dist/intersection/components/modals/Refine/use-modal-pos.d.ts +0 -10
  40. package/dist/intersection/components/modals/Refine/use-range-highlight.d.ts +0 -6
  41. package/dist/intersection/hooks/use-copy.d.ts +0 -4
  42. package/dist/intersection/hooks/use-state.d.ts +0 -4
@@ -18,13 +18,5 @@ export interface IAnchor {
18
18
  volume: number;
19
19
  avatar: string;
20
20
  id?: number;
21
- fragId?: string;
22
21
  top: number;
23
- uid?: string;
24
- lang: Array<{
25
- key: string;
26
- value: string;
27
- sort: number;
28
- description: string;
29
- }>;
30
22
  }
@@ -1,14 +1,9 @@
1
- import { RefineContext } from '../../intersection/components/editor/context';
2
1
  import { ListenModeEnum } from '../shared';
3
2
  export interface EditorComponentProps {
4
3
  /**
5
4
  * 预计时长,按文字数量计算
6
5
  */
7
6
  preTime: string;
8
- /**
9
- * 实际时长,按文字数量计算
10
- */
11
- realTime: string;
12
7
  /**
13
8
  * 编辑器已输入文字数量
14
9
  */
@@ -20,7 +15,7 @@ export interface EditorComponentProps {
20
15
  /**
21
16
  * 试听虚拟主播ID
22
17
  */
23
- listenAnchorId: string;
18
+ listenAnchorId: number;
24
19
  /**
25
20
  * 试听模式:单主播试听 | 整体试听
26
21
  */
@@ -38,11 +33,7 @@ export interface EditorComponentProps {
38
33
  */
39
34
  maxLength: number;
40
35
  /**
41
- * 是否开启调优
42
- */
43
- refinable: boolean;
44
- /**
45
- * 调优上下文
36
+ * 是否显示预计时长
46
37
  */
47
- refineContext?: RefineContext;
38
+ showPreTime: boolean;
48
39
  }
@@ -1,4 +1,4 @@
1
- import { IAnchor, PluginFlag } from '../typings';
1
+ import { PluginFlag } from '../typings';
2
2
  export declare const setAttributesAndData: (element: HTMLElement, attributes: Record<string, string | number | boolean>, dataAttributes: Record<string, string | number>, child?: string | Node) => void;
3
3
  export declare const findParent: (element: HTMLElement, _conditions: ((element: HTMLElement) => boolean) | Array<(element: HTMLElement) => boolean>) => (HTMLElement | null)[];
4
4
  export declare const findClosestPara: (startElm: HTMLElement) => HTMLElement | null;
@@ -35,21 +35,3 @@ export declare const longestConsecutiveSubsequence: (text1: string, text2: strin
35
35
  export declare const isCursorAtParagraphEnd: () => boolean;
36
36
  export declare const ensureCaretInParagraph: (editor: HTMLElement) => void;
37
37
  export declare const clearParagraphKeep: (pElm: HTMLElement, selection: Selection) => void;
38
- /**
39
- * 将弹窗元素定位到目标元素下方(relative to parentEl)
40
- * @param {DOMRect} parentDOMRect - 父元素DOMRect
41
- * @param {DOMRect} targetDOMRect - 目标元素DOMRect
42
- * @param {number} offset - 距离 span 底部的间距,默认 6px
43
- */
44
- export declare const positionPopupUnderSpan: (parentDomRect?: DOMRect, spanDomRect?: DOMRect, offset?: number) => {
45
- top: number;
46
- left: number;
47
- width: number;
48
- height: number;
49
- };
50
- /**
51
- * 获取指定ID的锚点标签
52
- * @param {IAnchor} anchor - 锚点信息
53
- * @return {HTMLElement[]} - 锚点标签数组
54
- */
55
- export declare const getAnchorTagsByUidAndId: (anchor: IAnchor) => HTMLElement[];
@@ -1,13 +1,2 @@
1
1
  export declare const createTagSpace: (name: string) => [import("@linker-design/utils").Bem, string];
2
2
  export declare const createComponentSpace: (name: string) => [import("@linker-design/utils").Bem, string];
3
- /**
4
- * 创建一个带 requestAnimationFrame 的事件回调包装器
5
- * @param callback - 需要在动画帧中执行的函数
6
- * @returns 可直接作为事件监听器使用的包装函数
7
- */
8
- export declare const withRaf: <T extends (...args: any[]) => void>(callback: T) => (...args: Parameters<T>) => void;
9
- /**
10
- * 当前页面是否是 HTTPS
11
- * @returns {boolean}
12
- */
13
- export declare const isHttps: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linker-design-plus/tiny-peony",
3
- "version": "1.4.13",
3
+ "version": "1.4.16",
4
4
  "description": "a simple editor",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",