@bacca2095/webphone 1.1.0 → 1.2.1

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,7 +1,7 @@
1
1
  import { WebPhoneConfig, Contact } from '../types';
2
2
  type __VLS_Props = {
3
3
  config?: WebPhoneConfig;
4
- float?: boolean;
4
+ floating?: boolean;
5
5
  contacts?: Contact[];
6
6
  };
7
7
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
@@ -3,7 +3,7 @@ type __VLS_Props = {
3
3
  isConnecting: boolean;
4
4
  isDark: boolean;
5
5
  rootEl: HTMLElement | null;
6
- float?: boolean;
6
+ floating?: boolean;
7
7
  isDragging?: boolean;
8
8
  };
9
9
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1,8 +1,10 @@
1
1
  import { Plugin } from 'vue';
2
+ import { default as WebPhoneComponent } from './components/WebPhone.vue';
3
+ declare const WebPhone: typeof WebPhoneComponent & Plugin;
4
+ export { WebPhone };
2
5
  export { useWebPhone } from './composables/useWebPhone';
3
6
  export { useAudioDevices } from './composables/useAudioDevices';
4
7
  export { useWebPhoneStore } from './stores/webphone';
5
- export { default as WebPhone } from './components/WebPhone.vue';
6
8
  export { default as NotesPanel } from './components/panels/NotesPanel.vue';
7
9
  export { default as HistoryPanel } from './components/panels/HistoryPanel.vue';
8
10
  export { default as ContactsPanel } from './components/panels/ContactsPanel.vue';
@@ -10,4 +12,3 @@ export { default as CalendarPanel } from './components/panels/CalendarPanel.vue'
10
12
  export { useContacts } from './composables/useContacts';
11
13
  export type { CallInfo, CallStatus, CallDirection, WebPhoneConfig, Contact, ContactType, PhoneNote, NoteColor, ScheduledCall } from './types';
12
14
  export type { MicPermission } from './composables/useAudioDevices';
13
- export declare const WebPhonePlugin: Plugin;
@@ -1,5 +1,5 @@
1
1
  export declare const WebPhoneElement: import('vue').VueElementConstructor<{
2
2
  config?: import('./types').WebPhoneConfig;
3
- float?: boolean;
3
+ floating?: boolean;
4
4
  contacts?: import('./types').Contact[];
5
5
  }>;
@@ -25211,7 +25211,7 @@ var gO = null, _O = () => (gO ||= new AudioContext(), gO.state === "suspended" &
25211
25211
  isConnecting: { type: Boolean },
25212
25212
  isDark: { type: Boolean },
25213
25213
  rootEl: {},
25214
- float: { type: Boolean },
25214
+ floating: { type: Boolean },
25215
25215
  isDragging: { type: Boolean }
25216
25216
  },
25217
25217
  emits: [
@@ -25231,7 +25231,7 @@ var gO = null, _O = () => (gO ||= new AudioContext(), gO.state === "suspended" &
25231
25231
  }, c = () => {
25232
25232
  r.value = !1, n("open-calendar");
25233
25233
  }, { sipConfig: l, isConfigured: u } = hO(), { connect: d, disconnect: f } = tO();
25234
- return (t, p) => (W(), Uc("div", { class: we(["flex items-center justify-between px-5 py-3 bg-muted/70", e.float ? e.isDragging ? "cursor-grabbing" : "cursor-grab" : ""]) }, [p[22] ||= K("span", { class: "text-xs font-medium text-muted-foreground" }, "Webphone", -1), K("div", $O, [
25234
+ return (t, p) => (W(), Uc("div", { class: we(["flex items-center justify-between px-5 py-3 bg-muted/70", e.floating ? e.isDragging ? "cursor-grabbing" : "cursor-grab" : ""]) }, [p[22] ||= K("span", { class: "text-xs font-medium text-muted-foreground" }, "Webphone", -1), K("div", $O, [
25235
25235
  K("span", { class: we(["size-2 rounded-full", e.isRegistered ? "bg-green-500" : e.isConnecting ? "bg-amber-400 animate-pulse" : "bg-muted-foreground/30"]) }, null, 2),
25236
25236
  K("span", ek, We(e.isConnecting ? "Conectando…" : e.isRegistered ? "Registrado" : "Sin conexión"), 1),
25237
25237
  K("button", {
@@ -25769,7 +25769,7 @@ var kk = (e) => {
25769
25769
  __name: "WebPhone",
25770
25770
  props: {
25771
25771
  config: {},
25772
- float: { type: Boolean },
25772
+ floating: { type: Boolean },
25773
25773
  contacts: {}
25774
25774
  },
25775
25775
  emits: [
@@ -25785,7 +25785,7 @@ var kk = (e) => {
25785
25785
  x: 20,
25786
25786
  y: 20
25787
25787
  }
25788
- }), l = Y(() => r.float ? {
25788
+ }), l = Y(() => r.floating ? {
25789
25789
  position: "fixed",
25790
25790
  left: `${o.value}px`,
25791
25791
  top: `${s.value}px`
@@ -25854,7 +25854,7 @@ var kk = (e) => {
25854
25854
  return (e, t) => (W(), Uc("div", {
25855
25855
  ref: "root",
25856
25856
  style: ve(l.value),
25857
- class: we(["w-full max-w-[18rem] rounded-3xl bg-background shadow-md overflow-hidden select-none flex flex-col border", { "z-50": r.float }]),
25857
+ class: we(["w-full max-w-[18rem] rounded-3xl bg-background shadow-md overflow-hidden select-none flex flex-col border", { "z-50": r.floating }]),
25858
25858
  onKeydown: ue,
25859
25859
  tabindex: "-1"
25860
25860
  }, [
@@ -25863,7 +25863,7 @@ var kk = (e) => {
25863
25863
  "is-connecting": L(h),
25864
25864
  "is-dark": L(d),
25865
25865
  "root-el": a.value,
25866
- float: r.float,
25866
+ floating: r.floating,
25867
25867
  "is-dragging": L(c),
25868
25868
  onToggleDark: t[0] ||= () => L(f)(),
25869
25869
  onOpenHistory: t[1] ||= (e) => i("open-history"),
@@ -25875,7 +25875,7 @@ var kk = (e) => {
25875
25875
  "is-connecting",
25876
25876
  "is-dark",
25877
25877
  "root-el",
25878
- "float",
25878
+ "floating",
25879
25879
  "is-dragging"
25880
25880
  ])], 512),
25881
25881
  L(D) === "denied" ? (W(), Uc("div", qk, [q(L(uE), { variant: "destructive" }, {