@riebeckite/plugin-excalidraw 0.0.13 → 0.0.15

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 CHANGED
@@ -85,6 +85,6 @@ fenced code block is extracted and supports both `json` and lz-string
85
85
 
86
86
  ## See also
87
87
 
88
- - [Plugin guide](../../../docs/en/reference/plugin-api.md)
88
+ - [Plugin guide](../../../docs/en/docs/reference/plugin-api.md)
89
89
  - [`@riebeckite/plugin-obsidian-markdown`](../obsidian-markdown/README.md)
90
- - [`@riebeckite/plugin-attachment`](../attachment/README.md)
90
+ - [`@riebeckite/plugin-attachment`](../attachment/README.md)
package/README_ja.md CHANGED
@@ -43,6 +43,7 @@ export default defineConfig({
43
43
 
44
44
  ## 関連資料
45
45
 
46
- - [プラグインシステム](../../../docs/ja/reference/plugin-api.md)
46
+ - [プラグインシステム](../../../docs/ja/docs/reference/plugin-api.md)
47
47
  - [`@riebeckite/plugin-obsidian-markdown`](../obsidian-markdown/README_ja.md)
48
48
  - [`@riebeckite/plugin-attachment`](../attachment/README_ja.md)
49
+
package/dist/index.js CHANGED
@@ -140,6 +140,10 @@ function excalidraw(options = {}) {
140
140
  return definePlugin({
141
141
  name: PLUGIN_NAME,
142
142
  order: -21,
143
+ processedContentCache: {
144
+ version: "excalidraw-v1",
145
+ dependencyMode: "tracked"
146
+ },
143
147
  options,
144
148
  extendMarkdownPipeline: (pipeline, context) => {
145
149
  pipeline.use(remarkExcalidrawMarkdownEmbed, {
@@ -316,8 +320,8 @@ async function resolveEmbeddedFiles(input) {
316
320
  id: embeddedFile.fileId,
317
321
  dataURL: `data:${mimeType};base64,${toBase64(data)}`,
318
322
  mimeType,
319
- created: Date.now(),
320
- lastRetrieved: Date.now()
323
+ created: 0,
324
+ lastRetrieved: 0
321
325
  };
322
326
  } catch (error) {
323
327
  console.error("[plugin-excalidraw] Failed to resolve embedded file", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-excalidraw",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "@excalidraw/excalidraw": "^0.18.0",
25
25
  "lz-string": "^1.5.0",
26
26
  "unist-util-visit": "^5.0.0",
27
- "@riebeckite/core": "0.0.13"
27
+ "@riebeckite/core": "0.0.15"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/mdast": "^4.0.4"