@obsidian-typings/obsidian-catalyst-1.13.2 1.1.0 → 1.2.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.
@@ -15510,7 +15510,7 @@ declare module "obsidian" {
15510
15510
  * @since 1.11.4
15511
15511
  * @official
15512
15512
  */
15513
- onChange(cb: (value: string) => unknown): this;
15513
+ onChange(cb: (value: null | string) => unknown): this;
15514
15514
  /**
15515
15515
  * Sets the value of the secret component.
15516
15516
  *
@@ -17825,6 +17825,24 @@ declare module "obsidian" {
17825
17825
  */
17826
17826
  export function iterateCacheRefs(cache: CachedMetadata, cb: (ref: ReferenceCache) => boolean | void): boolean;
17827
17827
  }
17828
+ declare module "obsidian" {
17829
+ /**
17830
+ * Links the setting to a secret stored in SecretStorage. Persists the secret's
17831
+ * key (a string reference), not the secret itself; the value is read from and
17832
+ * managed through `app.secretStorage`.
17833
+ *
17834
+ * @since 1.13.2
17835
+ */
17836
+ interface SettingSecretControl<K extends string = string> extends SettingControlBase<string, K> {
17837
+ /**
17838
+ * Discriminant identifying this control as a secret control.
17839
+ *
17840
+ * @since 1.13.2
17841
+ * @official
17842
+ */
17843
+ type: "secret";
17844
+ }
17845
+ }
17828
17846
  declare module "obsidian" {
17829
17847
  /**
17830
17848
  * Listed content of the folder.
@@ -23977,7 +23995,7 @@ declare module "obsidian" {
23977
23995
  * @deprecated - Added only for typing purposes. Use {@link SettingControl} instead.
23978
23996
  * @since 1.13.0
23979
23997
  */
23980
- type SettingControl__<K extends string = string> = SettingColorControl<K> | SettingDropdownControl<K> | SettingFileControl<K> | SettingFolderControl<K> | SettingNumberControl<K> | SettingSliderControl<K> | SettingTextAreaControl<K> | SettingTextControl<K> | SettingToggleControl<K>;
23998
+ type SettingControl__<K extends string = string> = SettingColorControl<K> | SettingDropdownControl<K> | SettingFileControl<K> | SettingFolderControl<K> | SettingNumberControl<K> | SettingSecretControl<K> | SettingSliderControl<K> | SettingTextAreaControl<K> | SettingTextControl<K> | SettingToggleControl<K>;
23981
23999
  }
23982
24000
  declare module "obsidian" {
23983
24001
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obsidian-typings/obsidian-catalyst-1.13.2",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "keywords": [
6
6
  "obsdmd",