@happyvertical/smrt-commerce 0.37.2 → 0.37.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "timestamp": 1782873353941,
3
+ "timestamp": 1782943604425,
4
4
  "packageName": "@happyvertical/smrt-commerce",
5
- "packageVersion": "0.37.2",
5
+ "packageVersion": "0.37.4",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-commerce:ContractCollection": {
8
8
  "name": "contractcollection",
@@ -1,108 +1,96 @@
1
1
  import { COMMERCE_MODULE_META } from "./ui.js";
2
- const noop = () => {
2
+ //#region src/svelte/playground.ts
3
+ var noop = () => {};
4
+ var sampleInvoice = {
5
+ id: "invoice-2026-0142",
6
+ invoiceNumber: "INV-2026-0142",
7
+ status: "sent",
8
+ issueDate: "2026-03-15T00:00:00.000Z",
9
+ dueDate: "2026-03-29T00:00:00.000Z",
10
+ totalAmount: 128450,
11
+ customerName: "Riverstone Newsroom",
12
+ projectName: "Editorial Systems Retainer"
3
13
  };
4
- const sampleInvoice = {
5
- id: "invoice-2026-0142",
6
- invoiceNumber: "INV-2026-0142",
7
- status: "sent",
8
- issueDate: "2026-03-15T00:00:00.000Z",
9
- dueDate: "2026-03-29T00:00:00.000Z",
10
- totalAmount: 128450,
11
- customerName: "Riverstone Newsroom",
12
- projectName: "Editorial Systems Retainer"
13
- };
14
- const sampleUnbilledItems = [
15
- {
16
- id: "unbilled-time-1",
17
- type: "time",
18
- description: "Governance workflow setup",
19
- date: "2026-03-12T00:00:00.000Z",
20
- amount: 42e3,
21
- category: "Implementation",
22
- selected: true
23
- },
24
- {
25
- id: "unbilled-expense-1",
26
- type: "expense",
27
- description: "Contributor QA workshop",
28
- date: "2026-03-14T00:00:00.000Z",
29
- amount: 18500,
30
- category: "Training"
31
- },
32
- {
33
- id: "unbilled-time-2",
34
- type: "time",
35
- description: "Release validation and docs cleanup",
36
- date: "2026-03-18T00:00:00.000Z",
37
- amount: 33950,
38
- category: "QA"
39
- }
14
+ var sampleUnbilledItems = [
15
+ {
16
+ id: "unbilled-time-1",
17
+ type: "time",
18
+ description: "Governance workflow setup",
19
+ date: "2026-03-12T00:00:00.000Z",
20
+ amount: 42e3,
21
+ category: "Implementation",
22
+ selected: true
23
+ },
24
+ {
25
+ id: "unbilled-expense-1",
26
+ type: "expense",
27
+ description: "Contributor QA workshop",
28
+ date: "2026-03-14T00:00:00.000Z",
29
+ amount: 18500,
30
+ category: "Training"
31
+ },
32
+ {
33
+ id: "unbilled-time-2",
34
+ type: "time",
35
+ description: "Release validation and docs cleanup",
36
+ date: "2026-03-18T00:00:00.000Z",
37
+ amount: 33950,
38
+ category: "QA"
39
+ }
40
40
  ];
41
- const loadInvoiceActions = () => import("./svelte/components/InvoiceActions.svelte");
42
- const loadInvoiceCard = () => import("./svelte/components/InvoiceCard.svelte");
43
- const loadUnbilledItems = () => import("./svelte/components/UnbilledItems.svelte");
44
- const playground = {
45
- packageName: "@happyvertical/smrt-commerce",
46
- displayName: COMMERCE_MODULE_META.displayName,
47
- description: COMMERCE_MODULE_META.description,
48
- moduleMeta: COMMERCE_MODULE_META,
49
- entries: [
50
- {
51
- id: "invoice-card",
52
- title: "Invoice Card",
53
- description: "Compact invoice summary card used in billing and receivables views.",
54
- loadComponent: loadInvoiceCard,
55
- order: 1,
56
- props: {
57
- invoice: sampleInvoice,
58
- currency: "CAD",
59
- onclick: noop
60
- },
61
- modes: {
62
- mock: {
63
- label: "Mock"
64
- }
65
- }
66
- },
67
- {
68
- id: "invoice-actions",
69
- title: "Invoice Actions",
70
- description: "Status-aware billing actions for sending, printing, exporting, and payment confirmation.",
71
- loadComponent: loadInvoiceActions,
72
- order: 2,
73
- props: {
74
- status: "sent",
75
- onmarkpaid: noop,
76
- onprint: noop,
77
- onexport: noop
78
- },
79
- modes: {
80
- mock: {
81
- label: "Mock"
82
- }
83
- }
84
- },
85
- {
86
- id: "unbilled-items",
87
- title: "Unbilled Items",
88
- description: "Selectable unbilled work list for creating a new invoice from accumulated items.",
89
- loadComponent: loadUnbilledItems,
90
- order: 3,
91
- props: {
92
- items: sampleUnbilledItems,
93
- currency: "CAD",
94
- onselectionchange: noop,
95
- oncreate: noop
96
- },
97
- modes: {
98
- mock: {
99
- label: "Mock"
100
- }
101
- }
102
- }
103
- ]
104
- };
105
- export {
106
- playground as default
41
+ var loadInvoiceActions = () => import("./svelte/components/InvoiceActions.svelte");
42
+ var loadInvoiceCard = () => import("./svelte/components/InvoiceCard.svelte");
43
+ var loadUnbilledItems = () => import("./svelte/components/UnbilledItems.svelte");
44
+ var playground_default = {
45
+ packageName: "@happyvertical/smrt-commerce",
46
+ displayName: COMMERCE_MODULE_META.displayName,
47
+ description: COMMERCE_MODULE_META.description,
48
+ moduleMeta: COMMERCE_MODULE_META,
49
+ entries: [
50
+ {
51
+ id: "invoice-card",
52
+ title: "Invoice Card",
53
+ description: "Compact invoice summary card used in billing and receivables views.",
54
+ loadComponent: loadInvoiceCard,
55
+ order: 1,
56
+ props: {
57
+ invoice: sampleInvoice,
58
+ currency: "CAD",
59
+ onclick: noop
60
+ },
61
+ modes: { mock: { label: "Mock" } }
62
+ },
63
+ {
64
+ id: "invoice-actions",
65
+ title: "Invoice Actions",
66
+ description: "Status-aware billing actions for sending, printing, exporting, and payment confirmation.",
67
+ loadComponent: loadInvoiceActions,
68
+ order: 2,
69
+ props: {
70
+ status: "sent",
71
+ onmarkpaid: noop,
72
+ onprint: noop,
73
+ onexport: noop
74
+ },
75
+ modes: { mock: { label: "Mock" } }
76
+ },
77
+ {
78
+ id: "unbilled-items",
79
+ title: "Unbilled Items",
80
+ description: "Selectable unbilled work list for creating a new invoice from accumulated items.",
81
+ loadComponent: loadUnbilledItems,
82
+ order: 3,
83
+ props: {
84
+ items: sampleUnbilledItems,
85
+ currency: "CAD",
86
+ onselectionchange: noop,
87
+ oncreate: noop
88
+ },
89
+ modes: { mock: { label: "Mock" } }
90
+ }
91
+ ]
107
92
  };
108
- //# sourceMappingURL=playground.js.map
93
+ //#endregion
94
+ export { playground_default as default };
95
+
96
+ //# sourceMappingURL=playground.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"playground.js","sources":["../src/svelte/playground.ts"],"sourcesContent":["import { COMMERCE_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleInvoice = {\n id: 'invoice-2026-0142',\n invoiceNumber: 'INV-2026-0142',\n status: 'sent',\n issueDate: '2026-03-15T00:00:00.000Z',\n dueDate: '2026-03-29T00:00:00.000Z',\n totalAmount: 128450,\n customerName: 'Riverstone Newsroom',\n projectName: 'Editorial Systems Retainer',\n};\n\nconst sampleUnbilledItems = [\n {\n id: 'unbilled-time-1',\n type: 'time',\n description: 'Governance workflow setup',\n date: '2026-03-12T00:00:00.000Z',\n amount: 42000,\n category: 'Implementation',\n selected: true,\n },\n {\n id: 'unbilled-expense-1',\n type: 'expense',\n description: 'Contributor QA workshop',\n date: '2026-03-14T00:00:00.000Z',\n amount: 18500,\n category: 'Training',\n },\n {\n id: 'unbilled-time-2',\n type: 'time',\n description: 'Release validation and docs cleanup',\n date: '2026-03-18T00:00:00.000Z',\n amount: 33950,\n category: 'QA',\n },\n];\n\nconst loadInvoiceActions = () => import('./components/InvoiceActions.svelte');\nconst loadInvoiceCard = () => import('./components/InvoiceCard.svelte');\nconst loadUnbilledItems = () => import('./components/UnbilledItems.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-commerce',\n displayName: COMMERCE_MODULE_META.displayName,\n description: COMMERCE_MODULE_META.description,\n moduleMeta: COMMERCE_MODULE_META,\n entries: [\n {\n id: 'invoice-card',\n title: 'Invoice Card',\n description:\n 'Compact invoice summary card used in billing and receivables views.',\n loadComponent: loadInvoiceCard,\n order: 1,\n props: {\n invoice: sampleInvoice,\n currency: 'CAD',\n onclick: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'invoice-actions',\n title: 'Invoice Actions',\n description:\n 'Status-aware billing actions for sending, printing, exporting, and payment confirmation.',\n loadComponent: loadInvoiceActions,\n order: 2,\n props: {\n status: 'sent',\n onmarkpaid: noop,\n onprint: noop,\n onexport: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'unbilled-items',\n title: 'Unbilled Items',\n description:\n 'Selectable unbilled work list for creating a new invoice from accumulated items.',\n loadComponent: loadUnbilledItems,\n order: 3,\n props: {\n items: sampleUnbilledItems,\n currency: 'CAD',\n onselectionchange: noop,\n oncreate: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"names":[],"mappings":";AAEA,MAAM,OAAO,MAAM;AAAC;AAEpB,MAAM,gBAAgB;AAAA,EACpB,IAAI;AAAA,EACJ,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa;AAAA,EACb,cAAc;AAAA,EACd,aAAa;AACf;AAEA,MAAM,sBAAsB;AAAA,EAC1B;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,UAAU;AAAA,EAAA;AAAA,EAEZ;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,EAAA;AAAA,EAEZ;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,EAAA;AAEd;AAEA,MAAM,qBAAqB,MAAM,OAAO,2CAAoC;AAC5E,MAAM,kBAAkB,MAAM,OAAO,wCAAiC;AACtE,MAAM,oBAAoB,MAAM,OAAO,0CAAmC;AAE1E,MAAA,aAAe;AAAA,EACb,aAAa;AAAA,EACb,aAAa,qBAAqB;AAAA,EAClC,aAAa,qBAAqB;AAAA,EAClC,YAAY;AAAA,EACZ,SAAS;AAAA,IACP;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,SAAS;AAAA,QACT,UAAU;AAAA,QACV,SAAS;AAAA,MAAA;AAAA,MAEX,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,IAEF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,UAAU;AAAA,MAAA;AAAA,MAEZ,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,IAEF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,UAAU;AAAA,MAAA;AAAA,MAEZ,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/playground.ts"],"sourcesContent":["import { COMMERCE_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleInvoice = {\n id: 'invoice-2026-0142',\n invoiceNumber: 'INV-2026-0142',\n status: 'sent',\n issueDate: '2026-03-15T00:00:00.000Z',\n dueDate: '2026-03-29T00:00:00.000Z',\n totalAmount: 128450,\n customerName: 'Riverstone Newsroom',\n projectName: 'Editorial Systems Retainer',\n};\n\nconst sampleUnbilledItems = [\n {\n id: 'unbilled-time-1',\n type: 'time',\n description: 'Governance workflow setup',\n date: '2026-03-12T00:00:00.000Z',\n amount: 42000,\n category: 'Implementation',\n selected: true,\n },\n {\n id: 'unbilled-expense-1',\n type: 'expense',\n description: 'Contributor QA workshop',\n date: '2026-03-14T00:00:00.000Z',\n amount: 18500,\n category: 'Training',\n },\n {\n id: 'unbilled-time-2',\n type: 'time',\n description: 'Release validation and docs cleanup',\n date: '2026-03-18T00:00:00.000Z',\n amount: 33950,\n category: 'QA',\n },\n];\n\nconst loadInvoiceActions = () => import('./components/InvoiceActions.svelte');\nconst loadInvoiceCard = () => import('./components/InvoiceCard.svelte');\nconst loadUnbilledItems = () => import('./components/UnbilledItems.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-commerce',\n displayName: COMMERCE_MODULE_META.displayName,\n description: COMMERCE_MODULE_META.description,\n moduleMeta: COMMERCE_MODULE_META,\n entries: [\n {\n id: 'invoice-card',\n title: 'Invoice Card',\n description:\n 'Compact invoice summary card used in billing and receivables views.',\n loadComponent: loadInvoiceCard,\n order: 1,\n props: {\n invoice: sampleInvoice,\n currency: 'CAD',\n onclick: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'invoice-actions',\n title: 'Invoice Actions',\n description:\n 'Status-aware billing actions for sending, printing, exporting, and payment confirmation.',\n loadComponent: loadInvoiceActions,\n order: 2,\n props: {\n status: 'sent',\n onmarkpaid: noop,\n onprint: noop,\n onexport: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'unbilled-items',\n title: 'Unbilled Items',\n description:\n 'Selectable unbilled work list for creating a new invoice from accumulated items.',\n loadComponent: loadUnbilledItems,\n order: 3,\n props: {\n items: sampleUnbilledItems,\n currency: 'CAD',\n onselectionchange: noop,\n oncreate: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"mappings":";;AAEA,IAAM,aAAa,CAAC;AAEpB,IAAM,gBAAgB;CACpB,IAAI;CACJ,eAAe;CACf,QAAQ;CACR,WAAW;CACX,SAAS;CACT,aAAa;CACb,cAAc;CACd,aAAa;AACf;AAEA,IAAM,sBAAsB;CAC1B;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;EACV,UAAU;CACZ;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;CACZ;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,MAAM;EACN,QAAQ;EACR,UAAU;CACZ;AACF;AAEA,IAAM,2BAA2B,OAAO;AACxC,IAAM,wBAAwB,OAAO;AACrC,IAAM,0BAA0B,OAAO;AAEvC,IAAA,qBAAe;CACb,aAAa;CACb,aAAa,qBAAqB;CAClC,aAAa,qBAAqB;CAClC,YAAY;CACZ,SAAS;EACP;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,SAAS;IACT,UAAU;IACV,SAAS;GACX;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;GACZ;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,OAAO;IACP,UAAU;IACV,mBAAmB;IACnB,UAAU;GACZ;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;CACF;AACF"}
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-07-01T02:35:54.619Z",
3
+ "generatedAt": "2026-07-01T22:06:44.838Z",
4
4
  "packageName": "@happyvertical/smrt-commerce",
5
- "packageVersion": "0.37.2",
5
+ "packageVersion": "0.37.4",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "45dfa8f98186933d1b862715454e063cd2402dfb42a93742aacf973d6e39e4b9",
10
- "packageJson": "408bf8a6c34e8f645e3db179260f58c8ff2547302474c975a9730758ad7dac77",
9
+ "manifest": "3df2a144429804b3c9b220711b27bd153db8f7550bea40f59b90f173f89f515d",
10
+ "packageJson": "cf268c97b218d085c771aabf392ec1db074b5df49cf419af92edd1ca47d9baa1",
11
11
  "agents": "f544ac9cece5c94aaead6013316709fcd044944b993110fc7218c0db7c998a63"
12
12
  },
13
13
  "exports": [
@@ -24,15 +24,15 @@
24
24
  "@happyvertical/smrt-types": "workspace:*",
25
25
  "@happyvertical/smrt-ui": "workspace:*",
26
26
  "@happyvertical/smrt-vitest": "workspace:*",
27
- "@sveltejs/package": "^2.5.7",
28
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
29
- "@types/node": "25.0.9",
27
+ "@sveltejs/package": "^2.5.8",
28
+ "@sveltejs/vite-plugin-svelte": "^7.1.2",
29
+ "@types/node": "24.13.2",
30
30
  "fast-glob": "^3.3.3",
31
- "svelte": "^5.18.0",
32
- "svelte-check": "^4.3.5",
31
+ "svelte": "^5.56.4",
32
+ "svelte-check": "^4.7.1",
33
33
  "typescript": "^5.9.3",
34
- "vite": "^7.3.6",
35
- "vitest": "^4.0.17"
34
+ "vite": "^8.1.2",
35
+ "vitest": "^4.1.9"
36
36
  },
37
37
  "smrtDependencies": [
38
38
  "@happyvertical/smrt-core",
package/dist/ui.js CHANGED
@@ -1,85 +1,85 @@
1
- const COMMERCE_UI_SLOTS = {
2
- "invoice-card": {
3
- id: "invoice-card",
4
- label: "Invoice Card",
5
- description: "Compact invoice display with status and amount",
6
- icon: "file-text",
7
- category: "display",
8
- order: 1,
9
- propsInterface: "InvoiceCardProps"
10
- },
11
- "invoice-header": {
12
- id: "invoice-header",
13
- label: "Invoice Header",
14
- description: "Invoice header with customer and date information",
15
- icon: "file-text",
16
- category: "display",
17
- order: 2,
18
- propsInterface: "InvoiceHeaderProps"
19
- },
20
- "invoice-line-items": {
21
- id: "invoice-line-items",
22
- label: "Invoice Line Items",
23
- description: "Table of invoice line items",
24
- icon: "list",
25
- category: "list",
26
- order: 3,
27
- propsInterface: "InvoiceLineItemsProps"
28
- },
29
- "invoice-totals": {
30
- id: "invoice-totals",
31
- label: "Invoice Totals",
32
- description: "Invoice subtotal, tax, and total display",
33
- icon: "calculator",
34
- category: "display",
35
- order: 4,
36
- propsInterface: "InvoiceTotalsProps"
37
- },
38
- "invoice-actions": {
39
- id: "invoice-actions",
40
- label: "Invoice Actions",
41
- description: "Action buttons for invoice operations",
42
- icon: "more-horizontal",
43
- category: "action",
44
- order: 5,
45
- propsInterface: "InvoiceActionsProps"
46
- },
47
- "unbilled-items": {
48
- id: "unbilled-items",
49
- label: "Unbilled Items",
50
- description: "List of items ready for billing",
51
- icon: "clock",
52
- category: "list",
53
- order: 6,
54
- propsInterface: "UnbilledItemsProps"
55
- }
1
+ //#region src/ui.ts
2
+ var COMMERCE_UI_SLOTS = {
3
+ "invoice-card": {
4
+ id: "invoice-card",
5
+ label: "Invoice Card",
6
+ description: "Compact invoice display with status and amount",
7
+ icon: "file-text",
8
+ category: "display",
9
+ order: 1,
10
+ propsInterface: "InvoiceCardProps"
11
+ },
12
+ "invoice-header": {
13
+ id: "invoice-header",
14
+ label: "Invoice Header",
15
+ description: "Invoice header with customer and date information",
16
+ icon: "file-text",
17
+ category: "display",
18
+ order: 2,
19
+ propsInterface: "InvoiceHeaderProps"
20
+ },
21
+ "invoice-line-items": {
22
+ id: "invoice-line-items",
23
+ label: "Invoice Line Items",
24
+ description: "Table of invoice line items",
25
+ icon: "list",
26
+ category: "list",
27
+ order: 3,
28
+ propsInterface: "InvoiceLineItemsProps"
29
+ },
30
+ "invoice-totals": {
31
+ id: "invoice-totals",
32
+ label: "Invoice Totals",
33
+ description: "Invoice subtotal, tax, and total display",
34
+ icon: "calculator",
35
+ category: "display",
36
+ order: 4,
37
+ propsInterface: "InvoiceTotalsProps"
38
+ },
39
+ "invoice-actions": {
40
+ id: "invoice-actions",
41
+ label: "Invoice Actions",
42
+ description: "Action buttons for invoice operations",
43
+ icon: "more-horizontal",
44
+ category: "action",
45
+ order: 5,
46
+ propsInterface: "InvoiceActionsProps"
47
+ },
48
+ "unbilled-items": {
49
+ id: "unbilled-items",
50
+ label: "Unbilled Items",
51
+ description: "List of items ready for billing",
52
+ icon: "clock",
53
+ category: "list",
54
+ order: 6,
55
+ propsInterface: "UnbilledItemsProps"
56
+ }
56
57
  };
57
- const COMMERCE_MODULE_META = {
58
- name: "@happyvertical/smrt-commerce",
59
- displayName: "Commerce",
60
- description: "Commerce models: contracts, invoices, payments",
61
- uiSlots: COMMERCE_UI_SLOTS,
62
- models: [
63
- "Customer",
64
- "Vendor",
65
- "Contract",
66
- "ContractLineItem",
67
- "Fulfillment",
68
- "FulfillmentLineItem",
69
- "Payment"
70
- ],
71
- collections: [
72
- "CustomerCollection",
73
- "VendorCollection",
74
- "ContractCollection",
75
- "ContractLineItemCollection",
76
- "FulfillmentCollection",
77
- "FulfillmentLineItemCollection",
78
- "PaymentCollection"
79
- ]
58
+ var COMMERCE_MODULE_META = {
59
+ name: "@happyvertical/smrt-commerce",
60
+ displayName: "Commerce",
61
+ description: "Commerce models: contracts, invoices, payments",
62
+ uiSlots: COMMERCE_UI_SLOTS,
63
+ models: [
64
+ "Customer",
65
+ "Vendor",
66
+ "Contract",
67
+ "ContractLineItem",
68
+ "Fulfillment",
69
+ "FulfillmentLineItem",
70
+ "Payment"
71
+ ],
72
+ collections: [
73
+ "CustomerCollection",
74
+ "VendorCollection",
75
+ "ContractCollection",
76
+ "ContractLineItemCollection",
77
+ "FulfillmentCollection",
78
+ "FulfillmentLineItemCollection",
79
+ "PaymentCollection"
80
+ ]
80
81
  };
81
- export {
82
- COMMERCE_MODULE_META,
83
- COMMERCE_UI_SLOTS
84
- };
85
- //# sourceMappingURL=ui.js.map
82
+ //#endregion
83
+ export { COMMERCE_MODULE_META, COMMERCE_UI_SLOTS };
84
+
85
+ //# sourceMappingURL=ui.js.map
package/dist/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 1,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 2,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 3,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 4,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 5,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 6,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"names":[],"mappings":"AAmBO,MAAM,oBAAkD;AAAA,EAC7D,gBAAgB;AAAA,IACd,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,kBAAkB;AAAA,IAChB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,sBAAsB;AAAA,IACpB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,kBAAkB;AAAA,IAChB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,mBAAmB;AAAA,IACjB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,kBAAkB;AAAA,IAChB,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAEpB;AAKO,MAAM,uBAAuC;AAAA,EAClD,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,QAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"ui.js","names":[],"sources":["../src/ui.ts"],"sourcesContent":["/**\n * Commerce Module UI Slot Declarations\n *\n * This file defines the UI extension points for the commerce module.\n * UI components are implemented in the ./svelte subpath.\n *\n * @example Usage\n * ```typescript\n * // In application code\n * import { COMMERCE_MODULE_META } from '@happyvertical/smrt-commerce';\n * console.log(COMMERCE_MODULE_META.uiSlots);\n * ```\n */\n\nimport type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\n/**\n * Commerce module UI slots\n */\nexport const COMMERCE_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'invoice-card': {\n id: 'invoice-card',\n label: 'Invoice Card',\n description: 'Compact invoice display with status and amount',\n icon: 'file-text',\n category: 'display',\n order: 1,\n propsInterface: 'InvoiceCardProps',\n },\n 'invoice-header': {\n id: 'invoice-header',\n label: 'Invoice Header',\n description: 'Invoice header with customer and date information',\n icon: 'file-text',\n category: 'display',\n order: 2,\n propsInterface: 'InvoiceHeaderProps',\n },\n 'invoice-line-items': {\n id: 'invoice-line-items',\n label: 'Invoice Line Items',\n description: 'Table of invoice line items',\n icon: 'list',\n category: 'list',\n order: 3,\n propsInterface: 'InvoiceLineItemsProps',\n },\n 'invoice-totals': {\n id: 'invoice-totals',\n label: 'Invoice Totals',\n description: 'Invoice subtotal, tax, and total display',\n icon: 'calculator',\n category: 'display',\n order: 4,\n propsInterface: 'InvoiceTotalsProps',\n },\n 'invoice-actions': {\n id: 'invoice-actions',\n label: 'Invoice Actions',\n description: 'Action buttons for invoice operations',\n icon: 'more-horizontal',\n category: 'action',\n order: 5,\n propsInterface: 'InvoiceActionsProps',\n },\n 'unbilled-items': {\n id: 'unbilled-items',\n label: 'Unbilled Items',\n description: 'List of items ready for billing',\n icon: 'clock',\n category: 'list',\n order: 6,\n propsInterface: 'UnbilledItemsProps',\n },\n};\n\n/**\n * Commerce module metadata\n */\nexport const COMMERCE_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-commerce',\n displayName: 'Commerce',\n description: 'Commerce models: contracts, invoices, payments',\n uiSlots: COMMERCE_UI_SLOTS,\n models: [\n 'Customer',\n 'Vendor',\n 'Contract',\n 'ContractLineItem',\n 'Fulfillment',\n 'FulfillmentLineItem',\n 'Payment',\n ],\n collections: [\n 'CustomerCollection',\n 'VendorCollection',\n 'ContractCollection',\n 'ContractLineItemCollection',\n 'FulfillmentCollection',\n 'FulfillmentLineItemCollection',\n 'PaymentCollection',\n ],\n};\n"],"mappings":";AAmBO,IAAM,oBAAkD;CAC7D,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,sBAAsB;EACpB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,mBAAmB;EACjB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,kBAAkB;EAChB,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;AACF;AAKO,IAAM,uBAAuC;CAClD,MAAM;CACN,aAAa;CACb,aAAa;CACb,SAAS;CACT,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-commerce",
3
- "version": "0.37.2",
3
+ "version": "0.37.4",
4
4
  "description": "Commerce models for the SMRT framework - contracts, fulfillments, payments",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -49,14 +49,14 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@happyvertical/smrt-core": "0.37.2",
53
- "@happyvertical/smrt-ledgers": "0.37.2",
54
- "@happyvertical/smrt-tenancy": "0.37.2",
55
- "@happyvertical/smrt-types": "0.37.2",
56
- "@happyvertical/smrt-ui": "0.37.2"
52
+ "@happyvertical/smrt-ledgers": "0.37.4",
53
+ "@happyvertical/smrt-core": "0.37.4",
54
+ "@happyvertical/smrt-tenancy": "0.37.4",
55
+ "@happyvertical/smrt-types": "0.37.4",
56
+ "@happyvertical/smrt-ui": "0.37.4"
57
57
  },
58
58
  "peerDependencies": {
59
- "svelte": "^5.18.0"
59
+ "svelte": "^5.56.4"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "svelte": {
@@ -64,16 +64,16 @@
64
64
  }
65
65
  },
66
66
  "devDependencies": {
67
- "@sveltejs/package": "^2.5.7",
68
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
69
- "@types/node": "25.0.9",
67
+ "@sveltejs/package": "^2.5.8",
68
+ "@sveltejs/vite-plugin-svelte": "^7.1.2",
69
+ "@types/node": "24.13.2",
70
70
  "fast-glob": "^3.3.3",
71
- "svelte": "^5.46.4",
72
- "svelte-check": "^4.3.5",
71
+ "svelte": "^5.56.4",
72
+ "svelte-check": "^4.7.1",
73
73
  "typescript": "^5.9.3",
74
- "vite": "^7.3.6",
75
- "vitest": "^4.0.17",
76
- "@happyvertical/smrt-vitest": "0.37.2"
74
+ "vite": "^8.1.2",
75
+ "vitest": "^4.1.9",
76
+ "@happyvertical/smrt-vitest": "0.37.4"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "vite build --mode library && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json",