@fayz-ai/plugin-agenda 0.9.0-next.0 → 0.9.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.
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/google-calendar/connectorDef.d.ts.map +1 -1
- package/dist/views/CalendarView.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/integrations/google-calendar/connectorDef.tsx +8 -0
- package/src/views/CalendarView.tsx +28 -0
package/dist/index.js
CHANGED
|
@@ -2712,6 +2712,27 @@ function CalendarView() {
|
|
|
2712
2712
|
setFilters({ statuses: next });
|
|
2713
2713
|
}
|
|
2714
2714
|
const wrapperRef = useRef(null);
|
|
2715
|
+
useEffect(() => {
|
|
2716
|
+
const container = wrapperRef.current;
|
|
2717
|
+
if (!container) return;
|
|
2718
|
+
let frame = 0;
|
|
2719
|
+
let lastWidth = container.clientWidth;
|
|
2720
|
+
let lastHeight = container.clientHeight;
|
|
2721
|
+
const ro = new ResizeObserver(() => {
|
|
2722
|
+
const width = container.clientWidth;
|
|
2723
|
+
const height = container.clientHeight;
|
|
2724
|
+
if (width === lastWidth && height === lastHeight) return;
|
|
2725
|
+
lastWidth = width;
|
|
2726
|
+
lastHeight = height;
|
|
2727
|
+
cancelAnimationFrame(frame);
|
|
2728
|
+
frame = requestAnimationFrame(() => calendarRef.current?.getApi()?.updateSize());
|
|
2729
|
+
});
|
|
2730
|
+
ro.observe(container);
|
|
2731
|
+
return () => {
|
|
2732
|
+
cancelAnimationFrame(frame);
|
|
2733
|
+
ro.disconnect();
|
|
2734
|
+
};
|
|
2735
|
+
}, [isMobile, mobileGridActive, professionalsLoading, professionals.length]);
|
|
2715
2736
|
const [dayHeaderCompact, setDayHeaderCompact] = useState(false);
|
|
2716
2737
|
useEffect(() => {
|
|
2717
2738
|
const container = wrapperRef.current;
|
|
@@ -5581,6 +5602,14 @@ var googleCalendarConnectorDef = {
|
|
|
5581
5602
|
description: "Two-way sync between your bookings and Google Calendar.",
|
|
5582
5603
|
icon: "Calendar",
|
|
5583
5604
|
authKind: "oauth",
|
|
5605
|
+
category: "scheduling",
|
|
5606
|
+
direction: "outbound",
|
|
5607
|
+
// Sync only, and deliberately: the agenda has to exist inside the app — to be
|
|
5608
|
+
// listed, filtered, reported on, and read when Google is unreachable. An
|
|
5609
|
+
// agentic plane would answer questions but leave the calendar screen empty.
|
|
5610
|
+
planes: ["sync"],
|
|
5611
|
+
entities: ["booking"],
|
|
5612
|
+
docsUrl: "https://support.google.com/calendar",
|
|
5584
5613
|
async getStatus() {
|
|
5585
5614
|
const integ = await provider.getIntegration();
|
|
5586
5615
|
return { connected: !!integ?.connected };
|