@contractspec/example.crm-pipeline 1.62.0 → 2.0.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.
Files changed (151) hide show
  1. package/.turbo/turbo-build.log +35 -35
  2. package/CHANGELOG.md +76 -45
  3. package/dist/browser/crm-pipeline.feature.js +1 -1
  4. package/dist/browser/deal/deal.operation.js +1 -1
  5. package/dist/browser/deal/deal.test-spec.js +1 -1
  6. package/dist/browser/deal/index.js +1 -1
  7. package/dist/browser/docs/crm-pipeline.docblock.js +1 -1
  8. package/dist/browser/docs/index.js +1 -1
  9. package/dist/browser/events/contact.event.js +1 -1
  10. package/dist/browser/events/deal.event.js +1 -1
  11. package/dist/browser/events/index.js +3 -3
  12. package/dist/browser/events/task.event.js +1 -1
  13. package/dist/browser/example.js +1 -1
  14. package/dist/browser/index.js +15 -9
  15. package/dist/browser/operations/index.js +1 -1
  16. package/dist/browser/presentations/dashboard.presentation.js +4 -1
  17. package/dist/browser/presentations/index.js +8 -2
  18. package/dist/browser/presentations/pipeline.presentation.js +4 -1
  19. package/dist/crm-pipeline.feature.d.ts +1 -2
  20. package/dist/crm-pipeline.feature.js +1 -1
  21. package/dist/deal/deal.enum.d.ts +0 -1
  22. package/dist/deal/deal.operation.d.ts +5 -6
  23. package/dist/deal/deal.operation.js +1 -1
  24. package/dist/deal/deal.schema.d.ts +0 -1
  25. package/dist/deal/deal.test-spec.d.ts +2 -3
  26. package/dist/deal/deal.test-spec.js +1 -1
  27. package/dist/deal/index.d.ts +0 -1
  28. package/dist/deal/index.js +1 -1
  29. package/dist/docs/crm-pipeline.docblock.d.ts +0 -1
  30. package/dist/docs/crm-pipeline.docblock.js +1 -1
  31. package/dist/docs/index.d.ts +0 -1
  32. package/dist/docs/index.js +1 -1
  33. package/dist/entities/company.entity.d.ts +0 -1
  34. package/dist/entities/contact.entity.d.ts +0 -1
  35. package/dist/entities/deal.entity.d.ts +0 -1
  36. package/dist/entities/index.d.ts +0 -1
  37. package/dist/entities/task.entity.d.ts +0 -1
  38. package/dist/events/contact.event.d.ts +1 -2
  39. package/dist/events/contact.event.js +1 -1
  40. package/dist/events/deal.event.d.ts +4 -5
  41. package/dist/events/deal.event.js +1 -1
  42. package/dist/events/index.d.ts +0 -1
  43. package/dist/events/index.js +3 -3
  44. package/dist/events/task.event.d.ts +1 -2
  45. package/dist/events/task.event.js +1 -1
  46. package/dist/example.d.ts +1 -2
  47. package/dist/example.js +1 -1
  48. package/dist/handlers/crm.handlers.d.ts +0 -1
  49. package/dist/handlers/deal.handlers.d.ts +0 -1
  50. package/dist/handlers/index.d.ts +0 -1
  51. package/dist/handlers/mock-data.d.ts +0 -1
  52. package/dist/index.d.ts +0 -1
  53. package/dist/index.js +15 -9
  54. package/dist/node/crm-pipeline.feature.js +1 -1
  55. package/dist/node/deal/deal.operation.js +1 -1
  56. package/dist/node/deal/deal.test-spec.js +1 -1
  57. package/dist/node/deal/index.js +1 -1
  58. package/dist/node/docs/crm-pipeline.docblock.js +1 -1
  59. package/dist/node/docs/index.js +1 -1
  60. package/dist/node/events/contact.event.js +1 -1
  61. package/dist/node/events/deal.event.js +1 -1
  62. package/dist/node/events/index.js +3 -3
  63. package/dist/node/events/task.event.js +1 -1
  64. package/dist/node/example.js +1 -1
  65. package/dist/node/index.js +15 -9
  66. package/dist/node/operations/index.js +1 -1
  67. package/dist/node/presentations/dashboard.presentation.js +4 -1
  68. package/dist/node/presentations/index.js +8 -2
  69. package/dist/node/presentations/pipeline.presentation.js +4 -1
  70. package/dist/operations/index.d.ts +0 -1
  71. package/dist/operations/index.js +1 -1
  72. package/dist/presentations/dashboard.presentation.d.ts +2 -3
  73. package/dist/presentations/dashboard.presentation.js +4 -1
  74. package/dist/presentations/index.d.ts +0 -1
  75. package/dist/presentations/index.js +8 -2
  76. package/dist/presentations/pipeline.presentation.d.ts +4 -5
  77. package/dist/presentations/pipeline.presentation.js +4 -1
  78. package/dist/seeders/index.d.ts +0 -1
  79. package/dist/shared/overlay-types.d.ts +0 -1
  80. package/dist/ui/CrmDashboard.d.ts +0 -1
  81. package/dist/ui/CrmDealCard.d.ts +0 -1
  82. package/dist/ui/CrmPipelineBoard.d.ts +0 -1
  83. package/dist/ui/hooks/index.d.ts +0 -1
  84. package/dist/ui/hooks/useDealList.d.ts +0 -1
  85. package/dist/ui/hooks/useDealMutations.d.ts +0 -1
  86. package/dist/ui/index.d.ts +0 -1
  87. package/dist/ui/modals/CreateDealModal.d.ts +0 -1
  88. package/dist/ui/modals/DealActionsModal.d.ts +0 -1
  89. package/dist/ui/modals/index.d.ts +0 -1
  90. package/dist/ui/overlays/demo-overlays.d.ts +0 -1
  91. package/dist/ui/overlays/index.d.ts +0 -1
  92. package/dist/ui/renderers/index.d.ts +0 -1
  93. package/dist/ui/renderers/pipeline.markdown.d.ts +1 -2
  94. package/dist/ui/renderers/pipeline.renderer.d.ts +1 -2
  95. package/package.json +13 -13
  96. package/src/crm-pipeline.feature.ts +1 -1
  97. package/src/deal/deal.operation.ts +1 -1
  98. package/src/deal/deal.test-spec.ts +1 -1
  99. package/src/docs/crm-pipeline.docblock.ts +2 -2
  100. package/src/events/contact.event.ts +1 -1
  101. package/src/events/deal.event.ts +1 -1
  102. package/src/events/task.event.ts +1 -1
  103. package/src/example.ts +1 -1
  104. package/src/presentations/dashboard.presentation.ts +4 -1
  105. package/src/presentations/pipeline.presentation.ts +4 -1
  106. package/src/ui/renderers/pipeline.markdown.ts +1 -1
  107. package/src/ui/renderers/pipeline.renderer.tsx +1 -1
  108. package/dist/crm-pipeline.feature.d.ts.map +0 -1
  109. package/dist/deal/deal.enum.d.ts.map +0 -1
  110. package/dist/deal/deal.operation.d.ts.map +0 -1
  111. package/dist/deal/deal.schema.d.ts.map +0 -1
  112. package/dist/deal/deal.test-spec.d.ts.map +0 -1
  113. package/dist/deal/index.d.ts.map +0 -1
  114. package/dist/docs/crm-pipeline.docblock.d.ts.map +0 -1
  115. package/dist/docs/index.d.ts.map +0 -1
  116. package/dist/entities/company.entity.d.ts.map +0 -1
  117. package/dist/entities/contact.entity.d.ts.map +0 -1
  118. package/dist/entities/deal.entity.d.ts.map +0 -1
  119. package/dist/entities/index.d.ts.map +0 -1
  120. package/dist/entities/task.entity.d.ts.map +0 -1
  121. package/dist/events/contact.event.d.ts.map +0 -1
  122. package/dist/events/deal.event.d.ts.map +0 -1
  123. package/dist/events/index.d.ts.map +0 -1
  124. package/dist/events/task.event.d.ts.map +0 -1
  125. package/dist/example.d.ts.map +0 -1
  126. package/dist/handlers/crm.handlers.d.ts.map +0 -1
  127. package/dist/handlers/deal.handlers.d.ts.map +0 -1
  128. package/dist/handlers/index.d.ts.map +0 -1
  129. package/dist/handlers/mock-data.d.ts.map +0 -1
  130. package/dist/index.d.ts.map +0 -1
  131. package/dist/operations/index.d.ts.map +0 -1
  132. package/dist/presentations/dashboard.presentation.d.ts.map +0 -1
  133. package/dist/presentations/index.d.ts.map +0 -1
  134. package/dist/presentations/pipeline.presentation.d.ts.map +0 -1
  135. package/dist/seeders/index.d.ts.map +0 -1
  136. package/dist/shared/overlay-types.d.ts.map +0 -1
  137. package/dist/ui/CrmDashboard.d.ts.map +0 -1
  138. package/dist/ui/CrmDealCard.d.ts.map +0 -1
  139. package/dist/ui/CrmPipelineBoard.d.ts.map +0 -1
  140. package/dist/ui/hooks/index.d.ts.map +0 -1
  141. package/dist/ui/hooks/useDealList.d.ts.map +0 -1
  142. package/dist/ui/hooks/useDealMutations.d.ts.map +0 -1
  143. package/dist/ui/index.d.ts.map +0 -1
  144. package/dist/ui/modals/CreateDealModal.d.ts.map +0 -1
  145. package/dist/ui/modals/DealActionsModal.d.ts.map +0 -1
  146. package/dist/ui/modals/index.d.ts.map +0 -1
  147. package/dist/ui/overlays/demo-overlays.d.ts.map +0 -1
  148. package/dist/ui/overlays/index.d.ts.map +0 -1
  149. package/dist/ui/renderers/index.d.ts.map +0 -1
  150. package/dist/ui/renderers/pipeline.markdown.d.ts.map +0 -1
  151. package/dist/ui/renderers/pipeline.renderer.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
1
  // src/docs/crm-pipeline.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var crmPipelineDocBlocks = [
4
4
  {
5
5
  id: "docs.examples.crm-pipeline.goal",
@@ -1,5 +1,5 @@
1
1
  // src/docs/crm-pipeline.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var crmPipelineDocBlocks = [
4
4
  {
5
5
  id: "docs.examples.crm-pipeline.goal",
@@ -1,6 +1,6 @@
1
1
  // src/events/contact.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var ContactCreatedPayload = defineSchemaModel({
5
5
  name: "ContactCreatedPayload",
6
6
  description: "Payload when a contact is created",
@@ -1,6 +1,6 @@
1
1
  // src/events/deal.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var DealCreatedPayload = defineSchemaModel({
5
5
  name: "DealCreatedPayload",
6
6
  description: "Payload when a deal is created",
@@ -1,6 +1,6 @@
1
1
  // src/events/contact.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var ContactCreatedPayload = defineSchemaModel({
5
5
  name: "ContactCreatedPayload",
6
6
  description: "Payload when a contact is created",
@@ -29,7 +29,7 @@ var ContactCreatedEvent = defineEvent({
29
29
 
30
30
  // src/events/deal.event.ts
31
31
  import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
32
- import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
32
+ import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
33
33
  var DealCreatedPayload = defineSchemaModel2({
34
34
  name: "DealCreatedPayload",
35
35
  description: "Payload when a deal is created",
@@ -125,7 +125,7 @@ var DealLostEvent = defineEvent2({
125
125
 
126
126
  // src/events/task.event.ts
127
127
  import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
128
- import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
128
+ import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
129
129
  var TaskCompletedPayload = defineSchemaModel3({
130
130
  name: "TaskCompletedPayload",
131
131
  description: "Payload when a task is completed",
@@ -1,6 +1,6 @@
1
1
  // src/events/task.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var TaskCompletedPayload = defineSchemaModel({
5
5
  name: "TaskCompletedPayload",
6
6
  description: "Payload when a task is completed",
@@ -1,5 +1,5 @@
1
1
  // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts";
2
+ import { defineExample } from "@contractspec/lib.contracts-spec";
3
3
  var example = defineExample({
4
4
  meta: {
5
5
  key: "crm-pipeline",
@@ -1,5 +1,5 @@
1
1
  // src/crm-pipeline.feature.ts
2
- import { defineFeature } from "@contractspec/lib.contracts";
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
3
  var CrmPipelineFeature = defineFeature({
4
4
  meta: {
5
5
  key: "crm-pipeline",
@@ -205,7 +205,7 @@ var ListDealsOutputModel = defineSchemaModel({
205
205
  import {
206
206
  defineCommand,
207
207
  defineQuery
208
- } from "@contractspec/lib.contracts/operations";
208
+ } from "@contractspec/lib.contracts-spec/operations";
209
209
  var OWNERS = ["@example.crm-pipeline"];
210
210
  var CreateDealContract = defineCommand({
211
211
  meta: {
@@ -461,7 +461,7 @@ var ListDealsContract = defineQuery({
461
461
  }
462
462
  });
463
463
  // src/docs/crm-pipeline.docblock.ts
464
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
464
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
465
465
  var crmPipelineDocBlocks = [
466
466
  {
467
467
  id: "docs.examples.crm-pipeline.goal",
@@ -903,7 +903,7 @@ var crmPipelineSchemaContribution = {
903
903
 
904
904
  // src/events/contact.event.ts
905
905
  import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
906
- import { defineEvent } from "@contractspec/lib.contracts";
906
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
907
907
  var ContactCreatedPayload = defineSchemaModel2({
908
908
  name: "ContactCreatedPayload",
909
909
  description: "Payload when a contact is created",
@@ -932,7 +932,7 @@ var ContactCreatedEvent = defineEvent({
932
932
 
933
933
  // src/events/deal.event.ts
934
934
  import { ScalarTypeEnum as ScalarTypeEnum3, defineSchemaModel as defineSchemaModel3 } from "@contractspec/lib.schema";
935
- import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
935
+ import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
936
936
  var DealCreatedPayload = defineSchemaModel3({
937
937
  name: "DealCreatedPayload",
938
938
  description: "Payload when a deal is created",
@@ -1028,7 +1028,7 @@ var DealLostEvent = defineEvent2({
1028
1028
 
1029
1029
  // src/events/task.event.ts
1030
1030
  import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
1031
- import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts";
1031
+ import { defineEvent as defineEvent3 } from "@contractspec/lib.contracts-spec";
1032
1032
  var TaskCompletedPayload = defineSchemaModel4({
1033
1033
  name: "TaskCompletedPayload",
1034
1034
  description: "Payload when a task is completed",
@@ -1052,7 +1052,7 @@ var TaskCompletedEvent = defineEvent3({
1052
1052
  payload: TaskCompletedPayload
1053
1053
  });
1054
1054
  // src/example.ts
1055
- import { defineExample } from "@contractspec/lib.contracts";
1055
+ import { defineExample } from "@contractspec/lib.contracts-spec";
1056
1056
  var example = defineExample({
1057
1057
  meta: {
1058
1058
  key: "crm-pipeline",
@@ -1531,7 +1531,10 @@ async function mockGetPipelineStagesHandler(input) {
1531
1531
  return MOCK_STAGES.filter((s) => s.pipelineId === input.pipelineId);
1532
1532
  }
1533
1533
  // src/presentations/dashboard.presentation.ts
1534
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
1534
+ import {
1535
+ definePresentation,
1536
+ StabilityEnum
1537
+ } from "@contractspec/lib.contracts-spec";
1535
1538
  var CrmDashboardPresentation = definePresentation({
1536
1539
  meta: {
1537
1540
  key: "crm.dashboard",
@@ -1580,7 +1583,10 @@ var PipelineMetricsPresentation = definePresentation({
1580
1583
  });
1581
1584
 
1582
1585
  // src/presentations/pipeline.presentation.ts
1583
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
1586
+ import {
1587
+ definePresentation as definePresentation2,
1588
+ StabilityEnum as StabilityEnum2
1589
+ } from "@contractspec/lib.contracts-spec";
1584
1590
  var PipelineKanbanPresentation = definePresentation2({
1585
1591
  meta: {
1586
1592
  key: "crm.pipeline.kanban",
@@ -132,7 +132,7 @@ var ListDealsOutputModel = defineSchemaModel({
132
132
  import {
133
133
  defineCommand,
134
134
  defineQuery
135
- } from "@contractspec/lib.contracts/operations";
135
+ } from "@contractspec/lib.contracts-spec/operations";
136
136
  var OWNERS = ["@example.crm-pipeline"];
137
137
  var CreateDealContract = defineCommand({
138
138
  meta: {
@@ -1,5 +1,8 @@
1
1
  // src/presentations/dashboard.presentation.ts
2
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
2
+ import {
3
+ definePresentation,
4
+ StabilityEnum
5
+ } from "@contractspec/lib.contracts-spec";
3
6
  var CrmDashboardPresentation = definePresentation({
4
7
  meta: {
5
8
  key: "crm.dashboard",
@@ -129,7 +129,10 @@ var ListDealsOutputModel = defineSchemaModel({
129
129
  });
130
130
 
131
131
  // src/presentations/dashboard.presentation.ts
132
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
132
+ import {
133
+ definePresentation,
134
+ StabilityEnum
135
+ } from "@contractspec/lib.contracts-spec";
133
136
  var CrmDashboardPresentation = definePresentation({
134
137
  meta: {
135
138
  key: "crm.dashboard",
@@ -178,7 +181,10 @@ var PipelineMetricsPresentation = definePresentation({
178
181
  });
179
182
 
180
183
  // src/presentations/pipeline.presentation.ts
181
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
184
+ import {
185
+ definePresentation as definePresentation2,
186
+ StabilityEnum as StabilityEnum2
187
+ } from "@contractspec/lib.contracts-spec";
182
188
  var PipelineKanbanPresentation = definePresentation2({
183
189
  meta: {
184
190
  key: "crm.pipeline.kanban",
@@ -129,7 +129,10 @@ var ListDealsOutputModel = defineSchemaModel({
129
129
  });
130
130
 
131
131
  // src/presentations/pipeline.presentation.ts
132
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
132
+ import {
133
+ definePresentation,
134
+ StabilityEnum
135
+ } from "@contractspec/lib.contracts-spec";
133
136
  var PipelineKanbanPresentation = definePresentation({
134
137
  meta: {
135
138
  key: "crm.pipeline.kanban",
@@ -1,2 +1 @@
1
1
  export { DealStatusFilterEnum, DealModel, CreateDealInputModel, MoveDealInputModel, DealMovedPayloadModel, WinDealInputModel, DealWonPayloadModel, LoseDealInputModel, DealLostPayloadModel, ListDealsInputModel, ListDealsOutputModel, CreateDealContract, MoveDealContract, WinDealContract, LoseDealContract, ListDealsContract, } from '../deal';
2
- //# sourceMappingURL=index.d.ts.map
@@ -133,7 +133,7 @@ var ListDealsOutputModel = defineSchemaModel({
133
133
  import {
134
134
  defineCommand,
135
135
  defineQuery
136
- } from "@contractspec/lib.contracts/operations";
136
+ } from "@contractspec/lib.contracts-spec/operations";
137
137
  var OWNERS = ["@example.crm-pipeline"];
138
138
  var CreateDealContract = defineCommand({
139
139
  meta: {
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * Main CRM dashboard presentation.
3
3
  */
4
- export declare const CrmDashboardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
4
+ export declare const CrmDashboardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
5
5
  /**
6
6
  * Pipeline metrics presentation.
7
7
  */
8
- export declare const PipelineMetricsPresentation: import("@contractspec/lib.contracts").PresentationSpec;
9
- //# sourceMappingURL=dashboard.presentation.d.ts.map
8
+ export declare const PipelineMetricsPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
@@ -1,6 +1,9 @@
1
1
  // @bun
2
2
  // src/presentations/dashboard.presentation.ts
3
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
3
+ import {
4
+ definePresentation,
5
+ StabilityEnum
6
+ } from "@contractspec/lib.contracts-spec";
4
7
  var CrmDashboardPresentation = definePresentation({
5
8
  meta: {
6
9
  key: "crm.dashboard",
@@ -1,3 +1,2 @@
1
1
  export * from './dashboard.presentation';
2
2
  export * from './pipeline.presentation';
3
- //# sourceMappingURL=index.d.ts.map
@@ -130,7 +130,10 @@ var ListDealsOutputModel = defineSchemaModel({
130
130
  });
131
131
 
132
132
  // src/presentations/dashboard.presentation.ts
133
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
133
+ import {
134
+ definePresentation,
135
+ StabilityEnum
136
+ } from "@contractspec/lib.contracts-spec";
134
137
  var CrmDashboardPresentation = definePresentation({
135
138
  meta: {
136
139
  key: "crm.dashboard",
@@ -179,7 +182,10 @@ var PipelineMetricsPresentation = definePresentation({
179
182
  });
180
183
 
181
184
  // src/presentations/pipeline.presentation.ts
182
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
185
+ import {
186
+ definePresentation as definePresentation2,
187
+ StabilityEnum as StabilityEnum2
188
+ } from "@contractspec/lib.contracts-spec";
183
189
  var PipelineKanbanPresentation = definePresentation2({
184
190
  meta: {
185
191
  key: "crm.pipeline.kanban",
@@ -1,17 +1,16 @@
1
1
  /**
2
2
  * Kanban board presentation for the sales pipeline.
3
3
  */
4
- export declare const PipelineKanbanPresentation: import("@contractspec/lib.contracts").PresentationSpec;
4
+ export declare const PipelineKanbanPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
5
5
  /**
6
6
  * List view of deals with filtering.
7
7
  */
8
- export declare const DealListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
8
+ export declare const DealListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
9
9
  /**
10
10
  * Deal detail presentation.
11
11
  */
12
- export declare const DealDetailPresentation: import("@contractspec/lib.contracts").PresentationSpec;
12
+ export declare const DealDetailPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
13
13
  /**
14
14
  * Deal card for kanban board.
15
15
  */
16
- export declare const DealCardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
17
- //# sourceMappingURL=pipeline.presentation.d.ts.map
16
+ export declare const DealCardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
@@ -130,7 +130,10 @@ var ListDealsOutputModel = defineSchemaModel({
130
130
  });
131
131
 
132
132
  // src/presentations/pipeline.presentation.ts
133
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
133
+ import {
134
+ definePresentation,
135
+ StabilityEnum
136
+ } from "@contractspec/lib.contracts-spec";
134
137
  var PipelineKanbanPresentation = definePresentation({
135
138
  meta: {
136
139
  key: "crm.pipeline.kanban",
@@ -3,4 +3,3 @@ export declare function seedCrmPipeline(params: {
3
3
  projectId: string;
4
4
  db: DatabasePort;
5
5
  }): Promise<void>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -28,4 +28,3 @@ export interface SetLimitModification {
28
28
  max: number;
29
29
  message: string;
30
30
  }
31
- //# sourceMappingURL=overlay-types.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function CrmDashboard(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=CrmDashboard.d.ts.map
@@ -8,4 +8,3 @@ interface CrmDealCardProps {
8
8
  }
9
9
  export declare function CrmDealCard({ deal, onClick }: CrmDealCardProps): import("react/jsx-runtime").JSX.Element;
10
10
  export {};
11
- //# sourceMappingURL=CrmDealCard.d.ts.map
@@ -11,4 +11,3 @@ interface CrmPipelineBoardProps {
11
11
  }
12
12
  export declare function CrmPipelineBoard({ dealsByStage, stages, onDealClick, onDealMove, }: CrmPipelineBoardProps): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
14
- //# sourceMappingURL=CrmPipelineBoard.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { useDealList, type UseDealListOptions } from './useDealList';
2
2
  export { useDealMutations, type UseDealMutationsOptions, } from './useDealMutations';
3
- //# sourceMappingURL=index.d.ts.map
@@ -28,4 +28,3 @@ export declare function useDealList(options?: UseDealListOptions): {
28
28
  nextPage: () => void;
29
29
  prevPage: () => false | void;
30
30
  };
31
- //# sourceMappingURL=useDealList.d.ts.map
@@ -19,4 +19,3 @@ export declare function useDealMutations(options?: UseDealMutationsOptions): {
19
19
  loseState: MutationState<Deal>;
20
20
  isLoading: boolean;
21
21
  };
22
- //# sourceMappingURL=useDealMutations.d.ts.map
@@ -5,4 +5,3 @@ export * from './modals';
5
5
  export * from './hooks';
6
6
  export * from './renderers';
7
7
  export * from './overlays';
8
- //# sourceMappingURL=index.d.ts.map
@@ -20,4 +20,3 @@ interface CreateDealModalProps {
20
20
  }
21
21
  export declare function CreateDealModal({ isOpen, onClose, onSubmit, stages, isLoading, }: CreateDealModalProps): import("react/jsx-runtime").JSX.Element | null;
22
22
  export {};
23
- //# sourceMappingURL=CreateDealModal.d.ts.map
@@ -35,4 +35,3 @@ interface DealActionsModalProps {
35
35
  }
36
36
  export declare function DealActionsModal({ isOpen, deal, stages, onClose, onWin, onLose, onMove, isLoading, }: DealActionsModalProps): import("react/jsx-runtime").JSX.Element | null;
37
37
  export {};
38
- //# sourceMappingURL=DealActionsModal.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { CreateDealModal } from './CreateDealModal';
2
2
  export { DealActionsModal } from './DealActionsModal';
3
- //# sourceMappingURL=index.d.ts.map
@@ -17,4 +17,3 @@ export declare const crmSalesRepOverlay: OverlayDefinition;
17
17
  * All overlays for crm-pipeline
18
18
  */
19
19
  export declare const crmOverlays: OverlayDefinition[];
20
- //# sourceMappingURL=demo-overlays.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './demo-overlays';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { crmPipelineReactRenderer } from './pipeline.renderer';
2
2
  export { crmPipelineMarkdownRenderer, crmDashboardMarkdownRenderer, } from './pipeline.markdown';
3
- //# sourceMappingURL=index.d.ts.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Imports handlers from the hooks module to ensure correct build order.
5
5
  */
6
- import type { PresentationRenderer } from '@contractspec/lib.contracts';
6
+ import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
7
7
  /**
8
8
  * Markdown renderer for CRM Pipeline Kanban view (crm-pipeline.deal.pipeline)
9
9
  * Only handles PipelineKanbanView component
@@ -20,4 +20,3 @@ export declare const crmDashboardMarkdownRenderer: PresentationRenderer<{
20
20
  mimeType: string;
21
21
  body: string;
22
22
  }>;
23
- //# sourceMappingURL=pipeline.markdown.d.ts.map
@@ -5,6 +5,5 @@
5
5
  * Data is fetched via the CrmPipelineBoard component's internal hooks.
6
6
  */
7
7
  import * as React from 'react';
8
- import type { PresentationRenderer } from '@contractspec/lib.contracts';
8
+ import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
9
9
  export declare const crmPipelineReactRenderer: PresentationRenderer<React.ReactElement>;
10
- //# sourceMappingURL=pipeline.renderer.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.crm-pipeline",
3
- "version": "1.62.0",
3
+ "version": "2.0.0",
4
4
  "description": "CRM Pipeline - Contacts, Companies, Deals, Tasks",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -416,30 +416,30 @@
416
416
  "lint": "bun lint:fix",
417
417
  "lint:fix": "eslint src --fix",
418
418
  "lint:check": "eslint src",
419
- "test": "bun test",
419
+ "test": "bun test --pass-with-no-tests",
420
420
  "validate": "contractspec validate \"src/**/*\"",
421
421
  "prebuild": "contractspec-bun-build prebuild",
422
422
  "typecheck": "tsc --noEmit"
423
423
  },
424
424
  "dependencies": {
425
- "@contractspec/lib.contracts": "1.62.0",
426
- "@contractspec/lib.design-system": "1.62.0",
427
- "@contractspec/lib.example-shared-ui": "1.16.0",
428
- "@contractspec/lib.identity-rbac": "1.62.0",
429
- "@contractspec/lib.runtime-sandbox": "0.17.0",
430
- "@contractspec/lib.schema": "1.62.0",
431
- "@contractspec/lib.ui-kit-web": "1.62.0",
432
- "@contractspec/module.audit-trail": "1.62.0",
433
- "@contractspec/module.notifications": "1.62.0",
425
+ "@contractspec/lib.contracts-spec": "2.0.0",
426
+ "@contractspec/lib.design-system": "2.0.0",
427
+ "@contractspec/lib.example-shared-ui": "2.0.0",
428
+ "@contractspec/lib.identity-rbac": "2.0.0",
429
+ "@contractspec/lib.runtime-sandbox": "1.0.0",
430
+ "@contractspec/lib.schema": "2.0.0",
431
+ "@contractspec/lib.ui-kit-web": "2.0.0",
432
+ "@contractspec/module.audit-trail": "2.0.0",
433
+ "@contractspec/module.notifications": "2.0.0",
434
434
  "react": "19.2.4",
435
435
  "react-dom": "19.2.4"
436
436
  },
437
437
  "devDependencies": {
438
- "@contractspec/tool.typescript": "1.62.0",
438
+ "@contractspec/tool.typescript": "2.0.0",
439
439
  "typescript": "^5.9.3",
440
440
  "@types/react": "^19.2.14",
441
441
  "@types/react-dom": "^19.2.2",
442
- "@contractspec/tool.bun": "1.61.0"
442
+ "@contractspec/tool.bun": "2.0.0"
443
443
  },
444
444
  "publishConfig": {
445
445
  "exports": {
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Defines the feature module for CRM and sales pipeline capabilities.
5
5
  */
6
- import { defineFeature } from '@contractspec/lib.contracts';
6
+ import { defineFeature } from '@contractspec/lib.contracts-spec';
7
7
 
8
8
  /**
9
9
  * CRM Pipeline feature module that bundles deal management,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  defineCommand,
3
3
  defineQuery,
4
- } from '@contractspec/lib.contracts/operations';
4
+ } from '@contractspec/lib.contracts-spec/operations';
5
5
  import {
6
6
  DealModel,
7
7
  CreateDealInputModel,
@@ -1,4 +1,4 @@
1
- import { defineTestSpec } from '@contractspec/lib.contracts';
1
+ import { defineTestSpec } from '@contractspec/lib.contracts-spec/tests';
2
2
 
3
3
  export const dealListTest = defineTestSpec({
4
4
  meta: {
@@ -1,5 +1,5 @@
1
- import type { DocBlock } from '@contractspec/lib.contracts/docs';
2
- import { registerDocBlocks } from '@contractspec/lib.contracts/docs';
1
+ import type { DocBlock } from '@contractspec/lib.contracts-spec/docs';
2
+ import { registerDocBlocks } from '@contractspec/lib.contracts-spec/docs';
3
3
 
4
4
  const crmPipelineDocBlocks: DocBlock[] = [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';
2
- import { defineEvent } from '@contractspec/lib.contracts';
2
+ import { defineEvent } from '@contractspec/lib.contracts-spec';
3
3
 
4
4
  // ============ Contact Event Payloads ============
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';
2
- import { defineEvent } from '@contractspec/lib.contracts';
2
+ import { defineEvent } from '@contractspec/lib.contracts-spec';
3
3
 
4
4
  // ============ Deal Event Payloads ============
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';
2
- import { defineEvent } from '@contractspec/lib.contracts';
2
+ import { defineEvent } from '@contractspec/lib.contracts-spec';
3
3
 
4
4
  // ============ Task Event Payloads ============
5
5
 
package/src/example.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { defineExample } from '@contractspec/lib.contracts';
1
+ import { defineExample } from '@contractspec/lib.contracts-spec';
2
2
 
3
3
  const example = defineExample({
4
4
  meta: {
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * CRM Dashboard Presentation Descriptor
3
3
  */
4
- import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';
4
+ import {
5
+ definePresentation,
6
+ StabilityEnum,
7
+ } from '@contractspec/lib.contracts-spec';
5
8
 
6
9
  /**
7
10
  * Main CRM dashboard presentation.
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * Pipeline Presentation Descriptors
3
3
  */
4
- import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';
4
+ import {
5
+ definePresentation,
6
+ StabilityEnum,
7
+ } from '@contractspec/lib.contracts-spec';
5
8
  import { DealModel } from '../deal/deal.schema';
6
9
 
7
10
  /**
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Imports handlers from the hooks module to ensure correct build order.
5
5
  */
6
- import type { PresentationRenderer } from '@contractspec/lib.contracts';
6
+ import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
7
7
  import {
8
8
  mockListDealsHandler,
9
9
  mockGetPipelineStagesHandler,
@@ -5,7 +5,7 @@
5
5
  * Data is fetched via the CrmPipelineBoard component's internal hooks.
6
6
  */
7
7
  import * as React from 'react';
8
- import type { PresentationRenderer } from '@contractspec/lib.contracts';
8
+ import type { PresentationRenderer } from '@contractspec/lib.contracts-spec/presentations/transform-engine';
9
9
  import { CrmPipelineBoard } from '../CrmPipelineBoard';
10
10
  import { useDealList } from '../hooks/useDealList';
11
11
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"crm-pipeline.feature.d.ts","sourceRoot":"","sources":["../src/crm-pipeline.feature.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,yDAwF7B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.enum.d.ts","sourceRoot":"","sources":["../../src/deal/deal.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,cAAc,+EAKzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB,+EAK/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.operation.d.ts","sourceRoot":"","sources":["../../src/deal/deal.operation.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuD7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkD3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsD1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsD3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.schema.d.ts","sourceRoot":"","sources":["../../src/deal/deal.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAOhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EAQ5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;EAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAQ7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;EAM/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ/B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"deal.test-spec.d.ts","sourceRoot":"","sources":["../../src/deal/deal.test-spec.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,gDAyBvB,CAAC;AAEH,eAAO,MAAM,YAAY,gDAyBvB,CAAC"}