@webiny/api-website-builder 6.4.0-beta.0 → 6.4.0-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/domain/page/page.model.d.ts +8 -1
- package/domain/page/page.model.js +24 -33
- package/domain/page/page.model.js.map +1 -1
- package/domain/redirect/redirect.model.d.ts +8 -1
- package/domain/redirect/redirect.model.js +23 -32
- package/domain/redirect/redirect.model.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +15 -7
- package/index.js.map +1 -1
- package/package.json +18 -18
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { ModelFactory } from "@webiny/api-headless-cms/features/modelBuilder/index.js";
|
|
1
2
|
export declare const PAGE_MODEL_ID: string;
|
|
2
|
-
|
|
3
|
+
declare class PageModelFactory implements ModelFactory.Interface {
|
|
4
|
+
execute(builder: ModelFactory.Builder): Promise<import("@webiny/api-headless-cms/features/modelBuilder/index.js").PrivateModelBuilder[]>;
|
|
5
|
+
}
|
|
6
|
+
export declare const PageModelPlugin: typeof PageModelFactory & {
|
|
7
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-headless-cms/features/modelBuilder/abstractions").IModelFactory>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModelFactory } from "@webiny/api-headless-cms/features/modelBuilder/index.js";
|
|
2
2
|
const PAGE_MODEL_ID = process.env.WEBINY_API_LEGACY_MODELS ? "wbPage" : "wbyWbPage";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}),
|
|
27
|
-
createModelField({
|
|
28
|
-
label: "Extensions",
|
|
29
|
-
fieldId: "extensions",
|
|
30
|
-
type: "searchable-json"
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
});
|
|
34
|
-
export { PAGE_MODEL_ID, createPageModel };
|
|
3
|
+
class PageModelFactory {
|
|
4
|
+
async execute(builder) {
|
|
5
|
+
const model = builder.private({
|
|
6
|
+
modelId: PAGE_MODEL_ID,
|
|
7
|
+
name: "Website Builder - Page"
|
|
8
|
+
});
|
|
9
|
+
model.fields((fields)=>({
|
|
10
|
+
properties: fields.searchableJson().label("Properties"),
|
|
11
|
+
metadata: fields.searchableJson().label("Metadata"),
|
|
12
|
+
bindings: fields.json().label("Bindings"),
|
|
13
|
+
elements: fields.json().label("Elements"),
|
|
14
|
+
extensions: fields.searchableJson().label("Extensions")
|
|
15
|
+
}));
|
|
16
|
+
return [
|
|
17
|
+
model
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const PageModelPlugin = ModelFactory.createImplementation({
|
|
22
|
+
implementation: PageModelFactory,
|
|
23
|
+
dependencies: []
|
|
24
|
+
});
|
|
25
|
+
export { PAGE_MODEL_ID, PageModelPlugin };
|
|
35
26
|
|
|
36
27
|
//# sourceMappingURL=page.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain/page/page.model.js","sources":["../../../src/domain/page/page.model.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"domain/page/page.model.js","sources":["../../../src/domain/page/page.model.ts"],"sourcesContent":["import { ModelFactory } from \"@webiny/api-headless-cms/features/modelBuilder/index.js\";\n\nexport const PAGE_MODEL_ID = process.env.WEBINY_API_LEGACY_MODELS ? \"wbPage\" : \"wbyWbPage\";\n\nclass PageModelFactory implements ModelFactory.Interface {\n async execute(builder: ModelFactory.Builder) {\n const model = builder.private({\n modelId: PAGE_MODEL_ID,\n name: \"Website Builder - Page\"\n });\n\n model.fields(fields => ({\n properties: fields.searchableJson().label(\"Properties\"),\n metadata: fields.searchableJson().label(\"Metadata\"),\n bindings: fields.json().label(\"Bindings\"),\n elements: fields.json().label(\"Elements\"),\n extensions: fields.searchableJson().label(\"Extensions\")\n }));\n\n return [model];\n }\n}\n\nexport const PageModelPlugin = ModelFactory.createImplementation({\n implementation: PageModelFactory,\n dependencies: []\n});\n"],"names":["PAGE_MODEL_ID","process","PageModelFactory","builder","model","fields","PageModelPlugin","ModelFactory"],"mappings":";AAEO,MAAMA,gBAAgBC,QAAQ,GAAG,CAAC,wBAAwB,GAAG,WAAW;AAE/E,MAAMC;IACF,MAAM,QAAQC,OAA6B,EAAE;QACzC,MAAMC,QAAQD,QAAQ,OAAO,CAAC;YAC1B,SAASH;YACT,MAAM;QACV;QAEAI,MAAM,MAAM,CAACC,CAAAA,SAAW;gBACpB,YAAYA,OAAO,cAAc,GAAG,KAAK,CAAC;gBAC1C,UAAUA,OAAO,cAAc,GAAG,KAAK,CAAC;gBACxC,UAAUA,OAAO,IAAI,GAAG,KAAK,CAAC;gBAC9B,UAAUA,OAAO,IAAI,GAAG,KAAK,CAAC;gBAC9B,YAAYA,OAAO,cAAc,GAAG,KAAK,CAAC;YAC9C;QAEA,OAAO;YAACD;SAAM;IAClB;AACJ;AAEO,MAAME,kBAAkBC,aAAa,oBAAoB,CAAC;IAC7D,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { ModelFactory } from "@webiny/api-headless-cms/features/modelBuilder/index.js";
|
|
1
2
|
export declare const REDIRECT_MODEL_ID: string;
|
|
2
|
-
|
|
3
|
+
declare class RedirectModelFactory implements ModelFactory.Interface {
|
|
4
|
+
execute(builder: ModelFactory.Builder): Promise<import("@webiny/api-headless-cms/features/modelBuilder/index.js").PrivateModelBuilder[]>;
|
|
5
|
+
}
|
|
6
|
+
export declare const RedirectModelPlugin: typeof RedirectModelFactory & {
|
|
7
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-headless-cms/features/modelBuilder/abstractions").IModelFactory>;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -1,35 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModelFactory } from "@webiny/api-headless-cms/features/modelBuilder/index.js";
|
|
2
2
|
const REDIRECT_MODEL_ID = process.env.WEBINY_API_LEGACY_MODELS ? "wbRedirect" : "wbyWbRedirect";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
createModelField({
|
|
27
|
-
fieldId: "isEnabled",
|
|
28
|
-
label: "Is enabled?",
|
|
29
|
-
type: "boolean"
|
|
30
|
-
})
|
|
31
|
-
]
|
|
32
|
-
});
|
|
33
|
-
export { REDIRECT_MODEL_ID, createRedirectModel };
|
|
3
|
+
class RedirectModelFactory {
|
|
4
|
+
async execute(builder) {
|
|
5
|
+
const model = builder.private({
|
|
6
|
+
modelId: REDIRECT_MODEL_ID,
|
|
7
|
+
name: "Website Builder - Redirect"
|
|
8
|
+
});
|
|
9
|
+
model.fields((fields)=>({
|
|
10
|
+
redirectFrom: fields.text().label("Redirect From"),
|
|
11
|
+
redirectTo: fields.text().label("Redirect To"),
|
|
12
|
+
redirectType: fields.text().label("Redirect Type"),
|
|
13
|
+
isEnabled: fields.boolean().label("Is enabled?")
|
|
14
|
+
}));
|
|
15
|
+
return [
|
|
16
|
+
model
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const RedirectModelPlugin = ModelFactory.createImplementation({
|
|
21
|
+
implementation: RedirectModelFactory,
|
|
22
|
+
dependencies: []
|
|
23
|
+
});
|
|
24
|
+
export { REDIRECT_MODEL_ID, RedirectModelPlugin };
|
|
34
25
|
|
|
35
26
|
//# sourceMappingURL=redirect.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain/redirect/redirect.model.js","sources":["../../../src/domain/redirect/redirect.model.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"domain/redirect/redirect.model.js","sources":["../../../src/domain/redirect/redirect.model.ts"],"sourcesContent":["import { ModelFactory } from \"@webiny/api-headless-cms/features/modelBuilder/index.js\";\n\nexport const REDIRECT_MODEL_ID = process.env.WEBINY_API_LEGACY_MODELS\n ? \"wbRedirect\"\n : \"wbyWbRedirect\";\n\nclass RedirectModelFactory implements ModelFactory.Interface {\n async execute(builder: ModelFactory.Builder) {\n const model = builder.private({\n modelId: REDIRECT_MODEL_ID,\n name: \"Website Builder - Redirect\"\n });\n\n model.fields(fields => ({\n redirectFrom: fields.text().label(\"Redirect From\"),\n redirectTo: fields.text().label(\"Redirect To\"),\n redirectType: fields.text().label(\"Redirect Type\"),\n isEnabled: fields.boolean().label(\"Is enabled?\")\n }));\n\n return [model];\n }\n}\n\nexport const RedirectModelPlugin = ModelFactory.createImplementation({\n implementation: RedirectModelFactory,\n dependencies: []\n});\n"],"names":["REDIRECT_MODEL_ID","process","RedirectModelFactory","builder","model","fields","RedirectModelPlugin","ModelFactory"],"mappings":";AAEO,MAAMA,oBAAoBC,QAAQ,GAAG,CAAC,wBAAwB,GAC/D,eACA;AAEN,MAAMC;IACF,MAAM,QAAQC,OAA6B,EAAE;QACzC,MAAMC,QAAQD,QAAQ,OAAO,CAAC;YAC1B,SAASH;YACT,MAAM;QACV;QAEAI,MAAM,MAAM,CAACC,CAAAA,SAAW;gBACpB,cAAcA,OAAO,IAAI,GAAG,KAAK,CAAC;gBAClC,YAAYA,OAAO,IAAI,GAAG,KAAK,CAAC;gBAChC,cAAcA,OAAO,IAAI,GAAG,KAAK,CAAC;gBAClC,WAAWA,OAAO,OAAO,GAAG,KAAK,CAAC;YACtC;QAEA,OAAO;YAACD;SAAM;IAClB;AACJ;AAEO,MAAME,sBAAsBC,aAAa,oBAAoB,CAAC;IACjE,gBAAgBL;IAChB,cAAc,EAAE;AACpB"}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createWebsiteBuilder: () => (import("@webiny/handler-graphql/index.js").GraphQLSchemaPlugin<import("@webiny/api-core/types/core.js").ApiCoreContext>[] | import("@webiny/handler
|
|
1
|
+
export declare const createWebsiteBuilder: () => (import("@webiny/handler-graphql/index.js").GraphQLSchemaPlugin<import("@webiny/api-core/types/core.js").ApiCoreContext>[] | import("@webiny/handler").RoutePlugin<import("@webiny/api-core/types/core.js").ApiCoreContext> | import("@webiny/api").ContextPlugin<import("@webiny/api/types.js").Context> | import("@webiny/handler").RegisterExtensionPlugin<import("@webiny/handler/types.js").Context>)[];
|
package/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createContextPlugin } from "@webiny/api";
|
|
2
|
+
import { createRegisterExtensionPlugin } from "@webiny/handler";
|
|
2
3
|
import { GetModelUseCase } from "@webiny/api-headless-cms/features/contentModel/GetModel/index.js";
|
|
3
4
|
import { createGraphQL } from "./graphql/createGraphQL.js";
|
|
4
5
|
import { createRedirectsRoute } from "./rest/getRedirects.js";
|
|
@@ -23,8 +24,8 @@ import { UnpublishPageFeature } from "./features/pages/UnpublishPage/feature.js"
|
|
|
23
24
|
import { DuplicatePageFeature } from "./features/pages/DuplicatePage/feature.js";
|
|
24
25
|
import { TranslatePageFeature } from "./features/pages/TranslatePage/feature.js";
|
|
25
26
|
import { MovePageFeature } from "./features/pages/MovePage/feature.js";
|
|
26
|
-
import { PAGE_MODEL_ID,
|
|
27
|
-
import { REDIRECT_MODEL_ID,
|
|
27
|
+
import { PAGE_MODEL_ID, PageModelPlugin } from "./domain/page/page.model.js";
|
|
28
|
+
import { REDIRECT_MODEL_ID, RedirectModelPlugin } from "./domain/redirect/redirect.model.js";
|
|
28
29
|
import { IdentityContext } from "@webiny/api-core/features/security/IdentityContext/index.js";
|
|
29
30
|
import { PageModel } from "./domain/page/abstractions.js";
|
|
30
31
|
import { RedirectModel } from "./domain/redirect/abstractions.js";
|
|
@@ -38,11 +39,13 @@ import { RestorePageFeature } from "./features/pages/RestorePage/feature.js";
|
|
|
38
39
|
import { GetDeletedPageByIdFeature } from "./features/pages/GetDeletedPageById/feature.js";
|
|
39
40
|
import { GetPageLanguagePathsFeature } from "./features/pages/GetPageLanguagePaths/feature.js";
|
|
40
41
|
import { UpdatePageRevisionDescriptionFeature } from "./features/pages/UpdatePageRevisionDescription/feature.js";
|
|
41
|
-
const createContext = ()=>
|
|
42
|
+
const createContext = ()=>{
|
|
43
|
+
const modelsPlugin = createRegisterExtensionPlugin((context)=>{
|
|
44
|
+
context.container.register(PageModelPlugin);
|
|
45
|
+
context.container.register(RedirectModelPlugin);
|
|
46
|
+
});
|
|
47
|
+
const contextPlugin = createContextPlugin(async (context)=>{
|
|
42
48
|
const container = context.container;
|
|
43
|
-
const pageModel = createPageModel();
|
|
44
|
-
const redirectModel = createRedirectModel();
|
|
45
|
-
context.plugins.register(pageModel, redirectModel);
|
|
46
49
|
const identityContext = container.resolve(IdentityContext);
|
|
47
50
|
const getModel = container.resolve(GetModelUseCase);
|
|
48
51
|
await identityContext.withoutAuthorization(async ()=>{
|
|
@@ -87,8 +90,13 @@ const createContext = ()=>createContextPlugin(async (context)=>{
|
|
|
87
90
|
}, {
|
|
88
91
|
name: "wb.createContext"
|
|
89
92
|
});
|
|
93
|
+
return [
|
|
94
|
+
contextPlugin,
|
|
95
|
+
modelsPlugin
|
|
96
|
+
];
|
|
97
|
+
};
|
|
90
98
|
const createWebsiteBuilder = ()=>[
|
|
91
|
-
createContext(),
|
|
99
|
+
...createContext(),
|
|
92
100
|
createGraphQL(),
|
|
93
101
|
createRedirectsRoute()
|
|
94
102
|
];
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { createContextPlugin } from \"@webiny/api\";\nimport { GetModelUseCase } from \"@webiny/api-headless-cms/features/contentModel/GetModel/index.js\";\nimport { createGraphQL } from \"./graphql/createGraphQL.js\";\nimport { createRedirectsRoute } from \"./rest/getRedirects.js\";\nimport { GetRedirectByIdFeature } from \"./features/redirects/GetRedirectById/feature.js\";\nimport { ListRedirectsFeature } from \"./features/redirects/ListRedirects/feature.js\";\nimport { GetActiveRedirectsFeature } from \"./features/redirects/GetActiveRedirects/feature.js\";\nimport { CreateRedirectFeature } from \"./features/redirects/CreateRedirect/feature.js\";\nimport { UpdateRedirectFeature } from \"./features/redirects/UpdateRedirect/feature.js\";\nimport { DeleteRedirectFeature } from \"./features/redirects/DeleteRedirect/feature.js\";\nimport { MoveRedirectFeature } from \"./features/redirects/MoveRedirect/feature.js\";\nimport { InvalidateRedirectsCacheFeature } from \"./features/redirects/InvalidateRedirectsCache/feature.js\";\nimport { GetPageByIdFeature } from \"./features/pages/GetPageById/feature.js\";\nimport { GetPageByPathFeature } from \"./features/pages/GetPageByPath/feature.js\";\nimport { GetPageRevisionsFeature } from \"./features/pages/GetPageRevisions/feature.js\";\nimport { ListPagesFeature } from \"./features/pages/ListPages/feature.js\";\nimport { CreatePageFeature } from \"./features/pages/CreatePage/feature.js\";\nimport { CreatePageRevisionFromFeature } from \"./features/pages/CreatePageRevisionFrom/feature.js\";\nimport { DeletePageFeature } from \"./features/pages/DeletePage/feature.js\";\nimport { UpdatePageFeature } from \"./features/pages/UpdatePage/feature.js\";\nimport { PublishPageFeature } from \"./features/pages/PublishPage/feature.js\";\nimport { UnpublishPageFeature } from \"./features/pages/UnpublishPage/feature.js\";\nimport { DuplicatePageFeature } from \"./features/pages/DuplicatePage/feature.js\";\nimport { TranslatePageFeature } from \"./features/pages/TranslatePage/feature.js\";\nimport { MovePageFeature } from \"./features/pages/MovePage/feature.js\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { createContextPlugin } from \"@webiny/api\";\nimport { createRegisterExtensionPlugin } from \"@webiny/handler\";\nimport { GetModelUseCase } from \"@webiny/api-headless-cms/features/contentModel/GetModel/index.js\";\nimport { createGraphQL } from \"./graphql/createGraphQL.js\";\nimport { createRedirectsRoute } from \"./rest/getRedirects.js\";\nimport { GetRedirectByIdFeature } from \"./features/redirects/GetRedirectById/feature.js\";\nimport { ListRedirectsFeature } from \"./features/redirects/ListRedirects/feature.js\";\nimport { GetActiveRedirectsFeature } from \"./features/redirects/GetActiveRedirects/feature.js\";\nimport { CreateRedirectFeature } from \"./features/redirects/CreateRedirect/feature.js\";\nimport { UpdateRedirectFeature } from \"./features/redirects/UpdateRedirect/feature.js\";\nimport { DeleteRedirectFeature } from \"./features/redirects/DeleteRedirect/feature.js\";\nimport { MoveRedirectFeature } from \"./features/redirects/MoveRedirect/feature.js\";\nimport { InvalidateRedirectsCacheFeature } from \"./features/redirects/InvalidateRedirectsCache/feature.js\";\nimport { GetPageByIdFeature } from \"./features/pages/GetPageById/feature.js\";\nimport { GetPageByPathFeature } from \"./features/pages/GetPageByPath/feature.js\";\nimport { GetPageRevisionsFeature } from \"./features/pages/GetPageRevisions/feature.js\";\nimport { ListPagesFeature } from \"./features/pages/ListPages/feature.js\";\nimport { CreatePageFeature } from \"./features/pages/CreatePage/feature.js\";\nimport { CreatePageRevisionFromFeature } from \"./features/pages/CreatePageRevisionFrom/feature.js\";\nimport { DeletePageFeature } from \"./features/pages/DeletePage/feature.js\";\nimport { UpdatePageFeature } from \"./features/pages/UpdatePage/feature.js\";\nimport { PublishPageFeature } from \"./features/pages/PublishPage/feature.js\";\nimport { UnpublishPageFeature } from \"./features/pages/UnpublishPage/feature.js\";\nimport { DuplicatePageFeature } from \"./features/pages/DuplicatePage/feature.js\";\nimport { TranslatePageFeature } from \"./features/pages/TranslatePage/feature.js\";\nimport { MovePageFeature } from \"./features/pages/MovePage/feature.js\";\nimport { PageModelPlugin, PAGE_MODEL_ID } from \"~/domain/page/page.model.js\";\nimport { RedirectModelPlugin, REDIRECT_MODEL_ID } from \"~/domain/redirect/redirect.model.js\";\nimport { IdentityContext } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport { PageModel } from \"~/domain/page/abstractions.js\";\nimport { RedirectModel } from \"~/domain/redirect/abstractions.js\";\nimport { WbPermissionsFeature } from \"~/features/permissions/feature.js\";\nimport { ApiKeyInstallerFeature } from \"~/features/installer/feature.js\";\nimport { NextjsGraphQLSchema } from \"~/graphql/nextjs/NextjsGraphQLSchema.js\";\nimport { NextjsFeature } from \"~/features/nextjs/feature.js\";\nimport { ListDeletedPagesFeature } from \"~/features/pages/ListDeletedPages/feature.js\";\nimport { TrashPageFeature } from \"~/features/pages/TrashPage/feature.js\";\nimport { RestorePageFeature } from \"~/features/pages/RestorePage/feature.js\";\nimport { GetDeletedPageByIdFeature } from \"~/features/pages/GetDeletedPageById/feature.js\";\nimport { GetPageLanguagePathsFeature } from \"~/features/pages/GetPageLanguagePaths/feature.js\";\nimport { UpdatePageRevisionDescriptionFeature } from \"./features/pages/UpdatePageRevisionDescription/feature.js\";\n// import { TenantModelExtensionFeature } from \"~/features/tenantManager/feature.js\";\n\nconst createContext = () => {\n const modelsPlugin = createRegisterExtensionPlugin(context => {\n context.container.register(PageModelPlugin);\n context.container.register(RedirectModelPlugin);\n });\n\n const contextPlugin = createContextPlugin(\n async context => {\n const container = context.container;\n\n const identityContext = container.resolve(IdentityContext);\n const getModel = container.resolve(GetModelUseCase);\n\n await identityContext.withoutAuthorization(async () => {\n const [pageModel, redirectModel] = await Promise.all([\n getModel.execute(PAGE_MODEL_ID),\n getModel.execute(REDIRECT_MODEL_ID)\n ]);\n\n container.registerInstance(PageModel, pageModel.value);\n container.registerInstance(RedirectModel, redirectModel.value);\n });\n\n // Register permissions\n WbPermissionsFeature.register(container);\n\n // Register features\n GetRedirectByIdFeature.register(container);\n ListRedirectsFeature.register(container);\n GetActiveRedirectsFeature.register(container);\n CreateRedirectFeature.register(container);\n UpdateRedirectFeature.register(container);\n DeleteRedirectFeature.register(container);\n MoveRedirectFeature.register(container);\n InvalidateRedirectsCacheFeature.register(container);\n GetPageByIdFeature.register(container);\n GetPageByPathFeature.register(container);\n GetPageRevisionsFeature.register(container);\n GetDeletedPageByIdFeature.register(container);\n GetPageLanguagePathsFeature.register(container);\n ListPagesFeature.register(container);\n ListDeletedPagesFeature.register(container);\n CreatePageFeature.register(container);\n CreatePageRevisionFromFeature.register(container);\n DeletePageFeature.register(container);\n TrashPageFeature.register(container);\n RestorePageFeature.register(container);\n UpdatePageFeature.register(container);\n UpdatePageRevisionDescriptionFeature.register(container);\n PublishPageFeature.register(container);\n UnpublishPageFeature.register(container);\n DuplicatePageFeature.register(container);\n TranslatePageFeature.register(container);\n MovePageFeature.register(container);\n ApiKeyInstallerFeature.register(container);\n NextjsFeature.register(container);\n // TenantModelExtensionFeature.register(container);\n\n // Register GraphQL\n container.register(NextjsGraphQLSchema);\n },\n { name: \"wb.createContext\" }\n );\n\n return [contextPlugin, modelsPlugin];\n};\n\nexport const createWebsiteBuilder = () => {\n return [...createContext(), createGraphQL(), createRedirectsRoute()];\n};\n"],"names":["createContext","modelsPlugin","createRegisterExtensionPlugin","context","PageModelPlugin","RedirectModelPlugin","contextPlugin","createContextPlugin","container","identityContext","IdentityContext","getModel","GetModelUseCase","pageModel","redirectModel","Promise","PAGE_MODEL_ID","REDIRECT_MODEL_ID","PageModel","RedirectModel","WbPermissionsFeature","GetRedirectByIdFeature","ListRedirectsFeature","GetActiveRedirectsFeature","CreateRedirectFeature","UpdateRedirectFeature","DeleteRedirectFeature","MoveRedirectFeature","InvalidateRedirectsCacheFeature","GetPageByIdFeature","GetPageByPathFeature","GetPageRevisionsFeature","GetDeletedPageByIdFeature","GetPageLanguagePathsFeature","ListPagesFeature","ListDeletedPagesFeature","CreatePageFeature","CreatePageRevisionFromFeature","DeletePageFeature","TrashPageFeature","RestorePageFeature","UpdatePageFeature","UpdatePageRevisionDescriptionFeature","PublishPageFeature","UnpublishPageFeature","DuplicatePageFeature","TranslatePageFeature","MovePageFeature","ApiKeyInstallerFeature","NextjsFeature","NextjsGraphQLSchema","createWebsiteBuilder","createGraphQL","createRedirectsRoute"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAMA,gBAAgB;IAClB,MAAMC,eAAeC,8BAA8BC,CAAAA;QAC/CA,QAAQ,SAAS,CAAC,QAAQ,CAACC;QAC3BD,QAAQ,SAAS,CAAC,QAAQ,CAACE;IAC/B;IAEA,MAAMC,gBAAgBC,oBAClB,OAAMJ;QACF,MAAMK,YAAYL,QAAQ,SAAS;QAEnC,MAAMM,kBAAkBD,UAAU,OAAO,CAACE;QAC1C,MAAMC,WAAWH,UAAU,OAAO,CAACI;QAEnC,MAAMH,gBAAgB,oBAAoB,CAAC;YACvC,MAAM,CAACI,WAAWC,cAAc,GAAG,MAAMC,QAAQ,GAAG,CAAC;gBACjDJ,SAAS,OAAO,CAACK;gBACjBL,SAAS,OAAO,CAACM;aACpB;YAEDT,UAAU,gBAAgB,CAACU,WAAWL,UAAU,KAAK;YACrDL,UAAU,gBAAgB,CAACW,eAAeL,cAAc,KAAK;QACjE;QAGAM,qBAAqB,QAAQ,CAACZ;QAG9Ba,uBAAuB,QAAQ,CAACb;QAChCc,qBAAqB,QAAQ,CAACd;QAC9Be,0BAA0B,QAAQ,CAACf;QACnCgB,sBAAsB,QAAQ,CAAChB;QAC/BiB,sBAAsB,QAAQ,CAACjB;QAC/BkB,sBAAsB,QAAQ,CAAClB;QAC/BmB,oBAAoB,QAAQ,CAACnB;QAC7BoB,gCAAgC,QAAQ,CAACpB;QACzCqB,mBAAmB,QAAQ,CAACrB;QAC5BsB,qBAAqB,QAAQ,CAACtB;QAC9BuB,wBAAwB,QAAQ,CAACvB;QACjCwB,0BAA0B,QAAQ,CAACxB;QACnCyB,4BAA4B,QAAQ,CAACzB;QACrC0B,iBAAiB,QAAQ,CAAC1B;QAC1B2B,wBAAwB,QAAQ,CAAC3B;QACjC4B,kBAAkB,QAAQ,CAAC5B;QAC3B6B,8BAA8B,QAAQ,CAAC7B;QACvC8B,kBAAkB,QAAQ,CAAC9B;QAC3B+B,iBAAiB,QAAQ,CAAC/B;QAC1BgC,mBAAmB,QAAQ,CAAChC;QAC5BiC,kBAAkB,QAAQ,CAACjC;QAC3BkC,qCAAqC,QAAQ,CAAClC;QAC9CmC,mBAAmB,QAAQ,CAACnC;QAC5BoC,qBAAqB,QAAQ,CAACpC;QAC9BqC,qBAAqB,QAAQ,CAACrC;QAC9BsC,qBAAqB,QAAQ,CAACtC;QAC9BuC,gBAAgB,QAAQ,CAACvC;QACzBwC,uBAAuB,QAAQ,CAACxC;QAChCyC,cAAc,QAAQ,CAACzC;QAIvBA,UAAU,QAAQ,CAAC0C;IACvB,GACA;QAAE,MAAM;IAAmB;IAG/B,OAAO;QAAC5C;QAAeL;KAAa;AACxC;AAEO,MAAMkD,uBAAuB,IACzB;WAAInD;QAAiBoD;QAAiBC;KAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-website-builder",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
"directory": "dist"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@webiny/api": "6.4.0-beta.
|
|
26
|
-
"@webiny/api-core": "6.4.0-beta.
|
|
27
|
-
"@webiny/api-headless-cms": "6.4.0-beta.
|
|
28
|
-
"@webiny/feature": "6.4.0-beta.
|
|
29
|
-
"@webiny/handler": "6.4.0-beta.
|
|
30
|
-
"@webiny/handler-graphql": "6.4.0-beta.
|
|
31
|
-
"@webiny/languages": "6.4.0-beta.
|
|
32
|
-
"@webiny/tenant-manager": "6.4.0-beta.
|
|
25
|
+
"@webiny/api": "6.4.0-beta.1",
|
|
26
|
+
"@webiny/api-core": "6.4.0-beta.1",
|
|
27
|
+
"@webiny/api-headless-cms": "6.4.0-beta.1",
|
|
28
|
+
"@webiny/feature": "6.4.0-beta.1",
|
|
29
|
+
"@webiny/handler": "6.4.0-beta.1",
|
|
30
|
+
"@webiny/handler-graphql": "6.4.0-beta.1",
|
|
31
|
+
"@webiny/languages": "6.4.0-beta.1",
|
|
32
|
+
"@webiny/tenant-manager": "6.4.0-beta.1",
|
|
33
33
|
"lodash": "4.18.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@webiny/api-core-ddb": "6.4.0-beta.
|
|
37
|
-
"@webiny/api-file-manager-s3": "6.4.0-beta.
|
|
38
|
-
"@webiny/build-tools": "6.4.0-beta.
|
|
39
|
-
"@webiny/handler-aws": "6.4.0-beta.
|
|
40
|
-
"@webiny/plugins": "6.4.0-beta.
|
|
41
|
-
"@webiny/project-utils": "6.4.0-beta.
|
|
42
|
-
"@webiny/tasks": "6.4.0-beta.
|
|
43
|
-
"@webiny/wcp": "6.4.0-beta.
|
|
36
|
+
"@webiny/api-core-ddb": "6.4.0-beta.1",
|
|
37
|
+
"@webiny/api-file-manager-s3": "6.4.0-beta.1",
|
|
38
|
+
"@webiny/build-tools": "6.4.0-beta.1",
|
|
39
|
+
"@webiny/handler-aws": "6.4.0-beta.1",
|
|
40
|
+
"@webiny/plugins": "6.4.0-beta.1",
|
|
41
|
+
"@webiny/project-utils": "6.4.0-beta.1",
|
|
42
|
+
"@webiny/tasks": "6.4.0-beta.1",
|
|
43
|
+
"@webiny/wcp": "6.4.0-beta.1",
|
|
44
44
|
"graphql": "16.14.0",
|
|
45
45
|
"rimraf": "6.1.3",
|
|
46
46
|
"typescript": "6.0.3",
|
|
47
47
|
"vitest": "4.1.6"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "73237b8243693038c072bae1c0b783387448cbbe"
|
|
50
50
|
}
|