@webiny/api-file-manager-aco 6.0.0-alpha.4 β 6.0.0-rc.0
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/README.md +6 -13
- package/features/EnsureFolderIsEmptyBeforeDelete/EnsureFolderIsEmptyBeforeDelete.d.ts +13 -0
- package/features/EnsureFolderIsEmptyBeforeDelete/EnsureFolderIsEmptyBeforeDelete.js +52 -0
- package/features/EnsureFolderIsEmptyBeforeDelete/EnsureFolderIsEmptyBeforeDelete.js.map +1 -0
- package/features/EnsureFolderIsEmptyBeforeDelete/feature.d.ts +1 -0
- package/features/EnsureFolderIsEmptyBeforeDelete/feature.js +10 -0
- package/features/EnsureFolderIsEmptyBeforeDelete/feature.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.js +7 -15
- package/index.js.map +1 -1
- package/package.json +21 -22
- package/plugins/createFmFileFolderModelModifier.d.ts +1 -1
- package/plugins/createFmFileFolderModelModifier.js +4 -12
- package/plugins/createFmFileFolderModelModifier.js.map +1 -1
- package/plugins/index.d.ts +1 -1
- package/plugins/index.js +1 -16
- package/plugins/index.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
# @webiny/api-file-manager-aco
|
|
2
2
|
|
|
3
|
-
[!
|
|
4
|
-
[
|
|
5
|
-
|
|
6
|
-
[](http://makeapullrequest.com)
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
|
|
5
|
+
> Itβs **included in every Webiny project by default** and is not meant to be used as a standalone package.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
π **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
npm install --save @webiny/api-file-manager-aco
|
|
12
|
-
```
|
|
9
|
+
---
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
yarn add @webiny/api-file-manager-aco
|
|
18
|
-
```
|
|
11
|
+
_This README file is automatically generated during the publish process._
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FolderBeforeDeleteHandler } from "@webiny/api-aco/features/folder/DeleteFolder";
|
|
2
|
+
import { ListFilesUseCase } from "@webiny/api-file-manager/features/file/ListFiles/index.js";
|
|
3
|
+
import { EnsureFolderIsEmpty } from "@webiny/api-aco/features/folder/EnsureFolderIsEmpty";
|
|
4
|
+
declare class EnsureFolderIsEmptyBeforeDeleteImpl implements FolderBeforeDeleteHandler.Interface {
|
|
5
|
+
private ensureFolderIsEmpty;
|
|
6
|
+
private listFiles;
|
|
7
|
+
constructor(ensureFolderIsEmpty: EnsureFolderIsEmpty.Interface, listFiles: ListFilesUseCase.Interface);
|
|
8
|
+
handle(event: FolderBeforeDeleteHandler.Event): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare const EnsureFolderIsEmptyBeforeDelete: typeof EnsureFolderIsEmptyBeforeDeleteImpl & {
|
|
11
|
+
__abstraction: import("@webiny/di").Abstraction<import("@webiny/api-core/features/EventPublisher").IEventHandler<import("@webiny/api-core/features/EventPublisher").DomainEvent<import("@webiny/api-aco/features/folder/DeleteFolder/abstractions").FolderBeforeDeletePayload>>>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { WebinyError } from "@webiny/error";
|
|
2
|
+
import { FolderBeforeDeleteHandler } from "@webiny/api-aco/features/folder/DeleteFolder";
|
|
3
|
+
import { ListFilesUseCase } from "@webiny/api-file-manager/features/file/ListFiles/index.js";
|
|
4
|
+
import { EnsureFolderIsEmpty } from "@webiny/api-aco/features/folder/EnsureFolderIsEmpty";
|
|
5
|
+
class EnsureFolderIsEmptyBeforeDeleteImpl {
|
|
6
|
+
constructor(ensureFolderIsEmpty, listFiles) {
|
|
7
|
+
this.ensureFolderIsEmpty = ensureFolderIsEmpty;
|
|
8
|
+
this.listFiles = listFiles;
|
|
9
|
+
}
|
|
10
|
+
async handle(event) {
|
|
11
|
+
const {
|
|
12
|
+
folder
|
|
13
|
+
} = event.payload;
|
|
14
|
+
const {
|
|
15
|
+
id,
|
|
16
|
+
type
|
|
17
|
+
} = folder;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Exit if the folder type is not related to File Manager
|
|
21
|
+
*/
|
|
22
|
+
if (type !== "FmFile") {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const result = await this.ensureFolderIsEmpty.execute(type, id, async () => {
|
|
26
|
+
const result = await this.listFiles.execute({
|
|
27
|
+
where: {
|
|
28
|
+
location: {
|
|
29
|
+
folderId: id
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
limit: 1
|
|
33
|
+
});
|
|
34
|
+
const {
|
|
35
|
+
items
|
|
36
|
+
} = result.value;
|
|
37
|
+
return items.length > 0;
|
|
38
|
+
});
|
|
39
|
+
if (result.isFail()) {
|
|
40
|
+
throw WebinyError.from(result.error, {
|
|
41
|
+
message: "Error while ensuring folder is empty before delete.",
|
|
42
|
+
code: "ACO_BEFORE_FOLDER_DELETE_FILE_HANDLER"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export const EnsureFolderIsEmptyBeforeDelete = FolderBeforeDeleteHandler.createImplementation({
|
|
48
|
+
implementation: EnsureFolderIsEmptyBeforeDeleteImpl,
|
|
49
|
+
dependencies: [EnsureFolderIsEmpty, ListFilesUseCase]
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=EnsureFolderIsEmptyBeforeDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WebinyError","FolderBeforeDeleteHandler","ListFilesUseCase","EnsureFolderIsEmpty","EnsureFolderIsEmptyBeforeDeleteImpl","constructor","ensureFolderIsEmpty","listFiles","handle","event","folder","payload","id","type","result","execute","where","location","folderId","limit","items","value","length","isFail","from","error","message","code","EnsureFolderIsEmptyBeforeDelete","createImplementation","implementation","dependencies"],"sources":["EnsureFolderIsEmptyBeforeDelete.ts"],"sourcesContent":["import { WebinyError } from \"@webiny/error\";\nimport { FolderBeforeDeleteHandler } from \"@webiny/api-aco/features/folder/DeleteFolder\";\nimport { ListFilesUseCase } from \"@webiny/api-file-manager/features/file/ListFiles/index.js\";\nimport { EnsureFolderIsEmpty } from \"@webiny/api-aco/features/folder/EnsureFolderIsEmpty\";\n\nclass EnsureFolderIsEmptyBeforeDeleteImpl implements FolderBeforeDeleteHandler.Interface {\n constructor(\n private ensureFolderIsEmpty: EnsureFolderIsEmpty.Interface,\n private listFiles: ListFilesUseCase.Interface\n ) {}\n\n async handle(event: FolderBeforeDeleteHandler.Event): Promise<void> {\n const { folder } = event.payload;\n\n const { id, type } = folder;\n\n /**\n * Exit if the folder type is not related to File Manager\n */\n if (type !== \"FmFile\") {\n return;\n }\n\n const result = await this.ensureFolderIsEmpty.execute(type, id, async () => {\n const result = await this.listFiles.execute({\n where: {\n location: {\n folderId: id\n }\n },\n limit: 1\n });\n\n const { items } = result.value;\n\n return items.length > 0;\n });\n\n if (result.isFail()) {\n throw WebinyError.from(result.error, {\n message: \"Error while ensuring folder is empty before delete.\",\n code: \"ACO_BEFORE_FOLDER_DELETE_FILE_HANDLER\"\n });\n }\n }\n}\n\nexport const EnsureFolderIsEmptyBeforeDelete = FolderBeforeDeleteHandler.createImplementation({\n implementation: EnsureFolderIsEmptyBeforeDeleteImpl,\n dependencies: [EnsureFolderIsEmpty, ListFilesUseCase]\n});\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,eAAe;AAC3C,SAASC,yBAAyB,QAAQ,8CAA8C;AACxF,SAASC,gBAAgB,QAAQ,2DAA2D;AAC5F,SAASC,mBAAmB,QAAQ,qDAAqD;AAEzF,MAAMC,mCAAmC,CAAgD;EACrFC,WAAWA,CACCC,mBAAkD,EAClDC,SAAqC,EAC/C;IAAA,KAFUD,mBAAkD,GAAlDA,mBAAkD;IAAA,KAClDC,SAAqC,GAArCA,SAAqC;EAC9C;EAEH,MAAMC,MAAMA,CAACC,KAAsC,EAAiB;IAChE,MAAM;MAAEC;IAAO,CAAC,GAAGD,KAAK,CAACE,OAAO;IAEhC,MAAM;MAAEC,EAAE;MAAEC;IAAK,CAAC,GAAGH,MAAM;;IAE3B;AACR;AACA;IACQ,IAAIG,IAAI,KAAK,QAAQ,EAAE;MACnB;IACJ;IAEA,MAAMC,MAAM,GAAG,MAAM,IAAI,CAACR,mBAAmB,CAACS,OAAO,CAACF,IAAI,EAAED,EAAE,EAAE,YAAY;MACxE,MAAME,MAAM,GAAG,MAAM,IAAI,CAACP,SAAS,CAACQ,OAAO,CAAC;QACxCC,KAAK,EAAE;UACHC,QAAQ,EAAE;YACNC,QAAQ,EAAEN;UACd;QACJ,CAAC;QACDO,KAAK,EAAE;MACX,CAAC,CAAC;MAEF,MAAM;QAAEC;MAAM,CAAC,GAAGN,MAAM,CAACO,KAAK;MAE9B,OAAOD,KAAK,CAACE,MAAM,GAAG,CAAC;IAC3B,CAAC,CAAC;IAEF,IAAIR,MAAM,CAACS,MAAM,CAAC,CAAC,EAAE;MACjB,MAAMvB,WAAW,CAACwB,IAAI,CAACV,MAAM,CAACW,KAAK,EAAE;QACjCC,OAAO,EAAE,qDAAqD;QAC9DC,IAAI,EAAE;MACV,CAAC,CAAC;IACN;EACJ;AACJ;AAEA,OAAO,MAAMC,+BAA+B,GAAG3B,yBAAyB,CAAC4B,oBAAoB,CAAC;EAC1FC,cAAc,EAAE1B,mCAAmC;EACnD2B,YAAY,EAAE,CAAC5B,mBAAmB,EAAED,gBAAgB;AACxD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EnsureFolderIsEmptyBeforeDeleteFeature: import("@webiny/feature/api/createFeature.js").FeatureDefinition<unknown>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createFeature } from "@webiny/feature/api";
|
|
2
|
+
import { EnsureFolderIsEmptyBeforeDelete } from "./EnsureFolderIsEmptyBeforeDelete.js";
|
|
3
|
+
export const EnsureFolderIsEmptyBeforeDeleteFeature = createFeature({
|
|
4
|
+
name: "EnsureFolderIsEmptyBeforeDelete",
|
|
5
|
+
register(container) {
|
|
6
|
+
container.register(EnsureFolderIsEmptyBeforeDelete);
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createFeature","EnsureFolderIsEmptyBeforeDelete","EnsureFolderIsEmptyBeforeDeleteFeature","name","register","container"],"sources":["feature.ts"],"sourcesContent":["import { createFeature } from \"@webiny/feature/api\";\nimport { EnsureFolderIsEmptyBeforeDelete } from \"./EnsureFolderIsEmptyBeforeDelete.js\";\n\nexport const EnsureFolderIsEmptyBeforeDeleteFeature = createFeature({\n name: \"EnsureFolderIsEmptyBeforeDelete\",\n register(container) {\n container.register(EnsureFolderIsEmptyBeforeDelete);\n }\n});\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,qBAAqB;AACnD,SAASC,+BAA+B;AAExC,OAAO,MAAMC,sCAAsC,GAAGF,aAAa,CAAC;EAChEG,IAAI,EAAE,iCAAiC;EACvCC,QAAQA,CAACC,SAAS,EAAE;IAChBA,SAAS,CAACD,QAAQ,CAACH,+BAA+B,CAAC;EACvD;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from "./plugins";
|
|
1
|
+
export * from "./plugins/index.js";
|
|
2
|
+
export declare const createFileManagerAco: () => import("@webiny/api").ContextPlugin<import("@webiny/api/types.js").Context>;
|
package/index.js
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.keys(_plugins).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _plugins[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _plugins[key];
|
|
14
|
-
}
|
|
1
|
+
import { createContextPlugin } from "@webiny/api";
|
|
2
|
+
import { EnsureFolderIsEmptyBeforeDeleteFeature } from "./features/EnsureFolderIsEmptyBeforeDelete/feature.js";
|
|
3
|
+
export * from "./plugins/index.js";
|
|
4
|
+
export const createFileManagerAco = () => {
|
|
5
|
+
return createContextPlugin(context => {
|
|
6
|
+
EnsureFolderIsEmptyBeforeDeleteFeature.register(context.container);
|
|
15
7
|
});
|
|
16
|
-
}
|
|
8
|
+
};
|
|
17
9
|
|
|
18
10
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["createContextPlugin","EnsureFolderIsEmptyBeforeDeleteFeature","createFileManagerAco","context","register","container"],"sources":["index.ts"],"sourcesContent":["import { createContextPlugin } from \"@webiny/api\";\nimport { EnsureFolderIsEmptyBeforeDeleteFeature } from \"~/features/EnsureFolderIsEmptyBeforeDelete/feature.js\";\n\nexport * from \"./plugins/index.js\";\n\nexport const createFileManagerAco = () => {\n return createContextPlugin(context => {\n EnsureFolderIsEmptyBeforeDeleteFeature.register(context.container);\n });\n};\n"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,aAAa;AACjD,SAASC,sCAAsC;AAE/C;AAEA,OAAO,MAAMC,oBAAoB,GAAGA,CAAA,KAAM;EACtC,OAAOF,mBAAmB,CAACG,OAAO,IAAI;IAClCF,sCAAsC,CAACG,QAAQ,CAACD,OAAO,CAACE,SAAS,CAAC;EACtE,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-file-manager-aco",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-rc.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.js",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"api-file-manager-aco:base"
|
|
@@ -13,34 +14,32 @@
|
|
|
13
14
|
"description": "Connect File Manager to ACO",
|
|
14
15
|
"author": "Webiny Ltd.",
|
|
15
16
|
"license": "MIT",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "node ../cli/bin.js run build",
|
|
18
|
-
"watch": "node ../cli/bin.js run watch"
|
|
19
|
-
},
|
|
20
17
|
"publishConfig": {
|
|
21
18
|
"access": "public",
|
|
22
19
|
"directory": "dist"
|
|
23
20
|
},
|
|
24
21
|
"dependencies": {
|
|
25
|
-
"@webiny/api-aco": "6.0.0-
|
|
22
|
+
"@webiny/api-aco": "6.0.0-rc.0",
|
|
23
|
+
"@webiny/api-file-manager": "6.0.0-rc.0",
|
|
24
|
+
"@webiny/error": "6.0.0-rc.0",
|
|
25
|
+
"@webiny/feature": "6.0.0-rc.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@webiny/api": "6.0.0-
|
|
29
|
-
"@webiny/api-
|
|
30
|
-
"@webiny/api-headless-cms": "6.0.0-
|
|
31
|
-
"@webiny/
|
|
32
|
-
"@webiny/
|
|
33
|
-
"@webiny/
|
|
34
|
-
"@webiny/
|
|
35
|
-
"@webiny/
|
|
36
|
-
"@webiny/
|
|
37
|
-
"@webiny/
|
|
38
|
-
"@webiny/
|
|
39
|
-
"
|
|
40
|
-
"@webiny/wcp": "6.0.0-alpha.4",
|
|
41
|
-
"graphql": "15.9.0",
|
|
28
|
+
"@webiny/api": "6.0.0-rc.0",
|
|
29
|
+
"@webiny/api-core": "6.0.0-rc.0",
|
|
30
|
+
"@webiny/api-headless-cms": "6.0.0-rc.0",
|
|
31
|
+
"@webiny/build-tools": "6.0.0-rc.0",
|
|
32
|
+
"@webiny/handler": "6.0.0-rc.0",
|
|
33
|
+
"@webiny/handler-aws": "6.0.0-rc.0",
|
|
34
|
+
"@webiny/handler-graphql": "6.0.0-rc.0",
|
|
35
|
+
"@webiny/plugins": "6.0.0-rc.0",
|
|
36
|
+
"@webiny/project-utils": "6.0.0-rc.0",
|
|
37
|
+
"@webiny/utils": "6.0.0-rc.0",
|
|
38
|
+
"@webiny/wcp": "6.0.0-rc.0",
|
|
39
|
+
"graphql": "16.12.0",
|
|
42
40
|
"ttypescript": "1.5.15",
|
|
43
|
-
"typescript": "5.
|
|
41
|
+
"typescript": "5.9.3",
|
|
42
|
+
"vitest": "4.0.18"
|
|
44
43
|
},
|
|
45
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0f2aa699f4642e550ab62c96fcd050e8d02345c9"
|
|
46
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CmsModelField, type CmsModelModifierCallable, FolderCmsModelModifierPlugin, type IFolderModelFieldsModifier } from "@webiny/api-aco";
|
|
2
|
-
import type { CmsModelField as BaseModelField } from "@webiny/api-headless-cms/types";
|
|
2
|
+
import type { CmsModelField as BaseModelField } from "@webiny/api-headless-cms/types/index.js";
|
|
3
3
|
export declare class FolderModelFieldsModifier implements IFolderModelFieldsModifier {
|
|
4
4
|
private fields;
|
|
5
5
|
private readonly namespace;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createFmFileFolderModelModifier = exports.FolderModelFieldsModifier = void 0;
|
|
7
|
-
var _apiAco = require("@webiny/api-aco");
|
|
8
|
-
class FolderModelFieldsModifier {
|
|
1
|
+
import { FolderCmsModelModifierPlugin } from "@webiny/api-aco";
|
|
2
|
+
export class FolderModelFieldsModifier {
|
|
9
3
|
fields = [];
|
|
10
4
|
constructor(namespace) {
|
|
11
5
|
this.namespace = namespace;
|
|
@@ -27,14 +21,12 @@ class FolderModelFieldsModifier {
|
|
|
27
21
|
});
|
|
28
22
|
}
|
|
29
23
|
}
|
|
30
|
-
|
|
31
|
-
const createFmFileFolderModelModifier = callback => {
|
|
24
|
+
export const createFmFileFolderModelModifier = callback => {
|
|
32
25
|
const modifier = new FolderModelFieldsModifier("fm_file");
|
|
33
|
-
return new
|
|
26
|
+
return new FolderCmsModelModifierPlugin({
|
|
34
27
|
callback,
|
|
35
28
|
modifier
|
|
36
29
|
});
|
|
37
30
|
};
|
|
38
|
-
exports.createFmFileFolderModelModifier = createFmFileFolderModelModifier;
|
|
39
31
|
|
|
40
32
|
//# sourceMappingURL=createFmFileFolderModelModifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["FolderCmsModelModifierPlugin","FolderModelFieldsModifier","fields","constructor","namespace","setFields","addField","field","tags","rest","push","id","fieldId","storageId","type","concat","createFmFileFolderModelModifier","callback","modifier"],"sources":["createFmFileFolderModelModifier.ts"],"sourcesContent":["import {\n type CmsModelField,\n type CmsModelModifierCallable,\n FolderCmsModelModifierPlugin,\n type IFolderModelFieldsModifier\n} from \"@webiny/api-aco\";\nimport type { CmsModelField as BaseModelField } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport class FolderModelFieldsModifier implements IFolderModelFieldsModifier {\n private fields: BaseModelField[] = [];\n private readonly namespace: string;\n\n constructor(namespace: string) {\n this.namespace = namespace;\n }\n\n setFields(fields: BaseModelField[]) {\n this.fields = fields;\n }\n\n addField(field: CmsModelField) {\n const { tags, ...rest } = field;\n\n this.fields.push({\n ...rest,\n id: `${this.namespace}_${field.id}`,\n fieldId: `${this.namespace}_${field.fieldId}`,\n storageId: `${field.type}@${this.namespace}_${field.id}`,\n tags: (tags ?? []).concat([`$namespace:${this.namespace}`])\n });\n }\n}\n\nexport const createFmFileFolderModelModifier = (callback: CmsModelModifierCallable) => {\n const modifier = new FolderModelFieldsModifier(\"fm_file\");\n\n return new FolderCmsModelModifierPlugin({\n callback,\n modifier\n });\n};\n"],"mappings":"AAAA,SAGIA,4BAA4B,QAEzB,iBAAiB;AAGxB,OAAO,MAAMC,yBAAyB,CAAuC;EACjEC,MAAM,GAAqB,EAAE;EAGrCC,WAAWA,CAACC,SAAiB,EAAE;IAC3B,IAAI,CAACA,SAAS,GAAGA,SAAS;EAC9B;EAEAC,SAASA,CAACH,MAAwB,EAAE;IAChC,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;EAEAI,QAAQA,CAACC,KAAoB,EAAE;IAC3B,MAAM;MAAEC,IAAI;MAAE,GAAGC;IAAK,CAAC,GAAGF,KAAK;IAE/B,IAAI,CAACL,MAAM,CAACQ,IAAI,CAAC;MACb,GAAGD,IAAI;MACPE,EAAE,EAAE,GAAG,IAAI,CAACP,SAAS,IAAIG,KAAK,CAACI,EAAE,EAAE;MACnCC,OAAO,EAAE,GAAG,IAAI,CAACR,SAAS,IAAIG,KAAK,CAACK,OAAO,EAAE;MAC7CC,SAAS,EAAE,GAAGN,KAAK,CAACO,IAAI,IAAI,IAAI,CAACV,SAAS,IAAIG,KAAK,CAACI,EAAE,EAAE;MACxDH,IAAI,EAAE,CAACA,IAAI,IAAI,EAAE,EAAEO,MAAM,CAAC,CAAC,cAAc,IAAI,CAACX,SAAS,EAAE,CAAC;IAC9D,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAMY,+BAA+B,GAAIC,QAAkC,IAAK;EACnF,MAAMC,QAAQ,GAAG,IAAIjB,yBAAyB,CAAC,SAAS,CAAC;EAEzD,OAAO,IAAID,4BAA4B,CAAC;IACpCiB,QAAQ;IACRC;EACJ,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
|
package/plugins/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./createFmFileFolderModelModifier";
|
|
1
|
+
export * from "./createFmFileFolderModelModifier.js";
|
package/plugins/index.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _createFmFileFolderModelModifier = require("./createFmFileFolderModelModifier");
|
|
7
|
-
Object.keys(_createFmFileFolderModelModifier).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _createFmFileFolderModelModifier[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _createFmFileFolderModelModifier[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
1
|
+
export * from "./createFmFileFolderModelModifier.js";
|
|
17
2
|
|
|
18
3
|
//# sourceMappingURL=index.js.map
|
package/plugins/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./createFmFileFolderModelModifier.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|