ados-rcm 1.1.1065 → 1.1.1067

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 (50) hide show
  1. package/README.md +90 -94
  2. package/dist/AModule/AComponents/AResource/AResource.d.ts +2 -0
  3. package/dist/AModule/AComponents/BEditor/components/Tooltip.d.ts +4 -2
  4. package/dist/AModule/AComponents/BEditor/core/classNames.d.ts +1 -0
  5. package/dist/AModule/AComponents/BEditor/core/performance.d.ts +1 -0
  6. package/dist/AModule/AComponents/BEditor/core/resources.d.ts +1 -0
  7. package/dist/AModule/AComponents/BEditor/core/types.d.ts +1 -0
  8. package/dist/AModule/AComponents/BEditor/core/value.d.ts +2 -0
  9. package/dist/AModule/AComponents/BEditor/editor/extensions.d.ts +1 -1
  10. package/dist/AModule/AComponents/BEditor/hooks/useBEditorInstance.d.ts +2 -1
  11. package/dist/AModule/AComponents/BEditor/hooks/useBEditorLinkTooltip.d.ts +2 -1
  12. package/dist/AModule/AComponents/BEditor/media/media.d.ts +1 -0
  13. package/dist/AModule/AComponents/BEditor/table/cell.d.ts +1 -1
  14. package/dist/AModule/AComponents/BEditor/table/hooks/tableMouseCaptureHandlers.d.ts +1 -0
  15. package/dist/AModule/AComponents/BEditor/table/hooks/tablePointerDown.d.ts +5 -2
  16. package/dist/AModule/AComponents/BEditor/table/hooks/tablePointerTypes.d.ts +1 -0
  17. package/dist/AModule/AComponents/BEditor/table/hooks/useBEditorTableMouseCapture.d.ts +1 -1
  18. package/dist/AModule/AComponents/BEditor/table/hooks/useBEditorTablePointerController.d.ts +2 -1
  19. package/dist/{Copy-81Z3B3bZ.js → Copy-BQBcw_MM.js} +1 -1
  20. package/dist/{Copy-TvQue3Tw.cjs → Copy-BvURXm_D.cjs} +1 -1
  21. package/dist/{Divider-Ce_rnqP-.js → Divider-BFTWhi8Y.js} +1 -1
  22. package/dist/{Divider-dQHxnsgn.cjs → Divider-a0dVzfkZ.cjs} +1 -1
  23. package/dist/{FullScreen-CDfnFVxd.cjs → FullScreen-BOk7Z52x.cjs} +1 -1
  24. package/dist/{FullScreen-5sI796te.js → FullScreen-DqchJ9Oo.js} +1 -1
  25. package/dist/{ImageResizer-Dhdlukbm.js → ImageResizer-Cg80MsSU.js} +1 -1
  26. package/dist/{ImageResizer-B0H6b_ao.cjs → ImageResizer-Da9OiTzn.cjs} +1 -1
  27. package/dist/{TableClipboard-WwEkD2u2.js → TableClipboard-C3ZnXjjJ.js} +4 -4
  28. package/dist/{TableClipboard-D3m7k_dg.cjs → TableClipboard-CARFiJtu.cjs} +1 -1
  29. package/dist/{TableSelection-Bqb4ecFH.js → TableSelection-BlBKQrLb.js} +3 -3
  30. package/dist/{TableSelection-DrLwE1go.cjs → TableSelection-usm8Uj1v.cjs} +1 -1
  31. package/dist/{TableUp-DHmcBQte.js → TableUp-DaaaOebz.js} +3 -3
  32. package/dist/{TableUp-0kYfTPbl.cjs → TableUp-DoI3mpf8.cjs} +1 -1
  33. package/dist/{TableUpLogical-B1UssoB6.js → TableUpLogical-BT2wrrmJ.js} +1 -1
  34. package/dist/{TableUpLogical-yBIrHkS5.cjs → TableUpLogical-CF-cQ-rC.cjs} +1 -1
  35. package/dist/{Video-Dzj8LdyS.cjs → Video-BgRxqzyH.cjs} +1 -1
  36. package/dist/{Video-a6TQYZpR.js → Video-BjHHBApM.js} +1 -1
  37. package/dist/{compress-zGd_Tb06.js → compress-BfgXBg2V.js} +13 -11
  38. package/dist/compress-CmfgMnc0.cjs +1 -0
  39. package/dist/{index-Bol8knWB.js → index-36vnPAy9.js} +1 -1
  40. package/dist/{index-DAQYmOEA.cjs → index-BKbPiXRL.cjs} +1 -1
  41. package/dist/{index-UqHXpYwH.cjs → index-C2NIgOQa.cjs} +1 -1
  42. package/dist/{index-6KjbvjiG.js → index-C5mEzte4.js} +1 -1
  43. package/dist/index-Df3Za6O6.cjs +524 -0
  44. package/dist/{index-B9VDTpw7.js → index-DpYOvi9t.js} +34094 -33854
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.es.js +1 -1
  47. package/package.json +2 -1
  48. package/dist/AModule/AComponents/BEditor/editor/blockDropIndicator.d.ts +0 -2
  49. package/dist/compress-CYoNqrJQ.cjs +0 -1
  50. package/dist/index-ChY9sjaf.cjs +0 -522
package/README.md CHANGED
@@ -1,94 +1,90 @@
1
- # ReactComponentModule
2
-
3
- React Component for ADOS
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd root
18
- git remote add origin http://192.168.1.37/ados/rcm.git
19
- git fetch
20
- git add .
21
- git commit -m 'comment'
22
- git push
23
- ```
24
-
25
- ## Integrate with your tools
26
-
27
- - [ ] [Set up project integrations](http://192.168.1.37/ados/arcm/-/settings/integrations)
28
-
29
- ## Collaborate with your team
30
-
31
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
32
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
33
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
34
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
35
- - [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
36
-
37
- ## Test and Deploy
38
-
39
- Use the built-in continuous integration in GitLab.
40
-
41
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
42
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
43
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
44
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
45
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
46
-
47
- ***
48
-
49
- # Editing this README
50
-
51
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
52
-
53
- ## Suggestions for a good README
54
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
55
-
56
- ## Name
57
- Choose a self-explaining name for your project.
58
-
59
- ## Description
60
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
61
-
62
- ## Badges
63
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
64
-
65
- ## Visuals
66
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
67
-
68
- ## Installation
69
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
70
-
71
- ## Usage
72
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
73
-
74
- ## Support
75
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
76
-
77
- ## Roadmap
78
- If you have ideas for releases in the future, it is a good idea to list them in the README.
79
-
80
- ## Contributing
81
- State if you are open to contributions and what your requirements are for accepting them.
82
-
83
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
84
-
85
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
86
-
87
- ## Authors and acknowledgment
88
- Show your appreciation to those who have contributed to the project.
89
-
90
- ## License
91
- For open source projects, say how it is licensed.
92
-
93
- ## Project status
94
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
1
+ # ARCM
2
+
3
+ ## GitLab CI Test Automation Roadmap
4
+
5
+ GitLab CI 파이프라인 기준안입니다.
6
+
7
+ ### 현재 항목
8
+
9
+ | 항목 |
10
+ | --- |
11
+ | TC 수집 |
12
+ | 검증 필요한 대상 항목 선정 |
13
+ | TC 표준화 우선순위 정의 |
14
+ | 자동화 테스트 개발 |
15
+ | CI 파이프라인 연계 |
16
+
17
+ ### 채택 스택
18
+
19
+ | 영역 | 선택 | 이유 |
20
+ | --- | --- | --- |
21
+ | CI | GitLab CI + `gitlab-ci-local` | 실제 CI와 로컬 검증 흐름 일치 |
22
+ | Runtime | Node.js + npm | lockfile 기반 재현 설치 |
23
+ | Local CI | `gitlab-ci-local` | GitLab job을 로컬에서 사전 검증 |
24
+ | Quality | TypeScript, ESLint, Stylelint | MR 이전 품질 게이트 |
25
+ | Test | Vitest | 자동화 TC 모듈 실행 기반 |
26
+ | Build | Vite library build | 배포 산출물 검증 |
27
+ | Artifact | GitLab artifacts | 테스트/빌드 결과 보관 |
28
+
29
+ ### 전체 흐름
30
+
31
+ ```mermaid
32
+ flowchart TD
33
+ A["1. TC 수집"] --> B["2. 검증 대상 항목 선정"]
34
+ B --> C["3. TC 표준화 우선순위 정의"]
35
+ C --> D["4. 자동화 테스트 개발"]
36
+ D --> E["5. CI 파이프라인 연계"]
37
+ P["CI 기본 구성"] --> E
38
+ C -. "표준 TC 수신 후" .-> M["TC 모듈화"]
39
+ M --> D
40
+ ```
41
+
42
+ ### GitLab CI 처리 순서
43
+
44
+ | 순서 | Stage | 처리 내용 | 대표 명령 |
45
+ | --- | --- | --- | --- |
46
+ | 1 | bootstrap | lockfile 기반 의존성 설치, npm cache 사용 | `npm ci --prefer-offline` |
47
+ | 2 | quality | 타입, lint, style 기준 확인 | `npm run check`, `npm run lint:style` |
48
+ | 3 | test | 단위/컴포넌트 테스트 실행 | `npx vitest run` |
49
+ | 4 | build | 라이브러리 산출물 생성/검증 | `npm run build` |
50
+ | 5 | storybook | 문서/시나리오 빌드 검증 | `npm run build-storybook` |
51
+ | 6 | ci_smoke | GitLab job을 로컬에서 안전 검증 | `gitlab-ci-local <job>` |
52
+ | 7 | tc_automation | 표준 TC 모듈 실행 | `npm run tc:<module>` |
53
+
54
+ ### TC 표준화 완료 연결 방식
55
+
56
+ 표준화된 TC는 실행 가능한 작은 모듈로 변환합니다.
57
+
58
+ | 필드 | 예시 | 목적 |
59
+ | --- | --- | --- |
60
+ | `tcId` | `TC-001` | TC 추적 |
61
+ | `priority` | `P0`, `P1`, `P2` | 실행 정책 |
62
+ | `target` | `component / feature / flow` | 검증 대상 |
63
+ | `type` | `type`, `lint`, `style`, `unit`, `build`, `smoke` | 실행 stage 결정 |
64
+ | `command` | `npm run tc:<module>` | CI 실행 명령 |
65
+ | `artifact` | `.gitlab-ci-local/artifacts/<module>/` | 결과 파일 연결 |
66
+
67
+ ### 우선순위 운영
68
+
69
+ | 우선순위 | CI 실행 정책 | 예시 |
70
+ | --- | --- | --- |
71
+ | `P0` | 모든 MR에서 필수 실행 | merge 차단 gate |
72
+ | `P1` | 기본 branch 또는 nightly 실행 | 회귀 검증 |
73
+ | `P2` | schedule/manual 실행 | 장시간/저위험 검증 |
74
+
75
+ ### 구성 키워드
76
+
77
+ | 항목 | 역할 |
78
+ | --- | --- |
79
+ | `rules` | MR, 기본 branch, tag, schedule 실행 조건 제어 |
80
+ | `needs` | quality/test/build job 의존성 제어 |
81
+ | `artifacts` | 테스트/빌드 결과 보관 |
82
+ | `NPM_CONFIG_CACHE` | runner npm cache 경로 고정 |
83
+ | `gitlab-ci-local` | GitLab job 로컬 검증 |
84
+
85
+ ### 참고 기준
86
+
87
+ - [GitLab CI/CD YAML syntax reference](https://docs.gitlab.com/ci/yaml/)
88
+ - [GitLab 19.1 release notes](https://docs.gitlab.com/releases/19/gitlab-19-1-released/)
89
+ - [GitLab 19.1.1 patch release](https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-1-1-released/)
90
+ - [DMS GitLab CI](../DMS/.gitlab-ci.yml)
@@ -134,6 +134,7 @@ export declare const Resources: {
134
134
  'Insert paragraph between tables': string;
135
135
  'Image URL': string;
136
136
  'Enter link:': string;
137
+ 'Link Label': string;
137
138
  'Enter video:': string;
138
139
  'Visit URL:': string;
139
140
  Edit: string;
@@ -218,6 +219,7 @@ export declare const Resources: {
218
219
  'Insert paragraph between tables': string;
219
220
  'Image URL': string;
220
221
  'Enter link:': string;
222
+ 'Link Label': string;
221
223
  'Enter video:': string;
222
224
  'Visit URL:': string;
223
225
  Edit: string;
@@ -5,15 +5,17 @@ interface IBEditorTooltipProps {
5
5
  ids?: {
6
6
  action?: string;
7
7
  input?: string;
8
+ labelInput?: string;
8
9
  remove?: string;
9
10
  root?: string;
10
11
  };
12
+ initialLabel?: string;
11
13
  initialValue?: string;
12
14
  mode: TBEditorTooltipMode;
13
15
  onClose: (reason?: TBEditorTooltipCloseReason, target?: EventTarget | null) => void;
14
16
  onEdit?: () => void;
15
17
  onRemove?: () => void;
16
- onSubmit: (value: string) => void;
18
+ onSubmit: (value: string, label?: string) => void;
17
19
  }
18
- export declare function BEditorTooltip({ editing, ids, initialValue, mode, onClose, onEdit, onRemove, onSubmit, }: Readonly<IBEditorTooltipProps>): import("react/jsx-runtime").JSX.Element;
20
+ export declare function BEditorTooltip({ editing, ids, initialLabel, initialValue, mode, onClose, onEdit, onRemove, onSubmit, }: Readonly<IBEditorTooltipProps>): import("react/jsx-runtime").JSX.Element;
19
21
  export {};
@@ -56,6 +56,7 @@ export declare const BEDITOR_CLASS: {
56
56
  readonly tooltip: "b-editor-tooltip";
57
57
  readonly tooltipAction: "b-editor-tooltip-action";
58
58
  readonly tooltipEditing: "b-editor-tooltip-editing";
59
+ readonly tooltipLabelInput: "b-editor-tooltip-label-input";
59
60
  readonly tooltipPreview: "b-editor-tooltip-preview";
60
61
  readonly tooltipRemove: "b-editor-tooltip-remove";
61
62
  readonly video: "b-editor-video";
@@ -44,6 +44,7 @@ interface IBEditorMediaOverlayLike extends IBEditorRectLike {
44
44
  dataAlign: string | null;
45
45
  element: HTMLElement;
46
46
  kind: string;
47
+ toolbarTop: number;
47
48
  }
48
49
  export declare function shouldProcessBEditorDocumentUpdate({ canSetValue, shouldTrackLimit, }: IBEditorDocumentUpdateOptions): boolean;
49
50
  export declare function shouldReadBEditorPlainTextOnUpdate({ shouldTrackLimit }: IBEditorPlainTextUpdateOptions): boolean;
@@ -74,6 +74,7 @@ export declare const BEditorResources: {
74
74
  'Insert paragraph between tables': string;
75
75
  'Image URL': string;
76
76
  'Enter link:': string;
77
+ 'Link Label': string;
77
78
  'Enter video:': string;
78
79
  'Visit URL:': string;
79
80
  Edit: string;
@@ -60,6 +60,7 @@ export interface IBEditorMediaOverlayState extends IBEditorMediaTarget {
60
60
  dataAlign: TBEditorMediaAlignment | null;
61
61
  height: number;
62
62
  left: number;
63
+ toolbarTop: number;
63
64
  top: number;
64
65
  width: number;
65
66
  }
@@ -2,9 +2,11 @@ export declare function shouldInlineComputedExcelTableStyles({ cellCount, hasSty
2
2
  cellCount: number;
3
3
  hasStyleElement: boolean;
4
4
  }): boolean;
5
+ export declare function sanitizeBEditorStyleText(styleText: string | null | undefined): string;
5
6
  export declare function normalizeBEditorHtml(html: string): string;
6
7
  export declare function prepareBEditorInputHtml(html: string): string;
7
8
  export declare function sanitizeBEditorDisplayHtml(html: string): string;
9
+ export declare function sanitizeBEditorPastedHtml(html: string): string;
8
10
  export declare function sanitizeBEditorTitleHtml(html: string): string;
9
11
  export declare function calculateBEditorContentSize(html: string): number;
10
12
  export declare function calculateBEditorContentTextLength(html: string): number;
@@ -13,4 +13,4 @@ declare module '@tiptap/core' {
13
13
  };
14
14
  }
15
15
  }
16
- export declare function buildBEditorExtensions(placeholder: string | undefined, maxLength?: number): (Extension<any, any> | Node<any, any> | Node<import('@tiptap/extension-table').TableOptions, any> | Node<import('@tiptap/extension-table').TableCellOptions, any> | Node<import('@tiptap/extension-image').ImageOptions, any> | Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-text-style').TextStyleOptions, any> | Extension<import('@tiptap/extension-text-style').ColorOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-highlight').HighlightOptions, any> | Extension<Omit<import('@tiptap/extension-file-handler').FileHandlePluginOptions, "key" | "editor">, any> | Extension<import('@tiptap/extension-text-align').TextAlignOptions, any>)[];
16
+ export declare function buildBEditorExtensions(placeholder: string | undefined, maxLength?: number): (Node<any, any> | Extension<any, any> | Node<import('@tiptap/extension-table').TableOptions, any> | Node<import('@tiptap/extension-table').TableCellOptions, any> | Node<import('@tiptap/extension-image').ImageOptions, any> | Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-text-style').TextStyleOptions, any> | Extension<import('@tiptap/extension-text-style').ColorOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-highlight').HighlightOptions, any> | Extension<Omit<import('@tiptap/extension-file-handler').FileHandlePluginOptions, "key" | "editor">, any> | Extension<import('@tiptap/extension-text-align').TextAlignOptions, any>)[];
@@ -10,6 +10,7 @@ interface IUseBEditorInstanceParams {
10
10
  editorInputValue: string;
11
11
  editorLabelledBy?: string;
12
12
  isComposingRef: RefObject<boolean>;
13
+ isDisabled: boolean;
13
14
  isReadonly: boolean;
14
15
  isTitleMode: boolean;
15
16
  keyboardEditorRef: RefObject<Editor | null>;
@@ -28,5 +29,5 @@ interface IUseBEditorInstanceParams {
28
29
  valueSyncEditorRef: RefObject<Editor | null>;
29
30
  valueSyncMode: 'deferred' | 'immediate';
30
31
  }
31
- export declare function useBEditorInstance({ canSetValue, commitPendingValueSync, editorAccessibleLabel, editorClassName, editorDomStyle, editorInputValue, editorLabelledBy, isComposingRef, isReadonly, isTitleMode, keyboardEditorRef, limitDisplayMode, maxLength, placeholder, scheduleValueSync, shouldTrackLimit, resumeValueSyncAfterComposition, syncExternalValue, tabIndex, updateCalculatedSize, valueSyncEditorRef, valueSyncMode, }: IUseBEditorInstanceParams): Editor | null;
32
+ export declare function useBEditorInstance({ canSetValue, commitPendingValueSync, editorAccessibleLabel, editorClassName, editorDomStyle, editorInputValue, editorLabelledBy, isComposingRef, isDisabled, isReadonly, isTitleMode, keyboardEditorRef, limitDisplayMode, maxLength, placeholder, scheduleValueSync, shouldTrackLimit, resumeValueSyncAfterComposition, syncExternalValue, tabIndex, updateCalculatedSize, valueSyncEditorRef, valueSyncMode, }: IUseBEditorInstanceParams): Editor | null;
32
33
  export {};
@@ -3,6 +3,7 @@ import { ChangeEvent, RefObject, SyntheticEvent } from 'react';
3
3
  import { TBEditorTooltipCloseReason, TBEditorTooltipMode } from '../components/Tooltip';
4
4
  interface IBEditorLinkTooltipState {
5
5
  editing: boolean;
6
+ initialLabel?: string;
6
7
  initialValue?: string;
7
8
  mode: TBEditorTooltipMode;
8
9
  }
@@ -21,7 +22,7 @@ export declare function useBEditorLinkTooltip({ editor, imageFileInputRef, isRea
21
22
  insertLink: () => void;
22
23
  insertVideo: () => void;
23
24
  removeTooltipLink: () => void;
24
- submitTooltip: (value: string) => void;
25
+ submitTooltip: (value: string, label?: string) => void;
25
26
  tooltipState: IBEditorLinkTooltipState | null;
26
27
  };
27
28
  export {};
@@ -12,6 +12,7 @@ interface IBEditorImageInsertOptions {
12
12
  }
13
13
  type TBEditorImageInsertContent = Array<{
14
14
  attrs: {
15
+ loading: 'lazy';
15
16
  src: string;
16
17
  };
17
18
  type: 'image';
@@ -15,7 +15,7 @@ export declare function createBEditorTableHitTestSnapshot(root: HTMLElement | nu
15
15
  export declare function resolveBEditorTableHitTestCellAtPoint(snapshot: IBEditorTableHitTestSnapshot | null | undefined, clientX: number, clientY: number, cells?: ReadonlySet<HTMLTableCellElement> | readonly HTMLTableCellElement[]): HTMLTableCellElement | null;
16
16
  export declare function resolveBEditorTableHitTestRectForCell(snapshot: IBEditorTableHitTestSnapshot | null | undefined, cell: HTMLTableCellElement | null | undefined): IBEditorTableHitTestRect | null;
17
17
  export declare function resolveBEditorTableCellAtPoint(target: TBEditorEventTargetNode, root: HTMLElement | null, clientX: number, clientY: number, hitTestSnapshot?: IBEditorTableHitTestSnapshot | null): HTMLTableCellElement | null;
18
- export declare function resolveBEditorSelectedTableCellAtPoint(root: HTMLElement | null, cells: HTMLTableCellElement[], clientX: number, clientY: number, hitTestSnapshot?: IBEditorTableHitTestSnapshot | null): HTMLTableCellElement | null;
18
+ export declare function resolveBEditorSelectedTableCellAtPoint(root: HTMLElement | null, cells: readonly HTMLTableCellElement[], clientX: number, clientY: number, hitTestSnapshot?: IBEditorTableHitTestSnapshot | null): HTMLTableCellElement | null;
19
19
  export declare function areBEditorTableCellAddressesSame(current: IBEditorTableCellAddress | null, next: IBEditorTableCellAddress | null): boolean;
20
20
  export declare function isBEditorTableCellTypingSelection(cell: HTMLTableCellElement): boolean;
21
21
  export declare function isBEditorDocumentSelectionCrossingTableCell(root: HTMLElement | null): boolean;
@@ -20,6 +20,7 @@ export interface ITableMouseCaptureHandlerDeps {
20
20
  syncTableSelectionOverlay: (cells?: HTMLTableCellElement[]) => IBEditorTableSelectionOverlay | null;
21
21
  tableColumnResizeDragRef: TBEditorMutableRef<IBEditorTableColumnResizeDragState | null>;
22
22
  tableEditingCellAddressRef: TBEditorMutableRef<IBEditorTableCellAddress | null>;
23
+ tableMediaPointerActiveRef: TBEditorMutableRef<boolean>;
23
24
  tableRowResizeDragRef: TBEditorMutableRef<IBEditorTableRowResizeDragState | null>;
24
25
  tableRowResizeHoverRef: TBEditorMutableRef<IBEditorTableRowResizeTarget | null>;
25
26
  tableSelectionCellAddressesRef: TBEditorMutableRef<IBEditorTableCellAddress[]>;
@@ -1,10 +1,13 @@
1
1
  import { Editor } from '@tiptap/react';
2
2
  import { IBEditorTableCellAddress } from '../../core/types';
3
3
  import { IBEditorTablePointerHandlerContext } from './tablePointerTypes';
4
+ export declare const BEDITOR_TABLE_MEDIA_POINTER_ACTIVE_DATASET = "beditorTableMediaPointerActive";
4
5
  export declare function resetTableDragPointerState(context: IBEditorTablePointerHandlerContext): void;
5
6
  export declare function handleTablePointerMediaTargetDown(eventTarget: EventTarget | null, event: MouseEvent, editor: Editor, context: IBEditorTablePointerHandlerContext): boolean;
6
- export declare function resolveBEditorTableMediaFallbackRoots(editorElement: HTMLElement | null, eventTarget: EventTarget | null, cells?: readonly HTMLTableCellElement[]): HTMLTableCellElement[];
7
- export declare function shouldBEditorTableMediaPointerOpenSelector(eventTarget: EventTarget | null, event: MouseEvent, editorElement: HTMLElement | null, fallbackRoots?: readonly (ParentNode | null | undefined)[]): boolean;
7
+ export declare function markBEditorTableMediaPointerActiveTarget(eventTarget: EventTarget | null, event: MouseEvent, editorElement: HTMLElement | null, fallbackRoots?: readonly (ParentNode | null | undefined)[]): boolean;
8
+ export declare function isBEditorTableMediaSelectionActive(editor: Editor | null | undefined): boolean;
9
+ export declare function resolveBEditorTableMediaFallbackRoots(editorElement: HTMLElement | null, eventTarget: EventTarget | null, cells?: readonly HTMLTableCellElement[], event?: MouseEvent): HTMLTableCellElement[];
10
+ export declare function shouldBEditorTableMediaPointerOpenSelector(eventTarget: EventTarget | null, event: MouseEvent, editorElement: HTMLElement | null, fallbackRoots?: readonly (ParentNode | null | undefined)[], selectedCells?: readonly HTMLTableCellElement[], isTableMediaPointerActive?: boolean, allowDomSelectedTableCell?: boolean): boolean;
8
11
  export declare function handleTablePointerMissedCellDown(event: MouseEvent, editorElement: HTMLElement, context: IBEditorTablePointerHandlerContext): void;
9
12
  export declare function isBEditorTypingModePointerCell(cell: HTMLTableCellElement, address: IBEditorTableCellAddress | null, editingAddress: IBEditorTableCellAddress | null): boolean;
10
13
  export declare function handleTablePointerCellDown(event: MouseEvent, cell: HTMLTableCellElement, editorElement: HTMLElement, context: IBEditorTablePointerHandlerContext): void;
@@ -20,6 +20,7 @@ export interface IBEditorTablePointerHandlerContext {
20
20
  tableDragMovedRef: TBEditorMutableRef<boolean>;
21
21
  tableDragSelection: IBEditorTableDragSelectionController;
22
22
  tableEditingCellAddressRef: TBEditorMutableRef<IBEditorTableCellAddress | null>;
23
+ tableMediaPointerActiveRef: TBEditorMutableRef<boolean>;
23
24
  tablePreserveSelectionPointerRef: TBEditorMutableRef<boolean>;
24
25
  tableSelectionAnchorAddressRef: TBEditorMutableRef<IBEditorTableCellAddress | null>;
25
26
  tableSelectionCellAddressesRef: TBEditorMutableRef<IBEditorTableCellAddress[]>;
@@ -5,7 +5,7 @@ import { TBEditorMutableRef } from '../types';
5
5
  interface IUseBEditorTableMouseCaptureParams extends ITableMouseCaptureHandlerDeps {
6
6
  tableSelectionCellAddressesRef: TBEditorMutableRef<IBEditorTableCellAddress[]>;
7
7
  }
8
- export declare function useBEditorTableMouseCapture({ clearTableSelectionOverlay, editor, editorContainerRef, enterTableCellTypingModeAtPoint, handleMediaPointerDown, isReadonly, isTitleMode, resolveTableResizeTargetTableForEvent, scheduleTableMenuPosition, startTableRowResize, syncTableMenuPosition, syncTableSelectionOverlay, tableColumnResizeDragRef, tableEditingCellAddressRef, tableRowResizeDragRef, tableRowResizeHoverRef, tableSelectionCellAddressesRef, tableSelectionCellsRef, tableSelectionRevisionRef, tableUiDisabledRef, updateTableMenuPosition, }: IUseBEditorTableMouseCaptureParams): {
8
+ export declare function useBEditorTableMouseCapture({ clearTableSelectionOverlay, editor, editorContainerRef, enterTableCellTypingModeAtPoint, handleMediaPointerDown, isReadonly, isTitleMode, resolveTableResizeTargetTableForEvent, scheduleTableMenuPosition, startTableRowResize, syncTableMenuPosition, syncTableSelectionOverlay, tableColumnResizeDragRef, tableEditingCellAddressRef, tableMediaPointerActiveRef, tableRowResizeDragRef, tableRowResizeHoverRef, tableSelectionCellAddressesRef, tableSelectionCellsRef, tableSelectionRevisionRef, tableUiDisabledRef, updateTableMenuPosition, }: IUseBEditorTableMouseCaptureParams): {
9
9
  handleEditorDoubleClickCapture: (event: React.SyntheticEvent<HTMLDivElement>) => void;
10
10
  handleEditorMouseDownCapture: (event: React.SyntheticEvent<HTMLDivElement>) => void;
11
11
  handleEditorMouseUpCapture: (event: React.SyntheticEvent<HTMLDivElement>) => void;
@@ -31,6 +31,7 @@ interface IUseBEditorTablePointerControllerParams {
31
31
  tableDragMovedRef: TBEditorMutableRef<boolean>;
32
32
  tableDragSelection: IBEditorTableDragSelectionController;
33
33
  tableEditingCellAddressRef: TBEditorMutableRef<IBEditorTableCellAddress | null>;
34
+ tableMediaPointerActiveRef: TBEditorMutableRef<boolean>;
34
35
  tableMenuClosedByOutsideRef: TBEditorMutableRef<boolean>;
35
36
  tablePointerDownRef: TBEditorMutableRef<boolean>;
36
37
  tablePointerHandlersRef: TBEditorMutableRef<IBEditorTablePointerHandlers>;
@@ -48,7 +49,7 @@ interface IUseBEditorTablePointerControllerParams {
48
49
  } | null) => void;
49
50
  updateTableResizeGuide: (nextGuide: IBEditorTableResizeGuideState | null) => void;
50
51
  }
51
- export declare function useBEditorTablePointerController({ clearTableSelectionOverlay, editor, editorContainerRef, editorResizeDragRef, isReadonly, isResizing, isTitleMode, rememberTableSelectionCells, rememberTableSelectionEndpoints, resolveRememberedTableSelectionCell, restoreTableSelectionCells, restoreTableSelectionCellsFromAddresses, scheduleTableMenuPosition, scheduleTableSelectionOverlaySync, syncTableMenuPosition, syncTableSelectionOverlay, tableColumnResizeDragRef, tableCommandCellAddressesRef, tableCtrlSelectionPointerRef, tableDragAnchorRef, tableDragMovedRef, tableDragSelection, tableEditingCellAddressRef, tableMenuClosedByOutsideRef, tablePointerDownRef, tablePointerHandlersRef, tablePreserveSelectionPointerRef, tableRowResizeDragRef, tableRowResizeHoverRef, tableSelectionAnchorAddressRef, tableSelectionCellAddressesRef, tableSelectionCellsRef, tableSelectionModeRef, tableSelectionOverlay, updateTableMenuPosition, updateTableResizeGuide, }: IUseBEditorTablePointerControllerParams): {
52
+ export declare function useBEditorTablePointerController({ clearTableSelectionOverlay, editor, editorContainerRef, editorResizeDragRef, isReadonly, isResizing, isTitleMode, rememberTableSelectionCells, rememberTableSelectionEndpoints, resolveRememberedTableSelectionCell, restoreTableSelectionCells, restoreTableSelectionCellsFromAddresses, scheduleTableMenuPosition, scheduleTableSelectionOverlaySync, syncTableMenuPosition, syncTableSelectionOverlay, tableColumnResizeDragRef, tableCommandCellAddressesRef, tableCtrlSelectionPointerRef, tableDragAnchorRef, tableDragMovedRef, tableDragSelection, tableEditingCellAddressRef, tableMenuClosedByOutsideRef, tableMediaPointerActiveRef, tablePointerDownRef, tablePointerHandlersRef, tablePreserveSelectionPointerRef, tableRowResizeDragRef, tableRowResizeHoverRef, tableSelectionAnchorAddressRef, tableSelectionCellAddressesRef, tableSelectionCellsRef, tableSelectionModeRef, tableSelectionOverlay, updateTableMenuPosition, updateTableResizeGuide, }: IUseBEditorTablePointerControllerParams): {
52
53
  resolveTableResizeTargetTableForEvent: (target: EventTarget | Node | null | undefined, clientX: number, clientY: number, hitTestSnapshot?: IBEditorTableHitTestSnapshot | null, resolvedCell?: HTMLTableCellElement | null) => HTMLTableElement | null | undefined;
53
54
  startTableRowResize: (event: MouseEvent | React.SyntheticEvent<HTMLDivElement>, nativeEvent: MouseEvent, rowResizeTarget: IBEditorTableRowResizeTarget) => void;
54
55
  };
@@ -1,7 +1,7 @@
1
1
  var x = Object.defineProperty;
2
2
  var p = (i, t, r) => t in i ? x(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
3
3
  var s = (i, t, r) => p(i, typeof t != "symbol" ? t + "" : t, r);
4
- import { D as u, Q as d, d as m } from "./index-B9VDTpw7.js";
4
+ import { D as u, Q as d, d as m } from "./index-DpYOvi9t.js";
5
5
  const h = {
6
6
  capture: !0
7
7
  }, E = /* @__PURE__ */ new Set(["P", "DIV", "LI", "BLOCKQUOTE", "PRE", "TR", "TD", "TH", "SECTION", "ARTICLE", "H1", "H2", "H3", "H4", "H5", "H6"]), C = /<(?:br|p|div|li|blockquote|pre|tr|td|th|section|article|h[1-6])\b|[\r\n\t]/i, T = /[\r\n\t]+/g, f = /\s{2,}/g;
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty;var x=(i,t,r)=>t in i?y(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r;var d=(i,t,r)=>x(i,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-ChY9sjaf.cjs"),u={capture:!0},p=new Set(["P","DIV","LI","BLOCKQUOTE","PRE","TR","TD","TH","SECTION","ARTICLE","H1","H2","H3","H4","H5","H6"]),m=/<(?:br|p|div|li|blockquote|pre|tr|td|th|section|article|h[1-6])\b|[\r\n\t]/i,T=/[\r\n\t]+/g,h=/\s{2,}/g;function E(i){return typeof i.insert=="string"?i.insert.length:1}class b{constructor(t,r={}){d(this,"clipboard");d(this,"quill");d(this,"cleanupFunctions",[]);this.clipboard=t.getModule("clipboard"),this.quill=t,r.isTitleMode&&this.setupTitleModePaste()}setupTitleModePaste(){const t=this.quill.root,r=e=>{if(e.preventDefault(),!e.clipboardData)return;const a=e.clipboardData.getData("text/html"),n=e.clipboardData.getData("text/plain"),l=this.quill.getSelection(!0);if(!l)return;if(a){const f=this.normalizeTitlePasteHtml(a),o=this.clipboard.convert({html:f});this.applyPasteDelta(l.index,l.length,o),this.scheduleSelection(l.index+this.getDeltaLength(o));return}const s=this.normalizeTitlePasteText(n);this.applyPasteText(l.index,l.length,s),this.scheduleSelection(l.index+s.length)};t.addEventListener("paste",r,u),this.cleanupFunctions.push(()=>{t.removeEventListener("paste",r,u)})}normalizeTitlePasteText(t){return t.replaceAll(T," ").replaceAll(h," ").trim()}normalizeTitlePasteHtml(t){var l,s;if(!m.test(t))return t;const r=document.createElement("div");r.innerHTML=t,this.flattenTitlePasteNode(r);const e=document.createTreeWalker(r,NodeFilter.SHOW_TEXT);let a=e.nextNode();for(;a;)a.textContent=((l=a.textContent)==null?void 0:l.replaceAll(h," "))??"",a=e.nextNode();const n=this.findLastTextNode(r);return n&&(n.textContent=((s=n.textContent)==null?void 0:s.trimEnd())??""),r.innerHTML}flattenTitlePasteNode(t){var e;const r=Array.from(t.childNodes);for(const a of r){if(a.nodeType===Node.TEXT_NODE){a.textContent=((e=a.textContent)==null?void 0:e.replaceAll(T," "))??"";continue}if(a instanceof HTMLElement){if(a.tagName==="BR"){a.replaceWith(document.createTextNode(" "));continue}this.flattenTitlePasteNode(a),p.has(a.tagName)&&a.nextSibling&&!this.endsWithWhitespace(a)&&a.appendChild(document.createTextNode(" "))}}}endsWithWhitespace(t){var r;return/\s$/.test(((r=this.findLastTextNode(t))==null?void 0:r.textContent)??"")}findLastTextNode(t){const r=Array.from(t.childNodes).reverse();for(const e of r){if(e.nodeType===Node.TEXT_NODE)return e;const a=this.findLastTextNode(e);if(a)return a}return null}getDeltaLength(t){var r;return((r=t.ops)==null?void 0:r.reduce((e,a)=>e+E(a),0))??0}applyPasteDelta(t,r,e){const a=new c.Delta().retain(t).delete(r).concat(e);this.quill.updateContents(a,c.Quill.sources.USER)}applyPasteText(t,r,e){const a=new c.Delta().retain(t).delete(r);e&&a.insert(e),this.quill.updateContents(a,c.Quill.sources.USER)}scheduleSelection(t){c.deferMicrotask(()=>this.quill.setSelection(t,0,c.Quill.sources.SILENT))}destroy(){this.cleanupFunctions.forEach(t=>t()),this.cleanupFunctions=[]}async copyContent(t){var r;try{const e=this.quill.getText(),a=this.quill.root.innerHTML;return this.copyToClipboard(e,a,t)}catch(e){return console.error("Error in copyContent:",e),(r=t==null?void 0:t.onError)==null||r.call(t),!1}}async copyToClipboard(t,r,e){var a,n;try{return await this.tryModernClipboardWithHtml(t,r,e)||await this.tryModernClipboardText(t,e)||r&&this.tryLegacyClipboardWithHtml(r,e)||this.tryLegacyClipboardText(t,e)?!0:((a=e==null?void 0:e.onError)==null||a.call(e),!1)}catch(l){return console.error("복사 중 오류 발생:",l),(n=e==null?void 0:e.onError)==null||n.call(e),!1}}async tryModernClipboardWithHtml(t,r,e){var a;if(!navigator.clipboard||!r||!globalThis.ClipboardItem||!globalThis.isSecureContext)return!1;try{return await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([r],{type:"text/html"}),"text/plain":new Blob([t],{type:"text/plain"})})]),(a=e==null?void 0:e.onSuccess)==null||a.call(e),!0}catch{return!1}}async tryModernClipboardText(t,r){var e;if(!navigator.clipboard||!globalThis.isSecureContext)return!1;try{return await navigator.clipboard.writeText(t),(e=r==null?void 0:r.onSuccess)==null||e.call(r),!0}catch{return!1}}tryLegacyClipboardWithHtml(t,r){const e=document.createElement("div");e.innerHTML=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(e);try{const a=document.createRange();a.selectNodeContents(e);const n=globalThis.getSelection();return n?(n.removeAllRanges(),n.addRange(a),this.tryClipboardEventCopy({html:t,text:e.textContent??""},r)):!1}finally{e.remove()}}tryLegacyClipboardText(t,r){const e=document.createElement("textarea");e.value=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(e);try{return e.focus(),e.select(),this.tryClipboardEventCopy({text:t},r)}finally{e.remove()}}tryClipboardEventCopy(t,r){var n;let e=!1;const a=l=>{l.preventDefault(),l.clipboardData&&(l.clipboardData.setData("text/plain",t.text),t.html&&l.clipboardData.setData("text/html",t.html),e=!0)};document.addEventListener("copy",a);try{const l=new ClipboardEvent("copy",{clipboardData:new DataTransfer});if(document.dispatchEvent(l),e)return(n=r==null?void 0:r.onSuccess)==null||n.call(r),!0}catch{return!1}finally{document.removeEventListener("copy",a)}return!1}}exports.default=b;
1
+ "use strict";var y=Object.defineProperty;var x=(i,t,r)=>t in i?y(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r;var d=(i,t,r)=>x(i,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-Df3Za6O6.cjs"),u={capture:!0},p=new Set(["P","DIV","LI","BLOCKQUOTE","PRE","TR","TD","TH","SECTION","ARTICLE","H1","H2","H3","H4","H5","H6"]),m=/<(?:br|p|div|li|blockquote|pre|tr|td|th|section|article|h[1-6])\b|[\r\n\t]/i,T=/[\r\n\t]+/g,h=/\s{2,}/g;function E(i){return typeof i.insert=="string"?i.insert.length:1}class b{constructor(t,r={}){d(this,"clipboard");d(this,"quill");d(this,"cleanupFunctions",[]);this.clipboard=t.getModule("clipboard"),this.quill=t,r.isTitleMode&&this.setupTitleModePaste()}setupTitleModePaste(){const t=this.quill.root,r=e=>{if(e.preventDefault(),!e.clipboardData)return;const a=e.clipboardData.getData("text/html"),n=e.clipboardData.getData("text/plain"),l=this.quill.getSelection(!0);if(!l)return;if(a){const f=this.normalizeTitlePasteHtml(a),o=this.clipboard.convert({html:f});this.applyPasteDelta(l.index,l.length,o),this.scheduleSelection(l.index+this.getDeltaLength(o));return}const s=this.normalizeTitlePasteText(n);this.applyPasteText(l.index,l.length,s),this.scheduleSelection(l.index+s.length)};t.addEventListener("paste",r,u),this.cleanupFunctions.push(()=>{t.removeEventListener("paste",r,u)})}normalizeTitlePasteText(t){return t.replaceAll(T," ").replaceAll(h," ").trim()}normalizeTitlePasteHtml(t){var l,s;if(!m.test(t))return t;const r=document.createElement("div");r.innerHTML=t,this.flattenTitlePasteNode(r);const e=document.createTreeWalker(r,NodeFilter.SHOW_TEXT);let a=e.nextNode();for(;a;)a.textContent=((l=a.textContent)==null?void 0:l.replaceAll(h," "))??"",a=e.nextNode();const n=this.findLastTextNode(r);return n&&(n.textContent=((s=n.textContent)==null?void 0:s.trimEnd())??""),r.innerHTML}flattenTitlePasteNode(t){var e;const r=Array.from(t.childNodes);for(const a of r){if(a.nodeType===Node.TEXT_NODE){a.textContent=((e=a.textContent)==null?void 0:e.replaceAll(T," "))??"";continue}if(a instanceof HTMLElement){if(a.tagName==="BR"){a.replaceWith(document.createTextNode(" "));continue}this.flattenTitlePasteNode(a),p.has(a.tagName)&&a.nextSibling&&!this.endsWithWhitespace(a)&&a.appendChild(document.createTextNode(" "))}}}endsWithWhitespace(t){var r;return/\s$/.test(((r=this.findLastTextNode(t))==null?void 0:r.textContent)??"")}findLastTextNode(t){const r=Array.from(t.childNodes).reverse();for(const e of r){if(e.nodeType===Node.TEXT_NODE)return e;const a=this.findLastTextNode(e);if(a)return a}return null}getDeltaLength(t){var r;return((r=t.ops)==null?void 0:r.reduce((e,a)=>e+E(a),0))??0}applyPasteDelta(t,r,e){const a=new c.Delta().retain(t).delete(r).concat(e);this.quill.updateContents(a,c.Quill.sources.USER)}applyPasteText(t,r,e){const a=new c.Delta().retain(t).delete(r);e&&a.insert(e),this.quill.updateContents(a,c.Quill.sources.USER)}scheduleSelection(t){c.deferMicrotask(()=>this.quill.setSelection(t,0,c.Quill.sources.SILENT))}destroy(){this.cleanupFunctions.forEach(t=>t()),this.cleanupFunctions=[]}async copyContent(t){var r;try{const e=this.quill.getText(),a=this.quill.root.innerHTML;return this.copyToClipboard(e,a,t)}catch(e){return console.error("Error in copyContent:",e),(r=t==null?void 0:t.onError)==null||r.call(t),!1}}async copyToClipboard(t,r,e){var a,n;try{return await this.tryModernClipboardWithHtml(t,r,e)||await this.tryModernClipboardText(t,e)||r&&this.tryLegacyClipboardWithHtml(r,e)||this.tryLegacyClipboardText(t,e)?!0:((a=e==null?void 0:e.onError)==null||a.call(e),!1)}catch(l){return console.error("복사 중 오류 발생:",l),(n=e==null?void 0:e.onError)==null||n.call(e),!1}}async tryModernClipboardWithHtml(t,r,e){var a;if(!navigator.clipboard||!r||!globalThis.ClipboardItem||!globalThis.isSecureContext)return!1;try{return await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([r],{type:"text/html"}),"text/plain":new Blob([t],{type:"text/plain"})})]),(a=e==null?void 0:e.onSuccess)==null||a.call(e),!0}catch{return!1}}async tryModernClipboardText(t,r){var e;if(!navigator.clipboard||!globalThis.isSecureContext)return!1;try{return await navigator.clipboard.writeText(t),(e=r==null?void 0:r.onSuccess)==null||e.call(r),!0}catch{return!1}}tryLegacyClipboardWithHtml(t,r){const e=document.createElement("div");e.innerHTML=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(e);try{const a=document.createRange();a.selectNodeContents(e);const n=globalThis.getSelection();return n?(n.removeAllRanges(),n.addRange(a),this.tryClipboardEventCopy({html:t,text:e.textContent??""},r)):!1}finally{e.remove()}}tryLegacyClipboardText(t,r){const e=document.createElement("textarea");e.value=t,e.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(e);try{return e.focus(),e.select(),this.tryClipboardEventCopy({text:t},r)}finally{e.remove()}}tryClipboardEventCopy(t,r){var n;let e=!1;const a=l=>{l.preventDefault(),l.clipboardData&&(l.clipboardData.setData("text/plain",t.text),t.html&&l.clipboardData.setData("text/html",t.html),e=!0)};document.addEventListener("copy",a);try{const l=new ClipboardEvent("copy",{clipboardData:new DataTransfer});if(document.dispatchEvent(l),e)return(n=r==null?void 0:r.onSuccess)==null||n.call(r),!0}catch{return!1}finally{document.removeEventListener("copy",a)}return!1}}exports.default=b;
@@ -1,7 +1,7 @@
1
1
  var n = Object.defineProperty;
2
2
  var a = (r, t, e) => t in r ? n(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var o = (r, t, e) => a(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { Q as i, R as c, j as d, A as m } from "./index-B9VDTpw7.js";
4
+ import { Q as i, R as c, j as d, A as m } from "./index-DpYOvi9t.js";
5
5
  const b = i.import("blots/block/embed"), l = i.import("ui/icons"), u = "border: var(--AEditor_Addon_Primary_border); border-bottom: none; transition: border var(--Transition);";
6
6
  l.divider = c.renderToString(/* @__PURE__ */ d.jsx(m, { icon: "Minus", strokeWidth: 2.5, width: "100%" }));
7
7
  class s extends b {
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var c=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var i=(e,t,o)=>c(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-ChY9sjaf.cjs"),d=r.Quill.import("blots/block/embed"),a=r.Quill.import("ui/icons"),l="border: var(--AEditor_Addon_Primary_border); border-bottom: none; transition: border var(--Transition);";a.divider=r.ReactDOMServer.renderToString(r.jsxRuntimeExports.jsx(r.AIcon,{icon:"Minus",strokeWidth:2.5,width:"100%"}));class s extends d{static create(){const t=super.create(!0);return t.style.cssText=l,t}}i(s,"blotName","divider"),i(s,"tagName","hr");exports.default=s;
1
+ "use strict";var n=Object.defineProperty;var c=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var i=(e,t,o)=>c(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-Df3Za6O6.cjs"),d=r.Quill.import("blots/block/embed"),a=r.Quill.import("ui/icons"),l="border: var(--AEditor_Addon_Primary_border); border-bottom: none; transition: border var(--Transition);";a.divider=r.ReactDOMServer.renderToString(r.jsxRuntimeExports.jsx(r.AIcon,{icon:"Minus",strokeWidth:2.5,width:"100%"}));class s extends d{static create(){const t=super.create(!0);return t.style.cssText=l,t}}i(s,"blotName","divider"),i(s,"tagName","hr");exports.default=s;
@@ -1 +1 @@
1
- "use strict";var r=Object.defineProperty;var u=(i,t,o)=>t in i?r(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o;var e=(i,t,o)=>u(i,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-ChY9sjaf.cjs");class c{constructor(t,o={}){e(this,"quill");e(this,"options");e(this,"toolbarEl");e(this,"ownerDocument");e(this,"controller");e(this,"button",null);e(this,"buttonIcon",null);e(this,"unsubscribeController",null);e(this,"buttonClickHandler",t=>this.controller.toggleFullscreen(t));if(this.quill=t,this.options=o,this.ownerDocument=t.root instanceof HTMLElement?t.root.ownerDocument:document,this.controller=l.getOrCreateQuillFullscreenController(t),this.options.type==="Raw"){this.toolbarEl=null;return}const n=t.getModule("toolbar"),s=(n==null?void 0:n.container)??null;this.toolbarEl=s,this.createButton()}destroy(){var t,o;(t=this.unsubscribeController)==null||t.call(this),this.unsubscribeController=null,this.button&&(this.button.removeEventListener("click",this.buttonClickHandler),this.button.remove(),this.button=null),(o=this.toolbarEl)==null||o.classList.remove("ql-toolbar-has-right-action"),l.destroyQuillFullscreenController(this.quill)}createButton(){if(!this.options.maximize||!this.options.minimize)return;const t=this.ownerDocument.createElement("button"),o=this.ownerDocument.createElement("span");t.type="button",t.classList.add("ql-fullscreen"),o.classList.add("ql-fullscreen-icon"),t.append(o),t.addEventListener("click",this.buttonClickHandler),this.button=t,this.buttonIcon=o,this.unsubscribeController=this.controller.subscribe(n=>this.syncButtonState(n)),this.toolbarEl&&(t.classList.add("ql-right-action"),this.toolbarEl.classList.add("ql-toolbar-has-right-action"),this.toolbarEl.append(t))}syncButtonState(t){if(!this.button||!this.buttonIcon)return;this.button.classList.toggle("ql-active",t);const o=t?this.options.minimize??"":this.options.maximize??"",n=t?this.options.minimizeLabel??"":this.options.maximizeLabel??"";l.replaceElementChildrenWithTrustedSvgMarkup(this.buttonIcon,o),this.button.title!==n&&(this.button.title=n),this.button.getAttribute("aria-label")!==n&&this.button.setAttribute("aria-label",n)}}exports.default=c;
1
+ "use strict";var r=Object.defineProperty;var u=(i,t,o)=>t in i?r(i,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[t]=o;var e=(i,t,o)=>u(i,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-Df3Za6O6.cjs");class c{constructor(t,o={}){e(this,"quill");e(this,"options");e(this,"toolbarEl");e(this,"ownerDocument");e(this,"controller");e(this,"button",null);e(this,"buttonIcon",null);e(this,"unsubscribeController",null);e(this,"buttonClickHandler",t=>this.controller.toggleFullscreen(t));if(this.quill=t,this.options=o,this.ownerDocument=t.root instanceof HTMLElement?t.root.ownerDocument:document,this.controller=l.getOrCreateQuillFullscreenController(t),this.options.type==="Raw"){this.toolbarEl=null;return}const n=t.getModule("toolbar"),s=(n==null?void 0:n.container)??null;this.toolbarEl=s,this.createButton()}destroy(){var t,o;(t=this.unsubscribeController)==null||t.call(this),this.unsubscribeController=null,this.button&&(this.button.removeEventListener("click",this.buttonClickHandler),this.button.remove(),this.button=null),(o=this.toolbarEl)==null||o.classList.remove("ql-toolbar-has-right-action"),l.destroyQuillFullscreenController(this.quill)}createButton(){if(!this.options.maximize||!this.options.minimize)return;const t=this.ownerDocument.createElement("button"),o=this.ownerDocument.createElement("span");t.type="button",t.classList.add("ql-fullscreen"),o.classList.add("ql-fullscreen-icon"),t.append(o),t.addEventListener("click",this.buttonClickHandler),this.button=t,this.buttonIcon=o,this.unsubscribeController=this.controller.subscribe(n=>this.syncButtonState(n)),this.toolbarEl&&(t.classList.add("ql-right-action"),this.toolbarEl.classList.add("ql-toolbar-has-right-action"),this.toolbarEl.append(t))}syncButtonState(t){if(!this.button||!this.buttonIcon)return;this.button.classList.toggle("ql-active",t);const o=t?this.options.minimize??"":this.options.maximize??"",n=t?this.options.minimizeLabel??"":this.options.maximizeLabel??"";l.replaceElementChildrenWithTrustedSvgMarkup(this.buttonIcon,o),this.button.title!==n&&(this.button.title=n),this.button.getAttribute("aria-label")!==n&&this.button.setAttribute("aria-label",n)}}exports.default=c;
@@ -1,7 +1,7 @@
1
1
  var l = Object.defineProperty;
2
2
  var r = (i, t, o) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[t] = o;
3
3
  var e = (i, t, o) => r(i, typeof t != "symbol" ? t + "" : t, o);
4
- import { a as u, b as a, r as c } from "./index-B9VDTpw7.js";
4
+ import { a as u, b as a, r as c } from "./index-DpYOvi9t.js";
5
5
  class m {
6
6
  constructor(t, o = {}) {
7
7
  e(this, "quill");
@@ -1,7 +1,7 @@
1
1
  var w = Object.defineProperty;
2
2
  var M = (h, i, t) => i in h ? w(h, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[i] = t;
3
3
  var n = (h, i, t) => M(h, typeof i != "symbol" ? i + "" : i, t);
4
- import { S as f, c as L, r as q, Q as D, R as F, j as N, A as R } from "./index-B9VDTpw7.js";
4
+ import { S as f, c as L, r as q, Q as D, R as F, j as N, A as R } from "./index-DpYOvi9t.js";
5
5
  const g = {
6
6
  OVERLAY: "ql-image-resizer-overlay",
7
7
  HANDLE: "ql-image-resizer-handle",