@fayz-ai/plugin-crm 0.33.4 → 0.35.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.
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ export interface DisplayOption {
3
+ key: string;
4
+ label: string;
5
+ }
6
+ export interface DisplayConfig {
7
+ /** The page title inside the menu ("Card properties", "Columns"). */
8
+ title: string;
9
+ options: DisplayOption[];
10
+ visible: Record<string, boolean>;
11
+ onChange: (next: Record<string, boolean>) => void;
12
+ }
13
+ /**
14
+ * Display — the view's preferences, in pages like the card menu: the top level
15
+ * lists the section ("Card properties ▸"), the inner page carries ‹ Back.
16
+ * Options that are ON are highlighted in the brand ink; OFF ones are muted, so
17
+ * the state reads before the label.
18
+ */
19
+ export declare function DisplayPopover({ config }: {
20
+ config: DisplayConfig;
21
+ }): React.JSX.Element;
22
+ export interface DealsToolbarProps {
23
+ search: string;
24
+ onSearchChange: (value: string) => void;
25
+ /** Chips of filters in use, the filters menu, the unit picker, actions. */
26
+ children?: React.ReactNode;
27
+ /** Rendered after `children`, as the last control of the bar. */
28
+ display?: DisplayConfig;
29
+ /**
30
+ * `card` draws its own card (the board, where nothing sits under the bar);
31
+ * `header` is the top row of a card the caller owns (the list, where the
32
+ * bar and the table are one surface).
33
+ */
34
+ variant?: 'card' | 'header';
35
+ }
36
+ export declare function DealsToolbar({ search, onSearchChange, children, display, variant }: DealsToolbarProps): React.JSX.Element;
37
+ //# sourceMappingURL=DealsToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DealsToolbar.d.ts","sourceRoot":"","sources":["../../src/components/DealsToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAiBvC,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;CAClD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,aAAa,CAAA;CAAE,qBAqEnE;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,iEAAiE;IACjE,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC5B;AAED,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAkB,EAAE,EAAE,iBAAiB,qBAuBhH"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { TagDef } from '../types';
3
+ export declare function slugifyTag(text: string): string;
4
+ export interface TagEditorProps {
5
+ tags: string[];
6
+ defs?: Map<string, TagDef>;
7
+ onChange: (next: string[]) => void;
8
+ disabled?: boolean;
9
+ }
10
+ export declare function TagEditor({ tags, defs, onChange, disabled }: TagEditorProps): React.JSX.Element;
11
+ //# sourceMappingURL=TagEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagEditor.d.ts","sourceRoot":"","sources":["../../src/components/TagEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAA;AAIxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAYtC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM/C;AAMD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,cAAc,qBAoH3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAuX9C,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE;IAClD,gBAAgB,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,kFAAkF;IAClF,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACvE,GAAG,eAAe,CAqlFlB"}
1
+ {"version":3,"file":"supabase.d.ts","sourceRoot":"","sources":["../../src/data/supabase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAuX9C,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE;IAClD,gBAAgB,CAAC,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACtF,kFAAkF;IAClF,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACvE,GAAG,eAAe,CAwlFlB"}
package/dist/index.js CHANGED
@@ -2684,7 +2684,10 @@ function createSupabaseCrmProvider(options) {
2684
2684
  if (partial.probability != null) row.probability = partial.probability;
2685
2685
  if (partial.expectedCloseDate != null) row.expected_close_date = partial.expectedCloseDate;
2686
2686
  if (partial.notes !== void 0) row.notes = partial.notes || null;
2687
- if (partial.tags != null) row.tags = partial.tags;
2687
+ if (partial.tags != null) {
2688
+ row.tags = partial.tags;
2689
+ await registerTags(partial.tags);
2690
+ }
2688
2691
  if (partial.assignedToId !== void 0) row.assigned_to_id = partial.assignedToId ?? null;
2689
2692
  if (partial.contactId !== void 0) {
2690
2693
  row.contact_id = partial.contactId ?? null;
@@ -5500,6 +5503,12 @@ var en = {
5500
5503
  "crm.dealSidebar.quotesAppear": "Quotes created for this lead will appear here",
5501
5504
  "crm.dealSidebar.stage": "Stage",
5502
5505
  "crm.dealSidebar.tags": "Tags",
5506
+ "crm.tagEditor.add": "Add tag",
5507
+ "crm.tagEditor.placeholder": "Search or create a tag\u2026",
5508
+ "crm.tagEditor.create": "Create \u201C{{tag}}\u201D",
5509
+ "crm.tagEditor.done": "Done",
5510
+ "crm.tagEditor.remove": "Remove {{tag}}",
5511
+ "crm.tagEditor.saveError": "Could not save the tags",
5503
5512
  "crm.dealSidebar.updated": "Updated",
5504
5513
  "crm.dealSidebar.value": "Value",
5505
5514
  "crm.dealSidebar.viewLeadProfile": "View Full Lead Profile",
@@ -5723,6 +5732,7 @@ var en = {
5723
5732
  "crm.deals.viewFunnel": "Conversion",
5724
5733
  "crm.deals.colDeal": "Deal",
5725
5734
  "crm.deals.colIdle": "Idle for",
5735
+ "crm.deals.columns": "List columns",
5726
5736
  "crm.deals.searchPlaceholder": "Search deal, contact or stage",
5727
5737
  "crm.deals.summary": "{{count}} deals \xB7 {{value}}",
5728
5738
  "crm.funnelView.fromTop": "{{pct}}% of the top",
@@ -6524,6 +6534,12 @@ var ptBR = {
6524
6534
  "crm.dealSidebar.quotesAppear": "Or\xE7amentos criados para este lead aparecer\xE3o aqui",
6525
6535
  "crm.dealSidebar.stage": "Etapa",
6526
6536
  "crm.dealSidebar.tags": "Tags",
6537
+ "crm.tagEditor.add": "Adicionar tag",
6538
+ "crm.tagEditor.placeholder": "Buscar ou criar tag\u2026",
6539
+ "crm.tagEditor.create": "Criar \u201C{{tag}}\u201D",
6540
+ "crm.tagEditor.done": "Concluir",
6541
+ "crm.tagEditor.remove": "Remover {{tag}}",
6542
+ "crm.tagEditor.saveError": "N\xE3o foi poss\xEDvel salvar as tags",
6527
6543
  "crm.dealSidebar.updated": "Atualizado",
6528
6544
  "crm.dealSidebar.value": "Valor",
6529
6545
  "crm.dealSidebar.viewLeadProfile": "Ver Perfil Completo do Lead",
@@ -6747,6 +6763,7 @@ var ptBR = {
6747
6763
  "crm.deals.viewFunnel": "Convers\xE3o",
6748
6764
  "crm.deals.colDeal": "Neg\xF3cio",
6749
6765
  "crm.deals.colIdle": "Sem mexer h\xE1",
6766
+ "crm.deals.columns": "Colunas da lista",
6750
6767
  "crm.deals.searchPlaceholder": "Buscar por neg\xF3cio, contato ou etapa",
6751
6768
  "crm.deals.summary": "{{count}} neg\xF3cios \xB7 {{value}}",
6752
6769
  "crm.funnelView.fromTop": "{{pct}}% do topo",
@@ -7817,7 +7834,7 @@ var crmV1SettingsTabs = [
7817
7834
  ];
7818
7835
 
7819
7836
  // src/index.ts
7820
- var CrmPage = React.lazy(() => import('./CrmPage-QR3MSBZP.js').then((m) => ({ default: m.CrmPage })));
7837
+ var CrmPage = React.lazy(() => import('./CrmPage-ZOHVY2FA.js').then((m) => ({ default: m.CrmPage })));
7821
7838
  var CrmGeneralSettings = lazyComponent(() => import('./CrmGeneralSettings-6XPS3L42.js').then((m) => m.CrmGeneralSettings));
7822
7839
  var SegmentsView = lazyComponent(() => import('./SegmentsView-PHLN2MOW.js').then((m) => m.SegmentsView));
7823
7840
  var DEFAULT_LABELS = {