@clxmedia/xperience-rights-client 1.2.1 → 1.3.1

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 (2) hide show
  1. package/dist/client.js +0 -11
  2. package/package.json +2 -2
package/dist/client.js CHANGED
@@ -122,17 +122,6 @@ class XperienceRightsClient {
122
122
  if (locator.type === "role") {
123
123
  return `${exports.CLIQ_ROLES[locator.value] || locator.value}`;
124
124
  }
125
- if (locator.type === "right") {
126
- const [scope, ability] = locator.value.split("@");
127
- return long
128
- ? `any ${locator.constraint ? `${locator.constraint} ` : ""}user with the ${scope} ${ability} rights`
129
- : `${scope} ${ability}${locator.constraint ? ` (${locator.constraint})` : ""}`;
130
- }
131
- if (locator.type === "odoo_role") {
132
- return `${long ? "any user with the Odoo role: " : ""}${exports.ODOO_ROLES[locator.value]
133
- ? exports.ODOO_ROLES[locator.value].name
134
- : locator.value}`;
135
- }
136
125
  }
137
126
  static featureFlagEnabled(data, strategies, qualifier) {
138
127
  if (!data || !strategies || !strategies.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/xperience-rights-client",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "description": "CLXperience Rights Client",
5
5
  "author": "Brandon Thompson <brandont@clxmedia.com>",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "bugs": "https://github.com/adsupnow/xperience-library/xperience-rights-client",
34
34
  "dependencies": {
35
- "@clxmedia/types": "1.5.1"
35
+ "@clxmedia/types": "1.8.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/jest": "29.5.11",