@webiny/app-headless-cms 5.41.4 → 5.41.5-beta.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.
- package/ContentEntryListConfig.d.ts +6 -1
- package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.d.ts +7 -7
- package/admin/components/LexicalCmsEditor/LexicalCmsEditor.js +1 -4
- package/admin/components/LexicalCmsEditor/LexicalCmsEditor.js.map +1 -1
- package/admin/components/ModelFieldProvider/ModelFieldContext.d.ts +1 -1
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js +1 -4
- package/admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/EntryAction.js +2 -4
- package/admin/config/contentEntries/list/Browser/EntryAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/FolderAction.js +1 -4
- package/admin/config/contentEntries/list/Browser/FolderAction.js.map +1 -1
- package/admin/config/contentEntries/list/Browser/Table/Column.js +2 -4
- package/admin/config/contentEntries/list/Browser/Table/Column.js.map +1 -1
- package/admin/config/contentEntries/list/ContentEntryListConfig.d.ts +45 -40
- package/admin/config/contentEntries/list/ContentEntryListConfig.js +11 -2
- package/admin/config/contentEntries/list/ContentEntryListConfig.js.map +1 -1
- package/admin/hooks/useModelFieldGraphqlContext.d.ts +1 -1
- package/admin/plugins/fieldRenderers/Accordion.js +34 -19
- package/admin/plugins/fieldRenderers/Accordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/FieldSettings.d.ts +1 -1
- package/admin/plugins/index.d.ts +3 -3
- package/allPlugins.d.ts +4 -4
- package/package.json +28 -28
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ContentEntryListConfig:
|
|
2
|
+
export declare const ContentEntryListConfig: {
|
|
3
|
+
({ children }: {
|
|
4
|
+
children: import("react").ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
} & {
|
|
3
8
|
Browser: {
|
|
4
9
|
AdvancedSearch: {
|
|
5
10
|
FieldRenderer: (({ modelIds, ...props }: import("./admin/config/contentEntries/list/Browser/AdvancedSearch/FieldRenderer").FieldRendererProps) => import("react").JSX.Element | null) & {
|
package/admin/components/ContentEntryForm/Header/RevisionSelector/RevisionSelector.styles.d.ts
CHANGED
|
@@ -16,21 +16,21 @@ export declare const Menu: import("@emotion/styled").StyledComponent<Pick<import
|
|
|
16
16
|
}, never> & {
|
|
17
17
|
anchor?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "bottomEnd" | "bottomStart" | "topEnd" | "topStart" | undefined;
|
|
18
18
|
fixed?: boolean | undefined;
|
|
19
|
-
children?: ((string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal) & (string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | import("@webiny/ui/Menu").RenderableMenuChildren)) | null | undefined;
|
|
20
|
-
render?: ((props: import("@webiny/ui/Menu").MenuChildrenFunctionProps) => import("react").ReactNode) | undefined;
|
|
21
19
|
open?: boolean | undefined;
|
|
22
|
-
disabled?: boolean | undefined;
|
|
23
|
-
"data-testid"?: string | undefined;
|
|
24
20
|
className?: string | undefined;
|
|
21
|
+
children?: ((string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal) & (string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | import("@webiny/ui/Menu").RenderableMenuChildren)) | null | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
render?: ((props: import("@webiny/ui/Menu").MenuChildrenFunctionProps) => import("react").ReactNode) | undefined;
|
|
24
|
+
onSelect?: ((evt: import("@rmwc/menu").MenuOnSelectEventT) => void) | undefined;
|
|
25
25
|
onClose?: (((evt: import("@rmwc/menu").MenuSurfaceOnCloseEventT) => void) & (() => void)) | undefined;
|
|
26
|
+
handle?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
26
27
|
onOpen?: (((evt: import("@rmwc/menu").MenuSurfaceOnOpenEventT) => void) & (() => void)) | undefined;
|
|
27
|
-
|
|
28
|
+
"data-testid"?: string | undefined;
|
|
28
29
|
foundationRef?: import("react").Ref<import("@material/menu").MDCMenuFoundation> | undefined;
|
|
29
30
|
apiRef?: ((api: import("@rmwc/menu").MenuApi | null) => void) | undefined;
|
|
31
|
+
renderToPortal?: import("@rmwc/base").PortalPropT;
|
|
30
32
|
anchorCorner?: import("@rmwc/menu").AnchorT | undefined;
|
|
31
|
-
onSelect?: ((evt: import("@rmwc/menu").MenuOnSelectEventT) => void) | undefined;
|
|
32
33
|
focusOnOpen?: boolean | undefined;
|
|
33
|
-
handle?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
34
34
|
} & {} & {
|
|
35
35
|
theme?: import("@emotion/react").Theme | undefined;
|
|
36
36
|
}, {}, {
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.LexicalCmsEditor = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _lexicalEditor = require("@webiny/lexical-editor");
|
|
10
|
-
var _reactComposition = require("@webiny/react-composition");
|
|
11
10
|
var _LexicalEditor = require("@webiny/app-admin/components/LexicalEditor");
|
|
12
11
|
var placeholderStyles = {
|
|
13
12
|
position: "absolute",
|
|
@@ -26,9 +25,7 @@ var styles = {
|
|
|
26
25
|
minHeight: 200,
|
|
27
26
|
maxHeight: 350
|
|
28
27
|
};
|
|
29
|
-
var toolbar = /*#__PURE__*/_react.default.createElement(
|
|
30
|
-
name: "cms"
|
|
31
|
-
}, /*#__PURE__*/_react.default.createElement(_lexicalEditor.StaticToolbar, null));
|
|
28
|
+
var toolbar = /*#__PURE__*/_react.default.createElement(_lexicalEditor.StaticToolbar, null);
|
|
32
29
|
var LexicalCmsEditor = exports.LexicalCmsEditor = function LexicalCmsEditor(props) {
|
|
33
30
|
var onChange = (0, _react.useCallback)(function (jsonString) {
|
|
34
31
|
if (props?.onChange) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_lexicalEditor","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_lexicalEditor","_LexicalEditor","placeholderStyles","position","top","left","contentEditableStyles","minHeight","display","padding","styles","backgroundColor","border","maxHeight","toolbar","default","createElement","StaticToolbar","LexicalCmsEditor","exports","props","onChange","useCallback","jsonString","JSON","parse","LexicalEditor","Object","assign","focus","value","stringify","staticToolbar","tag","placeholder"],"sources":["LexicalCmsEditor.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { StaticToolbar } from \"@webiny/lexical-editor\";\nimport { RichTextEditorProps } from \"@webiny/lexical-editor/types\";\nimport { LexicalEditor } from \"@webiny/app-admin/components/LexicalEditor\";\n\nconst placeholderStyles: React.CSSProperties = { position: \"absolute\", top: 40, left: 25 };\n\nconst contentEditableStyles: React.CSSProperties = {\n minHeight: 200,\n display: \"block\",\n padding: 10\n};\n\nconst styles: React.CSSProperties = {\n backgroundColor: \"#fff\",\n border: \"1px solid #e1e1e1\",\n padding: \"10px 14px\",\n minHeight: 200,\n maxHeight: 350\n};\n\nconst toolbar = <StaticToolbar />;\n\nexport const LexicalCmsEditor = (props: Omit<RichTextEditorProps, \"theme\">) => {\n const onChange = useCallback(\n (jsonString: string) => {\n if (props?.onChange) {\n props?.onChange(JSON.parse(jsonString));\n }\n },\n [props?.onChange]\n );\n\n return (\n <LexicalEditor\n {...props}\n focus={true}\n value={props.value ? JSON.stringify(props.value) : props.value}\n onChange={onChange}\n staticToolbar={toolbar}\n tag={\"p\"}\n placeholder={props?.placeholder || \"Enter your text here...\"}\n placeholderStyles={placeholderStyles}\n contentEditableStyles={contentEditableStyles}\n styles={styles}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAMG,iBAAsC,GAAG;EAAEC,QAAQ,EAAE,UAAU;EAAEC,GAAG,EAAE,EAAE;EAAEC,IAAI,EAAE;AAAG,CAAC;AAE1F,IAAMC,qBAA0C,GAAG;EAC/CC,SAAS,EAAE,GAAG;EACdC,OAAO,EAAE,OAAO;EAChBC,OAAO,EAAE;AACb,CAAC;AAED,IAAMC,MAA2B,GAAG;EAChCC,eAAe,EAAE,MAAM;EACvBC,MAAM,EAAE,mBAAmB;EAC3BH,OAAO,EAAE,WAAW;EACpBF,SAAS,EAAE,GAAG;EACdM,SAAS,EAAE;AACf,CAAC;AAED,IAAMC,OAAO,gBAAGjB,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAAChB,cAAA,CAAAiB,aAAa,MAAE,CAAC;AAE1B,IAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,SAAnBA,gBAAgBA,CAAIE,KAAyC,EAAK;EAC3E,IAAMC,QAAQ,GAAG,IAAAC,kBAAW,EACxB,UAACC,UAAkB,EAAK;IACpB,IAAIH,KAAK,EAAEC,QAAQ,EAAE;MACjBD,KAAK,EAAEC,QAAQ,CAACG,IAAI,CAACC,KAAK,CAACF,UAAU,CAAC,CAAC;IAC3C;EACJ,CAAC,EACD,CAACH,KAAK,EAAEC,QAAQ,CACpB,CAAC;EAED,oBACIxB,MAAA,CAAAkB,OAAA,CAAAC,aAAA,CAACf,cAAA,CAAAyB,aAAa,EAAAC,MAAA,CAAAC,MAAA,KACNR,KAAK;IACTS,KAAK,EAAE,IAAK;IACZC,KAAK,EAAEV,KAAK,CAACU,KAAK,GAAGN,IAAI,CAACO,SAAS,CAACX,KAAK,CAACU,KAAK,CAAC,GAAGV,KAAK,CAACU,KAAM;IAC/DT,QAAQ,EAAEA,QAAS;IACnBW,aAAa,EAAElB,OAAQ;IACvBmB,GAAG,EAAE,GAAI;IACTC,WAAW,EAAEd,KAAK,EAAEc,WAAW,IAAI,yBAA0B;IAC7DhC,iBAAiB,EAAEA,iBAAkB;IACrCI,qBAAqB,EAAEA,qBAAsB;IAC7CI,MAAM,EAAEA;EAAO,EAClB,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ export declare const ModelFieldContext: React.Context<{
|
|
|
9
9
|
label: string;
|
|
10
10
|
helpText?: string | undefined;
|
|
11
11
|
placeholderText?: string | undefined;
|
|
12
|
-
validation?: (import("
|
|
12
|
+
validation?: (import("@webiny/validation/types").Validator | import("../../../types").CmsModelFieldValidator)[] | undefined;
|
|
13
13
|
listValidation?: import("../../../types").CmsModelFieldValidator[] | undefined;
|
|
14
14
|
multipleValues?: boolean | undefined;
|
|
15
15
|
predefinedValues?: import("../../../types").CmsEditorFieldPredefinedValues | undefined;
|
|
@@ -13,7 +13,6 @@ Object.defineProperty(exports, "FieldRendererConfig", {
|
|
|
13
13
|
});
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _reactComposition = require("@webiny/react-composition");
|
|
17
16
|
var _appAco = require("@webiny/app-aco");
|
|
18
17
|
var _ModelProvider = require("../../../../../components/ModelProvider");
|
|
19
18
|
var _excluded = ["modelIds"];
|
|
@@ -27,9 +26,7 @@ var BaseFieldRenderer = function BaseFieldRenderer(_ref) {
|
|
|
27
26
|
if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
31
|
-
name: "cms"
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(AdvancedSearch.FieldRenderer, props)));
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(AdvancedSearch.FieldRenderer, props));
|
|
33
30
|
};
|
|
34
31
|
var FieldRenderer = exports.FieldRenderer = Object.assign(BaseFieldRenderer, {
|
|
35
32
|
useInputField: AdvancedSearch.FieldRenderer.useInputField,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_appAco","_ModelProvider","_excluded","AdvancedSearch","AcoConfig","BaseFieldRenderer","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","_useModel","useModel","model","length","includes","modelId","createElement","FieldRenderer","exports","Object","assign","useInputField","FieldType"],"sources":["FieldRenderer.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AcoConfig,\n AdvancedSearchFieldRendererConfig as FieldRendererConfig\n} from \"@webiny/app-aco\";\nimport { useModel } from \"~/admin/components/ModelProvider\";\n\nconst { AdvancedSearch } = AcoConfig;\n\nexport { FieldRendererConfig };\n\nexport interface FieldRendererProps\n extends React.ComponentProps<typeof AcoConfig.AdvancedSearch.FieldRenderer> {\n modelIds?: string[];\n}\n\nconst BaseFieldRenderer = ({ modelIds = [], ...props }: FieldRendererProps) => {\n const { model } = useModel();\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n return (\n <AcoConfig>\n <AdvancedSearch.FieldRenderer {...props} />\n </AcoConfig>\n );\n};\n\nexport const FieldRenderer = Object.assign(BaseFieldRenderer, {\n useInputField: AdvancedSearch.FieldRenderer.useInputField,\n FieldType: AdvancedSearch.FieldRenderer.FieldType\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAIA,IAAAE,cAAA,GAAAF,OAAA;AAA4D,IAAAG,SAAA;AAE5D,IAAQC,cAAc,GAAKC,iBAAS,CAA5BD,cAAc;AAStB,IAAME,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAwD;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAAlDE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKE,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,EAAAJ,SAAA;EAChD,IAAAU,SAAA,GAAkB,IAAAC,uBAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EAEb,IAAIN,QAAQ,CAACO,MAAM,GAAG,CAAC,IAAI,CAACP,QAAQ,CAACQ,QAAQ,CAACF,KAAK,CAACG,OAAO,CAAC,EAAE;IAC1D,OAAO,IAAI;EACf;EAEA,oBACIpB,MAAA,CAAAc,OAAA,CAAAO,aAAA,CAAClB,OAAA,CAAAI,SAAS,qBACNP,MAAA,CAAAc,OAAA,CAAAO,aAAA,CAACf,cAAc,CAACgB,aAAa,EAAKV,KAAQ,CACnC,CAAC;AAEpB,CAAC;AAEM,IAAMU,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAGE,MAAM,CAACC,MAAM,CAACjB,iBAAiB,EAAE;EAC1DkB,aAAa,EAAEpB,cAAc,CAACgB,aAAa,CAACI,aAAa;EACzDC,SAAS,EAAErB,cAAc,CAACgB,aAAa,CAACK;AAC5C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -22,11 +22,9 @@ var BaseEntryAction = (0, _reactComposition.makeDecoratable)("EntryAction", func
|
|
|
22
22
|
var _ref$modelIds = _ref.modelIds,
|
|
23
23
|
modelIds = _ref$modelIds === void 0 ? [] : _ref$modelIds,
|
|
24
24
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
-
name: "cms"
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(_IsApplicableToCurrentModel.IsApplicableToCurrentModel, {
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(_IsApplicableToCurrentModel.IsApplicableToCurrentModel, {
|
|
28
26
|
modelIds: modelIds
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(Record.Action, props)))
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(Record.Action, props)));
|
|
30
28
|
});
|
|
31
29
|
var EntryAction = exports.EntryAction = Object.assign(BaseEntryAction, {
|
|
32
30
|
OptionsMenuItem: Record.Action.OptionsMenuItem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactComposition","_appAco","_IsApplicableToCurrentModel","_excluded","Record","AcoConfig","BaseEntryAction","makeDecoratable","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactComposition","_appAco","_IsApplicableToCurrentModel","_excluded","Record","AcoConfig","BaseEntryAction","makeDecoratable","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","createElement","IsApplicableToCurrentModel","Action","EntryAction","exports","Object","assign","OptionsMenuItem","OptionsMenuLink"],"sources":["EntryAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { AcoConfig, RecordActionConfig } from \"@webiny/app-aco\";\nimport { IsApplicableToCurrentModel } from \"~/admin/config/IsApplicableToCurrentModel\";\n\nconst { Record } = AcoConfig;\n\nexport { RecordActionConfig as EntryActionConfig };\n\nexport interface EntryActionProps extends React.ComponentProps<typeof AcoConfig.Record.Action> {\n modelIds?: string[];\n}\n\nconst BaseEntryAction = makeDecoratable(\n \"EntryAction\",\n ({ modelIds = [], ...props }: EntryActionProps) => {\n return (\n <AcoConfig>\n <IsApplicableToCurrentModel modelIds={modelIds}>\n <Record.Action {...props} />\n </IsApplicableToCurrentModel>\n </AcoConfig>\n );\n }\n);\n\nexport const EntryAction = Object.assign(BaseEntryAction, {\n OptionsMenuItem: Record.Action.OptionsMenuItem,\n OptionsMenuLink: Record.Action.OptionsMenuLink\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAAuF,IAAAI,SAAA;AAEvF,IAAQC,MAAM,GAAKC,iBAAS,CAApBD,MAAM;AAQd,IAAME,eAAe,GAAG,IAAAC,iCAAe,EACnC,aAAa,EACb,UAAAC,IAAA,EAAmD;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAAhDE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKE,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,EAAAL,SAAA;EACtB,oBACIN,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,OAAA,CAAAI,SAAS,qBACNR,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACZ,2BAAA,CAAAa,0BAA0B;IAACL,QAAQ,EAAEA;EAAS,gBAC3Cb,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACV,MAAM,CAACY,MAAM,EAAKL,KAAQ,CACH,CACrB,CAAC;AAEpB,CACJ,CAAC;AAEM,IAAMM,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,MAAM,CAACC,MAAM,CAACd,eAAe,EAAE;EACtDe,eAAe,EAAEjB,MAAM,CAACY,MAAM,CAACK,eAAe;EAC9CC,eAAe,EAAElB,MAAM,CAACY,MAAM,CAACM;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -13,7 +13,6 @@ Object.defineProperty(exports, "FolderActionConfig", {
|
|
|
13
13
|
});
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _reactComposition = require("@webiny/react-composition");
|
|
17
16
|
var _appAco = require("@webiny/app-aco");
|
|
18
17
|
var _hooks = require("../../../../hooks");
|
|
19
18
|
var _excluded = ["modelIds"];
|
|
@@ -27,9 +26,7 @@ var BaseFolderAction = function BaseFolderAction(_ref) {
|
|
|
27
26
|
if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
30
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
31
|
-
name: "cms"
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(Folder.Action, props)));
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(Folder.Action, props));
|
|
33
30
|
};
|
|
34
31
|
var FolderAction = exports.FolderAction = Object.assign(BaseFolderAction, {
|
|
35
32
|
OptionsMenuItem: Folder.Action.OptionsMenuItem
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_appAco","_hooks","_excluded","Folder","AcoConfig","BaseFolderAction","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","_useModel","useModel","model","length","includes","modelId","createElement","Action","FolderAction","exports","Object","assign","OptionsMenuItem"],"sources":["FolderAction.tsx"],"sourcesContent":["import React from \"react\";\nimport { AcoConfig, FolderActionConfig } from \"@webiny/app-aco\";\nimport { useModel } from \"~/admin/hooks\";\n\nconst { Folder } = AcoConfig;\n\nexport { FolderActionConfig };\n\nexport interface FolderActionProps extends React.ComponentProps<typeof AcoConfig.Folder.Action> {\n modelIds?: string[];\n}\n\nconst BaseFolderAction = ({ modelIds = [], ...props }: FolderActionProps) => {\n const { model } = useModel();\n\n if (modelIds.length > 0 && !modelIds.includes(model.modelId)) {\n return null;\n }\n\n return (\n <AcoConfig>\n <Folder.Action {...props} />\n </AcoConfig>\n );\n};\n\nexport const FolderAction = Object.assign(BaseFolderAction, {\n OptionsMenuItem: Folder.Action.OptionsMenuItem\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAAyC,IAAAG,SAAA;AAEzC,IAAQC,MAAM,GAAKC,iBAAS,CAApBD,MAAM;AAQd,IAAME,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAuD;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAAjDE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKE,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,EAAAJ,SAAA;EAC/C,IAAAU,SAAA,GAAkB,IAAAC,eAAQ,EAAC,CAAC;IAApBC,KAAK,GAAAF,SAAA,CAALE,KAAK;EAEb,IAAIN,QAAQ,CAACO,MAAM,GAAG,CAAC,IAAI,CAACP,QAAQ,CAACQ,QAAQ,CAACF,KAAK,CAACG,OAAO,CAAC,EAAE;IAC1D,OAAO,IAAI;EACf;EAEA,oBACIpB,MAAA,CAAAc,OAAA,CAAAO,aAAA,CAAClB,OAAA,CAAAI,SAAS,qBACNP,MAAA,CAAAc,OAAA,CAAAO,aAAA,CAACf,MAAM,CAACgB,MAAM,EAAKV,KAAQ,CACpB,CAAC;AAEpB,CAAC;AAEM,IAAMW,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAGE,MAAM,CAACC,MAAM,CAAClB,gBAAgB,EAAE;EACxDmB,eAAe,EAAErB,MAAM,CAACgB,MAAM,CAACK;AACnC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -22,11 +22,9 @@ var BaseColumnComponent = function BaseColumnComponent(_ref) {
|
|
|
22
22
|
var _ref$modelIds = _ref.modelIds,
|
|
23
23
|
modelIds = _ref$modelIds === void 0 ? [] : _ref$modelIds,
|
|
24
24
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
26
|
-
name: "cms"
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(_IsApplicableToCurrentModel.IsApplicableToCurrentModel, {
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_appAco.AcoConfig, null, /*#__PURE__*/_react.default.createElement(_IsApplicableToCurrentModel.IsApplicableToCurrentModel, {
|
|
28
26
|
modelIds: modelIds
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(Table.Column, props)))
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement(Table.Column, props)));
|
|
30
28
|
};
|
|
31
29
|
var BaseColumn = (0, _reactComposition.makeDecoratable)("Column", BaseColumnComponent);
|
|
32
30
|
var Column = exports.Column = Object.assign(BaseColumn, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactComposition","_appAco","_IsApplicableToCurrentModel","_excluded","Table","AcoConfig","BaseColumnComponent","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactComposition","_appAco","_IsApplicableToCurrentModel","_excluded","Table","AcoConfig","BaseColumnComponent","_ref","_ref$modelIds","modelIds","props","_objectWithoutProperties2","default","createElement","IsApplicableToCurrentModel","Column","BaseColumn","makeDecoratable","exports","Object","assign","useTableRow","createUseTableRow","isFolderRow"],"sources":["Column.tsx"],"sourcesContent":["import React from \"react\";\nimport { makeDecoratable } from \"@webiny/react-composition\";\nimport { AcoConfig, TableColumnConfig as ColumnConfig } from \"@webiny/app-aco\";\nimport { TableItem } from \"~/types\";\nimport { IsApplicableToCurrentModel } from \"~/admin/config/IsApplicableToCurrentModel\";\n\nconst { Table } = AcoConfig;\n\nexport { ColumnConfig };\n\nexport interface ColumnProps extends React.ComponentProps<typeof AcoConfig.Table.Column> {\n modelIds?: string[];\n}\n\nconst BaseColumnComponent = ({ modelIds = [], ...props }: ColumnProps) => {\n return (\n <AcoConfig>\n <IsApplicableToCurrentModel modelIds={modelIds}>\n <Table.Column {...props} />\n </IsApplicableToCurrentModel>\n </AcoConfig>\n );\n};\n\nconst BaseColumn = makeDecoratable(\"Column\", BaseColumnComponent);\n\nexport const Column = Object.assign(BaseColumn, {\n useTableRow: Table.Column.createUseTableRow<TableItem>(),\n isFolderRow: Table.Column.isFolderRow\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,2BAAA,GAAAH,OAAA;AAAuF,IAAAI,SAAA;AAEvF,IAAQC,KAAK,GAAKC,iBAAS,CAAnBD,KAAK;AAQb,IAAME,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAiD;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAA3CE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAKE,KAAK,OAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,EAAAJ,SAAA;EAClD,oBACIN,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACZ,OAAA,CAAAI,SAAS,qBACNR,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,2BAAA,CAAAY,0BAA0B;IAACL,QAAQ,EAAEA;EAAS,gBAC3CZ,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACT,KAAK,CAACW,MAAM,EAAKL,KAAQ,CACF,CACrB,CAAC;AAEpB,CAAC;AAED,IAAMM,UAAU,GAAG,IAAAC,iCAAe,EAAC,QAAQ,EAAEX,mBAAmB,CAAC;AAE1D,IAAMS,MAAM,GAAAG,OAAA,CAAAH,MAAA,GAAGI,MAAM,CAACC,MAAM,CAACJ,UAAU,EAAE;EAC5CK,WAAW,EAAEjB,KAAK,CAACW,MAAM,CAACO,iBAAiB,CAAY,CAAC;EACxDC,WAAW,EAAEnB,KAAK,CAACW,MAAM,CAACQ;AAC9B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ContentEntryListConfig:
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const ContentEntryListConfig: {
|
|
3
|
+
({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
} & {
|
|
3
8
|
Browser: {
|
|
4
9
|
AdvancedSearch: {
|
|
5
|
-
FieldRenderer: (({ modelIds, ...props }: import("./Browser/AdvancedSearch/FieldRenderer").FieldRendererProps) =>
|
|
10
|
+
FieldRenderer: (({ modelIds, ...props }: import("./Browser/AdvancedSearch/FieldRenderer").FieldRendererProps) => React.JSX.Element | null) & {
|
|
6
11
|
useInputField: () => import("@webiny/app-aco").InputFieldContext;
|
|
7
12
|
FieldType: typeof import("@webiny/app-aco/components/AdvancedSearch/domain").FieldType;
|
|
8
13
|
};
|
|
9
14
|
};
|
|
10
|
-
BulkAction: (({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
11
|
-
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
15
|
+
BulkAction: (({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null) & {
|
|
16
|
+
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null;
|
|
12
17
|
originalName: string;
|
|
13
18
|
displayName: string;
|
|
14
19
|
} & {
|
|
15
|
-
original: (({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
16
|
-
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
20
|
+
original: (({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null) & {
|
|
21
|
+
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null;
|
|
17
22
|
originalName: string;
|
|
18
23
|
displayName: string;
|
|
19
24
|
};
|
|
20
25
|
originalName: string;
|
|
21
26
|
displayName: string;
|
|
22
27
|
} & {
|
|
23
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
24
|
-
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) =>
|
|
28
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null) & {
|
|
29
|
+
original: ({ name, after, before, remove, modelIds, element }: import("./Browser/BulkAction").BulkActionProps) => React.JSX.Element | null;
|
|
25
30
|
originalName: string;
|
|
26
31
|
displayName: string;
|
|
27
|
-
}>) => (props: unknown) =>
|
|
32
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
28
33
|
} & {
|
|
29
34
|
useButtons: () => import("@webiny/app-admin/components/Buttons/useButtons").ButtonsProviderContext;
|
|
30
35
|
useWorker: () => {
|
|
@@ -38,76 +43,76 @@ export declare const ContentEntryListConfig: (({ priority, children }: import("@
|
|
|
38
43
|
};
|
|
39
44
|
useDialog: () => import("@webiny/app-admin").UseDialogWithReportResponse;
|
|
40
45
|
};
|
|
41
|
-
EntryAction: (({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
42
|
-
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
46
|
+
EntryAction: (({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element) & {
|
|
47
|
+
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element;
|
|
43
48
|
originalName: string;
|
|
44
49
|
displayName: string;
|
|
45
50
|
} & {
|
|
46
|
-
original: (({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
47
|
-
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
51
|
+
original: (({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element) & {
|
|
52
|
+
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element;
|
|
48
53
|
originalName: string;
|
|
49
54
|
displayName: string;
|
|
50
55
|
};
|
|
51
56
|
originalName: string;
|
|
52
57
|
displayName: string;
|
|
53
58
|
} & {
|
|
54
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
55
|
-
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) =>
|
|
59
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element) & {
|
|
60
|
+
original: ({ modelIds, ...props }: import("./Browser/EntryAction").EntryActionProps) => React.JSX.Element;
|
|
56
61
|
originalName: string;
|
|
57
62
|
displayName: string;
|
|
58
|
-
}>) => (props: unknown) =>
|
|
63
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
59
64
|
} & {
|
|
60
|
-
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) =>
|
|
61
|
-
OptionsMenuLink: (props: import("@webiny/app-admin").OptionsMenuLinkProps) =>
|
|
65
|
+
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
66
|
+
OptionsMenuLink: (props: import("@webiny/app-admin").OptionsMenuLinkProps) => React.JSX.Element;
|
|
62
67
|
};
|
|
63
|
-
Filter: (({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
64
|
-
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
68
|
+
Filter: (({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null) & {
|
|
69
|
+
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null;
|
|
65
70
|
originalName: string;
|
|
66
71
|
displayName: string;
|
|
67
72
|
} & {
|
|
68
|
-
original: (({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
69
|
-
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
73
|
+
original: (({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null) & {
|
|
74
|
+
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null;
|
|
70
75
|
originalName: string;
|
|
71
76
|
displayName: string;
|
|
72
77
|
};
|
|
73
78
|
originalName: string;
|
|
74
79
|
displayName: string;
|
|
75
80
|
} & {
|
|
76
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
77
|
-
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
81
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null) & {
|
|
82
|
+
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null;
|
|
78
83
|
originalName: string;
|
|
79
84
|
displayName: string;
|
|
80
|
-
}>) => (props: unknown) =>
|
|
85
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
81
86
|
} & {
|
|
82
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
83
|
-
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) =>
|
|
87
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null) & {
|
|
88
|
+
original: ({ name, element, modelIds, after, before, remove }: import("./Browser/Filter").FilterProps) => React.JSX.Element | null;
|
|
84
89
|
originalName: string;
|
|
85
90
|
displayName: string;
|
|
86
|
-
}>) => (props: import("./Browser/Filter").CreateDecoratorParams) =>
|
|
91
|
+
}>) => (props: import("./Browser/Filter").CreateDecoratorParams) => React.JSX.Element;
|
|
87
92
|
};
|
|
88
|
-
FiltersToWhere: ({ converter, modelIds }: import("./Browser/FiltersToWhere").FiltersToWhereProps) =>
|
|
89
|
-
FolderAction: (({ modelIds, ...props }: import("./Browser/FolderAction").FolderActionProps) =>
|
|
90
|
-
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) =>
|
|
93
|
+
FiltersToWhere: ({ converter, modelIds }: import("./Browser/FiltersToWhere").FiltersToWhereProps) => React.JSX.Element | null;
|
|
94
|
+
FolderAction: (({ modelIds, ...props }: import("./Browser/FolderAction").FolderActionProps) => React.JSX.Element | null) & {
|
|
95
|
+
OptionsMenuItem: (props: import("@webiny/app-admin").OptionsMenuItemProps) => React.JSX.Element;
|
|
91
96
|
};
|
|
92
97
|
Table: {
|
|
93
|
-
Column: (({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
94
|
-
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
98
|
+
Column: (({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element) & {
|
|
99
|
+
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element;
|
|
95
100
|
originalName: string;
|
|
96
101
|
displayName: string;
|
|
97
102
|
} & {
|
|
98
|
-
original: (({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
99
|
-
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
103
|
+
original: (({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element) & {
|
|
104
|
+
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element;
|
|
100
105
|
originalName: string;
|
|
101
106
|
displayName: string;
|
|
102
107
|
};
|
|
103
108
|
originalName: string;
|
|
104
109
|
displayName: string;
|
|
105
110
|
} & {
|
|
106
|
-
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
107
|
-
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) =>
|
|
111
|
+
createDecorator: (decorator: import("@webiny/react-composition").ComponentDecorator<(({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element) & {
|
|
112
|
+
original: ({ modelIds, ...props }: import("./Browser/Table/Column").ColumnProps) => React.JSX.Element;
|
|
108
113
|
originalName: string;
|
|
109
114
|
displayName: string;
|
|
110
|
-
}>) => (props: unknown) =>
|
|
115
|
+
}>) => (props: unknown) => React.JSX.Element;
|
|
111
116
|
} & {
|
|
112
117
|
useTableRow: <TUserRow = Record<string, any>>() => import("@webiny/app-aco").TableRowContextData<import("../../../../types").TableItem & import("@webiny/ui/DataTable").DefaultData & TUserRow>;
|
|
113
118
|
isFolderRow: (row: import("@webiny/app-aco/table.types").BaseTableItem) => row is import("@webiny/app-aco/table.types").FolderTableItem;
|
|
@@ -115,7 +120,7 @@ export declare const ContentEntryListConfig: (({ priority, children }: import("@
|
|
|
115
120
|
};
|
|
116
121
|
};
|
|
117
122
|
};
|
|
118
|
-
export declare const ContentEntryListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) =>
|
|
123
|
+
export declare const ContentEntryListWithConfig: ({ onProperties, children }: import("@webiny/react-properties").WithConfigProps) => React.JSX.Element;
|
|
119
124
|
export declare function useContentEntryListConfig(): {
|
|
120
125
|
browser: {
|
|
121
126
|
bulkActions: import("./Browser/BulkAction").BulkActionConfig[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -8,11 +9,19 @@ exports.ContentEntryListWithConfig = exports.ContentEntryListConfig = void 0;
|
|
|
8
9
|
exports.useContentEntryListConfig = useContentEntryListConfig;
|
|
9
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
11
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
var _react = require("react");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
13
|
var _reactProperties = require("@webiny/react-properties");
|
|
13
14
|
var _Browser = require("./Browser");
|
|
15
|
+
var _reactComposition = require("@webiny/react-composition");
|
|
14
16
|
var base = (0, _reactProperties.createConfigurableComponent)("ContentEntryListConfig");
|
|
15
|
-
var
|
|
17
|
+
var ScopedContentEntryListConfig = function ScopedContentEntryListConfig(_ref) {
|
|
18
|
+
var children = _ref.children;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_reactComposition.CompositionScope, {
|
|
20
|
+
name: "cms"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(base.Config, null, children));
|
|
22
|
+
};
|
|
23
|
+
ScopedContentEntryListConfig.displayName = "ContentEntryListConfig";
|
|
24
|
+
var ContentEntryListConfig = exports.ContentEntryListConfig = Object.assign(ScopedContentEntryListConfig, {
|
|
16
25
|
Browser: _Browser.Browser
|
|
17
26
|
});
|
|
18
27
|
var ContentEntryListWithConfig = exports.ContentEntryListWithConfig = base.WithConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactProperties","_Browser","base","createConfigurableComponent","ContentEntryListConfig","exports","Object","assign","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactProperties","_Browser","_reactComposition","base","createConfigurableComponent","ScopedContentEntryListConfig","_ref","children","default","createElement","CompositionScope","name","Config","displayName","ContentEntryListConfig","exports","Object","assign","Browser","ContentEntryListWithConfig","WithConfig","useContentEntryListConfig","config","useConfig","browser","useMemo","_objectSpread2","bulkActions","_toConsumableArray2","filters","filtersToWhere"],"sources":["ContentEntryListConfig.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { createConfigurableComponent } from \"@webiny/react-properties\";\nimport { Browser, BrowserConfig } from \"./Browser\";\nimport { CompositionScope } from \"@webiny/react-composition\";\n\nconst base = createConfigurableComponent<ContentEntryListConfig>(\"ContentEntryListConfig\");\n\nconst ScopedContentEntryListConfig = ({ children }: { children: React.ReactNode }) => {\n return (\n <CompositionScope name={\"cms\"}>\n <base.Config>{children}</base.Config>\n </CompositionScope>\n );\n};\n\nScopedContentEntryListConfig.displayName = \"ContentEntryListConfig\";\n\nexport const ContentEntryListConfig = Object.assign(ScopedContentEntryListConfig, { Browser });\nexport const ContentEntryListWithConfig = base.WithConfig;\n\ninterface ContentEntryListConfig {\n browser: BrowserConfig;\n}\n\nexport function useContentEntryListConfig() {\n const config = base.useConfig();\n\n const browser = config.browser || {};\n\n return useMemo(\n () => ({\n browser: {\n ...browser,\n bulkActions: [...(browser.bulkActions || [])],\n filters: [...(browser.fil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,CAAE;QAC7CE,OAAO,MAAAD,mBAAA,CAAApB,OAAA,EAAOgB,OAAO,CAACK,OAAO,IAAI,EAAE,CAAE;QACrCC,cAAc,MAAAF,mBAAA,CAAApB,OAAA,EAAOgB,OAAO,CAACM,cAAc,IAAI,EAAE;MAAE;IAE3D,CAAC;EAAA,CAAC,EACF,CAACR,MAAM,CACX,CAAC;AACL","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ export declare const useModelFieldGraphqlContext: () => {
|
|
|
10
10
|
label: string;
|
|
11
11
|
helpText?: string | undefined;
|
|
12
12
|
placeholderText?: string | undefined;
|
|
13
|
-
validation?: (import("@webiny/
|
|
13
|
+
validation?: (import("@webiny/validation/types").Validator | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator)[] | undefined;
|
|
14
14
|
listValidation?: import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator[] | undefined;
|
|
15
15
|
multipleValues?: boolean | undefined;
|
|
16
16
|
predefinedValues?: import("@webiny/app-headless-cms-common/types").CmsEditorFieldPredefinedValues | undefined;
|
|
@@ -7,10 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _emotion = require("emotion");
|
|
12
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
14
|
var _Typography = require("@webiny/ui/Typography");
|
|
15
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
14
16
|
var classes = {
|
|
15
17
|
accordionWrapper: (0, _emotion.css)({
|
|
16
18
|
/**
|
|
@@ -73,21 +75,36 @@ var classes = {
|
|
|
73
75
|
transform: "translateY(3px) rotate(90deg)"
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
|
-
}),
|
|
77
|
-
accordionItem: (0, _emotion.css)({
|
|
78
|
-
overflow: "hidden",
|
|
79
|
-
transition: "max-height 0.3s cubic-bezier(1, 0, 1, 0)",
|
|
80
|
-
height: "auto",
|
|
81
|
-
maxHeight: "9999px",
|
|
82
|
-
"&.collapsed": {
|
|
83
|
-
maxHeight: 0,
|
|
84
|
-
transition: "max-height 0.35s cubic-bezier(0, 1, 0, 1)"
|
|
85
|
-
},
|
|
86
|
-
".accordion-content": {
|
|
87
|
-
paddingBottom: 10
|
|
88
|
-
}
|
|
89
78
|
})
|
|
90
79
|
};
|
|
80
|
+
var AccordionItem = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
81
|
+
target: "e15quhd1"
|
|
82
|
+
} : {
|
|
83
|
+
target: "e15quhd1",
|
|
84
|
+
label: "AccordionItem"
|
|
85
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
86
|
+
name: "1x0dzf4",
|
|
87
|
+
styles: "@keyframes show-overflow{to{overflow:visible;}}overflow:hidden;transition:max-height 0.35s cubic-bezier(0, 1, 0, 1);height:auto;max-height:0;&.expanded{max-height:9999px;transition:max-height 0.3s cubic-bezier(1, 0, 1, 0);animation-name:show-overflow;animation-fill-mode:forwards;animation-duration:20ms;animation-delay:0.3s;}"
|
|
88
|
+
} : {
|
|
89
|
+
name: "1x0dzf4",
|
|
90
|
+
styles: "@keyframes show-overflow{to{overflow:visible;}}overflow:hidden;transition:max-height 0.35s cubic-bezier(0, 1, 0, 1);height:auto;max-height:0;&.expanded{max-height:9999px;transition:max-height 0.3s cubic-bezier(1, 0, 1, 0);animation-name:show-overflow;animation-fill-mode:forwards;animation-duration:20ms;animation-delay:0.3s;}",
|
|
91
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2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Bjc3Moe1xuICAgICAgICBwb3NpdGlvbjogXCJyZWxhdGl2ZVwiLFxuICAgICAgICBjb2xvcjogXCJ2YXIoLS1tZGMtdGhlbWUtdGV4dC1zZWNvbmRhcnktb24tYmFja2dyb3VuZClcIixcbiAgICAgICAgY3Vyc29yOiBcInBvaW50ZXJcIixcbiAgICAgICAgcGFkZGluZzogXCIwcHhcIixcbiAgICAgICAgbWluSGVpZ2h0OiA0OCwgLy8gVG8gaGF2ZSBzYW1lIGhlaWdodCBhcyB0aGUgcmVtb3ZlIHZhbHVlIGFjdGlvbiBidXR0b24uXG4gICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICBhbGlnbkl0ZW1zOiBcImNlbnRlclwiLFxuICAgICAgICBqdXN0aWZ5Q29udGVudDogXCJzcGFjZS1iZXR3ZWVuXCIsXG5cbiAgICAgICAgXCImIC5hY2NvcmRpb24taGVhZGVyLS1sZWZ0XCI6IHtcbiAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcbiAgICAgICAgICAgIGp1c3RpZnlDb250ZW50OiBcInNwYWNlLWJldHdlZW5cIixcbiAgICAgICAgICAgIFwiJiAuYWNjb3JkaW9uLXRpdGxlXCI6IHtcbiAgICAgICAgICAgICAgICBzcGFuOiB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbkxlZnQ6IDE2XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcIiYgLmFjY29yZGlvbi1oZWFkZXItLXJpZ2h0XCI6IHtcbiAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgXCImIC5pY29uLWNvbnRhaW5lclwiOiB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogXCJmbGV4XCIsXG4gICAgICAgICAgICAgICAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcblxuICAgICAgICAgICAgICAgIFwiJiBzcGFuXCI6IHtcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogXCJmbGV4XCJcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFwiJiBzdmdcIjoge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiBcImN1cnJlbnRDb2xvclwiLFxuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTQsXG4gICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTRcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgXCImOjpiZWZvcmVcIjoge1xuICAgICAgICAgICAgcG9zaXRpb246IFwiYWJzb2x1dGVcIixcbiAgICAgICAgICAgIHRvcDogXCJjYWxjKDUwJSAtIDVweClcIixcbiAgICAgICAgICAgIGxlZnQ6IDAsXG4gICAgICAgICAgICBjb250ZW50OiAnXCJcIicsXG4gICAgICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgICAgIGhlaWdodDogMCxcblxuICAgICAgICAgICAgLy8gQXJyb3cgcmlnaHQuXG4gICAgICAgICAgICBib3JkZXJUb3A6IFwiNXB4IHNvbGlkIHRyYW5zcGFyZW50XCIsXG4gICAgICAgICAgICBib3JkZXJCb3R0b206IFwiNXB4IHNvbGlkIHRyYW5zcGFyZW50XCIsXG4gICAgICAgICAgICBib3JkZXJMZWZ0OiBcIjVweCBzb2xpZCBjdXJyZW50Q29sb3JcIlxuICAgICAgICB9LFxuXG4gICAgICAgIFwiJi5vcGVuXCI6IHtcbiAgICAgICAgICAgIFwiJjo6YmVmb3JlXCI6IHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IFwidHJhbnNsYXRlWSgzcHgpIHJvdGF0ZSg5MGRlZylcIlxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSlcbn07XG5cbmNvbnN0IEFjY29yZGlvbkl0ZW0gPSBzdHlsZWQuZGl2YFxuICAgIEBrZXlmc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+IHtcbiAgICBjb25zdCBbaXNPcGVuLCBzZXRPcGVuXSA9IHVzZVN0YXRlKGRlZmF1bHRWYWx1ZSk7XG4gICAgY29uc3QgdG9nZ2xlT3BlbiA9IHVzZUNhbGxiYWNrKCgpID0+IHNldE9wZW4oIWlzT3BlbiksIFtpc09wZW5dKTtcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc2VzLmFjY29yZGlvbldyYXBwZXJ9PlxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lcyhjbGFzc2VzLmFjY29yZGlvbkhlYWRlciwgeyBvcGVuOiBpc09wZW4gfSl9XG4gICAgICAgICAgICAgICAgb25DbGljaz17dG9nZ2xlT3Blbn1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImFjY29yZGlvbi1oZWFkZXItLWxlZnRcIj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9e1wiYWNjb3JkaW9uLXRpdGxlXCJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcInN1YnRpdGxlMVwifSB0YWc9e1wic3BhblwifT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgICA8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwiYWNjb3JkaW9uLWhlYWRlci0tcmlnaHRcIj5cbiAgICAgICAgICAgICAgICAgICAge2FjdGlvbiAmJiA8ZGl2IGNsYXNzTmFtZT17XCJhY3Rpb24tY29udGFpbmVyXCJ9PnthY3Rpb259PC9kaXY+fVxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17XCJpY29uLWNvbnRhaW5lclwifT57aWNvbn08L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPEFjY29yZGlvbkl0ZW0gY2xhc3NOYW1lPXtjbGFzc05hbWVzKHsgZXhwYW5kZWQ6IGlzT3BlbiB9KX0+XG4gICAgICAgICAgICAgICAgPEFjY29yZGlvbkNvbnRlbnQ+e2NoaWxkcmVufTwvQWNjb3JkaW9uQ29udGVudD5cbiAgICAgICAgICAgIDwvQWNjb3JkaW9uSXRlbT5cbiAgICAgICAgPC9kaXY+XG4gICAgKTtcbn07XG5jb25zdCBNZW1vaXplZEFjY29yZGlvbjogUmVhY3QuQ29tcG9uZW50VHlwZTxBY2NvcmRpb25Qcm9wcz4gPSBSZWFjdC5tZW1vKEFjY29yZGlvbik7XG5leHBvcnQgZGVmYXVsdCBNZW1vaXplZEFjY29yZGlvbjtcbiJdfQ== */",
|
|
92
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
93
|
+
});
|
|
94
|
+
var AccordionContent = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
95
|
+
target: "e15quhd0"
|
|
96
|
+
} : {
|
|
97
|
+
target: "e15quhd0",
|
|
98
|
+
label: "AccordionContent"
|
|
99
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
100
|
+
name: "1adqh5i",
|
|
101
|
+
styles: "padding-bottom:10"
|
|
102
|
+
} : {
|
|
103
|
+
name: "1adqh5i",
|
|
104
|
+
styles: "padding-bottom:10",
|
|
105
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjY29yZGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0dtQyIsImZpbGUiOiJBY2NvcmRpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYW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cbiAgICAgICAgY3Vyc29yOiBcInBvaW50ZXJcIixcbiAgICAgICAgcGFkZGluZzogXCIwcHhcIixcbiAgICAgICAgbWluSGVpZ2h0OiA0OCwgLy8gVG8gaGF2ZSBzYW1lIGhlaWdodCBhcyB0aGUgcmVtb3ZlIHZhbHVlIGFjdGlvbiBidXR0b24uXG4gICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICBhbGlnbkl0ZW1zOiBcImNlbnRlclwiLFxuICAgICAgICBqdXN0aWZ5Q29udGVudDogXCJzcGFjZS1iZXR3ZWVuXCIsXG5cbiAgICAgICAgXCImIC5hY2NvcmRpb24taGVhZGVyLS1sZWZ0XCI6IHtcbiAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcbiAgICAgICAgICAgIGp1c3RpZnlDb250ZW50OiBcInNwYWNlLWJldHdlZW5cIixcbiAgICAgICAgICAgIFwiJiAuYWNjb3JkaW9uLXRpdGxlXCI6IHtcbiAgICAgICAgICAgICAgICBzcGFuOiB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbkxlZnQ6IDE2XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcIiYgLmFjY29yZGlvbi1oZWFkZXItLXJpZ2h0XCI6IHtcbiAgICAgICAgICAgIGRpc3BsYXk6IFwiZmxleFwiLFxuICAgICAgICAgICAgXCImIC5pY29uLWNvbnRhaW5lclwiOiB7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogXCJmbGV4XCIsXG4gICAgICAgICAgICAgICAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcblxuICAgICAgICAgICAgICAgIFwiJiBzcGFuXCI6IHtcbiAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogXCJmbGV4XCJcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFwiJiBzdmdcIjoge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiBcImN1cnJlbnRDb2xvclwiLFxuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTQsXG4gICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTRcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgXCImOjpiZWZvcmVcIjoge1xuICAgICAgICAgICAgcG9zaXRpb246IFwiYWJzb2x1dGVcIixcbiAgICAgICAgICAgIHRvcDogXCJjYWxjKDUwJSAtIDVweClcIixcbiAgICAgICAgICAgIGxlZnQ6IDAsXG4gICAgICAgICAgICBjb250ZW50OiAnXCJcIicsXG4gICAgICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgICAgIGhlaWdodDogMCxcblxuICAgICAgICAgICAgLy8gQXJyb3cgcmlnaHQuXG4gICAgICAgICAgICBib3JkZXJUb3A6IFwiNXB4IHNvbGlkIHRyYW5zcGFyZW50XCIsXG4gICAgICAgICAgICBib3JkZXJCb3R0b206IFwiNXB4IHNvbGlkIHRyYW5zcGFyZW50XCIsXG4gICAgICAgICAgICBib3JkZXJMZWZ0OiBcIjVweCBzb2xpZCBjdXJyZW50Q29sb3JcIlxuICAgICAgICB9LFxuXG4gICAgICAgIFwiJi5vcGVuXCI6IHtcbiAgICAgICAgICAgIFwiJjo6YmVmb3JlXCI6IHtcbiAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IFwidHJhbnNsYXRlWSgzcHgpIHJvdGF0ZSg5MGRlZylcIlxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSlcbn07XG5cbmNvbnN0IEFjY29yZGlvbkl0ZW0gPSBzdHlsZWQuZGl2YFxuICAgIEBrZXlmcmFtZXMgc2hvdy1vdmVyZmxvdyB7XG4gICAgICAgIHRvIHtcbiAgICAgICAgICAgIG92ZXJmbG93OiB2aXNpYmxlO1xuICAgICAgICB9XG4gICAgfVxuICAgIG92ZXJmbG93OiBoaWRkZW47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IHNldE9wZW4oIWlzT3BlbiksIFtpc09wZW5dKTtcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc2VzLmFjY29yZGlvbldyYXBwZXJ9PlxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lcyhjbGFzc2VzLmFjY29yZGlvbkhlYWRlciwgeyBvcGVuOiBpc09wZW4gfSl9XG4gICAgICAgICAgICAgICAgb25DbGljaz17dG9nZ2xlT3Blbn1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImFjY29yZGlvbi1oZWFkZXItLWxlZnRcIj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9e1wiYWNjb3JkaW9uLXRpdGxlXCJ9PlxuICAgICAgICAgICAgICAgICAgICAgICAgPFR5cG9ncmFwaHkgdXNlPXtcInN1YnRpdGxlMVwifSB0YWc9e1wic3BhblwifT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgICAgICAgICAgICAgICA8L1R5cG9ncmFwaHk+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPVwiYWNjb3JkaW9uLWhlYWRlci0tcmlnaHRcIj5cbiAgICAgICAgICAgICAgICAgICAge2FjdGlvbiAmJiA8ZGl2IGNsYXNzTmFtZT17XCJhY3Rpb24tY29udGFpbmVyXCJ9PnthY3Rpb259PC9kaXY+fVxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17XCJpY29uLWNvbnRhaW5lclwifT57aWNvbn08L2Rpdj5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPEFjY29yZGlvbkl0ZW0gY2xhc3NOYW1lPXtjbGFzc05hbWVzKHsgZXhwYW5kZWQ6IGlzT3BlbiB9KX0+XG4gICAgICAgICAgICAgICAgPEFjY29yZGlvbkNvbnRlbnQ+e2NoaWxkcmVufTwvQWNjb3JkaW9uQ29udGVudD5cbiAgICAgICAgICAgIDwvQWNjb3JkaW9uSXRlbT5cbiAgICAgICAgPC9kaXY+XG4gICAgKTtcbn07XG5jb25zdCBNZW1vaXplZEFjY29yZGlvbjogUmVhY3QuQ29tcG9uZW50VHlwZTxBY2NvcmRpb25Qcm9wcz4gPSBSZWFjdC5tZW1vKEFjY29yZGlvbik7XG5leHBvcnQgZGVmYXVsdCBNZW1vaXplZEFjY29yZGlvbjtcbiJdfQ== */",
|
|
106
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
107
|
+
});
|
|
91
108
|
var Accordion = function Accordion(_ref) {
|
|
92
109
|
var title = _ref.title,
|
|
93
110
|
children = _ref.children,
|
|
@@ -122,13 +139,11 @@ var Accordion = function Accordion(_ref) {
|
|
|
122
139
|
className: "action-container"
|
|
123
140
|
}, action), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
141
|
className: "icon-container"
|
|
125
|
-
}, icon))), /*#__PURE__*/_react.default.createElement(
|
|
126
|
-
className: (0, _classnames.default)(
|
|
127
|
-
|
|
142
|
+
}, icon))), /*#__PURE__*/_react.default.createElement(AccordionItem, {
|
|
143
|
+
className: (0, _classnames.default)({
|
|
144
|
+
expanded: isOpen
|
|
128
145
|
})
|
|
129
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
130
|
-
className: "accordion-content"
|
|
131
|
-
}, children)));
|
|
146
|
+
}, /*#__PURE__*/_react.default.createElement(AccordionContent, null, children)));
|
|
132
147
|
};
|
|
133
148
|
var MemoizedAccordion = /*#__PURE__*/_react.default.memo(Accordion);
|
|
134
149
|
var _default = exports.default = MemoizedAccordion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_emotion","_classnames","_interopRequireDefault","_Typography","classes","accordionWrapper","css","position","width","borderBottom","accordionHeader","color","cursor","padding","minHeight","display","alignItems","justifyContent","span","marginLeft","fill","height","top","left","content","borderTop","borderLeft","transform","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_emotion","_classnames","_interopRequireDefault","_Typography","_EMOTION_STRINGIFIED_CSS_ERROR__","classes","accordionWrapper","css","position","width","borderBottom","accordionHeader","color","cursor","padding","minHeight","display","alignItems","justifyContent","span","marginLeft","fill","height","top","left","content","borderTop","borderLeft","transform","AccordionItem","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","AccordionContent","Accordion","_ref","title","children","action","icon","_ref$defaultValue","defaultValue","_useState","useState","_useState2","_slicedToArray2","isOpen","setOpen","toggleOpen","useCallback","createElement","className","classNames","open","onClick","Typography","use","tag","expanded","MemoizedAccordion","React","memo","_default","exports"],"sources":["Accordion.tsx"],"sourcesContent":["import React, { ReactElement, useCallback, useState } from \"react\";\nimport { css } from \"emotion\";\nimport styled from \"@emotion/styled\";\nimport classNames from \"classnames\";\nimport { Typography } from \"@webiny/ui/Typography\";\n\nconst classes = {\n accordionWrapper: css({\n /**\n * We're using position: \"relative\" here for \"Popping Out of Hidden Overflow\" https://css-tricks.com/popping-hidden-overflow/\n * so that, we can use absolute positioned element inside without \"overflow: hidden\" being a problem\n */\n position: \"relative\",\n width: \"100%\",\n borderBottom: `1px solid var(--mdc-theme-on-secondary)`\n }),\n accordionHeader: css({\n position: \"relative\",\n color: \"var(--mdc-theme-text-secondary-on-background)\",\n cursor: \"pointer\",\n padding: \"0px\",\n minHeight: 48, // To have same height as the remove value action button.\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n\n \"& .accordion-header--left\": {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n \"& .accordion-title\": {\n span: {\n marginLeft: 16\n }\n }\n },\n \"& .accordion-header--right\": {\n display: \"flex\",\n \"& .icon-container\": {\n display: \"flex\",\n alignItems: \"center\",\n\n \"& span\": {\n display: \"flex\"\n },\n \"& svg\": {\n fill: \"currentColor\",\n width: 14,\n height: 14\n }\n }\n },\n\n \"&::before\": {\n position: \"absolute\",\n top: \"calc(50% - 5px)\",\n left: 0,\n content: '\"\"',\n width: 0,\n height: 0,\n\n // Arrow right.\n borderTop: \"5px solid transparent\",\n borderBottom: \"5px solid transparent\",\n borderLeft: \"5px solid currentColor\"\n },\n\n \"&.open\": {\n \"&::before\": {\n transform: \"translateY(3px) rotate(90deg)\"\n }\n }\n })\n};\n\nconst AccordionItem = styled.div`\n @keyframes show-overflow {\n to {\n overflow: visible;\n }\n }\n overflow: hidden;\n transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);\n height: auto;\n max-height: 0;\n\n &.expanded {\n max-height: 9999px;\n transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);\n animation-name: show-overflow;\n animation-fill-mode: forwards;\n animation-duration: 20ms;\n animation-delay: 0.3s;\n }\n`;\n\nconst AccordionContent = styled.div`\n padding-bottom: 10;\n`;\n\ninterface AccordionProps {\n title: string;\n action?: ReactElement | null;\n icon?: ReactElement;\n defaultValue?: boolean;\n children: React.ReactNode;\n}\n\nconst Accordion = ({ title, children, action, icon, defaultValue = false }: AccordionProps) => {\n const [isOpen, setOpen] = useState(defaultValue);\n const toggleOpen = useCallback(() => setOpen(!isOpen), [isOpen]);\n\n return (\n <div className={classes.accordionWrapper}>\n <div\n className={classNames(classes.accordionHeader, { open: isOpen })}\n onClick={toggleOpen}\n >\n <div className=\"accordion-header--left\">\n <div className={\"accordion-title\"}>\n <Typography use={\"subtitle1\"} tag={\"span\"}>\n {title}\n </Typography>\n </div>\n </div>\n <div className=\"accordion-header--right\">\n {action && <div className={\"action-container\"}>{action}</div>}\n <div className={\"icon-container\"}>{icon}</div>\n </div>\n </div>\n <AccordionItem className={classNames({ expanded: isOpen })}>\n <AccordionContent>{children}</AccordionContent>\n </AccordionItem>\n </div>\n );\n};\nconst MemoizedAccordion: React.ComponentType<AccordionProps> = React.memo(Accordion);\nexport default MemoizedAccordion;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAmD,SAAAK,iCAAA;AAEnD,IAAMC,OAAO,GAAG;EACZC,gBAAgB,EAAE,IAAAC,YAAG,EAAC;IAClB;AACR;AACA;AACA;IACQC,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,YAAY;EAChB,CAAC,CAAC;EACFC,eAAe,EAAE,IAAAJ,YAAG,EAAC;IACjBC,QAAQ,EAAE,UAAU;IACpBI,KAAK,EAAE,+CAA+C;IACtDC,MAAM,EAAE,SAAS;IACjBC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAE,EAAE;IAAE;IACfC,OAAO,EAAE,MAAM;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAE/B,2BAA2B,EAAE;MACzBF,OAAO,EAAE,MAAM;MACfC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,eAAe;MAC/B,oBAAoB,EAAE;QAClBC,IAAI,EAAE;UACFC,UAAU,EAAE;QAChB;MACJ;IACJ,CAAC;IACD,4BAA4B,EAAE;MAC1BJ,OAAO,EAAE,MAAM;MACf,mBAAmB,EAAE;QACjBA,OAAO,EAAE,MAAM;QACfC,UAAU,EAAE,QAAQ;QAEpB,QAAQ,EAAE;UACND,OAAO,EAAE;QACb,CAAC;QACD,OAAO,EAAE;UACLK,IAAI,EAAE,cAAc;UACpBZ,KAAK,EAAE,EAAE;UACTa,MAAM,EAAE;QACZ;MACJ;IACJ,CAAC;IAED,WAAW,EAAE;MACTd,QAAQ,EAAE,UAAU;MACpBe,GAAG,EAAE,iBAAiB;MACtBC,IAAI,EAAE,CAAC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B,gBAAgB,QAAEI,QAA2B,CACnC,CACd,CAAC;AAEd,CAAC;AACD,IAAMsB,iBAAsD,gBAAGC,cAAK,CAACC,IAAI,CAAC3B,SAAS,CAAC;AAAC,IAAA4B,QAAA,GAAAC,OAAA,CAAAxC,OAAA,GACtEoC,iBAAiB","ignoreList":[]}
|
|
@@ -18,7 +18,7 @@ export declare class FieldSettings {
|
|
|
18
18
|
label: string;
|
|
19
19
|
helpText?: string | undefined;
|
|
20
20
|
placeholderText?: string | undefined;
|
|
21
|
-
validation?: (import("@webiny/
|
|
21
|
+
validation?: (import("@webiny/validation/types").Validator | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator)[] | undefined;
|
|
22
22
|
listValidation?: import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator[] | undefined;
|
|
23
23
|
multipleValues?: boolean | undefined;
|
|
24
24
|
predefinedValues?: import("@webiny/app-headless-cms-common/types").CmsEditorFieldPredefinedValues | undefined;
|
package/admin/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const _default: () => (import("@webiny/app-headless-cms-common/types").
|
|
2
|
+
declare const _default: () => (import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
|
|
3
3
|
id: string;
|
|
4
4
|
type: string;
|
|
5
5
|
fieldId: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: () => (import("@webiny/app-headless-cms-common/types").C
|
|
|
7
7
|
label: string;
|
|
8
8
|
helpText?: string | undefined;
|
|
9
9
|
placeholderText?: string | undefined;
|
|
10
|
-
validation?: (import("@webiny/
|
|
10
|
+
validation?: (import("@webiny/validation/types").Validator | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator)[] | undefined;
|
|
11
11
|
listValidation?: import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator[] | undefined;
|
|
12
12
|
multipleValues?: boolean | undefined;
|
|
13
13
|
predefinedValues?: import("@webiny/app-headless-cms-common/types").CmsEditorFieldPredefinedValues | undefined;
|
|
@@ -17,7 +17,7 @@ declare const _default: () => (import("@webiny/app-headless-cms-common/types").C
|
|
|
17
17
|
settings?: Record<string, any> | undefined;
|
|
18
18
|
} | ((props: import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererProps) => import("react").ReactNode);
|
|
19
19
|
tags?: string[] | undefined;
|
|
20
|
-
}>[] | import("@webiny/app
|
|
20
|
+
}>[] | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app").ApolloCacheObject> | {
|
|
21
21
|
name: string;
|
|
22
22
|
type: string;
|
|
23
23
|
render(): import("react").JSX.Element;
|
package/allPlugins.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const _default: (import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldTypePlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidatorPlugin<any> | (import("@webiny/app-headless-cms-common/types").
|
|
2
|
+
declare const _default: (import("@webiny/app-headless-cms-common/types").CmsModelFieldRegexValidatorExpressionPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldTypePlugin | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidatorPlugin<any> | (import("@webiny/app-headless-cms-common/types").CmsEditorFormSettingsPlugin | import("@webiny/app-headless-cms-common/types").CmsIconsPlugin | import("@webiny/app-admin/types").AdminInstallationPlugin | import("@webiny/app-admin/types").AdminAppPermissionRendererPlugin | import("@webiny/app/types").RoutePlugin[] | import("@webiny/app-headless-cms-common/types").CmsFieldValueTransformer<{
|
|
3
3
|
id: string;
|
|
4
4
|
type: string;
|
|
5
5
|
fieldId: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: (import("@webiny/app-headless-cms-common/types").CmsMode
|
|
|
7
7
|
label: string;
|
|
8
8
|
helpText?: string | undefined;
|
|
9
9
|
placeholderText?: string | undefined;
|
|
10
|
-
validation?: (import("@webiny/
|
|
10
|
+
validation?: (import("@webiny/validation/types").Validator | import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator)[] | undefined;
|
|
11
11
|
listValidation?: import("@webiny/app-headless-cms-common/types").CmsModelFieldValidator[] | undefined;
|
|
12
12
|
multipleValues?: boolean | undefined;
|
|
13
13
|
predefinedValues?: import("@webiny/app-headless-cms-common/types").CmsEditorFieldPredefinedValues | undefined;
|
|
@@ -17,9 +17,9 @@ declare const _default: (import("@webiny/app-headless-cms-common/types").CmsMode
|
|
|
17
17
|
settings?: Record<string, any> | undefined;
|
|
18
18
|
} | ((props: import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererProps) => import("react").ReactNode);
|
|
19
19
|
tags?: string[] | undefined;
|
|
20
|
-
}>[] | import("@webiny/app
|
|
20
|
+
}>[] | import("@webiny/app").ApolloCacheObjectIdPlugin<import("@webiny/app").ApolloCacheObject> | {
|
|
21
21
|
name: string;
|
|
22
22
|
type: string;
|
|
23
23
|
render(): import("react").JSX.Element;
|
|
24
|
-
}[])[] | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin[] | import("@webiny/app-
|
|
24
|
+
}[])[] | import("@webiny/app-headless-cms-common/types").CmsModelFieldRendererPlugin[] | import("@webiny/app-plugin-admin-welcome-screen/types").AdminWelcomeScreenWidgetPlugin)[];
|
|
25
25
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-headless-cms",
|
|
3
|
-
"version": "5.41.
|
|
3
|
+
"version": "5.41.5-beta.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,30 +28,30 @@
|
|
|
28
28
|
"@material-design-icons/svg": "0.14.13",
|
|
29
29
|
"@svgr/webpack": "6.5.1",
|
|
30
30
|
"@types/react": "18.2.79",
|
|
31
|
-
"@webiny/app": "5.41.
|
|
32
|
-
"@webiny/app-aco": "5.41.
|
|
33
|
-
"@webiny/app-admin": "5.41.
|
|
34
|
-
"@webiny/app-graphql-playground": "5.41.
|
|
35
|
-
"@webiny/app-headless-cms-common": "5.41.
|
|
36
|
-
"@webiny/app-i18n": "5.41.
|
|
37
|
-
"@webiny/app-plugin-admin-welcome-screen": "5.41.
|
|
38
|
-
"@webiny/app-security": "5.41.
|
|
39
|
-
"@webiny/app-tenancy": "5.41.
|
|
40
|
-
"@webiny/app-trash-bin": "5.41.
|
|
41
|
-
"@webiny/error": "5.41.
|
|
42
|
-
"@webiny/feature-flags": "5.41.
|
|
43
|
-
"@webiny/form": "5.41.
|
|
44
|
-
"@webiny/lexical-editor": "5.41.
|
|
45
|
-
"@webiny/lexical-nodes": "5.41.
|
|
46
|
-
"@webiny/lexical-theme": "5.41.
|
|
47
|
-
"@webiny/plugins": "5.41.
|
|
48
|
-
"@webiny/react-composition": "5.41.
|
|
49
|
-
"@webiny/react-properties": "5.41.
|
|
50
|
-
"@webiny/react-router": "5.41.
|
|
51
|
-
"@webiny/theme": "5.41.
|
|
52
|
-
"@webiny/ui": "5.41.
|
|
53
|
-
"@webiny/utils": "5.41.
|
|
54
|
-
"@webiny/validation": "5.41.
|
|
31
|
+
"@webiny/app": "5.41.5-beta.1",
|
|
32
|
+
"@webiny/app-aco": "5.41.5-beta.1",
|
|
33
|
+
"@webiny/app-admin": "5.41.5-beta.1",
|
|
34
|
+
"@webiny/app-graphql-playground": "5.41.5-beta.1",
|
|
35
|
+
"@webiny/app-headless-cms-common": "5.41.5-beta.1",
|
|
36
|
+
"@webiny/app-i18n": "5.41.5-beta.1",
|
|
37
|
+
"@webiny/app-plugin-admin-welcome-screen": "5.41.5-beta.1",
|
|
38
|
+
"@webiny/app-security": "5.41.5-beta.1",
|
|
39
|
+
"@webiny/app-tenancy": "5.41.5-beta.1",
|
|
40
|
+
"@webiny/app-trash-bin": "5.41.5-beta.1",
|
|
41
|
+
"@webiny/error": "5.41.5-beta.1",
|
|
42
|
+
"@webiny/feature-flags": "5.41.5-beta.1",
|
|
43
|
+
"@webiny/form": "5.41.5-beta.1",
|
|
44
|
+
"@webiny/lexical-editor": "5.41.5-beta.1",
|
|
45
|
+
"@webiny/lexical-nodes": "5.41.5-beta.1",
|
|
46
|
+
"@webiny/lexical-theme": "5.41.5-beta.1",
|
|
47
|
+
"@webiny/plugins": "5.41.5-beta.1",
|
|
48
|
+
"@webiny/react-composition": "5.41.5-beta.1",
|
|
49
|
+
"@webiny/react-properties": "5.41.5-beta.1",
|
|
50
|
+
"@webiny/react-router": "5.41.5-beta.1",
|
|
51
|
+
"@webiny/theme": "5.41.5-beta.1",
|
|
52
|
+
"@webiny/ui": "5.41.5-beta.1",
|
|
53
|
+
"@webiny/utils": "5.41.5-beta.1",
|
|
54
|
+
"@webiny/validation": "5.41.5-beta.1",
|
|
55
55
|
"apollo-cache": "1.3.5",
|
|
56
56
|
"apollo-client": "2.6.10",
|
|
57
57
|
"apollo-link": "1.2.14",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@babel/preset-react": "7.24.1",
|
|
86
86
|
"@babel/preset-typescript": "7.24.1",
|
|
87
87
|
"@emotion/babel-plugin": "11.11.0",
|
|
88
|
-
"@webiny/cli": "5.41.
|
|
89
|
-
"@webiny/project-utils": "5.41.
|
|
88
|
+
"@webiny/cli": "5.41.5-beta.1",
|
|
89
|
+
"@webiny/project-utils": "5.41.5-beta.1",
|
|
90
90
|
"babel-plugin-module-resolver": "5.0.0",
|
|
91
91
|
"rimraf": "5.0.5",
|
|
92
92
|
"ttypescript": "1.5.15",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "922a47688dd519ddc10b598d3ae79cb3186e3173"
|
|
119
119
|
}
|