@sanity/sdk-react 0.0.0-alpha.28 → 0.0.0-alpha.29
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/dist/index.d.ts +7 -51
- package/dist/index.js +1018 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/_exports/sdk-react.ts +1 -1
- package/src/hooks/document/useDocumentPermissions.ts +1 -1
- package/src/hooks/projection/useProjection.ts +1 -1
- package/dist/_chunks-es/index.js +0 -5835
- package/dist/_chunks-es/index.js.map +0 -1
- package/dist/_chunks-es/node.js +0 -256
- package/dist/_chunks-es/node.js.map +0 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +0 -340
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +0 -1
- package/src/components/auth/LoginFooter.test.tsx +0 -19
- package/src/components/auth/LoginFooter.tsx +0 -51
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {CanvasResource} from '@sanity/message-protocol'
|
|
|
5
5
|
import {ClientOptions} from '@sanity/sdk'
|
|
6
6
|
import {CurrentUser} from '@sanity/sdk'
|
|
7
7
|
import {DatasetHandle} from '@sanity/sdk'
|
|
8
|
+
import {DatasetsResponse} from '@sanity/client'
|
|
8
9
|
import {DocumentAction} from '@sanity/sdk'
|
|
9
10
|
import {DocumentEvent} from '@sanity/sdk'
|
|
10
11
|
import {DocumentHandle} from '@sanity/sdk'
|
|
@@ -25,6 +26,8 @@ import {SanityConfig} from '@sanity/sdk'
|
|
|
25
26
|
import {SanityDocument} from '@sanity/types'
|
|
26
27
|
import {SanityInstance} from '@sanity/sdk'
|
|
27
28
|
import {SanityProject} from '@sanity/sdk'
|
|
29
|
+
import {SanityProject as SanityProject_2} from '@sanity/client'
|
|
30
|
+
import {SanityProjectMember} from '@sanity/client'
|
|
28
31
|
import {SanityUser} from '@sanity/sdk'
|
|
29
32
|
import {SortOrderingItem} from '@sanity/types'
|
|
30
33
|
import {StudioResource} from '@sanity/message-protocol'
|
|
@@ -108,20 +111,7 @@ declare interface DashboardResource {
|
|
|
108
111
|
url: string
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
|
|
112
|
-
declare type DatasetAclMode = 'public' | 'private' | 'custom'
|
|
113
|
-
|
|
114
|
-
/** @public */
|
|
115
|
-
export declare type DatasetsResponse = {
|
|
116
|
-
name: string
|
|
117
|
-
aclMode: DatasetAclMode
|
|
118
|
-
createdAt: string
|
|
119
|
-
createdByUserId: string
|
|
120
|
-
addonFor: string | null
|
|
121
|
-
datasetProfile: string
|
|
122
|
-
features: string[]
|
|
123
|
-
tags: string[]
|
|
124
|
-
}[]
|
|
114
|
+
export {DatasetsResponse}
|
|
125
115
|
|
|
126
116
|
declare interface DocumentInteractionHistory {
|
|
127
117
|
recordEvent: (eventType: 'viewed' | 'edited' | 'created' | 'deleted') => void
|
|
@@ -496,41 +486,7 @@ export declare interface SanityAppProps {
|
|
|
496
486
|
|
|
497
487
|
export {SanityDocument}
|
|
498
488
|
|
|
499
|
-
|
|
500
|
-
declare interface SanityProject_2 {
|
|
501
|
-
id: string
|
|
502
|
-
displayName: string
|
|
503
|
-
/**
|
|
504
|
-
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
505
|
-
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
506
|
-
*/
|
|
507
|
-
studioHost: string | null
|
|
508
|
-
organizationId: string | null
|
|
509
|
-
isBlocked: boolean
|
|
510
|
-
isDisabled: boolean
|
|
511
|
-
isDisabledByUser: boolean
|
|
512
|
-
createdAt: string
|
|
513
|
-
pendingInvites?: number
|
|
514
|
-
maxRetentionDays?: number
|
|
515
|
-
members: SanityProjectMember[]
|
|
516
|
-
metadata: {
|
|
517
|
-
cliInitializedAt?: string
|
|
518
|
-
color?: string
|
|
519
|
-
/**
|
|
520
|
-
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
521
|
-
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
522
|
-
*/
|
|
523
|
-
externalStudioHost?: string
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/** @public */
|
|
528
|
-
export declare interface SanityProjectMember {
|
|
529
|
-
id: string
|
|
530
|
-
role: string
|
|
531
|
-
isRobot: boolean
|
|
532
|
-
isCurrentUser: boolean
|
|
533
|
-
}
|
|
489
|
+
export {SanityProjectMember}
|
|
534
490
|
|
|
535
491
|
/**
|
|
536
492
|
* @internal
|
|
@@ -876,7 +832,7 @@ export declare function useDocumentEvent(
|
|
|
876
832
|
|
|
877
833
|
/**
|
|
878
834
|
*
|
|
879
|
-
* @
|
|
835
|
+
* @public
|
|
880
836
|
*
|
|
881
837
|
* Check if the current user has the specified permissions for the given document actions.
|
|
882
838
|
*
|
|
@@ -1466,7 +1422,7 @@ declare type UseProject = {
|
|
|
1466
1422
|
export declare const useProject: UseProject
|
|
1467
1423
|
|
|
1468
1424
|
/**
|
|
1469
|
-
* @
|
|
1425
|
+
* @public
|
|
1470
1426
|
*
|
|
1471
1427
|
* Returns the projection values of a document (specified via a `DocumentHandle`),
|
|
1472
1428
|
* based on the provided projection string. These values are live and will update in realtime.
|