@fayz-ai/plugin-crm 0.33.3 → 0.34.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/{CrmPage-QR3MSBZP.js → CrmPage-Z2HRXNCW.js} +158 -5
- package/dist/CrmPage-Z2HRXNCW.js.map +1 -0
- package/dist/components/TagEditor.d.ts +11 -0
- package/dist/components/TagEditor.d.ts.map +1 -0
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/pt-BR.d.ts.map +1 -1
- package/dist/views/DealCardModal.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/CrmPage-QR3MSBZP.js.map +0 -1
|
@@ -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,
|
|
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)
|
|
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",
|
|
@@ -6524,6 +6533,12 @@ var ptBR = {
|
|
|
6524
6533
|
"crm.dealSidebar.quotesAppear": "Or\xE7amentos criados para este lead aparecer\xE3o aqui",
|
|
6525
6534
|
"crm.dealSidebar.stage": "Etapa",
|
|
6526
6535
|
"crm.dealSidebar.tags": "Tags",
|
|
6536
|
+
"crm.tagEditor.add": "Adicionar tag",
|
|
6537
|
+
"crm.tagEditor.placeholder": "Buscar ou criar tag\u2026",
|
|
6538
|
+
"crm.tagEditor.create": "Criar \u201C{{tag}}\u201D",
|
|
6539
|
+
"crm.tagEditor.done": "Concluir",
|
|
6540
|
+
"crm.tagEditor.remove": "Remover {{tag}}",
|
|
6541
|
+
"crm.tagEditor.saveError": "N\xE3o foi poss\xEDvel salvar as tags",
|
|
6527
6542
|
"crm.dealSidebar.updated": "Atualizado",
|
|
6528
6543
|
"crm.dealSidebar.value": "Valor",
|
|
6529
6544
|
"crm.dealSidebar.viewLeadProfile": "Ver Perfil Completo do Lead",
|
|
@@ -7817,7 +7832,7 @@ var crmV1SettingsTabs = [
|
|
|
7817
7832
|
];
|
|
7818
7833
|
|
|
7819
7834
|
// src/index.ts
|
|
7820
|
-
var CrmPage = React.lazy(() => import('./CrmPage-
|
|
7835
|
+
var CrmPage = React.lazy(() => import('./CrmPage-Z2HRXNCW.js').then((m) => ({ default: m.CrmPage })));
|
|
7821
7836
|
var CrmGeneralSettings = lazyComponent(() => import('./CrmGeneralSettings-6XPS3L42.js').then((m) => m.CrmGeneralSettings));
|
|
7822
7837
|
var SegmentsView = lazyComponent(() => import('./SegmentsView-PHLN2MOW.js').then((m) => m.SegmentsView));
|
|
7823
7838
|
var DEFAULT_LABELS = {
|