@webiny/app-website-builder-workflows 0.0.0-unstable.0d717d18dd → 0.0.0-unstable.5387e5f7c8
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/index.d.ts +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const WebsiteBuilderWorkflows: () => React.JSX.Element;
|
|
2
|
+
export declare const WebsiteBuilderWorkflows: () => React.JSX.Element | null;
|
package/index.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import react from "react";
|
|
2
|
-
import { RegisterFeature,
|
|
2
|
+
import { RegisterFeature, useFeatureFlags } from "@webiny/app-admin";
|
|
3
3
|
import { WebsiteBuilderWorkflowsMenu } from "./Routes/index.js";
|
|
4
4
|
import { ListOpenInNewWindow, PageEditorConfig, PagesList } from "./Components/index.js";
|
|
5
5
|
import { PageListWorkflowsFeature } from "./presentation/page/PageList/feature.js";
|
|
6
6
|
import { PageGetWorkflowsFeature } from "./presentation/page/PageGet/feature.js";
|
|
7
|
-
const WebsiteBuilderWorkflows = ()
|
|
7
|
+
const WebsiteBuilderWorkflows = ()=>{
|
|
8
|
+
const featureFlags = useFeatureFlags();
|
|
9
|
+
if (!featureFlags.isEnabled("advancedPublishingWorkflow")) return null;
|
|
10
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(RegisterFeature, {
|
|
8
11
|
feature: PageListWorkflowsFeature
|
|
9
12
|
}), /*#__PURE__*/ react.createElement(RegisterFeature, {
|
|
10
13
|
feature: PageGetWorkflowsFeature
|
|
11
14
|
}), /*#__PURE__*/ react.createElement(WebsiteBuilderWorkflowsMenu, null), /*#__PURE__*/ react.createElement(PageEditorConfig, null), /*#__PURE__*/ react.createElement(PagesList, null), /*#__PURE__*/ react.createElement(ListOpenInNewWindow, null));
|
|
15
|
+
};
|
|
12
16
|
export { WebsiteBuilderWorkflows };
|
|
13
17
|
|
|
14
18
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { RegisterFeature,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import React from \"react\";\nimport { RegisterFeature, useFeatureFlags } from \"@webiny/app-admin\";\nimport { WebsiteBuilderWorkflowsMenu } from \"~/Routes/index.js\";\nimport { ListOpenInNewWindow, PageEditorConfig, PagesList } from \"~/Components/index.js\";\nimport { PageListWorkflowsFeature } from \"~/presentation/page/PageList/feature.js\";\nimport { PageGetWorkflowsFeature } from \"~/presentation/page/PageGet/feature.js\";\n\nexport const WebsiteBuilderWorkflows = () => {\n const featureFlags = useFeatureFlags();\n\n if (!featureFlags.isEnabled(\"advancedPublishingWorkflow\")) {\n return null;\n }\n\n return (\n <>\n <RegisterFeature feature={PageListWorkflowsFeature} />\n <RegisterFeature feature={PageGetWorkflowsFeature} />\n <WebsiteBuilderWorkflowsMenu />\n <PageEditorConfig />\n <PagesList />\n <ListOpenInNewWindow />\n </>\n );\n};\n"],"names":["WebsiteBuilderWorkflows","featureFlags","useFeatureFlags","RegisterFeature","PageListWorkflowsFeature","PageGetWorkflowsFeature","WebsiteBuilderWorkflowsMenu","PageEditorConfig","PagesList","ListOpenInNewWindow"],"mappings":";;;;;;AAOO,MAAMA,0BAA0B;IACnC,MAAMC,eAAeC;IAErB,IAAI,CAACD,aAAa,SAAS,CAAC,+BACxB,OAAO;IAGX,OAAO,WAAP,GACI,wDACI,oBAACE,iBAAeA;QAAC,SAASC;sBAC1B,oBAACD,iBAAeA;QAAC,SAASE;sBAC1B,oBAACC,6BAA2BA,OAAAA,WAAAA,GAC5B,oBAACC,kBAAgBA,OAAAA,WAAAA,GACjB,oBAACC,WAASA,OAAAA,WAAAA,GACV,oBAACC,qBAAmBA;AAGhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-website-builder-workflows",
|
|
3
|
-
"version": "0.0.0-unstable.
|
|
3
|
+
"version": "0.0.0-unstable.5387e5f7c8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
"author": "Webiny Ltd",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@webiny/admin-ui": "0.0.0-unstable.
|
|
17
|
-
"@webiny/app": "0.0.0-unstable.
|
|
18
|
-
"@webiny/app-admin": "0.0.0-unstable.
|
|
19
|
-
"@webiny/app-website-builder": "0.0.0-unstable.
|
|
20
|
-
"@webiny/app-workflows": "0.0.0-unstable.
|
|
21
|
-
"@webiny/feature": "0.0.0-unstable.
|
|
22
|
-
"@webiny/icons": "0.0.0-unstable.
|
|
23
|
-
"mobx-react-lite": "5.0.
|
|
16
|
+
"@webiny/admin-ui": "0.0.0-unstable.5387e5f7c8",
|
|
17
|
+
"@webiny/app": "0.0.0-unstable.5387e5f7c8",
|
|
18
|
+
"@webiny/app-admin": "0.0.0-unstable.5387e5f7c8",
|
|
19
|
+
"@webiny/app-website-builder": "0.0.0-unstable.5387e5f7c8",
|
|
20
|
+
"@webiny/app-workflows": "0.0.0-unstable.5387e5f7c8",
|
|
21
|
+
"@webiny/feature": "0.0.0-unstable.5387e5f7c8",
|
|
22
|
+
"@webiny/icons": "0.0.0-unstable.5387e5f7c8",
|
|
23
|
+
"mobx-react-lite": "5.0.3",
|
|
24
24
|
"react": "18.3.1",
|
|
25
25
|
"react-dom": "18.3.1",
|
|
26
26
|
"react-helmet": "6.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/react": "18.3.31",
|
|
30
|
-
"@webiny/build-tools": "0.0.0-unstable.
|
|
30
|
+
"@webiny/build-tools": "0.0.0-unstable.5387e5f7c8",
|
|
31
31
|
"rimraf": "6.1.3",
|
|
32
32
|
"typescript": "7.0.2"
|
|
33
33
|
},
|