@dropins/storefront-quote-management 0.0.1-alpha10 → 0.0.1-alpha12
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/api/graphql/NegotiableQuoteFragment.d.ts +1 -1
- package/api/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +0 -1
- package/api/requestNegotiableQuote/requestNegotiableQuote.d.ts +6 -0
- package/api.js +3 -15
- package/api.js.map +1 -1
- package/chunks/requestNegotiableQuote.js +36 -100
- package/chunks/requestNegotiableQuote.js.map +1 -1
- package/chunks/transform-quote.js +1 -1
- package/chunks/transform-quote.js.map +1 -1
- package/components/index.d.ts +0 -6
- package/containers/QuotesListTable/QuotesListTable.d.ts +9 -9
- 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/index.d.ts +0 -2
- package/data/models/customer-model.d.ts +0 -1
- package/data/models/negotiable-quote-model.d.ts +34 -76
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +2 -229
- package/i18n/en_US.json.d.ts +0 -54
- package/lib/state.d.ts +0 -1
- package/package.json +1 -1
- package/render.js +3 -4
- package/render.js.map +1 -1
- package/types/state.types.d.ts +0 -1
- package/api/getQuoteData/getQuoteData.d.ts +0 -10
- package/api/getQuoteData/graphql/QuoteDataQuery.d.ts +0 -2
- package/api/getQuoteData/index.d.ts +0 -10
- package/chunks/WarningFilled.js +0 -4
- package/chunks/WarningFilled.js.map +0 -1
- package/components/ActionsBar/ActionsBar.d.ts +0 -14
- package/components/ActionsBar/index.d.ts +0 -11
- package/components/ItemsQuoted/ItemsQuoted.d.ts +0 -11
- package/components/ItemsQuoted/index.d.ts +0 -11
- package/components/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +0 -20
- package/components/ManageNegotiableQuote/__fixtures__/ManageNegotiableQuoteProps.d.ts +0 -4
- package/components/ManageNegotiableQuote/index.d.ts +0 -11
- package/components/ProductListTable/ProductListTable.d.ts +0 -13
- package/components/ProductListTable/index.d.ts +0 -11
- package/components/QuotePricesSummary/QuotePricesSummary.d.ts +0 -16
- package/components/QuotePricesSummary/index.d.ts +0 -11
- package/components/TabbedContent/TabbedContent.d.ts +0 -10
- package/components/TabbedContent/index.d.ts +0 -11
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +0 -25
- package/containers/ItemsQuoted/index.d.ts +0 -11
- package/containers/ItemsQuoted.d.ts +0 -3
- package/containers/ItemsQuoted.js +0 -4
- package/containers/ItemsQuoted.js.map +0 -1
- package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +0 -48
- package/containers/ManageNegotiableQuote/index.d.ts +0 -11
- package/containers/ManageNegotiableQuote.d.ts +0 -3
- package/containers/ManageNegotiableQuote.js +0 -4
- package/containers/ManageNegotiableQuote.js.map +0 -1
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NegotiableQuoteStatus } from '../../models/negotiable-quote-model';
|
|
1
|
+
import { NegotiableQuoteModel, NegotiableQuoteStatus } from '../../models/negotiable-quote-model';
|
|
2
2
|
|
|
3
3
|
export declare const mockGraphQLResponse: {
|
|
4
4
|
data: {
|
|
@@ -55,234 +55,7 @@ export declare const mockGraphQLResponse: {
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
|
-
export declare const
|
|
59
|
-
uid: string;
|
|
60
|
-
name: string;
|
|
61
|
-
created_at: string;
|
|
62
|
-
status: string;
|
|
63
|
-
sales_rep_name: string;
|
|
64
|
-
expiration_date: string;
|
|
65
|
-
updated_at: string;
|
|
66
|
-
buyer: {
|
|
67
|
-
firstname: string;
|
|
68
|
-
lastname: string;
|
|
69
|
-
};
|
|
70
|
-
comments: {
|
|
71
|
-
uid: string;
|
|
72
|
-
created_at: string;
|
|
73
|
-
author: {
|
|
74
|
-
firstname: string;
|
|
75
|
-
lastname: string;
|
|
76
|
-
};
|
|
77
|
-
text: string;
|
|
78
|
-
}[];
|
|
79
|
-
template_id: null;
|
|
80
|
-
template_name: null;
|
|
81
|
-
items: ({
|
|
82
|
-
product: {
|
|
83
|
-
name: string;
|
|
84
|
-
sku: string;
|
|
85
|
-
uid: string;
|
|
86
|
-
stock_status: string;
|
|
87
|
-
quantity: null;
|
|
88
|
-
price_range: {
|
|
89
|
-
maximum_price: {
|
|
90
|
-
regular_price: {
|
|
91
|
-
value: number;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
prices: {
|
|
97
|
-
price: {
|
|
98
|
-
currency: string;
|
|
99
|
-
value: number;
|
|
100
|
-
};
|
|
101
|
-
original_item_price: {
|
|
102
|
-
currency: string;
|
|
103
|
-
value: number;
|
|
104
|
-
};
|
|
105
|
-
original_row_total: {
|
|
106
|
-
currency: string;
|
|
107
|
-
value: number;
|
|
108
|
-
};
|
|
109
|
-
row_total: {
|
|
110
|
-
currency: string;
|
|
111
|
-
value: number;
|
|
112
|
-
};
|
|
113
|
-
catalog_discount: {
|
|
114
|
-
amount_off: number;
|
|
115
|
-
percent_off: number;
|
|
116
|
-
};
|
|
117
|
-
discounts: {
|
|
118
|
-
label: string;
|
|
119
|
-
value: number;
|
|
120
|
-
amount: {
|
|
121
|
-
currency: string;
|
|
122
|
-
value: number;
|
|
123
|
-
};
|
|
124
|
-
}[];
|
|
125
|
-
};
|
|
126
|
-
quantity: number;
|
|
127
|
-
configurable_options?: undefined;
|
|
128
|
-
bundle_options?: undefined;
|
|
129
|
-
} | {
|
|
130
|
-
product: {
|
|
131
|
-
name: string;
|
|
132
|
-
sku: string;
|
|
133
|
-
uid: string;
|
|
134
|
-
stock_status: string;
|
|
135
|
-
quantity: null;
|
|
136
|
-
price_range: {
|
|
137
|
-
maximum_price: {
|
|
138
|
-
regular_price: {
|
|
139
|
-
value: number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
prices: {
|
|
145
|
-
price: {
|
|
146
|
-
currency: string;
|
|
147
|
-
value: number;
|
|
148
|
-
};
|
|
149
|
-
original_item_price: {
|
|
150
|
-
currency: string;
|
|
151
|
-
value: number;
|
|
152
|
-
};
|
|
153
|
-
original_row_total: {
|
|
154
|
-
currency: string;
|
|
155
|
-
value: number;
|
|
156
|
-
};
|
|
157
|
-
row_total: {
|
|
158
|
-
currency: string;
|
|
159
|
-
value: number;
|
|
160
|
-
};
|
|
161
|
-
catalog_discount: {
|
|
162
|
-
amount_off: number;
|
|
163
|
-
percent_off: number;
|
|
164
|
-
};
|
|
165
|
-
discounts: never[];
|
|
166
|
-
};
|
|
167
|
-
quantity: number;
|
|
168
|
-
configurable_options: {
|
|
169
|
-
option_label: string;
|
|
170
|
-
value_label: string;
|
|
171
|
-
}[];
|
|
172
|
-
bundle_options?: undefined;
|
|
173
|
-
} | {
|
|
174
|
-
product: {
|
|
175
|
-
name: string;
|
|
176
|
-
sku: string;
|
|
177
|
-
uid: string;
|
|
178
|
-
stock_status: string;
|
|
179
|
-
quantity: null;
|
|
180
|
-
price_range: {
|
|
181
|
-
maximum_price: {
|
|
182
|
-
regular_price: {
|
|
183
|
-
value: number;
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
prices: {
|
|
189
|
-
price: {
|
|
190
|
-
currency: string;
|
|
191
|
-
value: number;
|
|
192
|
-
};
|
|
193
|
-
original_item_price: {
|
|
194
|
-
currency: string;
|
|
195
|
-
value: number;
|
|
196
|
-
};
|
|
197
|
-
original_row_total: {
|
|
198
|
-
currency: string;
|
|
199
|
-
value: number;
|
|
200
|
-
};
|
|
201
|
-
row_total: {
|
|
202
|
-
currency: string;
|
|
203
|
-
value: number;
|
|
204
|
-
};
|
|
205
|
-
catalog_discount: {
|
|
206
|
-
amount_off: number;
|
|
207
|
-
percent_off: number;
|
|
208
|
-
};
|
|
209
|
-
discounts: {
|
|
210
|
-
label: string;
|
|
211
|
-
value: number;
|
|
212
|
-
amount: {
|
|
213
|
-
currency: string;
|
|
214
|
-
value: number;
|
|
215
|
-
};
|
|
216
|
-
}[];
|
|
217
|
-
};
|
|
218
|
-
quantity: number;
|
|
219
|
-
bundle_options: {
|
|
220
|
-
label: string;
|
|
221
|
-
values: {
|
|
222
|
-
label: string;
|
|
223
|
-
quantity: number;
|
|
224
|
-
original_price: {
|
|
225
|
-
currency: string;
|
|
226
|
-
value: number;
|
|
227
|
-
};
|
|
228
|
-
priceV2: {
|
|
229
|
-
currency: string;
|
|
230
|
-
value: number;
|
|
231
|
-
};
|
|
232
|
-
}[];
|
|
233
|
-
}[];
|
|
234
|
-
configurable_options?: undefined;
|
|
235
|
-
})[];
|
|
236
|
-
history: {
|
|
237
|
-
uid: string;
|
|
238
|
-
created_at: string;
|
|
239
|
-
author: {
|
|
240
|
-
firstname: string;
|
|
241
|
-
lastname: string;
|
|
242
|
-
};
|
|
243
|
-
change_type: string;
|
|
244
|
-
changes: {
|
|
245
|
-
comment_added: {
|
|
246
|
-
comment: string;
|
|
247
|
-
};
|
|
248
|
-
statuses: {
|
|
249
|
-
changes: {
|
|
250
|
-
new_status: string;
|
|
251
|
-
old_status: null;
|
|
252
|
-
}[];
|
|
253
|
-
};
|
|
254
|
-
expiration: {
|
|
255
|
-
new_expiration: null;
|
|
256
|
-
old_expiration: null;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
}[];
|
|
260
|
-
prices: {
|
|
261
|
-
subtotal_excluding_tax: {
|
|
262
|
-
currency: string;
|
|
263
|
-
value: number;
|
|
264
|
-
};
|
|
265
|
-
subtotal_including_tax: {
|
|
266
|
-
currency: string;
|
|
267
|
-
value: number;
|
|
268
|
-
};
|
|
269
|
-
subtotal_with_discount_excluding_tax: {
|
|
270
|
-
currency: string;
|
|
271
|
-
value: number;
|
|
272
|
-
};
|
|
273
|
-
applied_taxes: {
|
|
274
|
-
label: string;
|
|
275
|
-
amount: {
|
|
276
|
-
currency: string;
|
|
277
|
-
value: number;
|
|
278
|
-
};
|
|
279
|
-
}[];
|
|
280
|
-
grand_total: {
|
|
281
|
-
currency: string;
|
|
282
|
-
value: number;
|
|
283
|
-
};
|
|
284
|
-
};
|
|
285
|
-
};
|
|
58
|
+
export declare const expectedTransformedQuote: NegotiableQuoteModel;
|
|
286
59
|
export declare const mockNegotiableQuotesResponse: {
|
|
287
60
|
data: {
|
|
288
61
|
negotiableQuotes: {
|
package/i18n/en_US.json.d.ts
CHANGED
|
@@ -20,60 +20,6 @@ declare const _default: {
|
|
|
20
20
|
"submitted": "Quote request submitted successfully!",
|
|
21
21
|
"draftSaved": "Quote saved as draft successfully!"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
24
|
-
"Manage": {
|
|
25
|
-
"createdLabel": "Created:",
|
|
26
|
-
"salesRepLabel": "Sales Rep:",
|
|
27
|
-
"expiresLabel": "Expires:",
|
|
28
|
-
"actionsLabel": "Actions",
|
|
29
|
-
"actions": {
|
|
30
|
-
"remove": "Remove"
|
|
31
|
-
},
|
|
32
|
-
"bannerTitle": "Alert",
|
|
33
|
-
"bannerStatusMessages": {
|
|
34
|
-
"pending": "This quote is currently locked for editing. It will become available once released by the Merchant.",
|
|
35
|
-
"expired": "Your quote has expired and the product prices have been updated as per the latest prices in your catalog. You can either re-submit the quote to seller for further negotiation or go to checkout."
|
|
36
|
-
},
|
|
37
|
-
"actionButtons": {
|
|
38
|
-
"close": "Close quote",
|
|
39
|
-
"delete": "Delete quote",
|
|
40
|
-
"print": "Print quote",
|
|
41
|
-
"createTemplate": "Create quote template",
|
|
42
|
-
"createCopy": "Create copy",
|
|
43
|
-
"sendForReview": "Send for review"
|
|
44
|
-
},
|
|
45
|
-
"shippingInformation": {
|
|
46
|
-
"title": "Shipping Information"
|
|
47
|
-
},
|
|
48
|
-
"quoteComments": {
|
|
49
|
-
"title": "Quote Comments",
|
|
50
|
-
"placeholder": "Add your comment"
|
|
51
|
-
},
|
|
52
|
-
"productListTable": {
|
|
53
|
-
"headers": {
|
|
54
|
-
"productName": "Product name",
|
|
55
|
-
"sku": "SKU",
|
|
56
|
-
"price": "Price",
|
|
57
|
-
"quantity": "Quantity",
|
|
58
|
-
"discount": "Discount",
|
|
59
|
-
"subtotal": "Subtotal",
|
|
60
|
-
"actions": "Actions"
|
|
61
|
-
},
|
|
62
|
-
"submitButton": "Update",
|
|
63
|
-
"actions": {
|
|
64
|
-
"editNoteToSeller": "Edit note to seller",
|
|
65
|
-
"remove": "Remove"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"quotePricesSummary": {
|
|
69
|
-
"subtotal": {
|
|
70
|
-
"excludingTax": "Quote Subtotal (excluding tax)"
|
|
71
|
-
},
|
|
72
|
-
"appliedTaxes": "Applied Taxes",
|
|
73
|
-
"grandTotal": {
|
|
74
|
-
"includingTax": "Quote Grand Total (including tax)"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
23
|
}
|
|
78
24
|
},
|
|
79
25
|
"QuoteManagement": {
|
package/lib/state.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@dropins/storefront-quote-management", "version": "0.0.1-
|
|
1
|
+
{"name": "@dropins/storefront-quote-management", "version": "0.0.1-alpha12", "@dropins/tools": "^1.5.0-beta4", "license": "SEE LICENSE IN LICENSE.md"}
|
package/render.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*! Copyright 2025 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
(function(
|
|
4
|
-
.request-negotiable-quote-form{display:grid;gap:var(--spacing-small);align-items:flex-end;color:var(--color-neutral-800);width:100%}.request-negotiable-quote-form input:user-invalid,.request-negotiable-quote-form textarea:user-invalid{border-color:var(--color-alert-800)}.request-negotiable-quote-form__title{font:var(--type-body-1-emphasized-font);letter-spacing:var(--type-body-1-emphasized-letter-spacing)}.request-negotiable-quote-form__actions,.request-negotiable-quote-form [data-slot=AttachFileField]{display:flex;gap:var(--spacing-small)}.request-negotiable-quote-form__actions{justify-content:flex-start}.request-negotiable-quote-form__attach-file-field{justify-content:end}.request-negotiable-quote-form__attach-file-field label{background:none;color:var(--color-brand-500);font:var(--type-body-1-strong-font)}.request-negotiable-quote-form__attach-file-field label:hover{background:none}.request-negotiable-quote-form__error-banner svg{color:var(--color-alert-800)}
|
|
5
|
-
|
|
6
|
-
import{jsx as t}from"@dropins/tools/preact-jsx-runtime.js";import{Render as s}from"@dropins/tools/lib.js";import{useState as u,useEffect as i}from"@dropins/tools/preact-hooks.js";import{UIProvider as l}from"@dropins/tools/components.js";import{events as d}from"@dropins/tools/event-bus.js";const c={Request:{title:"Request a Quote",comment:"Comment",commentError:"Please add your comment",quoteName:"Quote name",quoteNameError:"Please add a quote name",attachmentsError:"Error uploading attachments",requestCta:"Request a Quote",saveDraftCta:"Save as draft",error:{header:"Error",unauthenticated:"Please sign in to request a quote.",unauthorized:"You are not authorized to request a quote.",missingCart:"Could not find a valid cart."},success:{header:"Success",submitted:"Quote request submitted successfully!",draftSaved:"Quote saved as draft successfully!"}},Manage:{createdLabel:"Created:",salesRepLabel:"Sales Rep:",expiresLabel:"Expires:",actionsLabel:"Actions",actions:{remove:"Remove"},bannerTitle:"Alert",bannerStatusMessages:{pending:"This quote is currently locked for editing. It will become available once released by the Merchant.",expired:"Your quote has expired and the product prices have been updated as per the latest prices in your catalog. You can either re-submit the quote to seller for further negotiation or go to checkout."},actionButtons:{close:"Close quote",delete:"Delete quote",print:"Print quote",createTemplate:"Create quote template",createCopy:"Create copy",sendForReview:"Send for review"},shippingInformation:{title:"Shipping Information"},quoteComments:{title:"Quote Comments",placeholder:"Add your comment"},productListTable:{headers:{productName:"Product name",sku:"SKU",price:"Price",quantity:"Quantity",discount:"Discount",subtotal:"Subtotal",actions:"Actions"},submitButton:"Update",actions:{editNoteToSeller:"Edit note to seller",remove:"Remove"}},quotePricesSummary:{subtotal:{excludingTax:"Quote Subtotal (excluding tax)"},appliedTaxes:"Applied Taxes",grandTotal:{includingTax:"Quote Grand Total (including tax)"}}}},m={QuotesListTable:{quoteName:"Quote Name",created:"Created",createdBy:"Created By",status:"Status",lastUpdated:"Last Updated",quoteTemplate:"Quote Template",quoteTotal:"Quote Total",actions:"Action"}},p={NegotiableQuote:c,QuoteManagement:m},g={default:p},q=({children:o})=>{const[a,r]=u("en_US");return i(()=>{const e=d.on("locale",n=>{r(n)},{eager:!0});return()=>{e==null||e.off()}},[]),t(l,{lang:a,langDefinitions:g,children:o})},T=new s(t(q,{}));export{T as render};
|
|
3
|
+
(function(r,a){try{if(typeof document<"u"){const e=document.createElement("style"),l=a.styleId;for(const t in a.attributes)e.setAttribute(t,a.attributes[t]);e.setAttribute("data-dropin",l),e.appendChild(document.createTextNode(r));const o=document.querySelector('style[data-dropin="sdk"]');if(o)o.after(e);else{const t=document.querySelector('link[rel="stylesheet"], style');t?t.before(e):document.head.append(e)}}}catch(e){console.error("dropin-styles (injectCodeFunction)",e)}})(`.quotes-list-table__empty-state{padding:var(--spacing-large);text-align:center;color:var(--color-neutral-600);border-top:var(--shape-border-width-1) solid var(--color-neutral-200)}.quotes-list-table__footer{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-medium);border-top:var(--shape-border-width-1) solid var(--color-neutral-200);gap:var(--spacing-medium)}.quotes-list-table__item-range{flex:1;color:var(--color-neutral-800);font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing)}.quotes-list-table__pagination{flex:0 0 auto;display:flex;justify-content:center}.quotes-list-table__page-size-picker{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:var(--spacing-small);color:var(--color-neutral-800);font:var(--type-body-2-default-font);letter-spacing:var(--type-body-2-default-letter-spacing)}.quotes-list-table__page-size-picker>span{display:inline-flex;align-items:baseline}.quotes-list-table__page-size-picker .dropin-picker{display:inline-flex;align-items:center;margin:0 var(--spacing-xsmall);vertical-align:center}.quotes-list-table__page-size-picker .dropin-picker__select{height:auto;min-height:var(--sizing-medium);line-height:1.2;vertical-align:baseline}
|
|
4
|
+
.request-negotiable-quote-form{display:grid;gap:var(--spacing-small);align-items:flex-end;color:var(--color-neutral-800);width:100%}.request-negotiable-quote-form input:user-invalid,.request-negotiable-quote-form textarea:user-invalid{border-color:var(--color-alert-800)}.request-negotiable-quote-form__title{font:var(--type-body-1-emphasized-font);letter-spacing:var(--type-body-1-emphasized-letter-spacing)}.request-negotiable-quote-form__actions,.request-negotiable-quote-form [data-slot=AttachFileField]{display:flex;gap:var(--spacing-small)}.request-negotiable-quote-form__actions{justify-content:flex-start}.request-negotiable-quote-form__attach-file-field{justify-content:end}.request-negotiable-quote-form__attach-file-field label{background:none;color:var(--color-brand-500);font:var(--type-body-1-strong-font)}.request-negotiable-quote-form__attach-file-field label:hover{background:none}.request-negotiable-quote-form__error-banner svg{color:var(--color-alert-800)}`,{styleId:"quote-management"});
|
|
5
|
+
import{jsx as t}from"@dropins/tools/preact-jsx-runtime.js";import{Render as u}from"@dropins/tools/lib.js";import{useState as n,useEffect as d}from"@dropins/tools/preact-hooks.js";import{UIProvider as m}from"@dropins/tools/components.js";import{events as c}from"@dropins/tools/event-bus.js";const i={Request:{title:"Request a Quote",comment:"Comment",commentError:"Please add your comment",quoteName:"Quote name",quoteNameError:"Please add a quote name",attachmentsError:"Error uploading attachments",requestCta:"Request a Quote",saveDraftCta:"Save as draft",error:{header:"Error",unauthenticated:"Please sign in to request a quote.",unauthorized:"You are not authorized to request a quote.",missingCart:"Could not find a valid cart."},success:{header:"Success",submitted:"Quote request submitted successfully!",draftSaved:"Quote saved as draft successfully!"}}},l={QuotesListTable:{quoteName:"Quote Name",created:"Created",createdBy:"Created By",status:"Status",lastUpdated:"Last Updated",quoteTemplate:"Quote Template",quoteTotal:"Quote Total",actions:"Action"}},f={NegotiableQuote:i,QuoteManagement:l},q={default:f},Q=({children:a})=>{const[o,r]=n("en_US");return d(()=>{const e=c.on("locale",s=>{r(s)},{eager:!0});return()=>{e==null||e.off()}},[]),t(m,{lang:o,langDefinitions:q,children:a})},S=new u(t(Q,{}));export{S as render};
|
|
7
6
|
//# sourceMappingURL=render.js.map
|
package/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sources":["/@dropins/storefront-quote-management/src/render/Provider.tsx","/@dropins/storefront-quote-management/src/render/render.tsx"],"sourcesContent":["import { FunctionComponent } from 'preact';\nimport { useState, useEffect } from 'preact/hooks';\nimport { UIProvider } from '@adobe-commerce/elsie/components';\nimport { Lang } from '@adobe-commerce/elsie/i18n';\nimport { events } from '@adobe-commerce/event-bus';\n\nimport en_US from '../i18n/en_US.json';\n\n// Langs\nconst langDefinitions = {\n default: en_US,\n};\n\ninterface CartProviderProps {\n children?: any;\n}\n\nexport const Provider: FunctionComponent<CartProviderProps> = ({\n children,\n}) => {\n const [lang, setLang] = useState<Lang>('en_US');\n\n // Events\n useEffect(() => {\n const localeEvent = events.on(\n 'locale',\n (locale: string) => {\n setLang(locale as Lang);\n },\n { eager: true }\n );\n return () => {\n localeEvent?.off();\n };\n }, []);\n\n return (\n <UIProvider lang={lang} langDefinitions={langDefinitions}>\n {children}\n </UIProvider>\n );\n};\n","import { Render } from '@adobe-commerce/elsie/lib';\nimport { Provider } from './Provider';\n\nexport const render = new Render(<Provider />);\n"],"names":["langDefinitions","en_US","Provider","children","lang","setLang","useState","useEffect","localeEvent","events","locale","jsx","UIProvider","render","Render"],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.js","sources":["/@dropins/storefront-quote-management/src/render/Provider.tsx","/@dropins/storefront-quote-management/src/render/render.tsx"],"sourcesContent":["import { FunctionComponent } from 'preact';\nimport { useState, useEffect } from 'preact/hooks';\nimport { UIProvider } from '@adobe-commerce/elsie/components';\nimport { Lang } from '@adobe-commerce/elsie/i18n';\nimport { events } from '@adobe-commerce/event-bus';\n\nimport en_US from '../i18n/en_US.json';\n\n// Langs\nconst langDefinitions = {\n default: en_US,\n};\n\ninterface CartProviderProps {\n children?: any;\n}\n\nexport const Provider: FunctionComponent<CartProviderProps> = ({\n children,\n}) => {\n const [lang, setLang] = useState<Lang>('en_US');\n\n // Events\n useEffect(() => {\n const localeEvent = events.on(\n 'locale',\n (locale: string) => {\n setLang(locale as Lang);\n },\n { eager: true }\n );\n return () => {\n localeEvent?.off();\n };\n }, []);\n\n return (\n <UIProvider lang={lang} langDefinitions={langDefinitions}>\n {children}\n </UIProvider>\n );\n};\n","import { Render } from '@adobe-commerce/elsie/lib';\nimport { Provider } from './Provider';\n\nexport const render = new Render(<Provider />);\n"],"names":["langDefinitions","en_US","Provider","children","lang","setLang","useState","useEffect","localeEvent","events","locale","jsx","UIProvider","render","Render"],"mappings":"glCASMA,EAAkB,CACtB,QAASC,CACX,EAMaC,EAAiD,CAAC,CAC7D,SAAAC,CACF,IAAM,CACJ,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAe,OAAO,EAG9C,OAAAC,EAAU,IAAM,CACd,MAAMC,EAAcC,EAAO,GACzB,SACCC,GAAmB,CAClBL,EAAQK,CAAc,CACxB,EACA,CAAE,MAAO,EAAA,CAAK,EAEhB,MAAO,IAAM,CACXF,GAAA,MAAAA,EAAa,KACf,CACF,EAAG,CAAA,CAAE,EAGHG,EAACC,EAAA,CAAW,KAAAR,EAAY,gBAAAJ,EACrB,SAAAG,CAAA,CACH,CAEJ,ECtCaU,EAAS,IAAIC,EAAOH,EAACT,IAAS,CAAE"}
|
package/types/state.types.d.ts
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
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 declare const getQuoteData: (quoteId: string) => Promise<import('../../data/models/negotiable-quote-model').NegotiableQuoteModel>;
|
|
10
|
-
//# sourceMappingURL=getQuoteData.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
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 * from './getQuoteData';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
package/chunks/WarningFilled.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! Copyright 2025 Adobe
|
|
2
|
-
All Rights Reserved. */
|
|
3
|
-
import*as e from"@dropins/tools/preact-compat.js";const l=t=>e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{vectorEffect:"non-scaling-stroke",fillRule:"evenodd",clipRule:"evenodd",d:"M1 20.8953L12.1922 1.5L23.395 20.8953H1ZM13.0278 13.9638L13.25 10.0377V9H11.25V10.0377L11.4722 13.9638H13.0278ZM11.2994 16V17.7509H13.2253V16H11.2994Z",fill:"currentColor"}));export{l as S};
|
|
4
|
-
//# sourceMappingURL=WarningFilled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WarningFilled.js","sources":["../../node_modules/@adobe-commerce/elsie/src/icons/WarningFilled.svg"],"sourcesContent":["import * as React from \"react\";\nconst SvgWarningFilled = (props) => /* @__PURE__ */ React.createElement(\"svg\", { width: 24, height: 24, viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", ...props }, /* @__PURE__ */ React.createElement(\"path\", { vectorEffect: \"non-scaling-stroke\", fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M1 20.8953L12.1922 1.5L23.395 20.8953H1ZM13.0278 13.9638L13.25 10.0377V9H11.25V10.0377L11.4722 13.9638H13.0278ZM11.2994 16V17.7509H13.2253V16H11.2994Z\", fill: \"currentColor\" }));\nexport default SvgWarningFilled;\n"],"names":["SvgWarningFilled","props","React"],"mappings":"kDACK,MAACA,EAAoBC,GAA0BC,EAAM,cAAc,MAAO,CAAE,MAAO,GAAI,OAAQ,GAAI,QAAS,YAAa,KAAM,OAAQ,MAAO,6BAA8B,GAAGD,CAAK,EAAoBC,EAAM,cAAc,OAAQ,CAAE,aAAc,qBAAsB,SAAU,UAAW,SAAU,UAAW,EAAG,yJAA0J,KAAM,eAAgB,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface ActionsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
dropdownPlaceholder?: string;
|
|
6
|
-
dropdownOptions?: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
handleDropdownChange?: (event: Event) => void;
|
|
11
|
-
buttons?: VNode[];
|
|
12
|
-
}
|
|
13
|
-
export declare const ActionsBar: FunctionComponent<ActionsBarProps>;
|
|
14
|
-
//# sourceMappingURL=ActionsBar.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './ActionsBar';
|
|
10
|
-
export { ActionsBar as default } from './ActionsBar';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface ItemsQuotedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
table?: VNode;
|
|
7
|
-
pricesSummary?: VNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const ItemsQuoted: FunctionComponent<ItemsQuotedProps>;
|
|
10
|
-
export declare const ItemsQuotedSkeleton: FunctionComponent;
|
|
11
|
-
//# sourceMappingURL=ItemsQuoted.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './ItemsQuoted';
|
|
10
|
-
export { ItemsQuoted as default } from './ItemsQuoted';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface ManageNegotiableQuoteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
quoteName: VNode;
|
|
7
|
-
quoteStatus: VNode;
|
|
8
|
-
banner?: VNode;
|
|
9
|
-
details: VNode;
|
|
10
|
-
actionBar?: VNode;
|
|
11
|
-
quoteContent: VNode;
|
|
12
|
-
shippingInformationTitle: VNode;
|
|
13
|
-
shippingInformation: VNode;
|
|
14
|
-
quoteCommentsTitle: VNode;
|
|
15
|
-
quoteComments: VNode;
|
|
16
|
-
footer: VNode;
|
|
17
|
-
}
|
|
18
|
-
export declare const ManageNegotiableQuote: FunctionComponent<ManageNegotiableQuoteProps>;
|
|
19
|
-
export declare const ManageNegotiableQuoteSkeleton: FunctionComponent;
|
|
20
|
-
//# sourceMappingURL=ManageNegotiableQuote.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './ManageNegotiableQuote';
|
|
10
|
-
export { ManageNegotiableQuote as default } from './ManageNegotiableQuote';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
import { NegotiableQuoteCartItem } from '../../data/models/negotiable-quote-model';
|
|
4
|
-
|
|
5
|
-
export interface ProductListTableProps extends HTMLAttributes<HTMLDivElement | HTMLFormElement> {
|
|
6
|
-
items: NegotiableQuoteCartItem[];
|
|
7
|
-
canEdit: boolean;
|
|
8
|
-
onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
|
|
9
|
-
onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
|
|
10
|
-
onUpdate?: (e: SubmitEvent) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const ProductListTable: FunctionComponent<ProductListTableProps>;
|
|
13
|
-
//# sourceMappingURL=ProductListTable.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './ProductListTable';
|
|
10
|
-
export { ProductListTable as default } from './ProductListTable';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
interface Entry {
|
|
5
|
-
label: string;
|
|
6
|
-
id: string;
|
|
7
|
-
value: VNode;
|
|
8
|
-
strong?: boolean;
|
|
9
|
-
children?: Entry[];
|
|
10
|
-
}
|
|
11
|
-
export interface QuotePricesSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
entries?: Entry[];
|
|
13
|
-
}
|
|
14
|
-
export declare const QuotePricesSummary: FunctionComponent<QuotePricesSummaryProps>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=QuotePricesSummary.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './QuotePricesSummary';
|
|
10
|
-
export { QuotePricesSummary as default } from './QuotePricesSummary';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, VNode } from 'preact';
|
|
2
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
|
-
export interface TabbedContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
tabs: Map<string, string>;
|
|
6
|
-
tabsContent: Map<string, VNode>;
|
|
7
|
-
defaultActiveTab?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TabbedContent: FunctionComponent<TabbedContentProps>;
|
|
10
|
-
//# sourceMappingURL=TabbedContent.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './TabbedContent';
|
|
10
|
-
export { TabbedContent as default } from './TabbedContent';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'preact/compat';
|
|
2
|
-
import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
|
|
3
|
-
import { NegotiableQuoteModel, NegotiableQuoteCartItem } from '../../data/models/negotiable-quote-model';
|
|
4
|
-
|
|
5
|
-
export interface ItemsQuotedProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
quoteData?: NegotiableQuoteModel;
|
|
7
|
-
onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
|
|
8
|
-
onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
|
|
9
|
-
onUpdate?: (e: SubmitEvent) => void;
|
|
10
|
-
slots?: {
|
|
11
|
-
ProductListTable?: SlotProps<{
|
|
12
|
-
items: NegotiableQuoteModel['items'];
|
|
13
|
-
canEdit: boolean;
|
|
14
|
-
onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
|
|
15
|
-
onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
|
|
16
|
-
onUpdate?: (e: SubmitEvent) => void;
|
|
17
|
-
}>;
|
|
18
|
-
QuotePricesSummary?: SlotProps<{
|
|
19
|
-
items: NegotiableQuoteModel['items'];
|
|
20
|
-
prices: NegotiableQuoteModel['prices'];
|
|
21
|
-
}>;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const ItemsQuoted: Container<ItemsQuotedProps>;
|
|
25
|
-
//# sourceMappingURL=ItemsQuoted.d.ts.map
|
|
@@ -1,11 +0,0 @@
|
|
|
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 * from './ItemsQuoted';
|
|
10
|
-
export { ItemsQuoted as default } from './ItemsQuoted';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|