@dropins/storefront-quote-management 1.0.0-beta1 → 1.0.0-beta10

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 (102) hide show
  1. package/LICENSE.md +25 -26
  2. package/api/duplicateNegotiableQuote/duplicateNegotiableQuote.d.ts +1 -0
  3. package/api/getQuoteTemplates/graphql/getQuoteTemplates.d.ts +1 -1
  4. package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
  5. package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +1 -1
  6. package/api/sendForReview/index.d.ts +1 -1
  7. package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +10 -0
  8. package/api.js +10 -47
  9. package/api.js.map +1 -1
  10. package/chunks/AttachedFilesList.js +1 -1
  11. package/chunks/AttachedFilesList.js.map +1 -1
  12. package/chunks/ConfirmationModal.js +1 -1
  13. package/chunks/ConfirmationModal.js.map +1 -1
  14. package/chunks/ItemsQuoted.js +1 -1
  15. package/chunks/ItemsQuoted.js.map +1 -1
  16. package/chunks/ItemsQuotedTemplate.js +1 -1
  17. package/chunks/ItemsQuotedTemplate.js.map +1 -1
  18. package/chunks/LineItemNoteModal.js +4 -0
  19. package/chunks/LineItemNoteModal.js.map +1 -0
  20. package/chunks/NegotiableQuoteFragment.js +1 -0
  21. package/chunks/NegotiableQuoteFragment.js.map +1 -1
  22. package/chunks/NegotiableQuoteTemplateFragment.js +154 -6
  23. package/chunks/NegotiableQuoteTemplateFragment.js.map +1 -1
  24. package/chunks/OrderSummaryLine.js +1 -1
  25. package/chunks/OrderSummaryLine.js.map +1 -1
  26. package/chunks/QuoteTemplateCommentsList.js +1 -1
  27. package/chunks/QuoteTemplateCommentsList.js.map +1 -1
  28. package/chunks/RenameQuoteModal.js +4 -0
  29. package/chunks/RenameQuoteModal.js.map +1 -0
  30. package/chunks/ShippingAddressDisplay.js +1 -1
  31. package/chunks/ShippingAddressDisplay.js.map +1 -1
  32. package/chunks/addQuoteTemplateLineItemNote.js +23 -3
  33. package/chunks/addQuoteTemplateLineItemNote.js.map +1 -1
  34. package/chunks/duplicateNegotiableQuote.js +5 -5
  35. package/chunks/duplicateNegotiableQuote.js.map +1 -1
  36. package/chunks/getQuoteTemplates.js +13 -11
  37. package/chunks/getQuoteTemplates.js.map +1 -1
  38. package/chunks/negotiableQuotes.js +1 -1
  39. package/chunks/openQuoteTemplate.js +29 -8
  40. package/chunks/openQuoteTemplate.js.map +1 -1
  41. package/chunks/state.js +1 -1
  42. package/chunks/state.js.map +1 -1
  43. package/chunks/transform-quote-template.js +1 -1
  44. package/chunks/transform-quote-template.js.map +1 -1
  45. package/chunks/transform-quote.js +1 -1
  46. package/chunks/transform-quote.js.map +1 -1
  47. package/components/LineItemNoteModal/LineItemNoteModal.d.ts +2 -2
  48. package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +5 -2
  49. package/components/ProductListTable/ProductListTable.d.ts +5 -49
  50. package/components/ReferenceDocumentFormModal/ReferenceDocumentFormModal.d.ts +30 -0
  51. package/components/ReferenceDocumentFormModal/index.d.ts +11 -0
  52. package/components/ReferenceDocumentsList/ReferenceDocumentsList.d.ts +18 -0
  53. package/components/ReferenceDocumentsList/index.d.ts +11 -0
  54. package/components/index.d.ts +2 -0
  55. package/containers/ItemsQuoted/ItemsQuoted.d.ts +7 -7
  56. package/containers/ItemsQuoted.js +1 -1
  57. package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +5 -1
  58. package/containers/ItemsQuotedTemplate.js +1 -1
  59. package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +3 -0
  60. package/containers/ManageNegotiableQuote.js +1 -1
  61. package/containers/ManageNegotiableQuote.js.map +1 -1
  62. package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +46 -5
  63. package/containers/ManageNegotiableQuoteTemplate.js +3 -1
  64. package/containers/ManageNegotiableQuoteTemplate.js.map +1 -1
  65. package/containers/OrderSummary.js +1 -1
  66. package/containers/OrderSummary.js.map +1 -1
  67. package/containers/OrderSummaryLine.js +1 -1
  68. package/containers/QuoteSummaryList/QuoteSummaryList.d.ts +1 -1
  69. package/containers/QuoteSummaryList.js +1 -1
  70. package/containers/QuoteSummaryList.js.map +1 -1
  71. package/containers/QuoteTemplatesListTable.js +1 -1
  72. package/containers/QuoteTemplatesListTable.js.map +1 -1
  73. package/containers/QuotesListTable.js +1 -1
  74. package/containers/QuotesListTable.js.map +1 -1
  75. package/containers/RequestNegotiableQuoteForm.js +1 -1
  76. package/containers/RequestNegotiableQuoteForm.js.map +1 -1
  77. package/containers/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +2 -2
  78. package/containers/ShippingAddressDisplay.js +1 -1
  79. package/data/models/__fixtures__/negotiableQuoteModel.d.ts +5 -5
  80. package/data/models/negotiable-quote-model.d.ts +3 -2
  81. package/data/models/negotiable-quote-template-model.d.ts +4 -39
  82. package/data/models/store-config-model.d.ts +2 -0
  83. package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +8 -0
  84. package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +616 -75
  85. package/data/transforms/__fixtures__/storeConfigData.d.ts +4 -0
  86. package/data/transforms/transform-history.d.ts +15 -0
  87. package/data/transforms/transform-quote-items.d.ts +15 -0
  88. package/hooks/useItemsQuotedTemplate.d.ts +15 -0
  89. package/hooks/useReferenceDocumentLinks.d.ts +34 -0
  90. package/hooks/useRemoveTemplateItems.d.ts +25 -0
  91. package/hooks/useRenameTemplate.d.ts +71 -0
  92. package/hooks/useUpdateTemplateQuantities.d.ts +27 -0
  93. package/i18n/en_US.json.d.ts +93 -6
  94. package/lib/itemFormatters.d.ts +1 -1
  95. package/lib/priceCalculators.d.ts +1 -1
  96. package/package.json +1 -1
  97. package/render.js +3 -3
  98. package/render.js.map +1 -1
  99. package/chunks/LineItemNoteModal2.js +0 -4
  100. package/chunks/LineItemNoteModal2.js.map +0 -1
  101. package/chunks/TabbedContent.js +0 -4
  102. package/chunks/TabbedContent.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { HTMLAttributes } from 'preact/compat';
2
2
  import { Container } from '@dropins/tools/types/elsie/src/lib';
3
- import { NegotiableQuoteModel } from '../../data/models/negotiable-quote-model';
3
+ import { ShippingAddress } from '../../data/models/negotiable-quote-model';
4
4
 
5
5
  export interface ShippingAddressDisplayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
6
- quoteData?: NegotiableQuoteModel;
6
+ shippingAddress?: ShippingAddress;
7
7
  loading?: boolean;
8
8
  }
9
9
  export declare const ShippingAddressDisplay: Container<ShippingAddressDisplayProps>;
@@ -1,4 +1,4 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
- import{S as d}from"../chunks/ShippingAddressDisplay.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"@dropins/tools/i18n.js";import"@dropins/tools/event-bus.js";export{d as ShippingAddressDisplay};
3
+ import{S as e}from"../chunks/ShippingAddressDisplay.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/components.js";import"../chunks/WarningFilled.js";import"@dropins/tools/i18n.js";import"@dropins/tools/event-bus.js";export{e as ShippingAddressDisplay};
4
4
  //# sourceMappingURL=ShippingAddressDisplay.js.map
@@ -1,8 +1,8 @@
1
- import { NegotiableQuoteCartItem, NegotiableQuoteModel } from '../negotiable-quote-model';
1
+ import { CartItemModel, NegotiableQuoteModel } from '../negotiable-quote-model';
2
2
 
3
- export declare const baseCartItem: NegotiableQuoteCartItem;
4
- export declare const configurableCartItem: NegotiableQuoteCartItem;
5
- export declare const bundleCartItem: NegotiableQuoteCartItem;
6
- export declare const downloadableCartItem: NegotiableQuoteCartItem;
3
+ export declare const baseCartItem: CartItemModel;
4
+ export declare const configurableCartItem: CartItemModel;
5
+ export declare const bundleCartItem: CartItemModel;
6
+ export declare const downloadableCartItem: CartItemModel;
7
7
  export declare const base: NegotiableQuoteModel;
8
8
  //# sourceMappingURL=negotiableQuoteModel.d.ts.map
@@ -41,6 +41,7 @@ export interface NegotiableQuoteModel {
41
41
  firstname: string;
42
42
  lastname: string;
43
43
  };
44
+ email?: string;
44
45
  templateName?: string;
45
46
  totalQuantity: number;
46
47
  comments?: {
@@ -70,7 +71,7 @@ export interface NegotiableQuoteModel {
70
71
  subtotalWithDiscountExcludingTax?: Currency;
71
72
  totalTax?: Currency;
72
73
  };
73
- items: NegotiableQuoteCartItem[];
74
+ items: CartItemModel[];
74
75
  shippingAddresses?: ShippingAddress[];
75
76
  canCheckout: boolean;
76
77
  canSendForReview: boolean;
@@ -101,7 +102,7 @@ export interface CustomizableOption {
101
102
  value: string;
102
103
  }[];
103
104
  }
104
- export interface NegotiableQuoteCartItem {
105
+ export interface CartItemModel {
105
106
  itemType: string;
106
107
  uid: string;
107
108
  product: {
@@ -1,4 +1,4 @@
1
- import { Currency, ItemNote, PaginationInfo, ShippingAddress, ConfigurableOption, BundleOption } from './negotiable-quote-model';
1
+ import { Currency, PaginationInfo, ShippingAddress, NegotiableQuoteHistoryEntry, CartItemModel } from './negotiable-quote-model';
2
2
 
3
3
  export interface NegotiableQuoteTemplateModel {
4
4
  id: string;
@@ -14,7 +14,7 @@ export interface NegotiableQuoteTemplateModel {
14
14
  lastname: string;
15
15
  };
16
16
  comments?: QuoteTemplateComment[];
17
- history?: QuoteTemplateHistoryEntry[];
17
+ history?: NegotiableQuoteHistoryEntry[];
18
18
  prices: {
19
19
  subtotalExcludingTax?: Currency;
20
20
  subtotalIncludingTax?: Currency;
@@ -25,11 +25,12 @@ export interface NegotiableQuoteTemplateModel {
25
25
  label: string;
26
26
  }[];
27
27
  };
28
- items: QuoteTemplateCartItem[];
28
+ items: CartItemModel[];
29
29
  shippingAddresses?: ShippingAddress[];
30
30
  referenceDocuments?: {
31
31
  uid: string;
32
32
  name: string;
33
+ identifier?: string;
33
34
  url: string;
34
35
  }[];
35
36
  quantityThresholds?: {
@@ -60,32 +61,6 @@ export declare enum NegotiableQuoteTemplateStatus {
60
61
  CANCELED = "Canceled",
61
62
  EXPIRED = "Expired"
62
63
  }
63
- export interface QuoteTemplateCartItem {
64
- uid?: string;
65
- product: {
66
- uid: string;
67
- sku: string;
68
- name: string;
69
- };
70
- quantity: number;
71
- prices: {
72
- originalItemPrice: Currency;
73
- rowTotal: Currency;
74
- };
75
- catalogDiscount?: {
76
- amountOff: number;
77
- percentOff: number;
78
- };
79
- discounts?: {
80
- label: string;
81
- value: string;
82
- amount: Currency;
83
- }[];
84
- noteFromBuyer?: ItemNote[];
85
- noteFromSeller?: ItemNote[];
86
- configurableOptions?: ConfigurableOption[];
87
- bundleOptions?: BundleOption[];
88
- }
89
64
  export interface QuoteTemplateComment {
90
65
  uid: string;
91
66
  createdAt: string;
@@ -99,16 +74,6 @@ export interface QuoteTemplateComment {
99
74
  url: string;
100
75
  }[];
101
76
  }
102
- export interface QuoteTemplateHistoryEntry {
103
- uid: string;
104
- createdAt: string;
105
- author: {
106
- firstname: string;
107
- lastname: string;
108
- };
109
- changeType: string;
110
- changes: any;
111
- }
112
77
  export interface NegotiableQuoteTemplatesListModel {
113
78
  items: NegotiableQuoteTemplateListEntry[];
114
79
  pageInfo: {
@@ -23,5 +23,7 @@ export interface StoreConfigModel {
23
23
  grandTotal: boolean;
24
24
  };
25
25
  useConfigurableParentThumbnail: boolean;
26
+ quoteMinimumAmount: number | null;
27
+ quoteMinimumAmountMessage: string | null;
26
28
  }
27
29
  //# sourceMappingURL=store-config-model.d.ts.map
@@ -13,6 +13,7 @@ export declare const mockGraphQLResponse: {
13
13
  firstname: string;
14
14
  lastname: string;
15
15
  };
16
+ email: string;
16
17
  comments: {
17
18
  uid: string;
18
19
  created_at: string;
@@ -111,6 +112,7 @@ export declare const mockQuoteData: {
111
112
  firstname: string;
112
113
  lastname: string;
113
114
  };
115
+ email: string;
114
116
  comments: {
115
117
  uid: string;
116
118
  created_at: string;
@@ -198,6 +200,7 @@ export declare const mockQuoteData: {
198
200
  }[];
199
201
  };
200
202
  quantity: number;
203
+ is_available: boolean;
201
204
  note_from_buyer: {
202
205
  created_at: string;
203
206
  creator_id: number;
@@ -282,6 +285,7 @@ export declare const mockQuoteData: {
282
285
  discounts: never[];
283
286
  };
284
287
  quantity: number;
288
+ is_available: boolean;
285
289
  configurable_options: {
286
290
  option_label: string;
287
291
  value_label: string;
@@ -296,6 +300,7 @@ export declare const mockQuoteData: {
296
300
  }[];
297
301
  note_from_seller: never[];
298
302
  configured_variant: {
303
+ stock_status: string;
299
304
  thumbnail: {
300
305
  label: string;
301
306
  url: string;
@@ -400,6 +405,7 @@ export declare const mockQuoteData: {
400
405
  }[];
401
406
  };
402
407
  quantity: number;
408
+ is_available: boolean;
403
409
  bundle_options: {
404
410
  label: string;
405
411
  values: {
@@ -511,6 +517,7 @@ export declare const mockQuoteData: {
511
517
  }[];
512
518
  };
513
519
  quantity: number;
520
+ is_available: boolean;
514
521
  links: {
515
522
  sort_order: number;
516
523
  title: string;
@@ -643,6 +650,7 @@ export declare const mockNegotiableQuotesResponse: {
643
650
  firstname: string;
644
651
  lastname: string;
645
652
  };
653
+ email: string;
646
654
  items: {
647
655
  uid: string;
648
656
  product: {