@xwiki/cristal-navigation-tree-filesystem 0.20.0 → 0.21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @xwiki/cristal-navigation-tree-filesystem
2
2
 
3
+ ## 0.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Cristal 0.21.1 Release
8
+ - Updated dependencies
9
+ - @xwiki/cristal-api@0.21.1
10
+ - @xwiki/cristal-model-api@0.21.1
11
+ - @xwiki/cristal-navigation-tree-api@0.21.1
12
+ - @xwiki/cristal-navigation-tree-default@0.21.1
13
+ - @xwiki/cristal-electron-storage@0.21.1
14
+
15
+ ## 0.21.0
16
+
17
+ ### Minor Changes
18
+
19
+ - Cristal 0.21 Release
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @xwiki/cristal-api@0.21.0
25
+ - @xwiki/cristal-model-api@0.21.0
26
+ - @xwiki/cristal-navigation-tree-api@0.21.0
27
+ - @xwiki/cristal-navigation-tree-default@0.21.0
28
+ - @xwiki/cristal-electron-storage@0.21.0
29
+
3
30
  ## 0.20.0
4
31
 
5
32
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/components/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { SpaceReference } from \"@xwiki/cristal-model-api\";\nimport { name as NavigationTreeSourceName } from \"@xwiki/cristal-navigation-tree-api\";\nimport { getParentNodesIdFromPath } from \"@xwiki/cristal-navigation-tree-default\";\nimport { Container, inject, injectable } from \"inversify\";\nimport type { CristalApp, Logger } from \"@xwiki/cristal-api\";\nimport type { DocumentReference } from \"@xwiki/cristal-model-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n} from \"@xwiki/cristal-navigation-tree-api\";\n\n/**\n * Implementation of NavigationTreeSource for the FileSystem backend.\n *\n * @since 0.10\n **/\n@injectable()\nclass FileSystemNavigationTreeSource implements NavigationTreeSource {\n private cristalApp: CristalApp;\n public logger: Logger;\n\n constructor(\n @inject(\"Logger\") logger: Logger,\n @inject(\"CristalApp\") cristalApp: CristalApp,\n ) {\n this.logger = logger;\n this.logger.setModule(\n \"navigation-tree-filesystem.components.FileSystemNavigationTreeSource\",\n );\n this.cristalApp = cristalApp;\n }\n\n async getChildNodes(id?: string): Promise<Array<NavigationTreeNode>> {\n const currentId = id ? id : \"\";\n const navigationTree: Array<NavigationTreeNode> = [];\n\n // eslint-disable-next-line\n const { fileSystemStorage } = window as any;\n const children = await fileSystemStorage.listChildren(currentId);\n\n for (const child of children) {\n // Remove attachments folders\n if (child !== \"attachments\") {\n const id = `${currentId}${currentId ? \"/\" : \"\"}${child}`;\n const currentPageData = await this.cristalApp.getPage(id);\n navigationTree.push({\n id: id,\n label:\n currentPageData && currentPageData.name\n ? currentPageData.name\n : child,\n location: new SpaceReference(undefined, ...id.split(\"/\")),\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: id,\n },\n }).href,\n has_children:\n (await fileSystemStorage.listChildren(id)).filter(\n (c: string) => c != \"attachments\",\n ).length > 0,\n is_terminal: false,\n });\n }\n }\n\n return navigationTree;\n }\n\n getParentNodesId(\n page: DocumentReference,\n _includeTerminal?: boolean,\n includeRootNode?: boolean,\n ): Array<string> {\n // FileSystem implementation does not handle terminal pages.\n return getParentNodesIdFromPath(page, includeRootNode);\n }\n}\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<NavigationTreeSource>(NavigationTreeSourceName)\n .to(FileSystemNavigationTreeSource)\n .inSingletonScope()\n .whenNamed(\"FileSystem\");\n }\n}\n"],"names":["FileSystemNavigationTreeSource","logger","cristalApp","id","currentId","navigationTree","fileSystemStorage","children","child","currentPageData","SpaceReference","c","page","_includeTerminal","includeRootNode","getParentNodesIdFromPath","__decorateClass","injectable","__decorateParam","ComponentInit","container","NavigationTreeSourceName"],"mappings":";;;;;;;;;AAqCA,IAAMA,IAAN,MAAqE;AAAA,EAInE,YACoBC,GACIC,GACtB;AACA,SAAK,SAASD,GACd,KAAK,OAAO;AAAA,MACV;AAAA,IACF,GACA,KAAK,aAAaC;AAAA,EAAA;AAAA,EAGpB,MAAM,cAAcC,GAAiD;AAC7D,UAAAC,IAAYD,KAAU,IACtBE,IAA4C,CAAC,GAG7C,EAAE,mBAAAC,MAAsB,QACxBC,IAAW,MAAMD,EAAkB,aAAaF,CAAS;AAE/D,eAAWI,KAASD;AAElB,UAAIC,MAAU,eAAe;AACrBL,cAAAA,IAAK,GAAGC,CAAS,GAAGA,IAAY,MAAM,EAAE,GAAGI,CAAK,IAChDC,IAAkB,MAAM,KAAK,WAAW,QAAQN,CAAE;AACxD,QAAAE,EAAe,KAAK;AAAA,UAClB,IAAIF;AAAAA,UACJ,OACEM,KAAmBA,EAAgB,OAC/BA,EAAgB,OAChBD;AAAA,UACN,UAAU,IAAIE,EAAe,QAAW,GAAGP,EAAG,MAAM,GAAG,CAAC;AAAA,UACxD,KAAK,KAAK,WAAW,UAAA,EAAY,QAAQ;AAAA,YACvC,MAAM;AAAA,YACN,QAAQ;AAAA,cACN,MAAMA;AAAAA,YAAA;AAAA,UAET,CAAA,EAAE;AAAA,UACH,eACG,MAAMG,EAAkB,aAAaH,CAAE,GAAG;AAAA,YACzC,CAACQ,MAAcA,KAAK;AAAA,YACpB,SAAS;AAAA,UACb,aAAa;AAAA,QAAA,CACd;AAAA,MAAA;AAIE,WAAAN;AAAA,EAAA;AAAA,EAGT,iBACEO,GACAC,GACAC,GACe;AAER,WAAAC,EAAyBH,GAAME,CAAe;AAAA,EAAA;AAEzD;AA7DMd,IAANgB,EAAA;AAAA,EADCC,EAAW;AAAA,EAMPC,OAAO,QAAQ,CAAA;AAAA,EACfA,OAAO,YAAY,CAAA;AAAA,GANlBlB,CAAA;AA+DC,MAAMmB,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAE7B,IAAAA,EAAA,KAA2BC,CAAwB,EACnD,GAAGrB,CAA8B,EACjC,iBAAA,EACA,UAAU,YAAY;AAAA,EAAA;AAE7B;"}
1
+ {"version":3,"file":"index.es.js","sources":["../src/components/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { SpaceReference } from \"@xwiki/cristal-model-api\";\nimport { name as NavigationTreeSourceName } from \"@xwiki/cristal-navigation-tree-api\";\nimport { getParentNodesIdFromPath } from \"@xwiki/cristal-navigation-tree-default\";\nimport { Container, inject, injectable } from \"inversify\";\nimport type { CristalApp, Logger } from \"@xwiki/cristal-api\";\nimport type { DocumentReference } from \"@xwiki/cristal-model-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n} from \"@xwiki/cristal-navigation-tree-api\";\n\n/**\n * Implementation of NavigationTreeSource for the FileSystem backend.\n *\n * @since 0.10\n **/\n@injectable()\nclass FileSystemNavigationTreeSource implements NavigationTreeSource {\n private cristalApp: CristalApp;\n public logger: Logger;\n\n constructor(\n @inject(\"Logger\") logger: Logger,\n @inject(\"CristalApp\") cristalApp: CristalApp,\n ) {\n this.logger = logger;\n this.logger.setModule(\n \"navigation-tree-filesystem.components.FileSystemNavigationTreeSource\",\n );\n this.cristalApp = cristalApp;\n }\n\n async getChildNodes(id?: string): Promise<Array<NavigationTreeNode>> {\n const currentId = id ? id : \"\";\n const navigationTree: Array<NavigationTreeNode> = [];\n\n // eslint-disable-next-line\n const { fileSystemStorage } = window as any;\n const children = await fileSystemStorage.listChildren(currentId);\n\n for (const child of children) {\n // Remove attachments folders\n if (child !== \"attachments\") {\n const id = `${currentId}${currentId ? \"/\" : \"\"}${child}`;\n const currentPageData = await this.cristalApp.getPage(id);\n navigationTree.push({\n id: id,\n label:\n currentPageData && currentPageData.name\n ? currentPageData.name\n : child,\n location: new SpaceReference(undefined, ...id.split(\"/\")),\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: id,\n },\n }).href,\n has_children:\n (await fileSystemStorage.listChildren(id)).filter(\n (c: string) => c != \"attachments\",\n ).length > 0,\n is_terminal: false,\n });\n }\n }\n\n return navigationTree;\n }\n\n getParentNodesId(\n page: DocumentReference,\n _includeTerminal?: boolean,\n includeRootNode?: boolean,\n ): Array<string> {\n // FileSystem implementation does not handle terminal pages.\n return getParentNodesIdFromPath(page, includeRootNode);\n }\n}\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<NavigationTreeSource>(NavigationTreeSourceName)\n .to(FileSystemNavigationTreeSource)\n .inSingletonScope()\n .whenNamed(\"FileSystem\");\n }\n}\n"],"names":["FileSystemNavigationTreeSource","logger","cristalApp","id","currentId","navigationTree","fileSystemStorage","children","child","currentPageData","SpaceReference","c","page","_includeTerminal","includeRootNode","getParentNodesIdFromPath","__decorateClass","injectable","__decorateParam","ComponentInit","container","NavigationTreeSourceName"],"mappings":";;;;;;;;;AAqCA,IAAMA,IAAN,MAAqE;AAAA,EAInE,YACoBC,GACIC,GACtB;AACA,SAAK,SAASD,GACd,KAAK,OAAO;AAAA,MACV;AAAA,IAAA,GAEF,KAAK,aAAaC;AAAA,EACpB;AAAA,EAEA,MAAM,cAAcC,GAAiD;AACnE,UAAMC,IAAYD,KAAU,IACtBE,IAA4C,CAAA,GAG5C,EAAE,mBAAAC,MAAsB,QACxBC,IAAW,MAAMD,EAAkB,aAAaF,CAAS;AAE/D,eAAWI,KAASD;AAElB,UAAIC,MAAU,eAAe;AAC3B,cAAML,IAAK,GAAGC,CAAS,GAAGA,IAAY,MAAM,EAAE,GAAGI,CAAK,IAChDC,IAAkB,MAAM,KAAK,WAAW,QAAQN,CAAE;AACxD,QAAAE,EAAe,KAAK;AAAA,UAClB,IAAIF;AAAAA,UACJ,OACEM,KAAmBA,EAAgB,OAC/BA,EAAgB,OAChBD;AAAA,UACN,UAAU,IAAIE,EAAe,QAAW,GAAGP,EAAG,MAAM,GAAG,CAAC;AAAA,UACxD,KAAK,KAAK,WAAW,UAAA,EAAY,QAAQ;AAAA,YACvC,MAAM;AAAA,YACN,QAAQ;AAAA,cACN,MAAMA;AAAAA,YAAA;AAAA,UACR,CACD,EAAE;AAAA,UACH,eACG,MAAMG,EAAkB,aAAaH,CAAE,GAAG;AAAA,YACzC,CAACQ,MAAcA,KAAK;AAAA,UAAA,EACpB,SAAS;AAAA,UACb,aAAa;AAAA,QAAA,CACd;AAAA,MACH;AAGF,WAAON;AAAA,EACT;AAAA,EAEA,iBACEO,GACAC,GACAC,GACe;AAEf,WAAOC,EAAyBH,GAAME,CAAe;AAAA,EACvD;AACF;AA7DMd,IAANgB,EAAA;AAAA,EADCC,EAAA;AAAA,EAMIC,OAAO,QAAQ,CAAA;AAAA,EACfA,OAAO,YAAY,CAAA;AAAA,GANlBlB,CAAA;AA+DC,MAAMmB,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAA2BC,CAAwB,EACnD,GAAGrB,CAA8B,EACjC,iBAAA,EACA,UAAU,YAAY;AAAA,EAC3B;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/components/componentsInit.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { SpaceReference } from \"@xwiki/cristal-model-api\";\nimport { name as NavigationTreeSourceName } from \"@xwiki/cristal-navigation-tree-api\";\nimport { getParentNodesIdFromPath } from \"@xwiki/cristal-navigation-tree-default\";\nimport { Container, inject, injectable } from \"inversify\";\nimport type { CristalApp, Logger } from \"@xwiki/cristal-api\";\nimport type { DocumentReference } from \"@xwiki/cristal-model-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n} from \"@xwiki/cristal-navigation-tree-api\";\n\n/**\n * Implementation of NavigationTreeSource for the FileSystem backend.\n *\n * @since 0.10\n **/\n@injectable()\nclass FileSystemNavigationTreeSource implements NavigationTreeSource {\n private cristalApp: CristalApp;\n public logger: Logger;\n\n constructor(\n @inject(\"Logger\") logger: Logger,\n @inject(\"CristalApp\") cristalApp: CristalApp,\n ) {\n this.logger = logger;\n this.logger.setModule(\n \"navigation-tree-filesystem.components.FileSystemNavigationTreeSource\",\n );\n this.cristalApp = cristalApp;\n }\n\n async getChildNodes(id?: string): Promise<Array<NavigationTreeNode>> {\n const currentId = id ? id : \"\";\n const navigationTree: Array<NavigationTreeNode> = [];\n\n // eslint-disable-next-line\n const { fileSystemStorage } = window as any;\n const children = await fileSystemStorage.listChildren(currentId);\n\n for (const child of children) {\n // Remove attachments folders\n if (child !== \"attachments\") {\n const id = `${currentId}${currentId ? \"/\" : \"\"}${child}`;\n const currentPageData = await this.cristalApp.getPage(id);\n navigationTree.push({\n id: id,\n label:\n currentPageData && currentPageData.name\n ? currentPageData.name\n : child,\n location: new SpaceReference(undefined, ...id.split(\"/\")),\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: id,\n },\n }).href,\n has_children:\n (await fileSystemStorage.listChildren(id)).filter(\n (c: string) => c != \"attachments\",\n ).length > 0,\n is_terminal: false,\n });\n }\n }\n\n return navigationTree;\n }\n\n getParentNodesId(\n page: DocumentReference,\n _includeTerminal?: boolean,\n includeRootNode?: boolean,\n ): Array<string> {\n // FileSystem implementation does not handle terminal pages.\n return getParentNodesIdFromPath(page, includeRootNode);\n }\n}\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<NavigationTreeSource>(NavigationTreeSourceName)\n .to(FileSystemNavigationTreeSource)\n .inSingletonScope()\n .whenNamed(\"FileSystem\");\n }\n}\n"],"names":["FileSystemNavigationTreeSource","logger","cristalApp","id","currentId","navigationTree","fileSystemStorage","children","child","currentPageData","SpaceReference","c","page","_includeTerminal","includeRootNode","getParentNodesIdFromPath","__decorateClass","injectable","__decorateParam","ComponentInit","container","NavigationTreeSourceName"],"mappings":"gxBAqCA,IAAMA,EAAN,KAAqE,CAInE,YACoBC,EACIC,EACtB,CACA,KAAK,OAASD,EACd,KAAK,OAAO,UACV,sEACF,EACA,KAAK,WAAaC,CAAA,CAGpB,MAAM,cAAcC,EAAiD,CAC7D,MAAAC,EAAYD,GAAU,GACtBE,EAA4C,CAAC,EAG7C,CAAE,kBAAAC,GAAsB,OACxBC,EAAW,MAAMD,EAAkB,aAAaF,CAAS,EAE/D,UAAWI,KAASD,EAElB,GAAIC,IAAU,cAAe,CACrBL,MAAAA,EAAK,GAAGC,CAAS,GAAGA,EAAY,IAAM,EAAE,GAAGI,CAAK,GAChDC,EAAkB,MAAM,KAAK,WAAW,QAAQN,CAAE,EACxDE,EAAe,KAAK,CAClB,GAAIF,EACJ,MACEM,GAAmBA,EAAgB,KAC/BA,EAAgB,KAChBD,EACN,SAAU,IAAIE,EAAAA,eAAe,OAAW,GAAGP,EAAG,MAAM,GAAG,CAAC,EACxD,IAAK,KAAK,WAAW,UAAA,EAAY,QAAQ,CACvC,KAAM,OACN,OAAQ,CACN,KAAMA,CAAA,CAET,CAAA,EAAE,KACH,cACG,MAAMG,EAAkB,aAAaH,CAAE,GAAG,OACxCQ,GAAcA,GAAK,eACpB,OAAS,EACb,YAAa,EAAA,CACd,CAAA,CAIE,OAAAN,CAAA,CAGT,iBACEO,EACAC,EACAC,EACe,CAER,OAAAC,EAAA,yBAAyBH,EAAME,CAAe,CAAA,CAEzD,EA7DMd,EAANgB,EAAA,CADCC,aAAW,EAMPC,aAAO,QAAQ,CAAA,EACfA,aAAO,YAAY,CAAA,CAAA,EANlBlB,CAAA,EA+DC,MAAMmB,CAAc,CACzB,YAAYC,EAAsB,CAE7BA,EAAA,KAA2BC,EAAwB,IAAA,EACnD,GAAGrB,CAA8B,EACjC,iBAAA,EACA,UAAU,YAAY,CAAA,CAE7B"}
1
+ {"version":3,"file":"index.umd.js","sources":["../src/components/componentsInit.ts"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { SpaceReference } from \"@xwiki/cristal-model-api\";\nimport { name as NavigationTreeSourceName } from \"@xwiki/cristal-navigation-tree-api\";\nimport { getParentNodesIdFromPath } from \"@xwiki/cristal-navigation-tree-default\";\nimport { Container, inject, injectable } from \"inversify\";\nimport type { CristalApp, Logger } from \"@xwiki/cristal-api\";\nimport type { DocumentReference } from \"@xwiki/cristal-model-api\";\nimport type {\n NavigationTreeNode,\n NavigationTreeSource,\n} from \"@xwiki/cristal-navigation-tree-api\";\n\n/**\n * Implementation of NavigationTreeSource for the FileSystem backend.\n *\n * @since 0.10\n **/\n@injectable()\nclass FileSystemNavigationTreeSource implements NavigationTreeSource {\n private cristalApp: CristalApp;\n public logger: Logger;\n\n constructor(\n @inject(\"Logger\") logger: Logger,\n @inject(\"CristalApp\") cristalApp: CristalApp,\n ) {\n this.logger = logger;\n this.logger.setModule(\n \"navigation-tree-filesystem.components.FileSystemNavigationTreeSource\",\n );\n this.cristalApp = cristalApp;\n }\n\n async getChildNodes(id?: string): Promise<Array<NavigationTreeNode>> {\n const currentId = id ? id : \"\";\n const navigationTree: Array<NavigationTreeNode> = [];\n\n // eslint-disable-next-line\n const { fileSystemStorage } = window as any;\n const children = await fileSystemStorage.listChildren(currentId);\n\n for (const child of children) {\n // Remove attachments folders\n if (child !== \"attachments\") {\n const id = `${currentId}${currentId ? \"/\" : \"\"}${child}`;\n const currentPageData = await this.cristalApp.getPage(id);\n navigationTree.push({\n id: id,\n label:\n currentPageData && currentPageData.name\n ? currentPageData.name\n : child,\n location: new SpaceReference(undefined, ...id.split(\"/\")),\n url: this.cristalApp.getRouter().resolve({\n name: \"view\",\n params: {\n page: id,\n },\n }).href,\n has_children:\n (await fileSystemStorage.listChildren(id)).filter(\n (c: string) => c != \"attachments\",\n ).length > 0,\n is_terminal: false,\n });\n }\n }\n\n return navigationTree;\n }\n\n getParentNodesId(\n page: DocumentReference,\n _includeTerminal?: boolean,\n includeRootNode?: boolean,\n ): Array<string> {\n // FileSystem implementation does not handle terminal pages.\n return getParentNodesIdFromPath(page, includeRootNode);\n }\n}\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<NavigationTreeSource>(NavigationTreeSourceName)\n .to(FileSystemNavigationTreeSource)\n .inSingletonScope()\n .whenNamed(\"FileSystem\");\n }\n}\n"],"names":["FileSystemNavigationTreeSource","logger","cristalApp","id","currentId","navigationTree","fileSystemStorage","children","child","currentPageData","SpaceReference","c","page","_includeTerminal","includeRootNode","getParentNodesIdFromPath","__decorateClass","injectable","__decorateParam","ComponentInit","container","NavigationTreeSourceName"],"mappings":"gxBAqCA,IAAMA,EAAN,KAAqE,CAInE,YACoBC,EACIC,EACtB,CACA,KAAK,OAASD,EACd,KAAK,OAAO,UACV,sEAAA,EAEF,KAAK,WAAaC,CACpB,CAEA,MAAM,cAAcC,EAAiD,CACnE,MAAMC,EAAYD,GAAU,GACtBE,EAA4C,CAAA,EAG5C,CAAE,kBAAAC,GAAsB,OACxBC,EAAW,MAAMD,EAAkB,aAAaF,CAAS,EAE/D,UAAWI,KAASD,EAElB,GAAIC,IAAU,cAAe,CAC3B,MAAML,EAAK,GAAGC,CAAS,GAAGA,EAAY,IAAM,EAAE,GAAGI,CAAK,GAChDC,EAAkB,MAAM,KAAK,WAAW,QAAQN,CAAE,EACxDE,EAAe,KAAK,CAClB,GAAIF,EACJ,MACEM,GAAmBA,EAAgB,KAC/BA,EAAgB,KAChBD,EACN,SAAU,IAAIE,EAAAA,eAAe,OAAW,GAAGP,EAAG,MAAM,GAAG,CAAC,EACxD,IAAK,KAAK,WAAW,UAAA,EAAY,QAAQ,CACvC,KAAM,OACN,OAAQ,CACN,KAAMA,CAAA,CACR,CACD,EAAE,KACH,cACG,MAAMG,EAAkB,aAAaH,CAAE,GAAG,OACxCQ,GAAcA,GAAK,aAAA,EACpB,OAAS,EACb,YAAa,EAAA,CACd,CACH,CAGF,OAAON,CACT,CAEA,iBACEO,EACAC,EACAC,EACe,CAEf,OAAOC,EAAAA,yBAAyBH,EAAME,CAAe,CACvD,CACF,EA7DMd,EAANgB,EAAA,CADCC,aAAA,EAMIC,aAAO,QAAQ,CAAA,EACfA,aAAO,YAAY,CAAA,CAAA,EANlBlB,CAAA,EA+DC,MAAMmB,CAAc,CACzB,YAAYC,EAAsB,CAChCA,EACG,KAA2BC,EAAAA,IAAwB,EACnD,GAAGrB,CAA8B,EACjC,iBAAA,EACA,UAAU,YAAY,CAC3B,CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-navigation-tree-filesystem",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -27,21 +27,22 @@
27
27
  },
28
28
  "main": "./dist/index.es.js",
29
29
  "dependencies": {
30
- "inversify": "7.5.4",
31
- "@xwiki/cristal-api": "0.20.0",
32
- "@xwiki/cristal-electron-storage": "0.20.0",
33
- "@xwiki/cristal-navigation-tree-default": "0.20.0",
34
- "@xwiki/cristal-navigation-tree-api": "0.20.0",
35
- "@xwiki/cristal-model-api": "0.20.0"
30
+ "@xwiki/cristal-api": "0.21.1",
31
+ "@xwiki/cristal-model-api": "0.21.1",
32
+ "@xwiki/cristal-electron-storage": "0.21.1",
33
+ "@xwiki/cristal-navigation-tree-api": "0.21.1",
34
+ "@xwiki/cristal-navigation-tree-default": "0.21.1"
36
35
  },
37
36
  "peerDependencies": {
37
+ "inversify": "7.x",
38
38
  "reflect-metadata": "0.x"
39
39
  },
40
40
  "devDependencies": {
41
+ "inversify": "7.7.0",
41
42
  "reflect-metadata": "0.2.2",
42
- "typescript": "5.8.3",
43
- "vite": "7.0.0",
44
- "@xwiki/cristal-dev-config": "0.20.0"
43
+ "typescript": "5.9.2",
44
+ "vite": "7.0.6",
45
+ "@xwiki/cristal-dev-config": "0.21.1"
45
46
  },
46
47
  "scripts": {
47
48
  "build": "tsc --project tsconfig.json && vite build",
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/vite.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *
package/vitest.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*
1
+ /**
2
2
  * See the LICENSE file distributed with this work for additional
3
3
  * information regarding copyright ownership.
4
4
  *