@bendyline/docblocks 2.3.4 → 2.4.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.
@@ -14,7 +14,7 @@ This notice is included in the published npm tarball. Transitive packages instal
14
14
 
15
15
  | Package | Version | License | Source |
16
16
  | --- | --- | --- | --- |
17
- | @bendyline/squisq | 2.7.0 | MIT | https://github.com/bendyline/squisq |
17
+ | @bendyline/squisq | 2.8.0 | MIT | https://github.com/bendyline/squisq |
18
18
  | @types/debug | 4.1.12 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
19
19
  | @types/hast | 3.0.4 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
20
20
  | @types/katex | 0.16.8 | MIT | https://github.com/DefinitelyTyped/DefinitelyTyped |
@@ -132,7 +132,7 @@ This notice is included in the published npm tarball. Transitive packages instal
132
132
  Package-local license, copying, and notice files are reproduced below. Where a published package omits its repository license, the reviewed aggregate or README identified in `Source files` supplies the retained material.
133
133
 
134
134
  ==============================================================================
135
- Components: @bendyline/squisq@2.7.0
135
+ Components: @bendyline/squisq@2.8.0
136
136
  Source files: node_modules/@bendyline/squisq/LICENSE
137
137
  ==============================================================================
138
138
  MIT License
@@ -158,7 +158,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
158
158
  SOFTWARE.
159
159
 
160
160
  ==============================================================================
161
- Components: @bendyline/squisq@2.7.0
161
+ Components: @bendyline/squisq@2.8.0
162
162
  Source files: node_modules/@bendyline/squisq/NOTICE.md
163
163
  ==============================================================================
164
164
  # Third-Party Notices for @bendyline/squisq
@@ -189,7 +189,7 @@ third-party license texts for bundled code and data are shipped in
189
189
  THIRD_PARTY_LICENSES.txt.
190
190
 
191
191
  ==============================================================================
192
- Components: @bendyline/squisq@2.7.0
192
+ Components: @bendyline/squisq@2.8.0
193
193
  Source files: node_modules/@bendyline/squisq/THIRD_PARTY_LICENSES.txt
194
194
  ==============================================================================
195
195
  THIRD-PARTY LICENSES FOR @bendyline/squisq
@@ -599,8 +599,8 @@ function documentCompanionPath(documentPath) {
599
599
  if (parent) return `${parent}/${name}_files`;
600
600
  return rooted ? `/${name}_files` : `${name}_files`;
601
601
  }
602
- function isMarkdownPath(path) {
603
- return /\.md$/i.test(basename(path));
602
+ function hasDocumentCompanion(path) {
603
+ return /\.(?:md|html?|docx|pdf|pptx|xlsx)$/i.test(basename(path));
604
604
  }
605
605
  async function moveFileSystemEntry(provider, oldPath, newPath, kind) {
606
606
  const providerV2 = getFileSystemProviderV2(provider);
@@ -619,7 +619,7 @@ async function moveFileSystemEntry(provider, oldPath, newPath, kind) {
619
619
  }
620
620
  let oldCompanion = null;
621
621
  let newCompanion = null;
622
- if (kind === "file" && isMarkdownPath(oldPath)) {
622
+ if (kind === "file" && hasDocumentCompanion(oldPath)) {
623
623
  const candidate = documentCompanionPath(oldPath);
624
624
  if (await exists(candidate)) {
625
625
  oldCompanion = candidate;
@@ -168,8 +168,9 @@ declare function createFileMediaProvider(container: ContentContainer, markdownBa
168
168
  /** Return the hidden companion directory used for a document's media and versions. */
169
169
  declare function documentCompanionPath(documentPath: string): string;
170
170
  /**
171
- * Move an explorer entry without overwriting an existing entry. Markdown files
172
- * carry their hidden `<basename>_files` companion directory with them.
171
+ * Move an explorer entry without overwriting an existing entry. Markdown and
172
+ * outside-in rendered documents carry their hidden `<basename>_files`
173
+ * companion directory with them.
173
174
  */
174
175
  declare function moveFileSystemEntry(provider: FileSystemProvider, oldPath: string, newPath: string, kind: 'file' | 'directory'): Promise<void>;
175
176
 
@@ -6,7 +6,7 @@ import {
6
6
  documentCompanionPath,
7
7
  moveFileSystemEntry,
8
8
  replaceMemoryWorkspaceFromDbk
9
- } from "../chunk-MO2VYEZQ.js";
9
+ } from "../chunk-UMWCTEXW.js";
10
10
  import {
11
11
  IndexedDBContentContainer,
12
12
  IndexedDBFileSystemProvider,
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  documentCompanionPath,
13
13
  moveFileSystemEntry,
14
14
  replaceMemoryWorkspaceFromDbk
15
- } from "./chunk-MO2VYEZQ.js";
15
+ } from "./chunk-UMWCTEXW.js";
16
16
  import {
17
17
  IndexedDBContentContainer,
18
18
  IndexedDBFileSystemProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/docblocks",
3
- "version": "2.3.4",
3
+ "version": "2.4.0",
4
4
  "description": "Core data structures and filesystem abstractions for DocBlocks",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -106,7 +106,7 @@
106
106
  "typecheck": "tsc --noEmit"
107
107
  },
108
108
  "dependencies": {
109
- "@bendyline/squisq": "2.7.1",
109
+ "@bendyline/squisq": "2.8.0",
110
110
  "zod": "3.25.76"
111
111
  }
112
112
  }