@vtex/faststore-plugin-buyer-portal 1.1.82 → 1.1.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/faststore-plugin-buyer-portal",
3
- "version": "1.1.82",
3
+ "version": "1.1.85",
4
4
  "description": "A plugin for faststore with buyer portal",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -103,7 +103,7 @@ export const AddressLayout = ({
103
103
  }}
104
104
  >
105
105
  <section data-fs-addresses-section>
106
- <HeaderInside title="Address">
106
+ <HeaderInside title="Addresses">
107
107
  <HeaderInside.Button
108
108
  iconName="EditSettings"
109
109
  style={{ backgroundColor: "transparent", color: "#1f1f1f" }}
@@ -9,11 +9,11 @@
9
9
  @import "@faststore/ui/src/components/molecules/Tooltip/styles.scss";
10
10
  @import "@faststore/ui/src/components/molecules/Dropdown/styles.scss";
11
11
 
12
- &[data-fs-bp-basic-drawer] {
13
- --fs-slide-over-partial-max-width-notebook: 60rem; //960px
12
+ &[data-fs-bp-basic-drawer][data-fs-slide-over-size="partial"] {
13
+ --fs-slide-over-partial-max-width-notebook: 60rem;
14
+ min-width: var(--fs-slide-over-partial-max-width-notebook);
14
15
  }
15
16
 
16
-
17
17
  [data-fs-bp-autocomplete-dropdown] {
18
18
  [data-fs-bp-input-text-input] {
19
19
  top: 0;
@@ -1,47 +1,48 @@
1
1
  export const orderFieldsCriteriaOptions = [
2
2
  {
3
3
  label: "If the order contains a budget",
4
- criteria: "$count(budgetData.budgetAllocations) > 0",
4
+ criteria: "$count(budgetData.unitAllocations) > 0",
5
5
  },
6
6
  {
7
7
  label: "If the order contains the budgets X, Y, Z",
8
8
  criteria:
9
- 'budgetData.budgetAllocations.budgetId = "Tech" or budgetData.budgetAllocations.budgetId = "Growth"',
9
+ 'budgetData.unitAllocations.budgetId = "Tech" or budgetData.unitAllocations.budgetId = "Growth"',
10
10
  },
11
11
  {
12
12
  label: "If the order contains an exceeded budget",
13
- criteria: "budgetData.budgetAllocations.budgetBalance.remaining < 0",
13
+ criteria: "budgetData.unitAllocations.budgetBalance.remaining < 0",
14
14
  },
15
15
  {
16
16
  label: "If the order contains an expired budget Pending confirmation",
17
- criteria: "budgetData.budgetAllocations.cycleConfiguration.endDate < now()",
17
+ criteria: "budgetData.unitAllocations.cycleConfiguration.endDate < now()",
18
18
  },
19
19
  {
20
20
  label: "If the order contains a PO number",
21
- criteria: "$exists(customData.customFields.fields.poNumber)",
21
+ criteria: '$exists(customData.customFields.fields[name="poNumber"].value)',
22
22
  },
23
23
  {
24
24
  label: "If the order contains the PO numbers X, Y, Z",
25
25
  criteria:
26
- 'customData.customFields.fields.poNumber = "1112223334444" or customData.customFields.fields.poNumber = "1234567890"',
26
+ 'customData.customFields.fields[name="poNumber"].value = "1112223334444" or customData.customFields.fields[name="poNumber"].value = "1234567890"',
27
27
  },
28
28
  {
29
29
  label: "If the order contains a cost center",
30
- criteria: "$exists(customData.customFields.fields.costCenter)",
30
+ criteria:
31
+ '$exists(customData.customFields.fields[name="costCenter"].value)',
31
32
  },
32
33
  {
33
34
  label: "If the order contains the cost centers X, Y, Z",
34
35
  criteria:
35
- 'customData.customFields.fields.costCenter = "CC1" or customData.customFields.fields.costCenter = "CC2"',
36
+ 'customData.customFields.fields[name="costCenter"].value = "CC1" or customData.customFields.fields[name="costCenter"].value = "CC2"',
36
37
  },
37
38
  {
38
39
  label: "If all order items are negotiated items",
39
40
  criteria:
40
- 'customData.customApps[id.$contains("vtex.customorderfields")].fields.allContractItems = "1"',
41
+ 'customData.customApps[id.$contains("vtex.customorderfields")].fields[name="allContractItems"].value = "1"',
41
42
  },
42
43
  {
43
44
  label: "If there are restricted items in the order",
44
45
  criteria:
45
- 'customData.customApps[id.$contains("vtex.customorderfields")].fields.hasRestrictItems = "1"',
46
+ 'customData.customApps[id.$contains("vtex.customorderfields")].fields[name="hasRestrictItems"].value = "1"',
46
47
  },
47
48
  ];