obsidian-dev-utils 17.10.1 → 17.10.2-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.
Files changed (150) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/lib/Async.mjs +154 -0
  3. package/dist/lib/Blob.mjs +81 -0
  4. package/dist/lib/CssClass.mjs +32 -0
  5. package/dist/lib/Debug.mjs +137 -0
  6. package/dist/lib/DebugController.mjs +8 -0
  7. package/dist/lib/Enum.mjs +26 -0
  8. package/dist/lib/Error.mjs +82 -0
  9. package/dist/lib/Function.mjs +28 -0
  10. package/dist/lib/HTMLElement.mjs +65 -0
  11. package/dist/lib/Library.cjs +1 -1
  12. package/dist/lib/Library.mjs +16 -0
  13. package/dist/lib/Object.cjs +1 -1
  14. package/dist/lib/Object.d.ts +16 -0
  15. package/dist/lib/Object.mjs +273 -0
  16. package/dist/lib/Path.mjs +76 -0
  17. package/dist/lib/RegExp.mjs +23 -0
  18. package/dist/lib/String.mjs +119 -0
  19. package/dist/lib/Transformers/DateTransformer.cjs +71 -0
  20. package/dist/lib/Transformers/DateTransformer.d.ts +35 -0
  21. package/dist/lib/Transformers/DateTransformer.mjs +47 -0
  22. package/dist/lib/Transformers/GroupTransformer.cjs +118 -0
  23. package/dist/lib/Transformers/GroupTransformer.d.ts +65 -0
  24. package/dist/lib/Transformers/GroupTransformer.mjs +94 -0
  25. package/dist/lib/Transformers/SkipPrivatePropertyTransformer.cjs +69 -0
  26. package/dist/lib/Transformers/SkipPrivatePropertyTransformer.d.ts +32 -0
  27. package/dist/lib/Transformers/SkipPrivatePropertyTransformer.mjs +45 -0
  28. package/dist/lib/Transformers/Transformer.cjs +107 -0
  29. package/dist/lib/Transformers/Transformer.d.ts +67 -0
  30. package/dist/lib/Transformers/Transformer.mjs +83 -0
  31. package/dist/lib/Transformers/TypedTransformer.cjs +38 -0
  32. package/dist/lib/Transformers/TypedTransformer.d.ts +37 -0
  33. package/dist/lib/Transformers/TypedTransformer.mjs +14 -0
  34. package/dist/lib/Transformers/index.cjs +58 -0
  35. package/dist/lib/Transformers/index.d.ts +5 -0
  36. package/dist/lib/Transformers/index.mjs +20 -0
  37. package/dist/lib/ValueProvider.mjs +20 -0
  38. package/dist/lib/codemirror/StateFieldSpec.mjs +8 -0
  39. package/dist/lib/codemirror/index.mjs +12 -0
  40. package/dist/lib/index.cjs +4 -4
  41. package/dist/lib/index.d.ts +1 -1
  42. package/dist/lib/index.mjs +50 -0
  43. package/dist/lib/obsidian/App.mjs +33 -0
  44. package/dist/lib/obsidian/AttachmentPath.mjs +82 -0
  45. package/dist/lib/obsidian/Backlink.mjs +88 -0
  46. package/dist/lib/obsidian/Callout.mjs +71 -0
  47. package/dist/lib/obsidian/Components/DateComponent.mjs +43 -0
  48. package/dist/lib/obsidian/Components/DateTimeComponent.mjs +43 -0
  49. package/dist/lib/obsidian/Components/EmailComponent.mjs +32 -0
  50. package/dist/lib/obsidian/Components/FileComponent.mjs +48 -0
  51. package/dist/lib/obsidian/Components/MonthComponent.mjs +51 -0
  52. package/dist/lib/obsidian/Components/MultipleDropdownComponent.mjs +88 -0
  53. package/dist/lib/obsidian/Components/MultipleEmailComponent.mjs +42 -0
  54. package/dist/lib/obsidian/Components/MultipleFileComponent.mjs +49 -0
  55. package/dist/lib/obsidian/Components/NumberComponent.mjs +32 -0
  56. package/dist/lib/obsidian/Components/TimeComponent.mjs +53 -0
  57. package/dist/lib/obsidian/Components/TypedRangeTextComponent.mjs +44 -0
  58. package/dist/lib/obsidian/Components/TypedTextComponent.mjs +107 -0
  59. package/dist/lib/obsidian/Components/UrlComponent.mjs +32 -0
  60. package/dist/lib/obsidian/Components/ValidatorComponent.mjs +52 -0
  61. package/dist/lib/obsidian/Components/ValueComponentWithChangeTracking.mjs +9 -0
  62. package/dist/lib/obsidian/Components/WeekComponent.mjs +51 -0
  63. package/dist/lib/obsidian/Components/index.mjs +42 -0
  64. package/dist/lib/obsidian/Dataview.mjs +232 -0
  65. package/dist/lib/obsidian/DataviewLink.mjs +27 -0
  66. package/dist/lib/obsidian/FileChange.mjs +123 -0
  67. package/dist/lib/obsidian/FileManager.mjs +66 -0
  68. package/dist/lib/obsidian/FileSystem.mjs +197 -0
  69. package/dist/lib/obsidian/Frontmatter.mjs +32 -0
  70. package/dist/lib/obsidian/Link.mjs +415 -0
  71. package/dist/lib/obsidian/Logger.mjs +45 -0
  72. package/dist/lib/obsidian/Loop.mjs +39 -0
  73. package/dist/lib/obsidian/Markdown.mjs +40 -0
  74. package/dist/lib/obsidian/MarkdownCodeBlockProcessor.mjs +44 -0
  75. package/dist/lib/obsidian/MarkdownView.mjs +21 -0
  76. package/dist/lib/obsidian/MetadataCache.mjs +219 -0
  77. package/dist/lib/obsidian/Modals/Alert.mjs +52 -0
  78. package/dist/lib/obsidian/Modals/Confirm.mjs +65 -0
  79. package/dist/lib/obsidian/Modals/Prompt.mjs +98 -0
  80. package/dist/lib/obsidian/Modals/SelectItem.mjs +51 -0
  81. package/dist/lib/obsidian/Modals/index.mjs +18 -0
  82. package/dist/lib/obsidian/ObsidianSettings.mjs +18 -0
  83. package/dist/lib/obsidian/Pdf.mjs +42 -0
  84. package/dist/lib/obsidian/Plugin/EmptySettings.mjs +14 -0
  85. package/dist/lib/obsidian/Plugin/ObsidianPluginRepoPaths.mjs +35 -0
  86. package/dist/lib/obsidian/Plugin/Plugin.mjs +28 -0
  87. package/dist/lib/obsidian/Plugin/PluginBase.mjs +148 -0
  88. package/dist/lib/obsidian/Plugin/PluginContext.mjs +45 -0
  89. package/dist/lib/obsidian/Plugin/PluginId.mjs +23 -0
  90. package/dist/lib/obsidian/Plugin/PluginSettingsBase.cjs +13 -9
  91. package/dist/lib/obsidian/Plugin/PluginSettingsBase.mjs +63 -0
  92. package/dist/lib/obsidian/Plugin/PluginSettingsTabBase.cjs +1 -1
  93. package/dist/lib/obsidian/Plugin/PluginSettingsTabBase.d.ts +1 -1
  94. package/dist/lib/obsidian/Plugin/PluginSettingsTabBase.mjs +101 -0
  95. package/dist/lib/obsidian/Plugin/index.mjs +26 -0
  96. package/dist/lib/obsidian/Queue.mjs +50 -0
  97. package/dist/lib/obsidian/Reference.mjs +45 -0
  98. package/dist/lib/obsidian/RenameDeleteHandler.mjs +436 -0
  99. package/dist/lib/obsidian/ResourceUrl.mjs +19 -0
  100. package/dist/lib/obsidian/SettingEx.mjs +148 -0
  101. package/dist/lib/obsidian/Vault.mjs +248 -0
  102. package/dist/lib/obsidian/VaultEx.mjs +71 -0
  103. package/dist/lib/obsidian/index.mjs +68 -0
  104. package/dist/lib/scripts/CliUtils.mjs +135 -0
  105. package/dist/lib/scripts/CodeGenerator.mjs +19 -0
  106. package/dist/lib/scripts/ESLint/ESLint.cjs +2 -2
  107. package/dist/lib/scripts/ESLint/ESLint.mjs +68 -0
  108. package/dist/lib/scripts/ESLint/eslint.config.mjs +287 -0
  109. package/dist/lib/scripts/ESLint/index.mjs +14 -0
  110. package/dist/lib/scripts/Exec.mjs +98 -0
  111. package/dist/lib/scripts/Fs.mjs +64 -0
  112. package/dist/lib/scripts/JSON.mjs +60 -0
  113. package/dist/lib/scripts/NodeModules.mjs +62 -0
  114. package/dist/lib/scripts/Npm.mjs +106 -0
  115. package/dist/lib/scripts/NpmPublish.mjs +21 -0
  116. package/dist/lib/scripts/ObsidianDevUtilsRepoPaths.cjs +5 -1
  117. package/dist/lib/scripts/ObsidianDevUtilsRepoPaths.d.ts +8 -0
  118. package/dist/lib/scripts/ObsidianDevUtilsRepoPaths.mjs +44 -0
  119. package/dist/lib/scripts/Root.mjs +66 -0
  120. package/dist/lib/scripts/build.mjs +60 -0
  121. package/dist/lib/scripts/cli.cjs +2 -2
  122. package/dist/lib/scripts/cli.mjs +65 -0
  123. package/dist/lib/scripts/esbuild/Dependency.cjs +2 -2
  124. package/dist/lib/scripts/esbuild/Dependency.mjs +95 -0
  125. package/dist/lib/scripts/esbuild/ObsidianPluginBuilder.mjs +149 -0
  126. package/dist/lib/scripts/esbuild/changeExtensionPlugin.cjs +67 -0
  127. package/dist/lib/scripts/esbuild/changeExtensionPlugin.d.ts +12 -0
  128. package/dist/lib/scripts/esbuild/changeExtensionPlugin.mjs +43 -0
  129. package/dist/lib/scripts/esbuild/copyToObsidianPluginsFolderPlugin.mjs +50 -0
  130. package/dist/lib/scripts/esbuild/fixEsmPlugin.mjs +25 -0
  131. package/dist/lib/scripts/esbuild/fixSourceMapsPlugin.mjs +55 -0
  132. package/dist/lib/scripts/esbuild/index.cjs +4 -4
  133. package/dist/lib/scripts/esbuild/index.d.ts +1 -1
  134. package/dist/lib/scripts/esbuild/index.mjs +28 -0
  135. package/dist/lib/scripts/esbuild/preprocessPlugin.cjs +4 -4
  136. package/dist/lib/scripts/esbuild/preprocessPlugin.d.ts +2 -1
  137. package/dist/lib/scripts/esbuild/preprocessPlugin.mjs +112 -0
  138. package/dist/lib/scripts/esbuild/renameCssPlugin.mjs +31 -0
  139. package/dist/lib/scripts/esbuild/svelteWrapperPlugin.mjs +41 -0
  140. package/dist/lib/scripts/format.cjs +2 -2
  141. package/dist/lib/scripts/format.mjs +41 -0
  142. package/dist/lib/scripts/index.mjs +44 -0
  143. package/dist/lib/scripts/spellcheck.mjs +15 -0
  144. package/dist/lib/scripts/version.mjs +361 -0
  145. package/dist/lib/url.mjs +25 -0
  146. package/package.json +161 -173
  147. package/dist/lib/@types.cjs +0 -24
  148. package/dist/lib/@types.d.ts +0 -20
  149. package/dist/lib/scripts/esbuild/renameToCjsPlugin.cjs +0 -60
  150. package/dist/lib/scripts/esbuild/renameToCjsPlugin.d.ts +0 -14
@@ -1,24 +0,0 @@
1
- /*
2
- THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
3
- if you want to view the source, please visit the github repository of this plugin
4
- */
5
-
6
- (function init(){const globalThisRecord=globalThis;globalThisRecord["__name"]??=name;if(!require.__isPatched){const originalRequire=require;require=Object.assign(id=>requirePatched(id,originalRequire),originalRequire,{__isPatched:true})}const newFuncs={__extractDefault:__name(()=>extractDefault,"__extractDefault"),process:__name(()=>({browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"}),"process")};for(const key of Object.keys(newFuncs)){globalThisRecord[key]??=newFuncs[key]?.()}function name(obj){return obj}__name(name,"name");function extractDefault(module){return module&&module.__esModule&&module.default?module.default:module}__name(extractDefault,"extractDefault");function requirePatched(id,originalRequire){const module=originalRequire(id);if(module){return extractDefault(module)}if(id==="process"||id==="node:process"){console.error(`Module not found: ${id}. Fake process object is returned instead.`);return globalThis.process}console.error(`Module not found: ${id}. Empty object is returned instead.`);return{}}__name(requirePatched,"requirePatched")})()
7
-
8
- "use strict";
9
- var __defProp = Object.defineProperty;
10
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
- var __getOwnPropNames = Object.getOwnPropertyNames;
12
- var __hasOwnProp = Object.prototype.hasOwnProperty;
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
- var types_exports = {};
23
- module.exports = __toCommonJS(types_exports);
24
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vc3JjL0B0eXBlcy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBAcGFja2FnZURvY3VtZW50YXRpb24gXFxAdHlwZXNcbiAqIENvbnRhaW5zIHV0aWxpdHkgdHlwZXMgZm9yIHdvcmtpbmcgd2l0aCBUeXBlU2NyaXB0IGNsYXNzZXMgYW5kIHR5cGUgcHJvcGVydGllcy5cbiAqL1xuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBjb25zdHJ1Y3RvciB0eXBlIGZvciBhIGdpdmVuIGNsYXNzIGBUYCB3aXRoIGFyZ3VtZW50cyBgQXJnc2AuXG4gKlxuICogQHR5cGVQYXJhbSBUeXBlIC0gVGhlIHR5cGUgb2YgdGhlIGluc3RhbmNlIGJlaW5nIGNvbnN0cnVjdGVkLlxuICogQHR5cGVQYXJhbSBBcmdzIC0gVGhlIHR5cGVzIG9mIGFyZ3VtZW50cyB0aGUgY29uc3RydWN0b3IgYWNjZXB0cy5cbiAqL1xuZXhwb3J0IHR5cGUgQ29uc3RydWN0b3I8VHlwZSwgQXJncyBleHRlbmRzIHVua25vd25bXSA9IFtdPiA9IG5ldyAoLi4uYXJnczogQXJncykgPT4gVHlwZTtcblxuLyoqXG4gKiBFeHRyYWN0cyB0aGUga2V5cyBvZiBhIGdpdmVuIHR5cGUgYFR5cGVgIHRoYXQgbWF0Y2ggYSBzcGVjaWZpYyB2YWx1ZSB0eXBlIGBWYWx1ZWAuXG4gKlxuICogQHR5cGVQYXJhbSBUeXBlIC0gVGhlIHR5cGUgZnJvbSB3aGljaCB0byBleHRyYWN0IHRoZSBrZXlzLlxuICogQHR5cGVQYXJhbSBWYWx1ZSAtIFRoZSB2YWx1ZSB0eXBlIHRvIG1hdGNoIGFnYWluc3QuXG4gKi9cbmV4cG9ydCB0eXBlIEtleXNNYXRjaGluZzxUeXBlLCBWYWx1ZT4gPSB7IFtLZXkgaW4ga2V5b2YgVHlwZV0tPzogVHlwZVtLZXldIGV4dGVuZHMgVmFsdWUgPyBLZXkgOiBuZXZlciB9W2tleW9mIFR5cGVdO1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFBQTsiLAogICJuYW1lcyI6IFtdCn0K
@@ -1,20 +0,0 @@
1
- /**
2
- * @packageDocumentation \@types
3
- * Contains utility types for working with TypeScript classes and type properties.
4
- */
5
- /**
6
- * Represents a constructor type for a given class `T` with arguments `Args`.
7
- *
8
- * @typeParam Type - The type of the instance being constructed.
9
- * @typeParam Args - The types of arguments the constructor accepts.
10
- */
11
- export type Constructor<Type, Args extends unknown[] = []> = new (...args: Args) => Type;
12
- /**
13
- * Extracts the keys of a given type `Type` that match a specific value type `Value`.
14
- *
15
- * @typeParam Type - The type from which to extract the keys.
16
- * @typeParam Value - The value type to match against.
17
- */
18
- export type KeysMatching<Type, Value> = {
19
- [Key in keyof Type]-?: Type[Key] extends Value ? Key : never;
20
- }[keyof Type];
@@ -1,60 +0,0 @@
1
- /*
2
- THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
3
- if you want to view the source, please visit the github repository of this plugin
4
- */
5
-
6
- (function init(){const globalThisRecord=globalThis;globalThisRecord["__name"]??=name;if(!require.__isPatched){const originalRequire=require;require=Object.assign(id=>requirePatched(id,originalRequire),originalRequire,{__isPatched:true})}const newFuncs={__extractDefault:__name(()=>extractDefault,"__extractDefault"),process:__name(()=>({browser:true,cwd:__name(()=>"/","cwd"),env:{},platform:"android"}),"process")};for(const key of Object.keys(newFuncs)){globalThisRecord[key]??=newFuncs[key]?.()}function name(obj){return obj}__name(name,"name");function extractDefault(module){return module&&module.__esModule&&module.default?module.default:module}__name(extractDefault,"extractDefault");function requirePatched(id,originalRequire){const module=originalRequire(id);if(module){return extractDefault(module)}if(id==="process"||id==="node:process"){console.error(`Module not found: ${id}. Fake process object is returned instead.`);return globalThis.process}console.error(`Module not found: ${id}. Empty object is returned instead.`);return{}}__name(requirePatched,"requirePatched")})()
7
-
8
- "use strict";
9
- var __defProp = Object.defineProperty;
10
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
- var __getOwnPropNames = Object.getOwnPropertyNames;
12
- var __hasOwnProp = Object.prototype.hasOwnProperty;
13
- var __export = (target, all) => {
14
- for (var name in all)
15
- __defProp(target, name, { get: all[name], enumerable: true });
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
- var renameToCjsPlugin_exports = {};
27
- __export(renameToCjsPlugin_exports, {
28
- renameToCjsPlugin: () => renameToCjsPlugin
29
- });
30
- module.exports = __toCommonJS(renameToCjsPlugin_exports);
31
- var import_String = require('../../String.cjs');
32
- var import_NodeModules = require('../NodeModules.cjs');
33
- function renameToCjsPlugin() {
34
- return {
35
- name: "rename-to-cjs",
36
- setup(build) {
37
- build.onEnd(async (result) => {
38
- for (const file of result.outputFiles ?? []) {
39
- if (!file.path.endsWith(".js") || file.path.endsWith(".d.js")) {
40
- continue;
41
- }
42
- const newPath = (0, import_String.replaceAll)(file.path, /\.js$/g, ".cjs");
43
- const newText = (0, import_String.replaceAll)(file.text, /require\(["'](?<ImportPath>.+?)["']\)/g, (_, importPath) => {
44
- if (importPath.endsWith(".d.ts")) {
45
- return "undefined";
46
- }
47
- const cjsImportPath = (0, import_String.replaceAll)(importPath, /\.ts$/g, ".cjs");
48
- return `require('${cjsImportPath}')`;
49
- });
50
- await (0, import_NodeModules.writeFile)(newPath, newText);
51
- }
52
- });
53
- }
54
- };
55
- }
56
- // Annotate the CommonJS export names for ESM import in node:
57
- 0 && (module.exports = {
58
- renameToCjsPlugin
59
- });
60
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL3NjcmlwdHMvZXNidWlsZC9yZW5hbWVUb0Nqc1BsdWdpbi50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLyoqXG4gKiBAcGFja2FnZURvY3VtZW50YXRpb24gcmVuYW1lVG9DanNQbHVnaW5cbiAqIFRoaXMgbW9kdWxlIGRlZmluZXMgYW4gZXNidWlsZCBwbHVnaW4gdGhhdCByZW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MLE1BQU07QUFBQSxJQUNOLE1BQU0sT0FBYTtBQUNqQixZQUFNLE1BQU0sT0FBTyxXQUFXO0FBQzVCLG1CQUFXLFFBQVEsT0FBTyxlQUFlLENBQUMsR0FBRztBQUMzQyxjQUFJLENBQUMsS0FBSyxLQUFLLFNBQVMsS0FBSyxLQUFLLEtBQUssS0FBSyxTQUFTLE9BQU8sR0FBRztBQUM3RDtBQUFBLFVBQ0Y7QUFFQSxnQkFBTSxjQUFVLDBCQUFXLEtBQUssTUFBTSxVQUFVLE1BQU07QUFFdEQsZ0JBQU0sY0FBVSwwQkFBVyxLQUFLLE1BQU0sMENBQTBDLENBQUMsR0FBRyxlQUFlO0FBQ2pHLGdCQUFJLFdBQVcsU0FBUyxPQUFPLEdBQUc7QUFDaEMscUJBQU87QUFBQSxZQUNUO0FBRUEsa0JBQU0sb0JBQWdCLDBCQUFXLFlBQVksVUFBVSxNQUFNO0FBQzdELG1CQUFPLFlBQVksYUFBYTtBQUFBLFVBQ2xDLENBQUM7QUFFRCxvQkFBTSw4QkFBVSxTQUFTLE9BQU87QUFBQSxRQUNsQztBQUFBLE1BQ0YsQ0FBQztBQUFBLElBQ0g7QUFBQSxFQUNGO0FBQ0Y7IiwKICAibmFtZXMiOiBbXQp9Cg==
@@ -1,14 +0,0 @@
1
- /**
2
- * @packageDocumentation renameToCjsPlugin
3
- * This module defines an esbuild plugin that renames JavaScript files to CommonJS (`.cjs`) files after the build process.
4
- * It also adjusts the `require` statements to ensure compatibility with the CommonJS format, particularly when dealing
5
- * with dependencies that are not to be skipped.
6
- */
7
- import type { Plugin } from 'esbuild';
8
- /**
9
- * Creates an esbuild plugin that renames JavaScript files to CommonJS (`.cjs`) files
10
- * and modifies `require` statements to ensure proper module resolution.
11
- *
12
- * @returns An esbuild `Plugin` object that handles the renaming and modification of output files.
13
- */
14
- export declare function renameToCjsPlugin(): Plugin;