sanity 4.22.0-next.9 → 4.22.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.
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "4.22.0-next.9+735f7b4d1c";
10
+ "4.22.1";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
@@ -7,7 +7,7 @@ import {CliCommandGroupDefinition} from '@sanity/cli'
7
7
  */
8
8
  export declare const cliProjectCommands: {
9
9
  requiredCliVersionRange: string
10
- commands: (CliCommandGroupDefinition | CliCommandDefinition<Record<string, unknown>>)[]
10
+ commands: (CliCommandDefinition<Record<string, unknown>> | CliCommandGroupDefinition)[]
11
11
  }
12
12
 
13
13
  export {}
@@ -11009,8 +11009,8 @@ declare const presentationMachine: StateMachine<
11009
11009
  never,
11010
11010
  never,
11011
11011
  never,
11012
- | 'error'
11013
11012
  | 'loading'
11013
+ | 'error'
11014
11014
  | {
11015
11015
  loaded: 'idle' | 'refreshing' | 'reloading'
11016
11016
  },
@@ -17881,6 +17881,12 @@ declare interface Tool<Options = any> {
17881
17881
  | {
17882
17882
  [key: string]: boolean
17883
17883
  }
17884
+ /**
17885
+ * Internal application type identifier used to classify system tools.
17886
+ *
17887
+ * @internal
17888
+ */
17889
+ __internalApplicationType?: string
17884
17890
  }
17885
17891
 
17886
17892
  /**
@@ -17965,6 +17971,12 @@ declare interface Tool_2<Options = any> {
17965
17971
  | {
17966
17972
  [key: string]: boolean
17967
17973
  }
17974
+ /**
17975
+ * Internal application type identifier used to classify system tools.
17976
+ *
17977
+ * @internal
17978
+ */
17979
+ __internalApplicationType?: string
17968
17980
  }
17969
17981
 
17970
17982
  /**
package/lib/desk.d.ts CHANGED
@@ -13296,6 +13296,12 @@ declare interface Tool<Options = any> {
13296
13296
  | {
13297
13297
  [key: string]: boolean
13298
13298
  }
13299
+ /**
13300
+ * Internal application type identifier used to classify system tools.
13301
+ *
13302
+ * @internal
13303
+ */
13304
+ __internalApplicationType?: string
13299
13305
  }
13300
13306
 
13301
13307
  /**
@@ -13380,6 +13386,12 @@ declare interface Tool_2<Options = any> {
13380
13386
  | {
13381
13387
  [key: string]: boolean
13382
13388
  }
13389
+ /**
13390
+ * Internal application type identifier used to classify system tools.
13391
+ *
13392
+ * @internal
13393
+ */
13394
+ __internalApplicationType?: string
13383
13395
  }
13384
13396
 
13385
13397
  /**
package/lib/index.d.ts CHANGED
@@ -2088,45 +2088,45 @@ declare const Button: ForwardRefExoticComponent<
2088
2088
  | Omit<
2089
2089
  Pick<
2090
2090
  ButtonProps_2,
2091
- | 'type'
2092
- | 'mode'
2093
- | 'icon'
2094
2091
  | 'as'
2095
2092
  | 'selected'
2093
+ | 'type'
2096
2094
  | 'width'
2097
- | 'tone'
2098
- | 'paddingY'
2099
- | 'paddingLeft'
2095
+ | 'icon'
2096
+ | 'iconRight'
2100
2097
  | 'justify'
2101
2098
  | 'loading'
2102
- | 'iconRight'
2099
+ | 'mode'
2100
+ | 'paddingY'
2101
+ | 'paddingLeft'
2102
+ | 'tone'
2103
2103
  > & {
2104
2104
  size?: 'default' | 'large'
2105
2105
  radius?: 'full'
2106
2106
  } & ButtonWithText &
2107
- Omit<HTMLProps<HTMLButtonElement>, 'title' | 'as' | 'size'>,
2107
+ Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'title'>,
2108
2108
  'ref'
2109
2109
  >
2110
2110
  | Omit<
2111
2111
  Pick<
2112
2112
  ButtonProps_2,
2113
- | 'type'
2114
- | 'mode'
2115
- | 'icon'
2116
2113
  | 'as'
2117
2114
  | 'selected'
2115
+ | 'type'
2118
2116
  | 'width'
2119
- | 'tone'
2120
- | 'paddingY'
2121
- | 'paddingLeft'
2117
+ | 'icon'
2118
+ | 'iconRight'
2122
2119
  | 'justify'
2123
2120
  | 'loading'
2124
- | 'iconRight'
2121
+ | 'mode'
2122
+ | 'paddingY'
2123
+ | 'paddingLeft'
2124
+ | 'tone'
2125
2125
  > & {
2126
2126
  size?: 'default' | 'large'
2127
2127
  radius?: 'full'
2128
2128
  } & IconButton &
2129
- Omit<HTMLProps<HTMLButtonElement>, 'title' | 'as' | 'size'>,
2129
+ Omit<HTMLProps<HTMLButtonElement>, 'as' | 'size' | 'title'>,
2130
2130
  'ref'
2131
2131
  >
2132
2132
  ) &
@@ -3389,7 +3389,7 @@ export declare interface ConnectorContextValue {
3389
3389
  */
3390
3390
  export declare const ContextMenuButton: ForwardRefExoticComponent<
3391
3391
  ContextMenuButtonProps &
3392
- Pick<HTMLProps<HTMLButtonElement>, 'hidden' | 'onClick' | 'disabled'> &
3392
+ Pick<HTMLProps<HTMLButtonElement>, 'disabled' | 'hidden' | 'onClick'> &
3393
3393
  RefAttributes<HTMLButtonElement>
3394
3394
  >
3395
3395
 
@@ -3619,7 +3619,7 @@ export declare function createMockAuthStore({client, currentUser}: MockAuthStore
3619
3619
  export declare const createObservableBufferedDocument: (
3620
3620
  listenerEvent$: Observable<ListenerEvent>,
3621
3621
  ) => {
3622
- updates$: Observable<DocumentRebaseEvent | DocumentMutationEvent | SnapshotEvent>
3622
+ updates$: Observable<DocumentMutationEvent | DocumentRebaseEvent | SnapshotEvent>
3623
3623
  consistency$: Observable<boolean>
3624
3624
  remoteSnapshot$: Observable<RemoteSnapshotEvent>
3625
3625
  commitRequest$: Subject<CommitRequest>
@@ -5573,6 +5573,7 @@ export declare function emitOperation(
5573
5573
  idPair: IdPair,
5574
5574
  typeName: string,
5575
5575
  extraArgs: any[],
5576
+ storeKey?: string,
5576
5577
  ): void
5577
5578
 
5578
5579
  /** @internal */
@@ -5726,6 +5727,7 @@ declare interface ExecuteArgs {
5726
5727
  operationName: keyof OperationsAPI
5727
5728
  idPair: IdPair
5728
5729
  typeName: string
5730
+ storeKey?: string
5729
5731
  extraArgs: any[]
5730
5732
  }
5731
5733
 
@@ -12883,7 +12885,7 @@ export declare type Status = 'online' | 'editing' | 'inactive'
12883
12885
 
12884
12886
  /** @hidden @beta */
12885
12887
  export declare const StatusButton: ForwardRefExoticComponent<
12886
- (StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'title' | 'disabled' | 'size'>) &
12888
+ (StatusButtonProps & Omit<HTMLProps<HTMLButtonElement>, 'ref' | 'disabled' | 'size' | 'title'>) &
12887
12889
  RefAttributes<HTMLButtonElement>
12888
12890
  >
12889
12891
 
@@ -15840,6 +15842,12 @@ export declare interface Tool<Options = any> {
15840
15842
  | {
15841
15843
  [key: string]: boolean
15842
15844
  }
15845
+ /**
15846
+ * Internal application type identifier used to classify system tools.
15847
+ *
15848
+ * @internal
15849
+ */
15850
+ __internalApplicationType?: string
15843
15851
  }
15844
15852
 
15845
15853
  /**
@@ -16367,7 +16375,7 @@ export declare function useClient(clientOptions: SourceClientOptions): SanityCli
16367
16375
  * @internal
16368
16376
  */
16369
16377
  export declare function useColorScheme(): {
16370
- scheme: 'dark' | 'light'
16378
+ scheme: 'light' | 'dark'
16371
16379
  setScheme: false | ((nextScheme: StudioThemeColorSchemeKey) => void)
16372
16380
  }
16373
16381
 
@@ -17303,7 +17311,7 @@ export declare function useReferenceInputOptions(): ReferenceInputOptions
17303
17311
  export declare function useReferringDocuments<DocumentType extends SanityDocument_2>(
17304
17312
  id: string,
17305
17313
  fields?: DocumentField[],
17306
- ): ReferringDocumentsState<never> | ReferringDocumentsState<DocumentType>
17314
+ ): ReferringDocumentsState<DocumentType> | ReferringDocumentsState<never>
17307
17315
 
17308
17316
  /** @internal */
17309
17317
  export declare function useRelativeTime(time: Date | string, options?: RelativeTimeOptions): string