@tailor-cms/ce-file-edit 0.0.1 → 0.1.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.
@@ -1,8 +1,9 @@
1
1
  import type { Element } from '@tailor-cms/ce-file-manifest';
2
2
  type __VLS_Props = {
3
3
  element: Element;
4
+ isDragged: boolean;
4
5
  isFocused: boolean;
5
- isDisabled: boolean;
6
+ isReadonly: boolean;
6
7
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
9
  export default _default;
@@ -6,5 +6,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
6
6
  save: (...args: any[]) => void;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onSave?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -6,5 +6,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
6
6
  save: (...args: any[]) => void;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onSave?: ((...args: any[]) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -250,10 +250,6 @@ function basename(filename, ext) {
250
250
  return baseNameWithExt.substring(0, extIndex);
251
251
  }
252
252
  }
253
- var HTTP_URL_RE = /^https?:\/\//;
254
- function isUrlString(str) {
255
- return str.startsWith("/") || HTTP_URL_RE.test(str);
256
- }
257
253
  var deepClone = (0, import_rfdc.default)({ circles: true });
258
254
  const DEBOUNCE_DEFAULTS = {
259
255
  trailing: true
@@ -2930,62 +2926,6 @@ var devtoolsState = new Proxy(target[STATE_KEY], {
2930
2926
  return true;
2931
2927
  }
2932
2928
  });
2933
- function onDevToolsConnected(fn) {
2934
- return new Promise((resolve) => {
2935
- if (devtoolsState.connected) {
2936
- fn();
2937
- resolve();
2938
- }
2939
- devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
2940
- if (state.connected) {
2941
- fn();
2942
- resolve();
2943
- }
2944
- });
2945
- });
2946
- }
2947
- var resolveIcon = (icon) => {
2948
- if (!icon)
2949
- return;
2950
- if (icon.startsWith("baseline-")) {
2951
- return `custom-ic-${icon}`;
2952
- }
2953
- if (icon.startsWith("i-") || isUrlString(icon))
2954
- return icon;
2955
- return `custom-ic-baseline-${icon}`;
2956
- };
2957
- function addCustomTab(tab) {
2958
- const tabs = target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
2959
- if (tabs.some((t) => t.name === tab.name))
2960
- return;
2961
- tabs.push({
2962
- ...tab,
2963
- icon: resolveIcon(tab.icon)
2964
- });
2965
- updateAllStates();
2966
- }
2967
- function addCustomCommand(action) {
2968
- const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
2969
- if (commands.some((t) => t.id === action.id))
2970
- return;
2971
- commands.push({
2972
- ...action,
2973
- icon: resolveIcon(action.icon),
2974
- children: action.children ? action.children.map((child) => ({
2975
- ...child,
2976
- icon: resolveIcon(child.icon)
2977
- })) : void 0
2978
- });
2979
- updateAllStates();
2980
- }
2981
- function removeCustomCommand(actionId) {
2982
- const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
2983
- const index = commands.findIndex((t) => t.id === actionId);
2984
- if (index === -1)
2985
- return;
2986
- commands.splice(index, 1);
2987
- updateAllStates();
2988
- }
2989
2929
  function openInEditor(options = {}) {
2990
2930
  var _a25, _b25, _c;
2991
2931
  const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
@@ -3556,21 +3496,7 @@ var _a17, _b17;
3556
3496
  id: 0,
3557
3497
  appIds: /* @__PURE__ */ new Set()
3558
3498
  };
3559
- function onDevToolsClientConnected(fn) {
3560
- return new Promise((resolve) => {
3561
- if (devtoolsState.connected && devtoolsState.clientConnected) {
3562
- fn();
3563
- resolve();
3564
- return;
3565
- }
3566
- devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
3567
- if (state.connected && state.clientConnected) {
3568
- fn();
3569
- resolve();
3570
- }
3571
- });
3572
- });
3573
- }
3499
+ init_esm_shims();
3574
3500
  init_esm_shims();
3575
3501
  function toggleHighPerfMode(state) {
3576
3502
  devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
@@ -4390,10 +4316,5 @@ init_esm_shims();
4390
4316
  init_esm_shims();
4391
4317
  init_esm_shims();
4392
4318
  init_esm_shims();
4393
- exports.addCustomCommand = addCustomCommand;
4394
- exports.addCustomTab = addCustomTab;
4395
- exports.onDevToolsClientConnected = onDevToolsClientConnected;
4396
- exports.onDevToolsConnected = onDevToolsConnected;
4397
- exports.removeCustomCommand = removeCustomCommand;
4398
4319
  exports.setupDevToolsPlugin = setupDevToolsPlugin;
4399
4320
  exports.setupDevtoolsPlugin = setupDevToolsPlugin;
@@ -248,10 +248,6 @@ function basename(filename, ext) {
248
248
  return baseNameWithExt.substring(0, extIndex);
249
249
  }
250
250
  }
251
- var HTTP_URL_RE = /^https?:\/\//;
252
- function isUrlString(str) {
253
- return str.startsWith("/") || HTTP_URL_RE.test(str);
254
- }
255
251
  var deepClone = (0, import_rfdc.default)({ circles: true });
256
252
  const DEBOUNCE_DEFAULTS = {
257
253
  trailing: true
@@ -2928,62 +2924,6 @@ var devtoolsState = new Proxy(target[STATE_KEY], {
2928
2924
  return true;
2929
2925
  }
2930
2926
  });
2931
- function onDevToolsConnected(fn) {
2932
- return new Promise((resolve) => {
2933
- if (devtoolsState.connected) {
2934
- fn();
2935
- resolve();
2936
- }
2937
- devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
2938
- if (state.connected) {
2939
- fn();
2940
- resolve();
2941
- }
2942
- });
2943
- });
2944
- }
2945
- var resolveIcon = (icon) => {
2946
- if (!icon)
2947
- return;
2948
- if (icon.startsWith("baseline-")) {
2949
- return `custom-ic-${icon}`;
2950
- }
2951
- if (icon.startsWith("i-") || isUrlString(icon))
2952
- return icon;
2953
- return `custom-ic-baseline-${icon}`;
2954
- };
2955
- function addCustomTab(tab) {
2956
- const tabs = target.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;
2957
- if (tabs.some((t) => t.name === tab.name))
2958
- return;
2959
- tabs.push({
2960
- ...tab,
2961
- icon: resolveIcon(tab.icon)
2962
- });
2963
- updateAllStates();
2964
- }
2965
- function addCustomCommand(action) {
2966
- const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
2967
- if (commands.some((t) => t.id === action.id))
2968
- return;
2969
- commands.push({
2970
- ...action,
2971
- icon: resolveIcon(action.icon),
2972
- children: action.children ? action.children.map((child) => ({
2973
- ...child,
2974
- icon: resolveIcon(child.icon)
2975
- })) : void 0
2976
- });
2977
- updateAllStates();
2978
- }
2979
- function removeCustomCommand(actionId) {
2980
- const commands = target.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;
2981
- const index = commands.findIndex((t) => t.id === actionId);
2982
- if (index === -1)
2983
- return;
2984
- commands.splice(index, 1);
2985
- updateAllStates();
2986
- }
2987
2927
  function openInEditor(options = {}) {
2988
2928
  var _a25, _b25, _c;
2989
2929
  const { file, host, baseUrl = window.location.origin, line = 0, column = 0 } = options;
@@ -3554,21 +3494,7 @@ var _a17, _b17;
3554
3494
  id: 0,
3555
3495
  appIds: /* @__PURE__ */ new Set()
3556
3496
  };
3557
- function onDevToolsClientConnected(fn) {
3558
- return new Promise((resolve) => {
3559
- if (devtoolsState.connected && devtoolsState.clientConnected) {
3560
- fn();
3561
- resolve();
3562
- return;
3563
- }
3564
- devtoolsContext.hooks.hook("devtoolsConnectedUpdated", ({ state }) => {
3565
- if (state.connected && state.clientConnected) {
3566
- fn();
3567
- resolve();
3568
- }
3569
- });
3570
- });
3571
- }
3497
+ init_esm_shims();
3572
3498
  init_esm_shims();
3573
3499
  function toggleHighPerfMode(state) {
3574
3500
  devtoolsState.highPerfModeEnabled = state != null ? state : !devtoolsState.highPerfModeEnabled;
@@ -4389,11 +4315,6 @@ init_esm_shims();
4389
4315
  init_esm_shims();
4390
4316
  init_esm_shims();
4391
4317
  export {
4392
- addCustomCommand,
4393
- addCustomTab,
4394
- onDevToolsClientConnected,
4395
- onDevToolsConnected,
4396
- removeCustomCommand,
4397
4318
  setupDevToolsPlugin,
4398
4319
  setupDevToolsPlugin as setupDevtoolsPlugin
4399
4320
  };