@fayz-ai/plugin-agenda 0.8.3 → 0.8.4

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { createMockAgendaProvider, createSupabasePublicBookingProvider } from './chunk-YQO6B4G3.js';
2
- export { createMockAgendaProvider } from './chunk-YQO6B4G3.js';
1
+ import { createMockAgendaProvider, createSupabasePublicBookingProvider } from './chunk-Q2PAWBPR.js';
2
+ export { createMockAgendaProvider } from './chunk-Q2PAWBPR.js';
3
3
  import React13, { useState, useEffect, useCallback, useMemo, useRef } from 'react';
4
4
  import { getSupabaseClientOptional, getActiveTenantId, registerTranslations, createSafeDataProvider, usePluginRuntimeOptional, useTranslation, getCurrentLocale, useDataChanged, formatCurrency } from '@fayz-ai/core';
5
5
  import { createPluginContext, setScheduleBlockConfig, getScheduleBlockConfig, PluginSettingsPanel, dedup, useTenantPluginSettings, SettingsGroup, ToggleRow, SelectRow, usePluginPrefs, PersonLink, useLimitGuard, CrudFormPage, CrudDetailPage, ContactPicker, invalidateLimit } from '@fayz-ai/saas';
@@ -4399,7 +4399,10 @@ CREATE INDEX IF NOT EXISTS appointments_assignee_time
4399
4399
  WHERE status NOT IN ('cancelled', 'no_show');
4400
4400
 
4401
4401
  -- \xA72 \u2014 admin read model (security_invoker \u2192 underlying RLS applies; anon sees 0 rows)
4402
- CREATE OR REPLACE VIEW public.v_appointments
4402
+ -- DROP first: 013 widens this view and CREATE OR REPLACE cannot narrow a live
4403
+ -- view on replay ("cannot drop columns from view"). 013 replays right after.
4404
+ DROP VIEW IF EXISTS public.v_appointments;
4405
+ CREATE VIEW public.v_appointments
4403
4406
  WITH (security_invoker = true) AS
4404
4407
  SELECT
4405
4408
  b.id, b.tenant_id, b.kind, b.starts_at, b.ends_at, b.status, b.notes,
@@ -4427,7 +4430,9 @@ GRANT SELECT ON public.v_appointments TO authenticated, service_role;
4427
4430
  REVOKE SELECT ON public.v_appointments FROM anon;
4428
4431
 
4429
4432
  -- \xA73 \u2014 anon-readable public catalog (owner-rights view = deliberate, whitelisted)
4430
- CREATE OR REPLACE VIEW public.v_public_services AS
4433
+ -- DROP first: 010 widens this view (curation columns) \u2014 same replay rule as \xA72.
4434
+ DROP VIEW IF EXISTS public.v_public_services;
4435
+ CREATE VIEW public.v_public_services AS
4431
4436
  SELECT
4432
4437
  s.id, s.tenant_id, s.name, s.description, s.price, s.currency,
4433
4438
  COALESCE(s.duration_minutes, 30) AS duration_minutes,