@comet/cms-admin 8.6.0-canary-20251110090112 → 8.6.0-canary-20251110123143
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/lib/userPermissions/user/permissions/OverrideContentScopesDialog.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/OverrideContentScopesDialog.generated.d.ts +0 -1
- package/lib/userPermissions/user/permissions/OverrideContentScopesDialog.generated.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/OverrideContentScopesDialog.js +1 -8
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverrideContentScopesDialog.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/OverrideContentScopesDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OverrideContentScopesDialog.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/OverrideContentScopesDialog.tsx"],"names":[],"mappings":"AA2BA,UAAU,SAAS;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC;AAWD,eAAO,MAAM,2BAA2B,GAAI,6CAA6C,SAAS,4CA0HjG,CAAC"}
|
|
@@ -23,7 +23,6 @@ export type GQLPermissionContentScopesQueryVariables = Types.Exact<{
|
|
|
23
23
|
}>;
|
|
24
24
|
export type GQLPermissionContentScopesQuery = {
|
|
25
25
|
__typename?: 'Query';
|
|
26
|
-
userContentScopesSkipManual: Array<any>;
|
|
27
26
|
availableContentScopes: Array<{
|
|
28
27
|
__typename?: 'ContentScopeWithLabel';
|
|
29
28
|
scope: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverrideContentScopesDialog.generated.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/OverrideContentScopesDialog.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAEpD,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAA;AACD,MAAM,MAAM,yCAAyC,GAAG,KAAK,CAAC,KAAK,CAAC;IAClE,KAAK,EAAE,KAAK,CAAC,2CAA2C,CAAC;CAC1D,CAAC,CAAC;AAGH,MAAM,MAAM,gCAAgC,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,0CAA0C,EAAE;QAAE,UAAU,CAAC,EAAE,gBAAgB,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEtK,MAAM,MAAM,wCAAwC,GAAG,KAAK,CAAC,KAAK,CAAC;IACjE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;CAC1C,CAAC,CAAC;AAGH,MAAM,MAAM,+BAA+B,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"OverrideContentScopesDialog.generated.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/OverrideContentScopesDialog.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAEpD,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAA;AACD,MAAM,MAAM,yCAAyC,GAAG,KAAK,CAAC,KAAK,CAAC;IAClE,KAAK,EAAE,KAAK,CAAC,2CAA2C,CAAC;CAC1D,CAAC,CAAC;AAGH,MAAM,MAAM,gCAAgC,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,0CAA0C,EAAE;QAAE,UAAU,CAAC,EAAE,gBAAgB,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEtK,MAAM,MAAM,wCAAwC,GAAG,KAAK,CAAC,KAAK,CAAC;IACjE,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;CAC1C,CAAC,CAAC;AAGH,MAAM,MAAM,+BAA+B,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,sBAAsB,EAAE,KAAK,CAAC;QAAE,UAAU,CAAC,EAAE,uBAAuB,CAAC;QAAC,KAAK,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IAAC,UAAU,EAAE;QAAE,UAAU,CAAC,EAAE,gBAAgB,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC,uBAAuB,CAAC;QAAC,qBAAqB,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,CAAA;CAAE,CAAC"}
|
|
@@ -8,13 +8,11 @@ var _client = require("@apollo/client");
|
|
|
8
8
|
var _admin = require("@comet/admin");
|
|
9
9
|
var _material = require("@mui/material");
|
|
10
10
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
11
|
-
var _lodash = _interopRequireDefault(require("lodash.isequal"));
|
|
12
11
|
var _reactIntl = require("react-intl");
|
|
13
12
|
var _ContentScopeGrid = require("./ContentScopeGrid");
|
|
14
13
|
var _OverrideContentScopesDialog = require("./OverrideContentScopesDialog.generated");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
var _templateObject, _templateObject2;
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
16
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
19
17
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
20
18
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
@@ -60,7 +58,7 @@ var OverrideContentScopesDialog = exports.OverrideContentScopesDialog = function
|
|
|
60
58
|
return _ref2.apply(this, arguments);
|
|
61
59
|
};
|
|
62
60
|
}();
|
|
63
|
-
var _useQuery = (0, _client.useQuery)((0, _client.gql)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n query PermissionContentScopes($permissionId: ID!, $userId: String!) {\n availableContentScopes: userPermissionsAvailableContentScopes {\n scope\n label\n }\n permission: userPermissionsPermission(id: $permissionId, userId: $userId) {\n source\n overrideContentScopes\n contentScopes\n }\n
|
|
61
|
+
var _useQuery = (0, _client.useQuery)((0, _client.gql)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n query PermissionContentScopes($permissionId: ID!, $userId: String!) {\n availableContentScopes: userPermissionsAvailableContentScopes {\n scope\n label\n }\n permission: userPermissionsPermission(id: $permissionId, userId: $userId) {\n source\n overrideContentScopes\n contentScopes\n }\n }\n "]))), {
|
|
64
62
|
variables: {
|
|
65
63
|
permissionId: permissionId,
|
|
66
64
|
userId: userId
|
|
@@ -146,11 +144,6 @@ var OverrideContentScopesDialog = exports.OverrideContentScopesDialog = function
|
|
|
146
144
|
pageSize: 25
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
|
-
},
|
|
150
|
-
isRowSelectable: function isRowSelectable(params) {
|
|
151
|
-
return !data.userContentScopesSkipManual.some(function (cs) {
|
|
152
|
-
return (0, _lodash["default"])(cs, params.row);
|
|
153
|
-
});
|
|
154
147
|
}
|
|
155
148
|
});
|
|
156
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/cms-admin",
|
|
3
|
-
"version": "8.6.0-canary-
|
|
3
|
+
"version": "8.6.0-canary-20251110123143",
|
|
4
4
|
"description": "Comet CMS Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/cms-admin",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"slugify": "^1.6.6",
|
|
42
42
|
"use-debounce": "^10.0.5",
|
|
43
43
|
"uuid": "^11.1.0",
|
|
44
|
-
"@comet/admin": "8.6.0-canary-
|
|
45
|
-
"@comet/admin-date-time": "8.6.0-canary-
|
|
46
|
-
"@comet/admin-icons": "8.6.0-canary-
|
|
47
|
-
"@comet/admin-rte": "8.6.0-canary-
|
|
44
|
+
"@comet/admin": "8.6.0-canary-20251110123143",
|
|
45
|
+
"@comet/admin-date-time": "8.6.0-canary-20251110123143",
|
|
46
|
+
"@comet/admin-icons": "8.6.0-canary-20251110123143",
|
|
47
|
+
"@comet/admin-rte": "8.6.0-canary-20251110123143"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@apollo/client": "^3.13.8",
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"react-router-dom": "^5.3.4",
|
|
99
99
|
"ts-jest": "^29.4.0",
|
|
100
100
|
"typescript": "5.8.3",
|
|
101
|
-
"@comet/admin-babel-preset": "8.6.0-canary-
|
|
102
|
-
"@comet/cli": "8.6.0-canary-
|
|
103
|
-
"@comet/eslint-config": "8.6.0-canary-
|
|
101
|
+
"@comet/admin-babel-preset": "8.6.0-canary-20251110123143",
|
|
102
|
+
"@comet/cli": "8.6.0-canary-20251110123143",
|
|
103
|
+
"@comet/eslint-config": "8.6.0-canary-20251110123143"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@apollo/client": "^3.7.0",
|