@comet/cms-admin 9.0.0-canary-20251209132220 → 9.0.0-canary-20251209140438
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/blocks/InternalLinkBlock.d.ts.map +1 -1
- package/lib/blocks/InternalLinkBlock.js +6 -4
- package/lib/blocks/clipboard/useBlockClipboard.d.ts +1 -1
- package/lib/blocks/clipboard/useBlockClipboard.d.ts.map +1 -1
- package/lib/blocks/common/BlockAdminTabs.js +1 -1
- package/lib/blocks/context/BlockContext.d.ts +3 -1
- package/lib/blocks/context/BlockContext.d.ts.map +1 -1
- package/lib/blocks/context/BlockContextProvider.d.ts +1 -1
- package/lib/blocks/context/BlockContextProvider.d.ts.map +1 -1
- package/lib/blocks/context/useBlockContext.d.ts.map +1 -1
- package/lib/blocks/context/useBlockContext.js +4 -1
- package/lib/common/DropdownMenuItem.sc.d.ts +3 -3
- package/lib/dam/DataGrid/FolderDataGrid.d.ts +1 -1
- package/lib/dam/DataGrid/FolderDataGrid.d.ts.map +1 -1
- package/lib/dam/DataGrid/FolderDataGrid.js +0 -49
- package/lib/dam/DataGrid/filter/DamSortPopover.sc.d.ts +2 -2
- package/lib/dam/DataGrid/selection/DamMoreActions.d.ts +1 -1
- package/lib/dam/DataGrid/selection/DamMoreActions.d.ts.map +1 -1
- package/lib/dam/MoveDamItemDialog/ChooseFolder.d.ts +1 -1
- package/lib/dam/MoveDamItemDialog/ChooseFolder.d.ts.map +1 -1
- package/lib/dam/MoveDamItemDialog/ChooseFolder.js +1 -14
- package/lib/dependencies/DependencyList.d.ts.map +1 -1
- package/lib/dependencies/DependencyList.sc.d.ts +2 -2
- package/lib/form/file/FileField.d.ts +1 -1
- package/lib/form/file/FileField.d.ts.map +1 -1
- package/lib/form/file/FileField.js +0 -7
- package/lib/form/file/FinalFormFileUpload.d.ts +7 -1
- package/lib/form/file/FinalFormFileUpload.d.ts.map +1 -1
- package/lib/form/file/FinalFormFileUpload.js +5 -1
- package/lib/graphql.generated.d.ts +2 -0
- package/lib/graphql.generated.d.ts.map +1 -1
- package/lib/index.d.ts +14 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -110
- package/lib/pages/pageTree/Page.d.ts +1 -1
- package/lib/pages/pageTree/Page.d.ts.map +1 -1
- package/lib/pages/pageTree/Page.js +0 -13
- package/lib/pages/pageTree/PageDeleteDialog.sc.d.ts +1 -1
- package/lib/pages/pageTree/PageTree.d.ts +1 -1
- package/lib/pages/pageTree/PageTree.d.ts.map +1 -1
- package/lib/pages/pageTree/PageTree.js +2 -2
- package/lib/pages/pageTree/usePageTree.d.ts +1 -1
- package/lib/pages/pageTree/usePageTree.d.ts.map +1 -1
- package/lib/pages/pageTree/usePageTree.js +0 -7
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.d.ts +2 -2
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.d.ts.map +1 -1
- package/lib/pages/pageTreeSelect/PageTreeSelectDialog.js +5 -12
- package/lib/pages/pagesPage/PagesPageActionToolbar.sc.d.ts +2 -2
- package/lib/pages/pagesPage/createPagesQuery.d.ts +2 -2
- package/lib/pages/pagesPage/createPagesQuery.d.ts.map +1 -1
- package/lib/pages/pagesPage/createPagesQuery.js +0 -19
- package/lib/preview/block/BlockPreviewWithTabs.js +1 -1
- package/lib/preview/block/useBlockPreview.d.ts +1 -1
- package/lib/preview/block/useBlockPreview.d.ts.map +1 -1
- package/lib/preview/common/ToggleButton.d.ts +1 -1
- package/lib/preview/site/SitePreview.sc.d.ts +1 -1
- package/lib/redirects/RedirectForm.d.ts +1 -1
- package/lib/redirects/RedirectForm.d.ts.map +1 -1
- package/lib/redirects/RedirectForm.js +0 -13
- package/lib/userPermissions/hooks/currentUser.d.ts.map +1 -1
- package/lib/userPermissions/hooks/currentUser.js +8 -4
- package/lib/userPermissions/user/permissions/PermissionDialog.d.ts.map +1 -1
- package/lib/userPermissions/user/permissions/PermissionDialog.js +12 -4
- package/package.json +17 -19
|
@@ -4,6 +4,6 @@ export declare const LogoWrapper: import("@emotion/styled").StyledComponent<impo
|
|
|
4
4
|
export declare const SiteLinkWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export declare const SiteLink: import("@emotion/styled").StyledComponent<import("@mui/material").LinkOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
7
|
-
}, "left" | "right" | "children" | "
|
|
7
|
+
}, "left" | "right" | "children" | "className" | "style" | "classes" | "color" | "fontSize" | "sx" | "p" | "height" | "width" | "display" | "fontFamily" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "whiteSpace" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "padding" | "paddingBlock" | "paddingInline" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY" | "typography" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping" | "underline" | "TypographyClasses"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
8
|
export declare const ActionsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
9
|
//# sourceMappingURL=SitePreview.sc.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BlockInterface, type BlockState } from "../blocks/types";
|
|
2
2
|
import { type GQLRedirectSourceTypeValues } from "../graphql.generated";
|
|
3
3
|
export { createRedirectMutation, updateRedirectMutation } from "./RedirectForm.gql";
|
|
4
|
-
export { GQLCreateRedirectMutation, GQLUpdateRedirectMutation } from "./RedirectForm.gql.generated";
|
|
4
|
+
export type { GQLCreateRedirectMutation, GQLUpdateRedirectMutation } from "./RedirectForm.gql.generated";
|
|
5
5
|
interface Props {
|
|
6
6
|
id?: string;
|
|
7
7
|
mode: "edit" | "add";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectForm.d.ts","sourceRoot":"","sources":["../../src/redirects/RedirectForm.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAWxE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACpF,
|
|
1
|
+
{"version":3,"file":"RedirectForm.d.ts","sourceRoot":"","sources":["../../src/redirects/RedirectForm.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAWxE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACpF,YAAY,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAEzG,UAAU,KAAK;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,UAAU;IACvB,UAAU,EAAE,2BAA2B,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAgCD,eAAO,MAAM,YAAY,GAAI,gCAAgC,KAAK,KAAG,GAAG,CAAC,OAiKxE,CAAC"}
|
|
@@ -4,18 +4,6 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
Object.defineProperty(exports, "GQLCreateRedirectMutation", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _RedirectFormGql.GQLCreateRedirectMutation;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "GQLUpdateRedirectMutation", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _RedirectFormGql.GQLUpdateRedirectMutation;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
7
|
exports.RedirectForm = void 0;
|
|
20
8
|
Object.defineProperty(exports, "createRedirectMutation", {
|
|
21
9
|
enumerable: true,
|
|
@@ -41,7 +29,6 @@ var _ContentScopeIndicator = require("../contentScope/ContentScopeIndicator");
|
|
|
41
29
|
var _RedirectForm = require("./RedirectForm.gql");
|
|
42
30
|
var _submitMutation = require("./submitMutation");
|
|
43
31
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
44
|
-
var _RedirectFormGql = require("./RedirectForm.gql.generated");
|
|
45
32
|
var _templateObject;
|
|
46
33
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
47
34
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currentUser.d.ts","sourceRoot":"","sources":["../../../src/userPermissions/hooks/currentUser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"currentUser.d.ts","sourceRoot":"","sources":["../../../src/userPermissions/hooks/currentUser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,MAAM,WAAW,mBAAmB;CAAG;AACvC,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,CAAC;AAExF,UAAU,kBAAkB;IACxB,WAAW,EAAE,oBAAoB,CAAC;IAClC,SAAS,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC;CAC3G;AACD,eAAO,MAAM,kBAAkB,yDAA2D,CAAC;AAE3F,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,EAAE;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACjB,GAAG,IAAI,CAAC;IACT,WAAW,EAAE;QACT,UAAU,EAAE,UAAU,CAAC;QACvB,aAAa,EAAE,YAAY,EAAE,CAAC;KACjC,EAAE,CAAC;IACJ,oBAAoB,EAAE;QAClB,KAAK,EAAE,YAAY,CAAC;QACpB,KAAK,EAAE;aAAG,GAAG,IAAI,MAAM,YAAY,GAAG,MAAM;SAAE,CAAC;KAClD,EAAE,CAAC;CACP;AAED,eAAO,MAAM,mBAAmB,GAAI,yBAAyB,iBAAiB,CAAC;IAAE,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC,4CAgE9H,CAAC;AAEF,wBAAgB,cAAc,IAAI,oBAAoB,CAIrD;AAED,wBAAgB,sBAAsB,IAAI,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAK5E"}
|
|
@@ -8,14 +8,12 @@ exports.useCurrentUser = useCurrentUser;
|
|
|
8
8
|
exports.useUserPermissionCheck = useUserPermissionCheck;
|
|
9
9
|
var _client = require("@apollo/client");
|
|
10
10
|
var _admin = require("@comet/admin");
|
|
11
|
-
var _lodash = _interopRequireDefault(require("lodash.omit"));
|
|
12
11
|
var _react = require("react");
|
|
13
12
|
var _reactIntl = require("react-intl");
|
|
14
13
|
var _Provider = require("../../contentScope/Provider");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
var _templateObject; // eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
17
16
|
// This interface can be overwritten to add custom permissions
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
17
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
19
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -53,9 +51,15 @@ var CurrentUserProvider = exports.CurrentUserProvider = function CurrentUserProv
|
|
|
53
51
|
contentScopes: p.contentScopes
|
|
54
52
|
};
|
|
55
53
|
}),
|
|
56
|
-
authenticatedUser: data.currentUser.authenticatedUser
|
|
54
|
+
authenticatedUser: data.currentUser.authenticatedUser ? {
|
|
55
|
+
name: data.currentUser.authenticatedUser.name,
|
|
56
|
+
email: data.currentUser.authenticatedUser.email
|
|
57
|
+
} : null,
|
|
57
58
|
allowedContentScopes: data.currentUser.allowedContentScopes.map(function (acs) {
|
|
58
|
-
return
|
|
59
|
+
return {
|
|
60
|
+
scope: acs.scope,
|
|
61
|
+
label: acs.label
|
|
62
|
+
};
|
|
59
63
|
}),
|
|
60
64
|
impersonated: !!data.currentUser.impersonated
|
|
61
65
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionDialog.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/PermissionDialog.tsx"],"names":[],"mappings":"AAmCA,UAAU,SAAS;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC;AACD,eAAO,MAAM,gBAAgB,GAAI,6CAA6C,SAAS,
|
|
1
|
+
{"version":3,"file":"PermissionDialog.d.ts","sourceRoot":"","sources":["../../../../src/userPermissions/user/permissions/PermissionDialog.tsx"],"names":[],"mappings":"AAmCA,UAAU,SAAS;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,GAAG,KAAK,CAAC;IAC7B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CACjC;AACD,eAAO,MAAM,gBAAgB,GAAI,6CAA6C,SAAS,4CAwMtF,CAAC"}
|
|
@@ -16,12 +16,12 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
16
16
|
var _excluded = ["source", "__typename"];
|
|
17
17
|
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 }; })(); }
|
|
18
18
|
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); }
|
|
19
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
19
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
22
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
22
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
24
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
25
25
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
26
26
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
27
27
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
@@ -34,11 +34,19 @@ var PermissionDialog = exports.PermissionDialog = function PermissionDialog(_ref
|
|
|
34
34
|
var client = (0, _client.useApolloClient)();
|
|
35
35
|
var submit = /*#__PURE__*/function () {
|
|
36
36
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(submitData) {
|
|
37
|
-
var
|
|
37
|
+
var _data$validFrom, _data$validTo, _data$reason, _data$requestedBy, _data$approvedBy;
|
|
38
|
+
var source, __typename, data, input;
|
|
38
39
|
return _regenerator().w(function (_context) {
|
|
39
40
|
while (1) switch (_context.n) {
|
|
40
41
|
case 0:
|
|
41
42
|
source = submitData.source, __typename = submitData.__typename, data = _objectWithoutProperties(submitData, _excluded); // Remove source and __typename from data
|
|
43
|
+
input = _objectSpread(_objectSpread({}, data), {}, {
|
|
44
|
+
validFrom: (_data$validFrom = data.validFrom) !== null && _data$validFrom !== void 0 ? _data$validFrom : null,
|
|
45
|
+
validTo: (_data$validTo = data.validTo) !== null && _data$validTo !== void 0 ? _data$validTo : null,
|
|
46
|
+
reason: (_data$reason = data.reason) !== null && _data$reason !== void 0 ? _data$reason : null,
|
|
47
|
+
requestedBy: (_data$requestedBy = data.requestedBy) !== null && _data$requestedBy !== void 0 ? _data$requestedBy : null,
|
|
48
|
+
approvedBy: (_data$approvedBy = data.approvedBy) !== null && _data$approvedBy !== void 0 ? _data$approvedBy : null
|
|
49
|
+
});
|
|
42
50
|
if (!(permissionId && permissionId !== "add")) {
|
|
43
51
|
_context.n = 2;
|
|
44
52
|
break;
|
|
@@ -48,7 +56,7 @@ var PermissionDialog = exports.PermissionDialog = function PermissionDialog(_ref
|
|
|
48
56
|
mutation: (0, _client.gql)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n mutation UpdateUserPermission($id: String!, $input: UserPermissionInput!) {\n userPermissionsUpdatePermission(id: $id, input: $input) {\n id\n }\n }\n "]))),
|
|
49
57
|
variables: {
|
|
50
58
|
id: permissionId,
|
|
51
|
-
input:
|
|
59
|
+
input: input
|
|
52
60
|
},
|
|
53
61
|
refetchQueries: [_PermissionDialog.namedOperations.Query.Permission, "Permissions"]
|
|
54
62
|
});
|
|
@@ -61,7 +69,7 @@ var PermissionDialog = exports.PermissionDialog = function PermissionDialog(_ref
|
|
|
61
69
|
mutation: (0, _client.gql)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n mutation CreateUserPermission($userId: String!, $input: UserPermissionInput!) {\n userPermissionsCreatePermission(userId: $userId, input: $input) {\n id\n }\n }\n "]))),
|
|
62
70
|
variables: {
|
|
63
71
|
userId: userId,
|
|
64
|
-
input:
|
|
72
|
+
input: input
|
|
65
73
|
},
|
|
66
74
|
refetchQueries: [_PermissionDialog.namedOperations.Query.Permission, "Permissions"]
|
|
67
75
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/cms-admin",
|
|
3
|
-
"version": "9.0.0-canary-
|
|
3
|
+
"version": "9.0.0-canary-20251209140438",
|
|
4
4
|
"description": "Comet CMS Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/cms-admin",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"change-case": "^4.1.2",
|
|
19
|
-
"class-validator": "^0.14.
|
|
19
|
+
"class-validator": "^0.14.3",
|
|
20
20
|
"date-fns": "^4.1.0",
|
|
21
21
|
"file-saver": "^2.0.5",
|
|
22
22
|
"final-form-arrays": "^3.1.0",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"js-cookie": "^3.0.5",
|
|
25
25
|
"lodash.escaperegexp": "^4.1.2",
|
|
26
26
|
"lodash.isequal": "^4.5.0",
|
|
27
|
-
"lodash.omit": "^4.5.0",
|
|
28
27
|
"mime-db": "^1.54.0",
|
|
29
28
|
"p-debounce": "^4.0.0",
|
|
30
29
|
"react-cool-dimensions": "^2.0.7",
|
|
@@ -35,20 +34,20 @@
|
|
|
35
34
|
"react-split": "^2.0.14",
|
|
36
35
|
"react-virtualized-auto-sizer": "^1.0.26",
|
|
37
36
|
"react-window": "^1.8.11",
|
|
38
|
-
"rimraf": "^6.
|
|
37
|
+
"rimraf": "^6.1.2",
|
|
39
38
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
40
39
|
"slugify": "^1.6.6",
|
|
41
40
|
"use-debounce": "^10.0.5",
|
|
42
41
|
"uuid": "^11.1.0",
|
|
43
|
-
"@comet/admin": "9.0.0-canary-
|
|
44
|
-
"@comet/admin-date-time": "9.0.0-canary-
|
|
45
|
-
"@comet/admin-icons": "9.0.0-canary-
|
|
46
|
-
"@comet/admin-rte": "9.0.0-canary-
|
|
42
|
+
"@comet/admin": "9.0.0-canary-20251209140438",
|
|
43
|
+
"@comet/admin-date-time": "9.0.0-canary-20251209140438",
|
|
44
|
+
"@comet/admin-icons": "9.0.0-canary-20251209140438",
|
|
45
|
+
"@comet/admin-rte": "9.0.0-canary-20251209140438"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"@apollo/client": "^3.
|
|
50
|
-
"@babel/cli": "^7.28.
|
|
51
|
-
"@babel/core": "^7.28.
|
|
48
|
+
"@apollo/client": "^3.14.0",
|
|
49
|
+
"@babel/cli": "^7.28.3",
|
|
50
|
+
"@babel/core": "^7.28.5",
|
|
52
51
|
"@emotion/react": "^11.14.0",
|
|
53
52
|
"@emotion/styled": "^11.14.1",
|
|
54
53
|
"@graphql-codegen/cli": "^5.0.7",
|
|
@@ -56,19 +55,18 @@
|
|
|
56
55
|
"@graphql-codegen/near-operation-file-preset": "^3.1.0",
|
|
57
56
|
"@graphql-codegen/typescript": "^4.1.6",
|
|
58
57
|
"@graphql-codegen/typescript-operations": "^4.6.1",
|
|
59
|
-
"@mui/material": "^7.
|
|
60
|
-
"@mui/system": "^7.
|
|
58
|
+
"@mui/material": "^7.3.5",
|
|
59
|
+
"@mui/system": "^7.3.5",
|
|
61
60
|
"@mui/x-data-grid": "^7.29.8",
|
|
62
61
|
"@testing-library/dom": "^10.4.0",
|
|
63
62
|
"@testing-library/react": "^16.3.0",
|
|
64
|
-
"@types/draft-js": "^0.11.
|
|
63
|
+
"@types/draft-js": "^0.11.20",
|
|
65
64
|
"@types/file-saver": "^2.0.7",
|
|
66
65
|
"@types/final-form-set-field-touched": "^1.0.3",
|
|
67
66
|
"@types/jest": "^29.5.14",
|
|
68
67
|
"@types/js-cookie": "^3.0.6",
|
|
69
68
|
"@types/lodash.escaperegexp": "^4.1.9",
|
|
70
69
|
"@types/lodash.isequal": "^4.5.8",
|
|
71
|
-
"@types/lodash.omit": "^4.5.9",
|
|
72
70
|
"@types/mime-db": "^1.43.6",
|
|
73
71
|
"@types/node": "^24.9.1",
|
|
74
72
|
"@types/react": "^18.3.23",
|
|
@@ -77,7 +75,6 @@
|
|
|
77
75
|
"@types/react-router-dom": "^5.3.3",
|
|
78
76
|
"@types/react-window": "^1.8.8",
|
|
79
77
|
"chokidar-cli": "^3.0.0",
|
|
80
|
-
"csstype": "^3.1.3",
|
|
81
78
|
"draft-js": "^0.11.7",
|
|
82
79
|
"eslint": "^9.30.1",
|
|
83
80
|
"final-form": "^4.20.10",
|
|
@@ -97,9 +94,9 @@
|
|
|
97
94
|
"react-router-dom": "^5.3.4",
|
|
98
95
|
"ts-jest": "^29.4.0",
|
|
99
96
|
"typescript": "5.9.3",
|
|
100
|
-
"@comet/admin-babel-preset": "9.0.0-canary-
|
|
101
|
-
"@comet/cli": "9.0.0-canary-
|
|
102
|
-
"@comet/eslint-config": "9.0.0-canary-
|
|
97
|
+
"@comet/admin-babel-preset": "9.0.0-canary-20251209140438",
|
|
98
|
+
"@comet/cli": "9.0.0-canary-20251209140438",
|
|
99
|
+
"@comet/eslint-config": "9.0.0-canary-20251209140438"
|
|
103
100
|
},
|
|
104
101
|
"peerDependencies": {
|
|
105
102
|
"@apollo/client": "^3.7.0",
|
|
@@ -135,6 +132,7 @@
|
|
|
135
132
|
"gql:types": "graphql-codegen",
|
|
136
133
|
"gql:watch": "pnpm graphql-codegen --watch",
|
|
137
134
|
"lint": "run-p gql:types generate-block-types && run-p lint:prettier lint:eslint lint:tsc",
|
|
135
|
+
"lint:ci": "pnpm run lint",
|
|
138
136
|
"lint:eslint": "eslint --max-warnings 0 src/ **/*.json --no-warn-ignored",
|
|
139
137
|
"lint:prettier": "pnpm exec prettier --check './**/*.{js,json,md,yml,yaml}'",
|
|
140
138
|
"lint:tsc": "tsc --noEmit",
|