@hankchen/canvas-editor-vue 0.6.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{useDataSourceSchema-CG9EGzwc.js → DropdownMenu-CeUNKMDQ.js} +70 -84
  2. package/dist/ExpressionPathPicker-DchGsK70.js +739 -0
  3. package/dist/{canvas-CptBzpwT.js → canvas-DuvO27sj.js} +506 -485
  4. package/dist/canvas.js +1 -1
  5. package/dist/index.js +14 -15
  6. package/dist/layer-panel/TemplateTableForm.d.ts +1 -27
  7. package/dist/{layer-panel-Cz-tmbJJ.js → layer-panel-BouAYiDq.js} +231 -257
  8. package/dist/layer-panel.js +1 -1
  9. package/dist/property-panel/PropertyField.d.ts +9 -2
  10. package/dist/property-panel/fieldSchema.d.ts +28 -10
  11. package/dist/property-panel/fields/RowsPathField.d.ts +17 -0
  12. package/dist/property-panel/fields/index.d.ts +1 -0
  13. package/dist/property-panel/fields/intrinsicSize.d.ts +9 -0
  14. package/dist/property-panel/usePropertyPanel.d.ts +11 -2
  15. package/dist/{property-panel-OBqd6D8W.js → property-panel-BkfqRva4.js} +371 -271
  16. package/dist/property-panel.js +2 -2
  17. package/dist/resourceTemplate-D-DKEo7Z.js +33 -0
  18. package/dist/shared/ExpressionPathPicker.d.ts +9 -2
  19. package/dist/shared/index.d.ts +13 -10
  20. package/dist/shared/pathPickerModel.d.ts +16 -3
  21. package/dist/shared/popupPosition.d.ts +2 -2
  22. package/dist/shared/rowsPathPickerSource.d.ts +15 -0
  23. package/dist/shared/useDataSourceSchema.d.ts +6 -0
  24. package/dist/{shared-wuupBoZg.js → shared-CRDKDSpa.js} +22 -22
  25. package/dist/shared.js +9 -10
  26. package/dist/{status-bar-DCuK2R88.js → status-bar-DBf5kIXY.js} +6 -6
  27. package/dist/status-bar.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/uploadFile-mXJVPEzm.js +653 -0
  30. package/dist/{useTransientFeedback-CTjmMmFF.js → useTransientFeedback-BN_O7V2w.js} +43 -28
  31. package/package.json +2 -2
  32. package/dist/popupPosition-Ck5Gsvjy.js +0 -526
  33. package/dist/resourceTemplate-cdcQtp9a.js +0 -246
  34. package/dist/shared/rowsPathCompletionSource.d.ts +0 -3
  35. package/dist/shared/usePathCompletion.d.ts +0 -18
  36. package/dist/uploadFile-DbB-KhII.js +0 -520
  37. package/dist/usePathCompletion-Do17CQ6l.js +0 -220
package/dist/canvas.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-CptBzpwT.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-DuvO27sj.js";
2
2
  export { e as AlignFloatBar, n as CanvasSurface, a as ContextMenu, f as EditOverlayToolbar, l as FindBar, m as GuidesOverlay, d as Ruler, c as TextEditingOverlay, u as createGizmoOverlayPainter, h as createRafScheduler, t as drawCreateRubberBand, s as drawFindMatches, p as drawSelectionGizmo, r as useDpr, o as useFindSession, g as useTextEditing, i as watchDprChanges };
package/dist/index.js CHANGED
@@ -1,17 +1,16 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-CptBzpwT.js";
2
- import { a as _, c as v, i as y, l as b, n as x, o as S, r as C, s as w, t as T } from "./layer-panel-Cz-tmbJJ.js";
3
- import { a as E, c as D, d as O, f as k, i as A, l as j, n as M, o as N, r as P, s as F, t as I, u as L } from "./property-panel-OBqd6D8W.js";
4
- import { a as R, i as z, n as B, o as V, r as H, s as U, t as W } from "./popupPosition-Ck5Gsvjy.js";
5
- import { i as G, n as K, r as q, t as J } from "./resourceTemplate-cdcQtp9a.js";
6
- import { c as Y, i as X, n as Z, s as Q, t as $ } from "./useTransientFeedback-CTjmMmFF.js";
7
- import { c as ee, d as te, i as ne, l as re, n as ie, o as ae, r as oe, t as se, u as ce } from "./uploadFile-DbB-KhII.js";
8
- import { n as le, t as ue } from "./usePathCompletion-Do17CQ6l.js";
9
- import { n as de, t as fe } from "./useViewport-D9Ipevzs.js";
10
- import { i as pe, n as me, r as he, t as ge } from "./useDataSourceSchema-CG9EGzwc.js";
11
- import { n as _e, r as ve, t as ye } from "./status-bar-DCuK2R88.js";
12
- import { t as be } from "./useShortcutsHelp-CsyarO2P.js";
13
- import { n as xe, r as Se, t as Ce } from "./shared-wuupBoZg.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./canvas-DuvO27sj.js";
2
+ import { a as _, c as v, i as y, l as b, n as x, o as S, r as C, s as w, t as T } from "./layer-panel-BouAYiDq.js";
3
+ import { a as E, c as D, d as O, f as k, i as A, l as j, n as M, o as N, r as P, s as F, t as I, u as L } from "./property-panel-BkfqRva4.js";
4
+ import { a as R, c as z, i as B, n as V, o as H, r as U, s as W, t as G } from "./ExpressionPathPicker-DchGsK70.js";
5
+ import { n as K, t as q } from "./resourceTemplate-D-DKEo7Z.js";
6
+ import { a as J, d as Y, i as X, n as Z, o as Q, s as $, t as ee, u as te } from "./useTransientFeedback-BN_O7V2w.js";
7
+ import { c as ne, d as re, f as ie, i as ae, l as oe, m as se, n as ce, o as le, p as ue, r as de, t as fe, u as pe } from "./uploadFile-mXJVPEzm.js";
8
+ import { n as me, t as he } from "./useViewport-D9Ipevzs.js";
9
+ import { n as ge, t as _e } from "./DropdownMenu-CeUNKMDQ.js";
10
+ import { n as ve, r as ye, t as be } from "./status-bar-DBf5kIXY.js";
11
+ import { t as xe } from "./useShortcutsHelp-CsyarO2P.js";
12
+ import { n as Se, r as Ce, t as we } from "./shared-CRDKDSpa.js";
14
13
  //#region src/index.ts
15
- var we = "@hankchen/canvas-editor-vue";
14
+ var Te = "@hankchen/canvas-editor-vue";
16
15
  //#endregion
17
- export { _ as ADD_LAYER_MENU, S as ADD_MENU, w as ADD_RATIO_PRESET_MENU, v as ADD_TEXT_PRESET_MENU, X as ARM_LAYER_CREATE_HINT, e as AlignFloatBar, F as CANVAS_FIELD_SECTIONS, n as CanvasSurface, a as ContextMenu, he as DropdownMenu, f as EditOverlayToolbar, V as ExpressionCompletionPopup, q as ExpressionPathPicker, D as FIELD_SECTIONS_BY_TYPE, oe as FONT_PICKER_KEY, l as FindBar, m as GuidesOverlay, Se as HelpDialog, E as IMAGE_UPLOAD_KEY, T as LayerPanel, we as PACKAGE_NAME, b as PANEL_ADD_MENU, W as POPUP_GAP, B as POPUP_MARGIN, U as PanelIcon, M as PropertyField, I as PropertyPanel, d as Ruler, ye as StatusBar, y as TemplateTableForm, c as TextEditingOverlay, R as applyCompletion, J as attachResourceTemplate, A as controlRegistry, u as createGizmoOverlayPainter, h as createRafScheduler, Q as detectShortcutPlatform, t as drawCreateRubberBand, s as drawFindMatches, p as drawSelectionGizmo, ce as expressionCompletionSource, ae as expressionDiagnosticHint, te as expressionFieldContext, j as fieldSectionsForPath, L as fieldSectionsForType, _e as formatLayerGeometry, ve as formatLayerPath, ne as injectFontPicker, N as injectImageUpload, Z as isEditableEventTarget, x as isUpperHalf, O as layerRoleAt, z as measureCursorAnchor, G as pathPickerEntries, H as placePopupInViewport, k as readField, le as rowsPathCompletionSource, ie as selectionFieldMergeKey, Y as shortcutActionLabel, K as stripResourceTemplate, se as uploadFileFromDom, ge as useDataSourceSchema, me as useDataSourceSchemaRejection, r as useDpr, pe as useDropdownMenu, re as useExpressionCompletion, ee as useExpressionDiagnostics, o as useFindSession, xe as useHistory, C as useLayerPanel, ue as usePathCompletion, P as usePropertyPanel, de as useSelection, Ce as useShortcuts, be as useShortcutsHelp, g as useTextEditing, $ as useTransientFeedback, fe as useViewport, i as watchDprChanges };
16
+ export { _ as ADD_LAYER_MENU, S as ADD_MENU, w as ADD_RATIO_PRESET_MENU, v as ADD_TEXT_PRESET_MENU, $ as ARM_LAYER_CREATE_HINT, e as AlignFloatBar, F as CANVAS_FIELD_SECTIONS, n as CanvasSurface, a as ContextMenu, X as DATA_SOURCE_GATE_HINT, _e as DropdownMenu, f as EditOverlayToolbar, se as ExpressionCompletionPopup, G as ExpressionPathPicker, D as FIELD_SECTIONS_BY_TYPE, de as FONT_PICKER_KEY, l as FindBar, m as GuidesOverlay, Ce as HelpDialog, E as IMAGE_UPLOAD_KEY, T as LayerPanel, Te as PACKAGE_NAME, b as PANEL_ADD_MENU, V as POPUP_GAP, U as POPUP_MARGIN, z as PanelIcon, M as PropertyField, I as PropertyPanel, d as Ruler, be as StatusBar, y as TemplateTableForm, c as TextEditingOverlay, re as applyCompletion, q as attachResourceTemplate, A as controlRegistry, u as createGizmoOverlayPainter, h as createRafScheduler, te as detectShortcutPlatform, t as drawCreateRubberBand, s as drawFindMatches, p as drawSelectionGizmo, ie as expressionCompletionSource, le as expressionDiagnosticHint, ue as expressionFieldContext, j as fieldSectionsForPath, L as fieldSectionsForType, ve as formatLayerGeometry, ye as formatLayerPath, ae as injectFontPicker, N as injectImageUpload, Z as isEditableEventTarget, x as isUpperHalf, O as layerRoleAt, pe as measureCursorAnchor, R as pathPickerEntries, B as placePopupInViewport, k as readField, H as rowsPathPickerSource, W as rowsPathValueDrifts, ce as selectionFieldMergeKey, Y as shortcutActionLabel, K as stripResourceTemplate, fe as uploadFileFromDom, J as useDataSourceSchema, Q as useDataSourceSchemaRejection, r as useDpr, ge as useDropdownMenu, oe as useExpressionCompletion, ne as useExpressionDiagnostics, o as useFindSession, Se as useHistory, C as useLayerPanel, P as usePropertyPanel, me as useSelection, we as useShortcuts, xe as useShortcutsHelp, g as useTextEditing, ee as useTransientFeedback, he as useViewport, i as watchDprChanges };
@@ -8,31 +8,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onCancel?: (() => any) | undefined;
10
10
  onConfirm?: ((rowsPath: string) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
- rowsPathInputEl: HTMLInputElement;
13
- pathPopupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
14
- state: import('..').ExpressionCompletionState;
15
- }> & Readonly<{
16
- onSelect?: ((index: number) => any) | undefined;
17
- }>, {
18
- rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
19
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- select: (index: number) => any;
21
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
22
- rootRef: HTMLDivElement;
23
- }, any, import('vue').ComponentProvideOptions, {
24
- P: {};
25
- B: {};
26
- D: {};
27
- C: {};
28
- M: {};
29
- Defaults: {};
30
- }, Readonly<{
31
- state: import('..').ExpressionCompletionState;
32
- }> & Readonly<{
33
- onSelect?: ((index: number) => any) | undefined;
34
- }>, {
35
- rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
36
- }, {}, {}, {}, {}> | null;
37
- }, HTMLDivElement>;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
38
12
  export default _default;