@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.
- package/LICENSE.md +25 -26
- package/api/duplicateNegotiableQuote/duplicateNegotiableQuote.d.ts +1 -0
- package/api/getQuoteTemplates/graphql/getQuoteTemplates.d.ts +1 -1
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
- package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +1 -1
- package/api/sendForReview/index.d.ts +1 -1
- package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +10 -0
- package/api.js +10 -47
- package/api.js.map +1 -1
- package/chunks/AttachedFilesList.js +1 -1
- package/chunks/AttachedFilesList.js.map +1 -1
- package/chunks/ConfirmationModal.js +1 -1
- package/chunks/ConfirmationModal.js.map +1 -1
- package/chunks/ItemsQuoted.js +1 -1
- package/chunks/ItemsQuoted.js.map +1 -1
- package/chunks/ItemsQuotedTemplate.js +1 -1
- package/chunks/ItemsQuotedTemplate.js.map +1 -1
- package/chunks/LineItemNoteModal.js +4 -0
- package/chunks/LineItemNoteModal.js.map +1 -0
- package/chunks/NegotiableQuoteFragment.js +1 -0
- package/chunks/NegotiableQuoteFragment.js.map +1 -1
- package/chunks/NegotiableQuoteTemplateFragment.js +154 -6
- package/chunks/NegotiableQuoteTemplateFragment.js.map +1 -1
- package/chunks/OrderSummaryLine.js +1 -1
- package/chunks/OrderSummaryLine.js.map +1 -1
- package/chunks/QuoteTemplateCommentsList.js +1 -1
- package/chunks/QuoteTemplateCommentsList.js.map +1 -1
- package/chunks/RenameQuoteModal.js +4 -0
- package/chunks/RenameQuoteModal.js.map +1 -0
- package/chunks/ShippingAddressDisplay.js +1 -1
- package/chunks/ShippingAddressDisplay.js.map +1 -1
- package/chunks/addQuoteTemplateLineItemNote.js +23 -3
- package/chunks/addQuoteTemplateLineItemNote.js.map +1 -1
- package/chunks/duplicateNegotiableQuote.js +5 -5
- package/chunks/duplicateNegotiableQuote.js.map +1 -1
- package/chunks/getQuoteTemplates.js +13 -11
- package/chunks/getQuoteTemplates.js.map +1 -1
- package/chunks/negotiableQuotes.js +1 -1
- package/chunks/openQuoteTemplate.js +29 -8
- package/chunks/openQuoteTemplate.js.map +1 -1
- package/chunks/state.js +1 -1
- package/chunks/state.js.map +1 -1
- package/chunks/transform-quote-template.js +1 -1
- package/chunks/transform-quote-template.js.map +1 -1
- package/chunks/transform-quote.js +1 -1
- package/chunks/transform-quote.js.map +1 -1
- package/components/LineItemNoteModal/LineItemNoteModal.d.ts +2 -2
- package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +5 -2
- package/components/ProductListTable/ProductListTable.d.ts +5 -49
- package/components/ReferenceDocumentFormModal/ReferenceDocumentFormModal.d.ts +30 -0
- package/components/ReferenceDocumentFormModal/index.d.ts +11 -0
- package/components/ReferenceDocumentsList/ReferenceDocumentsList.d.ts +18 -0
- package/components/ReferenceDocumentsList/index.d.ts +11 -0
- package/components/index.d.ts +2 -0
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +7 -7
- package/containers/ItemsQuoted.js +1 -1
- package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +5 -1
- package/containers/ItemsQuotedTemplate.js +1 -1
- package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +3 -0
- package/containers/ManageNegotiableQuote.js +1 -1
- package/containers/ManageNegotiableQuote.js.map +1 -1
- package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +46 -5
- package/containers/ManageNegotiableQuoteTemplate.js +3 -1
- package/containers/ManageNegotiableQuoteTemplate.js.map +1 -1
- package/containers/OrderSummary.js +1 -1
- package/containers/OrderSummary.js.map +1 -1
- package/containers/OrderSummaryLine.js +1 -1
- package/containers/QuoteSummaryList/QuoteSummaryList.d.ts +1 -1
- package/containers/QuoteSummaryList.js +1 -1
- package/containers/QuoteSummaryList.js.map +1 -1
- package/containers/QuoteTemplatesListTable.js +1 -1
- package/containers/QuoteTemplatesListTable.js.map +1 -1
- package/containers/QuotesListTable.js +1 -1
- package/containers/QuotesListTable.js.map +1 -1
- package/containers/RequestNegotiableQuoteForm.js +1 -1
- package/containers/RequestNegotiableQuoteForm.js.map +1 -1
- package/containers/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +2 -2
- package/containers/ShippingAddressDisplay.js +1 -1
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +5 -5
- package/data/models/negotiable-quote-model.d.ts +3 -2
- package/data/models/negotiable-quote-template-model.d.ts +4 -39
- package/data/models/store-config-model.d.ts +2 -0
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +8 -0
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +616 -75
- package/data/transforms/__fixtures__/storeConfigData.d.ts +4 -0
- package/data/transforms/transform-history.d.ts +15 -0
- package/data/transforms/transform-quote-items.d.ts +15 -0
- package/hooks/useItemsQuotedTemplate.d.ts +15 -0
- package/hooks/useReferenceDocumentLinks.d.ts +34 -0
- package/hooks/useRemoveTemplateItems.d.ts +25 -0
- package/hooks/useRenameTemplate.d.ts +71 -0
- package/hooks/useUpdateTemplateQuantities.d.ts +27 -0
- package/i18n/en_US.json.d.ts +93 -6
- package/lib/itemFormatters.d.ts +1 -1
- package/lib/priceCalculators.d.ts +1 -1
- package/package.json +1 -1
- package/render.js +3 -3
- package/render.js.map +1 -1
- package/chunks/LineItemNoteModal2.js +0 -4
- package/chunks/LineItemNoteModal2.js.map +0 -1
- package/chunks/TabbedContent.js +0 -4
- package/chunks/TabbedContent.js.map +0 -1
|
@@ -16,11 +16,15 @@ export declare const mockStoreConfigGraphQLResponse: {
|
|
|
16
16
|
shopping_cart_display_full_summary: boolean;
|
|
17
17
|
shopping_cart_display_grand_total: boolean;
|
|
18
18
|
configurable_thumbnail_source: string;
|
|
19
|
+
quote_minimum_amount: number;
|
|
20
|
+
quote_minimum_amount_message: string;
|
|
19
21
|
};
|
|
20
22
|
export declare const mockStoreConfigGraphQLResponseWithWrongValues: {
|
|
21
23
|
shopping_cart_display_subtotal: number;
|
|
22
24
|
shopping_cart_display_price: null;
|
|
23
25
|
shopping_cart_display_shipping: number;
|
|
26
|
+
quote_minimum_amount: null;
|
|
27
|
+
quote_minimum_amount_message: null;
|
|
24
28
|
cart_summary_display_quantity: number;
|
|
25
29
|
max_items_in_order_summary: number;
|
|
26
30
|
shopping_cart_display_zero_tax: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NegotiableQuoteHistoryEntry } from '../models/negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a history entry from the API format to the model format
|
|
5
|
+
* @param historyEntry - Raw history entry from API
|
|
6
|
+
* @returns Transformed history entry
|
|
7
|
+
*/
|
|
8
|
+
export declare function transformHistoryEntry(historyEntry: any): NegotiableQuoteHistoryEntry;
|
|
9
|
+
/**
|
|
10
|
+
* Transforms an array of history entries from the API format to the model format
|
|
11
|
+
* @param historyEntries - Array of raw history entries from API
|
|
12
|
+
* @returns Array of transformed history entries
|
|
13
|
+
*/
|
|
14
|
+
export declare function transformHistory(historyEntries: any[] | null | undefined): NegotiableQuoteHistoryEntry[] | undefined;
|
|
15
|
+
//# sourceMappingURL=transform-history.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CartItemModel } from '../models/negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Transforms a single quote item from the API format to the model format
|
|
5
|
+
* @param item - Raw quote item from API
|
|
6
|
+
* @returns Transformed quote item
|
|
7
|
+
*/
|
|
8
|
+
export declare function transformQuoteItem(item: any): CartItemModel;
|
|
9
|
+
/**
|
|
10
|
+
* Transforms an array of quote items from the API format to the model format
|
|
11
|
+
* @param items - Array of raw quote items from API
|
|
12
|
+
* @returns Array of transformed quote items
|
|
13
|
+
*/
|
|
14
|
+
export declare function transformQuoteItems(items: any[] | null | undefined): CartItemModel[];
|
|
15
|
+
//# sourceMappingURL=transform-quote-items.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CartItemModel } from '../data/models/negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
export interface UseItemsQuotedTemplateReturn {
|
|
4
|
+
dropdownSelections: Record<string, string | undefined>;
|
|
5
|
+
handleItemDropdownChange: (item: CartItemModel, action: string) => void;
|
|
6
|
+
handleDismissRemoveBanner: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface UseItemsQuotedTemplateParams {
|
|
9
|
+
handleRemoveItems: (items: CartItemModel[]) => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Custom hook to manage dropdown selections and item actions for quote template items
|
|
13
|
+
*/
|
|
14
|
+
export declare const useItemsQuotedTemplate: (params: UseItemsQuotedTemplateParams) => UseItemsQuotedTemplateReturn;
|
|
15
|
+
//# sourceMappingURL=useItemsQuotedTemplate.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReferenceDocument } from '../components';
|
|
2
|
+
import { ReferenceDocumentLinkInput } from '../api/sendQuoteTemplateForReview/sendQuoteTemplateForReview';
|
|
3
|
+
|
|
4
|
+
export interface UseReferenceDocumentLinksParams {
|
|
5
|
+
templateReferenceDocuments?: ReferenceDocument[];
|
|
6
|
+
localReferenceDocuments: ReferenceDocument[];
|
|
7
|
+
}
|
|
8
|
+
export interface UseReferenceDocumentLinksReturn {
|
|
9
|
+
/**
|
|
10
|
+
* Checks if a document exists in the template reference documents.
|
|
11
|
+
* Matches by uid if both documents have it, otherwise matches by url.
|
|
12
|
+
*/
|
|
13
|
+
isDocumentInTemplateData: (document: ReferenceDocument) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Returns documents from localReferenceDocuments that are not in templateReferenceDocuments.
|
|
16
|
+
*/
|
|
17
|
+
getNewDocuments: () => ReferenceDocument[];
|
|
18
|
+
/**
|
|
19
|
+
* Transforms all reference documents to API format.
|
|
20
|
+
*/
|
|
21
|
+
getReferenceDocumentLinks: () => ReferenceDocumentLinkInput[];
|
|
22
|
+
/**
|
|
23
|
+
* Indicates if there are unsaved changes (new documents, removed documents, or modified documents).
|
|
24
|
+
*/
|
|
25
|
+
hasUnsavedChanges: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Custom hook to manage reference document links logic.
|
|
29
|
+
* Handles document matching, filtering new documents, transformation to API format,
|
|
30
|
+
* and detection of unsaved changes (new, removed, or modified documents).
|
|
31
|
+
* Note: getReferenceDocumentLinks() returns all local reference documents, not just new ones.
|
|
32
|
+
*/
|
|
33
|
+
export declare const useReferenceDocumentLinks: (params: UseReferenceDocumentLinksParams) => UseReferenceDocumentLinksReturn;
|
|
34
|
+
//# sourceMappingURL=useReferenceDocumentLinks.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CartItemModel } from '../data/models/negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
export interface UseRemoveTemplateItemsReturn {
|
|
4
|
+
handleRemoveItems: (items: CartItemModel[]) => void;
|
|
5
|
+
handleConfirmRemove: () => Promise<void>;
|
|
6
|
+
handleCancelRemove: () => void;
|
|
7
|
+
isRemoveModalOpen: boolean;
|
|
8
|
+
itemsToRemove: CartItemModel[];
|
|
9
|
+
isRemoving: boolean;
|
|
10
|
+
removeNotificationState: {
|
|
11
|
+
type: 'success' | 'error' | null;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface UseRemoveTemplateItemsParams {
|
|
16
|
+
templateId?: string;
|
|
17
|
+
onRemoveModalStateChange?: (isOpen: boolean) => void;
|
|
18
|
+
removeSuccessMessage: string;
|
|
19
|
+
removeErrorMessage: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Custom hook to manage removing items from a quote template
|
|
23
|
+
*/
|
|
24
|
+
export declare const useRemoveTemplateItems: (params: UseRemoveTemplateItemsParams) => UseRemoveTemplateItemsReturn;
|
|
25
|
+
//# sourceMappingURL=useRemoveTemplateItems.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
9
|
+
export interface UseRenameTemplateParams {
|
|
10
|
+
initialTemplateName?: string;
|
|
11
|
+
templateNameRequiredErrorMessage?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UseRenameTemplateReturn {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the rename modal is currently open.
|
|
16
|
+
*/
|
|
17
|
+
isRenameModalOpen: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The new template name entered by the user.
|
|
20
|
+
*/
|
|
21
|
+
renameTemplateName: string;
|
|
22
|
+
/**
|
|
23
|
+
* The reason for renaming the template.
|
|
24
|
+
*/
|
|
25
|
+
renameReason: string;
|
|
26
|
+
/**
|
|
27
|
+
* Error message for rename operation.
|
|
28
|
+
*/
|
|
29
|
+
renameError: string;
|
|
30
|
+
/**
|
|
31
|
+
* Error message for template name validation.
|
|
32
|
+
*/
|
|
33
|
+
renameTemplateNameError: string;
|
|
34
|
+
/**
|
|
35
|
+
* Success message for rename operation.
|
|
36
|
+
*/
|
|
37
|
+
renameSuccess: string;
|
|
38
|
+
/**
|
|
39
|
+
* Opens the rename modal and initializes state with the current template name.
|
|
40
|
+
*/
|
|
41
|
+
handleRenameClick: (currentTemplateName?: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Closes the rename modal and resets all state.
|
|
44
|
+
*/
|
|
45
|
+
handleRenameClose: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Updates the template name and clears any name-related errors.
|
|
48
|
+
*/
|
|
49
|
+
handleRenameTemplateNameChange: (value: string) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Updates the rename reason.
|
|
52
|
+
*/
|
|
53
|
+
handleRenameReasonChange: (value: string) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Validates and saves the rename. Closes the modal if validation passes.
|
|
56
|
+
* Does not make an API call - rename is tracked locally and included when submitting for review.
|
|
57
|
+
*/
|
|
58
|
+
handleRenameSave: () => boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Resets rename state (useful after successful submission).
|
|
61
|
+
*/
|
|
62
|
+
resetRenameState: () => void;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Custom hook to manage quote template rename functionality.
|
|
66
|
+
* Handles state management for the rename modal, validation, and tracking rename changes.
|
|
67
|
+
* Note: This hook does not make API calls. The rename is tracked locally and should be
|
|
68
|
+
* included when calling sendQuoteTemplateForReview.
|
|
69
|
+
*/
|
|
70
|
+
export declare const useRenameTemplate: (params?: UseRenameTemplateParams) => UseRenameTemplateReturn;
|
|
71
|
+
//# sourceMappingURL=useRenameTemplate.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CartItemModel } from '../data/models/negotiable-quote-model';
|
|
2
|
+
|
|
3
|
+
export interface UseUpdateTemplateQuantitiesReturn {
|
|
4
|
+
quantityChanges: Record<string, number>;
|
|
5
|
+
handleQuantityChange: (item: CartItemModel, newQuantity: number) => void;
|
|
6
|
+
handleUpdate: (e: SubmitEvent) => void;
|
|
7
|
+
handleConfirmUpdate: () => Promise<void>;
|
|
8
|
+
handleCancelUpdate: () => void;
|
|
9
|
+
handleDismissBanner: () => void;
|
|
10
|
+
isUpdateModalOpen: boolean;
|
|
11
|
+
isUpdating: boolean;
|
|
12
|
+
updateNotificationState: {
|
|
13
|
+
type: 'success' | 'error' | null;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface UseUpdateTemplateQuantitiesParams {
|
|
18
|
+
templateId?: string;
|
|
19
|
+
onUpdateModalStateChange?: (isOpen: boolean) => void;
|
|
20
|
+
updateSuccessMessage: string;
|
|
21
|
+
updateErrorMessage: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Custom hook to manage updating quantities of items in a quote template
|
|
25
|
+
*/
|
|
26
|
+
export declare const useUpdateTemplateQuantities: (params: UseUpdateTemplateQuantitiesParams) => UseUpdateTemplateQuantitiesReturn;
|
|
27
|
+
//# sourceMappingURL=useUpdateTemplateQuantities.d.ts.map
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -82,7 +82,9 @@ declare const _default: {
|
|
|
82
82
|
"errorHeading": "Error",
|
|
83
83
|
"errorFallback": "Failed to duplicate quote",
|
|
84
84
|
"successHeading": "Success",
|
|
85
|
-
"successDescription": "Quote has been successfully duplicated. You will be redirected to the new quote shortly."
|
|
85
|
+
"successDescription": "Quote has been successfully duplicated. You will be redirected to the new quote shortly.",
|
|
86
|
+
"outOfStockWarningHeading": "Alert",
|
|
87
|
+
"outOfStockWarningMessage": "Some items were skipped during duplication due to errors."
|
|
86
88
|
},
|
|
87
89
|
"close": {
|
|
88
90
|
"message": "Are you sure you want to close this quote?",
|
|
@@ -110,7 +112,9 @@ declare const _default: {
|
|
|
110
112
|
"title": "Shipping Information"
|
|
111
113
|
},
|
|
112
114
|
"shippingAddress": {
|
|
113
|
-
"noAddress": "No shipping address has been set for this quote."
|
|
115
|
+
"noAddress": "No shipping address has been set for this quote.",
|
|
116
|
+
"noAddressHeading": "No Shipping Address",
|
|
117
|
+
"noAddressDescription": "Please select or enter a shipping address."
|
|
114
118
|
},
|
|
115
119
|
"quoteComments": {
|
|
116
120
|
"title": "Quote Comments",
|
|
@@ -137,8 +141,11 @@ declare const _default: {
|
|
|
137
141
|
"notes": {
|
|
138
142
|
"header": "NOTES",
|
|
139
143
|
"leftANote": "left a note:",
|
|
140
|
-
"buyer": "Buyer"
|
|
141
|
-
|
|
144
|
+
"buyer": "Buyer",
|
|
145
|
+
"seller": "Seller"
|
|
146
|
+
},
|
|
147
|
+
"outOfStock": "Out of Stock",
|
|
148
|
+
"outOfStockMessage": "This item is currently out of stock."
|
|
142
149
|
},
|
|
143
150
|
"rename": {
|
|
144
151
|
"title": "Rename Quote",
|
|
@@ -267,8 +274,31 @@ declare const _default: {
|
|
|
267
274
|
"createdLabel": "Created:",
|
|
268
275
|
"salesRepLabel": "Sales Rep:",
|
|
269
276
|
"expiresLabel": "Expires:",
|
|
277
|
+
"templateIdLabel": "Template ID:",
|
|
270
278
|
"referenceDocuments": {
|
|
271
|
-
"title": "Reference Documents"
|
|
279
|
+
"title": "Reference Documents",
|
|
280
|
+
"add": "Add",
|
|
281
|
+
"edit": "Edit",
|
|
282
|
+
"remove": "Remove",
|
|
283
|
+
"noReferenceDocuments": "No reference documents",
|
|
284
|
+
"form": {
|
|
285
|
+
"title": "Document Information",
|
|
286
|
+
"documentNameLabel": "Document name",
|
|
287
|
+
"documentIdentifierLabel": "Document identifier",
|
|
288
|
+
"referenceUrlLabel": "Reference URL",
|
|
289
|
+
"addButton": "Add to Quote Template",
|
|
290
|
+
"updateButton": "Update Document",
|
|
291
|
+
"cancelButton": "Cancel",
|
|
292
|
+
"documentNameRequired": "Document name is required",
|
|
293
|
+
"documentIdentifierRequired": "Document identifier is required",
|
|
294
|
+
"referenceUrlRequired": "Reference URL is required",
|
|
295
|
+
"invalidUrl": "Please enter a valid URL",
|
|
296
|
+
"errorHeading": "Error",
|
|
297
|
+
"duplicateUidError": "A document with this identifier already exists in the template. Please use a different identifier."
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"shippingInformation": {
|
|
301
|
+
"title": "Shipping Information"
|
|
272
302
|
},
|
|
273
303
|
"comments": {
|
|
274
304
|
"title": "Comments"
|
|
@@ -288,11 +318,52 @@ declare const _default: {
|
|
|
288
318
|
"actionsLabel": "Actions",
|
|
289
319
|
"actionButtons": {
|
|
290
320
|
"sendForReview": "Send for review",
|
|
321
|
+
"delete": "Delete template",
|
|
322
|
+
"cancel": "Cancel template",
|
|
291
323
|
"accept": "Accept",
|
|
292
324
|
"generateQuote": "Generate quote"
|
|
293
325
|
},
|
|
326
|
+
"removeItemsModal": {
|
|
327
|
+
"title": "Change Quote Template Items",
|
|
328
|
+
"description": "Making changes to any quote template item changes the terms of the template. After you update the template, return it to the seller for review and approval.",
|
|
329
|
+
"cancelButton": "Cancel",
|
|
330
|
+
"confirmButton": "Remove",
|
|
331
|
+
"confirmButtonRemoving": "Removing...",
|
|
332
|
+
"successHeading": "Success",
|
|
333
|
+
"successMessage": "Quote template items have been successfully removed.",
|
|
334
|
+
"errorHeading": "Error",
|
|
335
|
+
"errorMessage": "Failed to remove quote template items. Please try again."
|
|
336
|
+
},
|
|
337
|
+
"updateQuantitiesModal": {
|
|
338
|
+
"title": "Change Quote Template Items",
|
|
339
|
+
"description": "Making changes to any quote template item changes the terms of the template. After you update the template, return it to the seller for review and approval.",
|
|
340
|
+
"cancelButton": "Cancel",
|
|
341
|
+
"updateButton": "Apply Changes",
|
|
342
|
+
"successHeading": "Success",
|
|
343
|
+
"successMessage": "Quote template quantities have been successfully updated.",
|
|
344
|
+
"errorHeading": "Error",
|
|
345
|
+
"errorMessage": "Failed to update quote template quantities. Please try again."
|
|
346
|
+
},
|
|
294
347
|
"confirmationModal": {
|
|
295
348
|
"cancel": "Cancel",
|
|
349
|
+
"delete": {
|
|
350
|
+
"title": "Delete Quote Template",
|
|
351
|
+
"message": "Are you sure you want to delete this quote template?",
|
|
352
|
+
"confirm": "Delete",
|
|
353
|
+
"errorHeading": "Error",
|
|
354
|
+
"errorFallback": "Failed to delete quote template",
|
|
355
|
+
"successHeading": "Success",
|
|
356
|
+
"successDescription": "Quote template has been successfully deleted"
|
|
357
|
+
},
|
|
358
|
+
"cancelTemplate": {
|
|
359
|
+
"title": "Cancel Quote Template",
|
|
360
|
+
"message": "Are you sure you want to cancel this quote template?",
|
|
361
|
+
"confirm": "Cancel Template",
|
|
362
|
+
"errorHeading": "Error",
|
|
363
|
+
"errorFallback": "Failed to cancel quote template",
|
|
364
|
+
"successHeading": "Success",
|
|
365
|
+
"successDescription": "Quote template has been successfully cancelled"
|
|
366
|
+
},
|
|
296
367
|
"accept": {
|
|
297
368
|
"title": "Accept Quote Template",
|
|
298
369
|
"message": "Are you sure you want to accept this quote template?",
|
|
@@ -324,7 +395,23 @@ declare const _default: {
|
|
|
324
395
|
},
|
|
325
396
|
"lineItemNoteModal": {
|
|
326
397
|
"errorHeading": "Error"
|
|
327
|
-
}
|
|
398
|
+
},
|
|
399
|
+
"rename": {
|
|
400
|
+
"title": "Rename Quote Template",
|
|
401
|
+
"templateNameLabel": "Template name",
|
|
402
|
+
"reasonLabel": "Reason for change",
|
|
403
|
+
"renameButton": "Rename",
|
|
404
|
+
"cancelButton": "Cancel",
|
|
405
|
+
"errorHeading": "Error",
|
|
406
|
+
"templateNameRequired": "Template name is required",
|
|
407
|
+
"errorDefault": "Failed to rename quote template. Please try again.",
|
|
408
|
+
"successHeading": "Success",
|
|
409
|
+
"successMessage": "Quote template renamed successfully!"
|
|
410
|
+
},
|
|
411
|
+
"unsavedChangesWarningHeading": "Unsaved Changes",
|
|
412
|
+
"unsavedChangesWarningMessage": "The quote template must be submitted for review to save the changes.",
|
|
413
|
+
"shippingAddressWarningHeading": "No Shipping Address",
|
|
414
|
+
"shippingAddressWarningMessage": "No shipping address has been set for this quote template."
|
|
328
415
|
}
|
|
329
416
|
},
|
|
330
417
|
"historyLog": {
|
package/lib/itemFormatters.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageProps } from '@dropins/tools/types/elsie/src/components';
|
|
2
2
|
import { SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
-
import {
|
|
3
|
+
import { CartItemModel as NegotiableQuoteItemModel, StoreConfigModel } from '../data/models';
|
|
4
4
|
import { SwitchableAttributes } from '../containers/QuoteSummaryList/QuoteSummaryList';
|
|
5
5
|
|
|
6
6
|
export interface ItemFormatterOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PriceProps } from '@dropins/tools/types/elsie/src/components';
|
|
2
|
-
import {
|
|
2
|
+
import { CartItemModel as NegotiableQuoteItemModel, StoreConfigModel } from '../data/models';
|
|
3
3
|
|
|
4
4
|
export interface PriceCalculatorOptions {
|
|
5
5
|
dictionary: Record<string, string>;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-quote-management", "version": "1.0.0-
|
|
1
|
+
{"name": "@dropins/storefront-quote-management", "version": "1.0.0-beta10", "@dropins/tools": "1.6.0-beta3", "license": "SEE LICENSE IN LICENSE.md"}
|