@depup/sanity 5.17.1-depup.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.
- package/LICENSE +21 -0
- package/README.md +57 -0
- package/bin/sanity +209 -0
- package/changes.json +114 -0
- package/lib/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +16164 -0
- package/lib/_chunks-dts/index.d.ts +780 -0
- package/lib/_chunks-dts/types.d.ts +2765 -0
- package/lib/_chunks-dts/types2.d.ts +656 -0
- package/lib/_chunks-dts/types3.d.ts +303 -0
- package/lib/_chunks-es/BroadcastDisplayedDocument.js +20 -0
- package/lib/_chunks-es/BroadcastDisplayedDocument.js.map +1 -0
- package/lib/_chunks-es/DisplayedDocumentBroadcaster.js +32 -0
- package/lib/_chunks-es/DisplayedDocumentBroadcaster.js.map +1 -0
- package/lib/_chunks-es/LiveQueries.js +339 -0
- package/lib/_chunks-es/LiveQueries.js.map +1 -0
- package/lib/_chunks-es/MenuGroup.js +106 -0
- package/lib/_chunks-es/MenuGroup.js.map +1 -0
- package/lib/_chunks-es/PostMessageDocuments.js +72 -0
- package/lib/_chunks-es/PostMessageDocuments.js.map +1 -0
- package/lib/_chunks-es/PostMessagePerspective.js +23 -0
- package/lib/_chunks-es/PostMessagePerspective.js.map +1 -0
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js +69 -0
- package/lib/_chunks-es/PostMessagePreviewSnapshots.js.map +1 -0
- package/lib/_chunks-es/PostMessageRefreshMutations.js +74 -0
- package/lib/_chunks-es/PostMessageRefreshMutations.js.map +1 -0
- package/lib/_chunks-es/PostMessageSchema.js +502 -0
- package/lib/_chunks-es/PostMessageSchema.js.map +1 -0
- package/lib/_chunks-es/PostMessageTelemetry.js +21 -0
- package/lib/_chunks-es/PostMessageTelemetry.js.map +1 -0
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +3848 -0
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -0
- package/lib/_chunks-es/QRCodeSVG.js +692 -0
- package/lib/_chunks-es/QRCodeSVG.js.map +1 -0
- package/lib/_chunks-es/StructureToolProvider.js +2360 -0
- package/lib/_chunks-es/StructureToolProvider.js.map +1 -0
- package/lib/_chunks-es/VideoPlayer.js +22 -0
- package/lib/_chunks-es/VideoPlayer.js.map +1 -0
- package/lib/_chunks-es/ViteDevServerStopped.js +52 -0
- package/lib/_chunks-es/ViteDevServerStopped.js.map +1 -0
- package/lib/_chunks-es/index.js +285 -0
- package/lib/_chunks-es/index.js.map +1 -0
- package/lib/_chunks-es/index2.js +105 -0
- package/lib/_chunks-es/index2.js.map +1 -0
- package/lib/_chunks-es/index3.js +139 -0
- package/lib/_chunks-es/index3.js.map +1 -0
- package/lib/_chunks-es/index4.js +1020 -0
- package/lib/_chunks-es/index4.js.map +1 -0
- package/lib/_chunks-es/pane.js +5 -0
- package/lib/_chunks-es/pane.js.map +1 -0
- package/lib/_chunks-es/pane2.js +5 -0
- package/lib/_chunks-es/pane2.js.map +1 -0
- package/lib/_chunks-es/presentation.js +549 -0
- package/lib/_chunks-es/presentation.js.map +1 -0
- package/lib/_chunks-es/resources.js +303 -0
- package/lib/_chunks-es/resources.js.map +1 -0
- package/lib/_chunks-es/resources2.js +459 -0
- package/lib/_chunks-es/resources2.js.map +1 -0
- package/lib/_chunks-es/resources3.js +281 -0
- package/lib/_chunks-es/resources3.js.map +1 -0
- package/lib/_chunks-es/resources4.js +184 -0
- package/lib/_chunks-es/resources4.js.map +1 -0
- package/lib/_chunks-es/resources5.js +161 -0
- package/lib/_chunks-es/resources5.js.map +1 -0
- package/lib/_chunks-es/resources6.js +141 -0
- package/lib/_chunks-es/resources6.js.map +1 -0
- package/lib/_chunks-es/resources7.js +24 -0
- package/lib/_chunks-es/resources7.js.map +1 -0
- package/lib/_chunks-es/resources8.js +603 -0
- package/lib/_chunks-es/resources8.js.map +1 -0
- package/lib/_chunks-es/resources9.js +126 -0
- package/lib/_chunks-es/resources9.js.map +1 -0
- package/lib/_chunks-es/structureTool.js +13673 -0
- package/lib/_chunks-es/structureTool.js.map +1 -0
- package/lib/_chunks-es/version.js +17 -0
- package/lib/_chunks-es/version.js.map +1 -0
- package/lib/_createContext.d.ts +12 -0
- package/lib/_createContext.js +38 -0
- package/lib/_createContext.js.map +1 -0
- package/lib/_internal.d.ts +9 -0
- package/lib/_internal.js +12 -0
- package/lib/_internal.js.map +1 -0
- package/lib/_singletons.d.ts +951 -0
- package/lib/_singletons.js +284 -0
- package/lib/_singletons.js.map +1 -0
- package/lib/cli.d.ts +3 -0
- package/lib/cli.js +9 -0
- package/lib/cli.js.map +1 -0
- package/lib/desk.d.ts +910 -0
- package/lib/desk.js +71 -0
- package/lib/desk.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +92934 -0
- package/lib/index.js.map +1 -0
- package/lib/media-library.d.ts +85 -0
- package/lib/media-library.js +11 -0
- package/lib/media-library.js.map +1 -0
- package/lib/migrate.d.ts +1 -0
- package/lib/migrate.js +2 -0
- package/lib/migrate.js.map +1 -0
- package/lib/presentation.d.ts +28 -0
- package/lib/presentation.js +10 -0
- package/lib/presentation.js.map +1 -0
- package/lib/router.d.ts +560 -0
- package/lib/router.js +777 -0
- package/lib/router.js.map +1 -0
- package/lib/structure.d.ts +3 -0
- package/lib/structure.js +639 -0
- package/lib/structure.js.map +1 -0
- package/mock-browser-env-stub-loader.mjs +27 -0
- package/package.json +383 -0
- package/static/favicons/apple-touch-icon.png +0 -0
- package/static/favicons/favicon-192.png +0 -0
- package/static/favicons/favicon-512.png +0 -0
- package/static/favicons/favicon-96.png +0 -0
- package/static/favicons/favicon.ico +0 -0
- package/static/favicons/favicon.svg +12 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
import { D as StructureResolver, i as PaneRouterContextValue, j as StructureToolOptions, k as StructureToolContextValue, p as DocumentPaneNode, s as DocumentPaneContextValue, vt as DefaultDocumentNodeResolver, y as PaneNode } from "./types.js";
|
|
2
|
+
import * as react from "react";
|
|
3
|
+
import { ComponentProps, ComponentType, ElementType, HTMLProps, ReactNode } from "react";
|
|
4
|
+
import { Path, PreviewValue, SanityDocument, SanityDocumentLike, SchemaType, SortOrdering } from "@sanity/types";
|
|
5
|
+
import { BoxOverflow, CardProps, SelectableTone } from "@sanity/ui";
|
|
6
|
+
import { PaneRouterContext } from "sanity/_singletons";
|
|
7
|
+
import * as sanity from "sanity";
|
|
8
|
+
import { ActionComponent, DecorationMember, DocumentActionComponent, DocumentActionDialogProps, DocumentDefinition, EditStateFor, GeneralPreviewLayoutKey, InitialValueTemplateItem, PreviewConfig, ReleaseId, SanityClient, SanityDocument as SanityDocument$1, TimelineStore } from "sanity";
|
|
9
|
+
interface BaseStructureToolPaneProps<T extends PaneNode['type']> {
|
|
10
|
+
paneKey: string;
|
|
11
|
+
index: number;
|
|
12
|
+
itemId: string;
|
|
13
|
+
childItemId?: string;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
pane: Extract<PaneNode, {
|
|
17
|
+
type: T;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* TODO: COREL - Remove this after updating sanity-assist to use <PerspectiveProvider>
|
|
21
|
+
*
|
|
22
|
+
* Allows to override the global version with a specific version or release.
|
|
23
|
+
* @deprecated use <PerspectiveProvider> instead
|
|
24
|
+
* @beta
|
|
25
|
+
*/
|
|
26
|
+
forcedVersion?: {
|
|
27
|
+
selectedPerspectiveName: ReleaseId | 'published' | undefined;
|
|
28
|
+
isReleaseLocked: boolean;
|
|
29
|
+
selectedReleaseId: ReleaseId | undefined;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Avoid specifying a key, instead use `paneKey` if need be
|
|
33
|
+
*/
|
|
34
|
+
key?: string;
|
|
35
|
+
}
|
|
36
|
+
/** @internal */
|
|
37
|
+
interface ConfirmDeleteDialogProps {
|
|
38
|
+
/**
|
|
39
|
+
* Incoming document ID used to find other referencing documents. This
|
|
40
|
+
* field respects draft IDs (e.g. if you pass in a published ID when one
|
|
41
|
+
* doesn't exist the document title may not show up).
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The schema typename of the incoming document
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the action being done. (e.g. the `'unpublish'` action requires
|
|
50
|
+
* the same document deletion confirmation).
|
|
51
|
+
*/
|
|
52
|
+
action?: 'delete' | 'unpublish';
|
|
53
|
+
onCancel: () => void;
|
|
54
|
+
onConfirm: (versions: string[]) => void;
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
57
|
+
declare function ConfirmDeleteDialogContainer(props: ConfirmDeleteDialogProps): react.JSX.Element;
|
|
58
|
+
interface PaneProps {
|
|
59
|
+
children?: ReactNode;
|
|
60
|
+
currentMinWidth?: number;
|
|
61
|
+
currentMaxWidth?: number;
|
|
62
|
+
flex?: number;
|
|
63
|
+
id: string;
|
|
64
|
+
minWidth?: number;
|
|
65
|
+
maxWidth?: number;
|
|
66
|
+
selected?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
declare const Pane: react.ForwardRefExoticComponent<Omit<PaneProps & Omit<CardProps, "as" | "overflow"> & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "hidden" | "id" | "style">, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
73
|
+
interface PaneContentProps {
|
|
74
|
+
as?: ElementType | keyof React.JSX.IntrinsicElements;
|
|
75
|
+
overflow?: BoxOverflow;
|
|
76
|
+
padding?: number | number[];
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @hidden
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
declare const PaneContent: react.ForwardRefExoticComponent<PaneContentProps & Omit<HTMLProps<HTMLDivElement>, "as" | "height" | "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @hidden
|
|
86
|
+
* @beta This API will change. DO NOT USE IN PRODUCTION.
|
|
87
|
+
*/
|
|
88
|
+
interface PaneLayoutProps {
|
|
89
|
+
minWidth?: number;
|
|
90
|
+
onCollapse?: () => void;
|
|
91
|
+
onExpand?: () => void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @hidden
|
|
96
|
+
* @beta This API will change. DO NOT USE IN PRODUCTION.
|
|
97
|
+
*/
|
|
98
|
+
declare function PaneLayout(props: PaneLayoutProps & CardProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref' | 'wrap'>): react.JSX.Element;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @hidden
|
|
102
|
+
* @beta
|
|
103
|
+
*/
|
|
104
|
+
declare function usePaneRouter(): PaneRouterContextValue;
|
|
105
|
+
type IncomingReferenceActionsContext = {
|
|
106
|
+
/**
|
|
107
|
+
* The document that is linked to the reference.
|
|
108
|
+
*/
|
|
109
|
+
document: SanityDocument$1;
|
|
110
|
+
getClient: (options: {
|
|
111
|
+
apiVersion: string;
|
|
112
|
+
}) => SanityClient;
|
|
113
|
+
};
|
|
114
|
+
type IncomingReferenceActionDescription = {
|
|
115
|
+
label: string;
|
|
116
|
+
icon?: React.ElementType;
|
|
117
|
+
tone?: SelectableTone;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
onHandle: (() => Promise<void>) | (() => void);
|
|
120
|
+
dialog?: DocumentActionDialogProps | false | null;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Incoming reference action component definition.
|
|
124
|
+
* Allows users to define actions that will be shown in the IncomingReferences component as part
|
|
125
|
+
* of each reference
|
|
126
|
+
* example:
|
|
127
|
+
* ```ts
|
|
128
|
+
* export const LogReferenceAction: IncomingReferenceAction = ({document, getClient}) => {
|
|
129
|
+
* return {
|
|
130
|
+
* label: 'Log reference',
|
|
131
|
+
* icon: LogIcon,
|
|
132
|
+
* onHandle: () => console.log(document._id)
|
|
133
|
+
* }
|
|
134
|
+
* }
|
|
135
|
+
* ```
|
|
136
|
+
*
|
|
137
|
+
* @beta
|
|
138
|
+
*/
|
|
139
|
+
type IncomingReferenceAction = ActionComponent<IncomingReferenceActionsContext, IncomingReferenceActionDescription>;
|
|
140
|
+
interface CrossDatasetIncomingReference {
|
|
141
|
+
type: string;
|
|
142
|
+
title?: string;
|
|
143
|
+
dataset: string;
|
|
144
|
+
preview: PreviewConfig;
|
|
145
|
+
studioUrl?: (document: {
|
|
146
|
+
id: string;
|
|
147
|
+
type?: string;
|
|
148
|
+
}) => string | null;
|
|
149
|
+
}
|
|
150
|
+
interface IncomingReferenceType {
|
|
151
|
+
type: string;
|
|
152
|
+
dataset?: never;
|
|
153
|
+
title?: string;
|
|
154
|
+
}
|
|
155
|
+
type IncomingReferencesFilterResolver = (context: {
|
|
156
|
+
document: SanityDocument$1 | undefined;
|
|
157
|
+
getClient: (options: {
|
|
158
|
+
apiVersion: string;
|
|
159
|
+
}) => SanityClient;
|
|
160
|
+
}) => string | {
|
|
161
|
+
filter: string;
|
|
162
|
+
filterParams?: Record<string, string>;
|
|
163
|
+
} | Promise<{
|
|
164
|
+
filter: string;
|
|
165
|
+
filterParams?: Record<string, string>;
|
|
166
|
+
}>;
|
|
167
|
+
type IncomingReferencesOptions = {
|
|
168
|
+
name: string;
|
|
169
|
+
title?: string;
|
|
170
|
+
description?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The type of the incoming references.
|
|
173
|
+
*/
|
|
174
|
+
types: (IncomingReferenceType | CrossDatasetIncomingReference)[];
|
|
175
|
+
/**
|
|
176
|
+
* The filter query to apply to the incoming references in addition to the type filter.
|
|
177
|
+
* For example: filter all books that are from an specific editorial brand: `editorialBrand == "Random House"`
|
|
178
|
+
* The `_type` filter is applied automatically.
|
|
179
|
+
*/
|
|
180
|
+
filter?: string | IncomingReferencesFilterResolver;
|
|
181
|
+
filterParams?: Record<string, string>;
|
|
182
|
+
/**
|
|
183
|
+
* Callback to link a document to a reference.
|
|
184
|
+
*
|
|
185
|
+
* This function is called when a user wants to link an existing document to the current document.
|
|
186
|
+
* It receives two parameters:
|
|
187
|
+
* - The document that will be linked (the target document)
|
|
188
|
+
* - The reference object with all properties needed to establish the link
|
|
189
|
+
*
|
|
190
|
+
* The developer must implement this function to define where and how the reference
|
|
191
|
+
* should be placed within the document structure. The function should return the
|
|
192
|
+
* modified document with the reference properly added.
|
|
193
|
+
*
|
|
194
|
+
* For example:
|
|
195
|
+
* - We want to link a book to an author:
|
|
196
|
+
* ```ts
|
|
197
|
+
* onLinkDocument: (document, reference) => {
|
|
198
|
+
* return {
|
|
199
|
+
* ...document,
|
|
200
|
+
* author: reference,
|
|
201
|
+
* }
|
|
202
|
+
* }
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
*
|
|
206
|
+
* @param document - The document to link to the reference.
|
|
207
|
+
* @param reference - The reference to link to the document.
|
|
208
|
+
* @returns The document to link to the reference. If false, the document will not be linked to the reference.
|
|
209
|
+
*/
|
|
210
|
+
onLinkDocument?: (document: SanityDocument$1, reference: {
|
|
211
|
+
_type: 'reference';
|
|
212
|
+
_ref: string;
|
|
213
|
+
_weak?: boolean;
|
|
214
|
+
_strengthenOnPublish?: {
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
}) => SanityDocument$1 | false;
|
|
218
|
+
/**
|
|
219
|
+
* Callback to define the actions that will be shown for the incoming reference document.
|
|
220
|
+
*
|
|
221
|
+
* For example:
|
|
222
|
+
* ```ts
|
|
223
|
+
* actions: ({document, client}) => {
|
|
224
|
+
* return [
|
|
225
|
+
* {label: 'Unlink document',
|
|
226
|
+
* icon: TrashIcon,
|
|
227
|
+
* tone: 'critical',
|
|
228
|
+
* onClick: async () => {
|
|
229
|
+
* await client.createOrReplace({...document, _id: getDraftId(document._id), author: undefined})
|
|
230
|
+
* }
|
|
231
|
+
* }
|
|
232
|
+
* ]
|
|
233
|
+
* }
|
|
234
|
+
* ```
|
|
235
|
+
* @param context - The context of the linked document.
|
|
236
|
+
* @returns The actions that will be shown for the linked document.
|
|
237
|
+
*/
|
|
238
|
+
actions?: IncomingReferenceAction[];
|
|
239
|
+
/**
|
|
240
|
+
* Whether to allow creation of new references.
|
|
241
|
+
* default: true
|
|
242
|
+
*
|
|
243
|
+
* If false, it will only be possible to link to existing documents, if the `onLinkDocument` callback is provided.
|
|
244
|
+
* If true, it will be possible to create new references to any template of the type.
|
|
245
|
+
* If an array is provided, it will only be possible to create new references that match the template id in the array provided.
|
|
246
|
+
*
|
|
247
|
+
* To define how a creation will be handled, you can use the `initialValue` option in the
|
|
248
|
+
* document type that will be linked.
|
|
249
|
+
*
|
|
250
|
+
* For example:
|
|
251
|
+
* I want to create a new book from an author:
|
|
252
|
+
* In the author we will have the <IncomingReferenceInput /> with the creationAllowed set to true.
|
|
253
|
+
*
|
|
254
|
+
* Then in the book type, we will have the `initialValue` option to define the default values for the new book.
|
|
255
|
+
* This initialValue callback will receive the `reference` object that needs to be linked to the book in the params.
|
|
256
|
+
*
|
|
257
|
+
* ```ts
|
|
258
|
+
* // Book type
|
|
259
|
+
* export default {
|
|
260
|
+
* type: 'document',
|
|
261
|
+
* name: 'book',
|
|
262
|
+
* title: 'Book',
|
|
263
|
+
* fields: [
|
|
264
|
+
* {
|
|
265
|
+
* name: 'author',
|
|
266
|
+
* type: 'reference',
|
|
267
|
+
* to: [{type: 'author'}],
|
|
268
|
+
* },
|
|
269
|
+
* ],
|
|
270
|
+
* initialValue: (params) => {
|
|
271
|
+
* return {
|
|
272
|
+
* author: params?.reference,
|
|
273
|
+
* }
|
|
274
|
+
* }
|
|
275
|
+
* ```
|
|
276
|
+
*/
|
|
277
|
+
creationAllowed?: boolean | string[];
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Helper function to define an incoming references decoration.
|
|
281
|
+
*
|
|
282
|
+
* example:
|
|
283
|
+
* ```ts
|
|
284
|
+
* defineType({
|
|
285
|
+
* name: 'author',
|
|
286
|
+
* type: 'document',
|
|
287
|
+
* renderMembers: (members) => {
|
|
288
|
+
* return [
|
|
289
|
+
* ...members,
|
|
290
|
+
* defineIncomingReferenceDecoration({
|
|
291
|
+
* name: 'incomingReferences',
|
|
292
|
+
* title: 'Incoming references',
|
|
293
|
+
* types: [{type: 'author'}],
|
|
294
|
+
* }),
|
|
295
|
+
* ]
|
|
296
|
+
* },
|
|
297
|
+
* })
|
|
298
|
+
* ```
|
|
299
|
+
*
|
|
300
|
+
* @beta
|
|
301
|
+
*/
|
|
302
|
+
declare function defineIncomingReferenceDecoration(options: IncomingReferencesOptions): DecorationMember;
|
|
303
|
+
interface IncomingReferenceCreationParams {
|
|
304
|
+
reference: {
|
|
305
|
+
_type: 'reference';
|
|
306
|
+
_ref: string;
|
|
307
|
+
_weak?: boolean;
|
|
308
|
+
_strengthenOnPublish?: {
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
from: {
|
|
313
|
+
fieldName: string;
|
|
314
|
+
type: string;
|
|
315
|
+
};
|
|
316
|
+
__internal_isIncomingReferenceCreation: true;
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Helper function to check if the document is being created from an incoming reference.
|
|
321
|
+
* It will be used in the initialValue callback to determine if the document is being created from an incoming reference.
|
|
322
|
+
*
|
|
323
|
+
* example:
|
|
324
|
+
* ```ts
|
|
325
|
+
* defineType({
|
|
326
|
+
* name: 'book',
|
|
327
|
+
* type: 'document',
|
|
328
|
+
* fields: [...],
|
|
329
|
+
* initialValue: (params) => {
|
|
330
|
+
* // If the document is being created from an incoming reference, return the reference
|
|
331
|
+
* // Otherwise, return undefined
|
|
332
|
+
* return {
|
|
333
|
+
* author: isIncomingReferenceCreation(params) ? params.reference : undefined,
|
|
334
|
+
* }
|
|
335
|
+
* },
|
|
336
|
+
* })
|
|
337
|
+
* ```
|
|
338
|
+
*
|
|
339
|
+
* @beta
|
|
340
|
+
*/
|
|
341
|
+
declare function isIncomingReferenceCreation(initialValue: DocumentDefinition['initialValue']): initialValue is IncomingReferenceCreationParams;
|
|
342
|
+
/**
|
|
343
|
+
* Defined locale strings for the structure tool, in US English.
|
|
344
|
+
*
|
|
345
|
+
* @internal
|
|
346
|
+
*/
|
|
347
|
+
declare const structureLocaleStrings: {
|
|
348
|
+
/** Label for the "Copy document ID" menu item */'action.copy-document-id.label': string; /** Tooltip for the copy actions dropdown button in the document panel header */
|
|
349
|
+
'action.copy-document-url.label': string; /** Label for the "Copy document URL" menu item */
|
|
350
|
+
'action.copy-link-to-document.label': string; /** Tooltip when action button is disabled because the operation is not ready */
|
|
351
|
+
'action.delete.disabled.not-ready': string; /** Tooltip when action button is disabled because the document does not exist */
|
|
352
|
+
'action.delete.disabled.nothing-to-delete': string; /** Tooltip when action button is disabled because the document exists in scheduled releases */
|
|
353
|
+
'action.delete.disabled.scheduled-release': string; /** Label for the "Delete" document action button */
|
|
354
|
+
'action.delete.label': string; /** Label for the "Delete" document action while the document is being deleted */
|
|
355
|
+
'action.delete.running.label': string; /** Tooltip when action is disabled because the document is linked to Canvas */
|
|
356
|
+
'action.disabled-by-canvas.tooltip': string; /** Message prompting the user to confirm discarding changes */
|
|
357
|
+
'action.discard-changes.confirm-dialog.confirm-discard-changes': string; /** Message prompting the user to confirm discarding changes */
|
|
358
|
+
'action.discard-changes.confirm-dialog.confirm-discard-changes-draft': string; /**Header for the confirm discard dialog */
|
|
359
|
+
'action.discard-changes.confirm-dialog.header.text': string; /** Tooltip when action is disabled because the document has no unpublished changes */
|
|
360
|
+
'action.discard-changes.disabled.no-change': string; /** Tooltip when action is disabled because the document is not published */
|
|
361
|
+
'action.discard-changes.disabled.not-published': string; /** Tooltip when action button is disabled because the operation is not ready */
|
|
362
|
+
'action.discard-changes.disabled.not-ready': string; /** Label for the "Discard changes" document action */
|
|
363
|
+
'action.discard-changes.label': string; /** Tooltip when action is disabled because the operation is not ready */
|
|
364
|
+
'action.duplicate.disabled.not-ready': string; /** Tooltip when action is disabled because the document doesn't exist */
|
|
365
|
+
'action.duplicate.disabled.nothing-to-duplicate': string; /** Label for the "Duplicate" document action */
|
|
366
|
+
'action.duplicate.label': string; /** Label for the "Duplicate" document action while the document is being duplicated */
|
|
367
|
+
'action.duplicate.running.label': string; /** Tooltip when publish button is disabled because the document is already published, and published time is unavailable.*/
|
|
368
|
+
'action.publish.already-published.no-time-ago.tooltip': string; /** Tooltip when publish button is disabled because the document is already published.*/
|
|
369
|
+
'action.publish.already-published.tooltip': string; /** Tooltip when action is disabled because the studio is not ready.*/
|
|
370
|
+
'action.publish.disabled.not-ready': string; /** Label for action when there are pending changes.*/
|
|
371
|
+
'action.publish.draft.label': string; /** Label for the "Publish" document action */
|
|
372
|
+
'action.publish.label': string; /** Label for the "Publish" document action when the document has live edit enabled.*/
|
|
373
|
+
'action.publish.live-edit.label': string; /** Fallback tooltip for the "Publish" document action when publish is invoked for a document with live edit enabled.*/
|
|
374
|
+
'action.publish.live-edit.publish-disabled': string; /** Tooltip for the "Publish" document action when the document has live edit enabled.*/
|
|
375
|
+
'action.publish.live-edit.tooltip': string; /** Tooltip when publish button is disabled because there are no changes.*/
|
|
376
|
+
'action.publish.no-changes.tooltip': string; /** Label for the "Publish" document action when there are no changes.*/
|
|
377
|
+
'action.publish.published.label': string; /** Label for the "Publish" document action while publish is being executed.*/
|
|
378
|
+
'action.publish.running.label': string; /** Label for the "Publish" document action while publish is being executed.*/
|
|
379
|
+
'action.publish.validation-in-progress.label': string; /** Toast description when trying to publish with validation errors */
|
|
380
|
+
'action.publish.validation-issues-toast.description': string; /** Toast title when trying to publish with validation errors */
|
|
381
|
+
'action.publish.validation-issues-toast.title': string; /** Tooltip when the "Publish" document action is disabled due to validation issues */
|
|
382
|
+
'action.publish.validation-issues.tooltip': string; /** Tooltip when publish button is waiting for validation and async tasks to complete.*/
|
|
383
|
+
'action.publish.waiting': string; /** Message prompting the user to confirm that they want to restore to an earlier revision*/
|
|
384
|
+
'action.restore.confirm.message': string; /** Fallback tooltip for when user is looking at the initial revision */
|
|
385
|
+
'action.restore.disabled.cannot-restore-initial': string; /** Label for the "Restore" document action */
|
|
386
|
+
'action.restore.label': string; /** Default tooltip for the action */
|
|
387
|
+
'action.restore.tooltip': string; /** Tooltip when action is disabled because the document is not already published */
|
|
388
|
+
'action.unpublish.disabled.not-published': string; /** Tooltip when action is disabled because the operation is not ready */
|
|
389
|
+
'action.unpublish.disabled.not-ready': string; /** Label for the "Unpublish" document action */
|
|
390
|
+
'action.unpublish.label': string; /** Fallback tooltip for the Unpublish document action when publish is invoked for a document with live edit enabled.*/
|
|
391
|
+
'action.unpublish.live-edit.disabled': string; /** Description for the archived release banner, rendered when viewing the history of a version document from the publihed view */
|
|
392
|
+
'banners.archived-release.description': string; /** Description for the archived scheduled draft banner, rendered when viewing the history of a cardinality one release document */
|
|
393
|
+
'banners.archived-scheduled-draft.description': string; /** The explanation displayed when a user attempts to create a new draft document, but the draft model is not switched on */
|
|
394
|
+
'banners.choose-new-document-destination.cannot-create-draft-document': string; /** The explanation displayed when a user attempts to create a new published document, but the schema type doesn't support live-editing */
|
|
395
|
+
'banners.choose-new-document-destination.cannot-create-published-document': string; /** The prompt displayed when a user must select a different perspective in order to create a document */
|
|
396
|
+
'banners.choose-new-document-destination.choose-destination': string; /** The explanation displayed when a user attempts to create a new document in a release, but the selected release is inactive */
|
|
397
|
+
'banners.choose-new-document-destination.release-inactive': string; /** The text for the restore button on the deleted document banner */
|
|
398
|
+
'banners.deleted-document-banner.restore-button.text': string; /** The text content for the deleted document banner */
|
|
399
|
+
'banners.deleted-document-banner.text': string; /** The text content for the deprecated document type banner */
|
|
400
|
+
'banners.deprecated-document-type-banner.text': string; /** The text for publish action for discarding the version */
|
|
401
|
+
'banners.live-edit-draft-banner.discard.tooltip': string; /** The text for publish action for the draft banner */
|
|
402
|
+
'banners.live-edit-draft-banner.publish.tooltip': string; /** The text content for the live edit document when it's a draft */
|
|
403
|
+
'banners.live-edit-draft-banner.text': string; /** The label for the "compare draft" action */
|
|
404
|
+
'banners.obsolete-draft.actions.compare-draft.text': string; /** The label for the "discard draft" action */
|
|
405
|
+
'banners.obsolete-draft.actions.discard-draft.text': string; /** The label for the "publish draft" action */
|
|
406
|
+
'banners.obsolete-draft.actions.publish-draft.text': string; /** The warning displayed when editing a document that has an obsolete draft because the draft model is not switched on */
|
|
407
|
+
'banners.obsolete-draft.draft-model-inactive.text': string; /** The text content for the paused scheduled draft banner */
|
|
408
|
+
'banners.paused-scheduled-draft.text': string; /** The text for the permission check banner if the user only has one role, and it does not allow publishing this document */
|
|
409
|
+
'banners.permission-check-banner.missing-permission_create_one': string; /** The text for the permission check banner if the user only has multiple roles, but they do not allow publishing this document */
|
|
410
|
+
'banners.permission-check-banner.missing-permission_create_other': string; /** The text for the permission check banner if the user only has one role, and it does not allow editing this document */
|
|
411
|
+
'banners.permission-check-banner.missing-permission_update_one': string; /** The text for the permission check banner if the user only has multiple roles, but they do not allow editing this document */
|
|
412
|
+
'banners.permission-check-banner.missing-permission_update_other': string; /** The pending text for the request permission button that appears for viewer roles */
|
|
413
|
+
'banners.permission-check-banner.request-permission-button.sent': string; /** The text for the request permission button that appears for viewer roles */
|
|
414
|
+
'banners.permission-check-banner.request-permission-button.text': string; /** Description for the archived release banner, rendered when viewing the history of a version document from the published view */
|
|
415
|
+
'banners.published-release.description': string; /** The text for the reload button */
|
|
416
|
+
'banners.reference-changed-banner.reason-changed.reload-button.text': string; /** The text for the reference change banner if the reason is that the reference has been changed */
|
|
417
|
+
'banners.reference-changed-banner.reason-changed.text': string; /** The text for the close button */
|
|
418
|
+
'banners.reference-changed-banner.reason-removed.close-button.text': string; /** The text for the reference change banner if the reason is that the reference has been deleted */
|
|
419
|
+
'banners.reference-changed-banner.reason-removed.text': string; /** The text that appears for the action button to add the current document to the global release */
|
|
420
|
+
'banners.release.action.add-to-release': string; /** The text that appears for the action button to add the current document to the global release */
|
|
421
|
+
'banners.release.action.open-to-edit': string; /** Toast description in case an error occurs when adding a document to a release */
|
|
422
|
+
'banners.release.error.description': string; /** Toast title in case an error occurs when adding a document to a release */
|
|
423
|
+
'banners.release.error.title': string; /** The text for the banner that appears when a document only has versions but is in a draft or published pinned release */
|
|
424
|
+
'banners.release.navigate-to-edit-description': string; /** The text for the banner that appears when a document only has versions but is in a draft or published pinned release */
|
|
425
|
+
'banners.release.navigate-to-edit-description-end_one': string; /** The text for the banner that appears when a document only has versions but is in a draft or published pinned release */
|
|
426
|
+
'banners.release.navigate-to-edit-description-end_other': string; /** The text for the banner that appears when there are multiple versions but no drafts or published, only one extra releases */
|
|
427
|
+
'banners.release.navigate-to-edit-description-multiple_one': string; /** The text for the banner that appears when there are multiple versions but no drafts or published, more than one extra releases */
|
|
428
|
+
'banners.release.navigate-to-edit-description-multiple_other': string;
|
|
429
|
+
/** The text for the banner that appears when a document is not part of any release
|
|
430
|
+
* @deprecated – no longer in use
|
|
431
|
+
* */
|
|
432
|
+
'banners.release.navigate-to-edit-description-none': string; /** The text for the banner that appears when a document only has one version but is in a draft or published pinned release */
|
|
433
|
+
'banners.release.navigate-to-edit-description-single': string; /** The text for the banner that appears when a document is not in the current global release */
|
|
434
|
+
'banners.release.not-in-release': string; /** Description of toast that will appear in case of latency between the user adding a document to a release and the UI reflecting it */
|
|
435
|
+
'banners.release.waiting.description': string; /** Title of toast that will appear in case of latency between the user adding a document to a release and the UI reflecting it */
|
|
436
|
+
'banners.release.waiting.title': string; /** The text for the revision not found banner */
|
|
437
|
+
'banners.revision-not-found.description': string; /** The text content for the scheduled draft override banner */
|
|
438
|
+
'banners.scheduled-draft-override-banner.text': string; /** The text content for the unpublished document banner when is part of a release */
|
|
439
|
+
'banners.unpublished-release-banner.text': string; /** The text content for the unpublished document banner letting the user know that the current published version is being shown */
|
|
440
|
+
'banners.unpublished-release-banner.text-with-published': string; /** Browser/tab title when creating a new document of a given type */
|
|
441
|
+
'browser-document-title.new-document': string; /** Browser/tab title when editing a document where the title cannot be resolved from preview configuration */
|
|
442
|
+
'browser-document-title.untitled-document': string; /** The action menu button aria-label */
|
|
443
|
+
'buttons.action-menu-button.aria-label': string; /** The action menu button tooltip */
|
|
444
|
+
'buttons.action-menu-button.tooltip': string; /** The aria-label for the collapse pane button on the document panel header */
|
|
445
|
+
'buttons.focus-pane-button.aria-label.collapse': string; /** The aria-label for the focus pane button on the document panel header */
|
|
446
|
+
'buttons.focus-pane-button.aria-label.focus': string; /** The tooltip for the collapse pane button on the document panel header */
|
|
447
|
+
'buttons.focus-pane-button.tooltip.collapse': string; /** The tooltip for the focus pane button on the document panel header */
|
|
448
|
+
'buttons.focus-pane-button.tooltip.focus': string; /** The aria-label for the split pane button on the document panel header */
|
|
449
|
+
'buttons.split-pane-button.aria-label': string; /** The tool tip for the split pane button on the document panel header */
|
|
450
|
+
'buttons.split-pane-button.tooltip': string; /** The title for the close button on the split pane on the document panel header */
|
|
451
|
+
'buttons.split-pane-close-button.title': string; /** The title for the close group button on the split pane on the document panel header */
|
|
452
|
+
'buttons.split-pane-close-group-button.title': string; /** The text for the canvas linked banner action button */
|
|
453
|
+
'canvas.banner.edit-in-canvas-action': string; /** The text for the canvas linked banner when the document in editable mode*/
|
|
454
|
+
'canvas.banner.editable.linked-text': string; /** The description for the canvas linked banner popover in editable mode*/
|
|
455
|
+
'canvas.banner.editable.popover-description': string; /** The heading for the canvas linked banner popover in editable mode*/
|
|
456
|
+
'canvas.banner.editable.popover-heading': string; /** The text for the canvas linked banner when the document is a draft */
|
|
457
|
+
'canvas.banner.linked-text.draft': string; /** The text for the canvas linked banner when the document is a live document */
|
|
458
|
+
'canvas.banner.linked-text.published': string; /** The text for the canvas linked banner when the document is a version document */
|
|
459
|
+
'canvas.banner.linked-text.version': string; /** The text for the canvas linked banner popover button */
|
|
460
|
+
'canvas.banner.popover-button-text': string; /** The description for the canvas linked banner popover */
|
|
461
|
+
'canvas.banner.popover-description': string; /** The heading for the canvas linked banner popover */
|
|
462
|
+
'canvas.banner.popover-heading': string; /** The description for the changes banner */
|
|
463
|
+
'changes.banner.description': string; /** The tooltip for the changes banner */
|
|
464
|
+
'changes.banner.tooltip': string; /** The label used in the changes inspector for the from selector */
|
|
465
|
+
'changes.from.label': string;
|
|
466
|
+
'changes.tab.history': string;
|
|
467
|
+
'changes.tab.review-changes': string; /** The label used in the changes inspector for the to selector */
|
|
468
|
+
'changes.to.label': string; /** The error message shown when the specified document comparison mode is not supported */
|
|
469
|
+
'compare-version.error.invalidModeParam': string; /** The error message shown when the next document for comparison could not be extracted from the URL */
|
|
470
|
+
'compare-version.error.invalidNextDocumentParam': string; /** The error message shown when the document comparison URL could not be parsed */
|
|
471
|
+
'compare-version.error.invalidParams.title': string; /** The error message shown when the previous document for comparison could not be extracted from the URL */
|
|
472
|
+
'compare-version.error.invalidPreviousDocumentParam': string; /** The error message shown when releases failed to load */
|
|
473
|
+
'compare-version.error.loadReleases.title': string; /** The text for the tooltip when the "Compare versions" action for a document is disabled */
|
|
474
|
+
'compare-versions.menu-item.disabled-reason': string; /** The text for the "Compare versions" action for a document */
|
|
475
|
+
'compare-versions.menu-item.title': string; /** The string used to label draft documents */
|
|
476
|
+
'compare-versions.status.draft': string; /** The string used to label published documents */
|
|
477
|
+
'compare-versions.status.published': string; /** The title used when comparing versions of a document */
|
|
478
|
+
'compare-versions.title': string; /** The text in the "Cancel" button in the confirm delete dialog that cancels the action and closes the dialog */
|
|
479
|
+
'confirm-delete-dialog.cancel-button.text': string; /** Used in `confirm-delete-dialog.cdr-summary.title` */
|
|
480
|
+
'confirm-delete-dialog.cdr-summary.document-count_one': string; /** Used in `confirm-delete-dialog.cdr-summary.title` */
|
|
481
|
+
'confirm-delete-dialog.cdr-summary.document-count_other': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
|
|
482
|
+
'confirm-delete-dialog.cdr-summary.subtitle_one': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
|
|
483
|
+
'confirm-delete-dialog.cdr-summary.subtitle_other': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
|
|
484
|
+
'confirm-delete-dialog.cdr-summary.subtitle_unavailable_one': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
|
|
485
|
+
'confirm-delete-dialog.cdr-summary.subtitle_unavailable_other': string; /** The text that appears in the title `<summary>` that includes the list of CDRs (singular) */
|
|
486
|
+
'confirm-delete-dialog.cdr-summary.title_one': string; /** The text that appears in the title `<summary>` that includes the list of CDRs (plural) */
|
|
487
|
+
'confirm-delete-dialog.cdr-summary.title_other': string; /** Appears when hovering over the copy button to copy */
|
|
488
|
+
'confirm-delete-dialog.cdr-table.copy-id-button.tooltip': string; /** The header for the dataset column in the list of cross-dataset references found */
|
|
489
|
+
'confirm-delete-dialog.cdr-table.dataset.label': string; /** The header for the document ID column in the list of cross-dataset references found */
|
|
490
|
+
'confirm-delete-dialog.cdr-table.document-id.label': string; /** The toast title when the copy button has been clicked but copying failed */
|
|
491
|
+
'confirm-delete-dialog.cdr-table.id-copied-toast.title-failed': string; /** The header for the project ID column in the list of cross-dataset references found */
|
|
492
|
+
'confirm-delete-dialog.cdr-table.project-id.label': string; /** The text in the "Delete anyway" button in the confirm delete dialog that confirms the action */
|
|
493
|
+
'confirm-delete-dialog.confirm-anyway-button.text_delete': string; /** The text in the "Unpublish anyway" button in the confirm delete dialog that confirms the action */
|
|
494
|
+
'confirm-delete-dialog.confirm-anyway-button.text_unpublish': string; /** The text in the "Delete now" button in the confirm delete dialog that confirms the action */
|
|
495
|
+
'confirm-delete-dialog.confirm-button.text_delete': string; /** The text in the "Unpublish now" button in the confirm delete dialog that confirms the action */
|
|
496
|
+
'confirm-delete-dialog.confirm-button.text_unpublish': string; /** If no referring documents are found, this text appears above the cancel and confirmation buttons */
|
|
497
|
+
'confirm-delete-dialog.confirmation.text_delete': string; /** If no referring documents are found, this text appears above the cancel and confirmation buttons */
|
|
498
|
+
'confirm-delete-dialog.confirmation.text_unpublish': string; /** The text body of the error dialog. */
|
|
499
|
+
'confirm-delete-dialog.error.message.text': string; /** The text in the retry button of the confirm delete dialog if an error occurred. */
|
|
500
|
+
'confirm-delete-dialog.error.retry-button.text': string; /** The header of the confirm delete dialog if an error occurred while the confirm delete dialog was open. */
|
|
501
|
+
'confirm-delete-dialog.error.title.text': string; /** The header of the confirm delete dialog */
|
|
502
|
+
'confirm-delete-dialog.header.text_delete': string; /** The header of the confirm delete dialog */
|
|
503
|
+
'confirm-delete-dialog.header.text_unpublish': string; /** The text that appears while the referring documents are queried */
|
|
504
|
+
'confirm-delete-dialog.loading.text': string; /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
|
|
505
|
+
'confirm-delete-dialog.other-reference-count.title_one': string; /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
|
|
506
|
+
'confirm-delete-dialog.other-reference-count.title_other': string; /** Text in the tooltip of this component if hovering over the info icon */
|
|
507
|
+
'confirm-delete-dialog.other-reference-count.tooltip': string; /** Appears when unable to render a document preview in the referring document list */
|
|
508
|
+
'confirm-delete-dialog.preview-item.preview-unavailable.subtitle': string; /** Appears when unable to render a document preview in the referring document list */
|
|
509
|
+
'confirm-delete-dialog.preview-item.preview-unavailable.title': string; /** Warns the user of affects to other documents if the action is confirmed (delete) */
|
|
510
|
+
'confirm-delete-dialog.referential-integrity-disclaimer.text_delete': string; /** Warns the user of affects to other documents if the action is confirmed (unpublish) */
|
|
511
|
+
'confirm-delete-dialog.referential-integrity-disclaimer.text_unpublish': string; /** Tells the user the count of how many other referring documents there are before listing them. (singular) */
|
|
512
|
+
'confirm-delete-dialog.referring-document-count.text_one': string; /** Tells the user the count of how many other referring documents there are before listing them. (plural) */
|
|
513
|
+
'confirm-delete-dialog.referring-document-count.text_other': string; /** Describes the list of documents that refer to the one trying to be deleted (delete) */
|
|
514
|
+
'confirm-delete-dialog.referring-documents-descriptor.text_delete': string; /** Describes the list of documents that refer to the one trying to be deleted (unpublish) */
|
|
515
|
+
'confirm-delete-dialog.referring-documents-descriptor.text_unpublish': string; /** The text for the cancel button in the confirm dialog used in document action shortcuts if none is provided */
|
|
516
|
+
'confirm-dialog.cancel-button.fallback-text': string; /** The text for the confirm button in the confirm dialog used in document action shortcuts if none is provided */
|
|
517
|
+
'confirm-dialog.confirm-button.fallback-text': string; /** For the default structure definition, the title for the "Content" pane */
|
|
518
|
+
'default-definition.content-title': string; /** The text shown if there was an error while getting the document's title via a preview value */
|
|
519
|
+
'doc-title.error.text': string; /** The text shown if the preview value for a document is non-existent or empty */
|
|
520
|
+
'doc-title.fallback.text': string; /** The text shown if a document's title via a preview value cannot be determined due to an unknown schema type */
|
|
521
|
+
'doc-title.unknown-schema-type.text': string; /** Tooltip text shown for the close button of the document inspector */
|
|
522
|
+
'document-inspector.close-button.tooltip': string; /** The title shown in the dialog header, when inspecting a valid document */
|
|
523
|
+
'document-inspector.dialog.title': string; /** The title shown in the dialog header, when the document being inspected is not created yet/has no value */
|
|
524
|
+
'document-inspector.dialog.title-no-value': string; /** Title shown for menu item that opens the "Inspect" dialog */
|
|
525
|
+
'document-inspector.menu-item.title': string; /** the placeholder text for the search input on the inspect dialog */
|
|
526
|
+
'document-inspector.search.placeholder': string; /** The "parsed" view mode, meaning the JSON is searchable, collapsible etc */
|
|
527
|
+
'document-inspector.view-mode.parsed': string; /** The "raw" view mode, meaning the JSON is presented syntax-highlighted, but with no other features - optimal for copying */
|
|
528
|
+
'document-inspector.view-mode.raw-json': string; /** The text for when a form is hidden */
|
|
529
|
+
'document-view.form-view.form-hidden': string; /** Fallback title shown when a form title is not provided */
|
|
530
|
+
'document-view.form-view.form-title-fallback': string; /** The text for when the form view is loading a document */
|
|
531
|
+
'document-view.form-view.loading': string; /** The description of the sync lock toast on the form view */
|
|
532
|
+
'document-view.form-view.sync-lock-toast.description': string; /** The title of the sync lock toast on the form view */
|
|
533
|
+
'document-view.form-view.sync-lock-toast.title': string; /** The description for the document favorite action */
|
|
534
|
+
'document.favorites.add-to-favorites': string; /** The description for the document unfavorite action */
|
|
535
|
+
'document.favorites.remove-from-favorites': string; /** The description for the events inspector when we can't load the document so we default to compare with published */
|
|
536
|
+
'events.compare-with-published.description': string; /** The title for the events inspector when we can't load the document so we default to compare with published */
|
|
537
|
+
'events.compare-with-published.title': string; /**The title for the menu items that will be shown when expanding a publish release event to inspect the document */
|
|
538
|
+
'events.inspect.release': string; /**The title for the menu items that will be shown when expanding a publish draft event to inspect the draft document*/
|
|
539
|
+
'events.open.draft': string; /**The title for the menu items that will be shown when expanding a publish release event to inspect the release*/
|
|
540
|
+
'events.open.release': string; /** The text for the add reference item in the incoming references input */
|
|
541
|
+
'incoming-references-input.add-reference-item': string; /** The aria-label for the incoming references list */
|
|
542
|
+
'incoming-references-input.list-label': string; /** The text for the no items in the incoming references input */
|
|
543
|
+
'incoming-references-input.no-items': string; /** The text for the reference from in the incoming references input */
|
|
544
|
+
'incoming-references-input.reference-from': string; /** The text for the schema type not found in the incoming references input */
|
|
545
|
+
'incoming-references-input.schema-type-not-found': string; /** The text for the type to search in the incoming references input */
|
|
546
|
+
'incoming-references-input.type-to-search': string; /** The text for the loading state in the incoming references input */
|
|
547
|
+
'incoming-references-input.types-loading': string; /** The text for the loading state in the incoming references input */
|
|
548
|
+
'incoming-references-input.types-loading-cross-dataset': string; /** The text for the no references defined in the incoming references input */
|
|
549
|
+
'incoming-references-input.types-not-defined': string; /** The text shown if there are no incoming references for a type */
|
|
550
|
+
'incoming-references-pane.no-references-found': string; /** The text shown if there is no schema type found for a document in the incoming references pane */
|
|
551
|
+
'incoming-references-pane.schema-type-not-found': string; /** The loading messaging for when the tooltip is still loading permission info */
|
|
552
|
+
'insufficient-permissions-message-tooltip.loading-text': string;
|
|
553
|
+
/** --- Menu items --- */
|
|
554
|
+
/** The menu item group title to use for the Action menu items */
|
|
555
|
+
'menu-item-groups.actions-group': string; /** The menu item group title to use for the Layout menu items */
|
|
556
|
+
'menu-item-groups.layout-group': string; /** The menu item group title to use for the Sort menu items */
|
|
557
|
+
'menu-item-groups.sorting-group': string; /** The menu item title to use the compact view */
|
|
558
|
+
'menu-items.layout.compact-view': string; /** The menu item title to use the detailed view */
|
|
559
|
+
'menu-items.layout.detailed-view': string; /** The menu item title to Sort by Created */
|
|
560
|
+
'menu-items.sort-by.created': string; /** The menu item title to Sort by Last Edited */
|
|
561
|
+
'menu-items.sort-by.last-edited': string; /** The link text of the no document type screen that appears directly below the subtitle */
|
|
562
|
+
'no-document-types-screen.link-text': string; /** The subtitle of the no document type screen that appears directly below the title */
|
|
563
|
+
'no-document-types-screen.subtitle': string; /** The title of the no document type screen */
|
|
564
|
+
'no-document-types-screen.title': string; /** Text shown on back button visible on smaller breakpoints */
|
|
565
|
+
'pane-header.back-button.text': string; /** tooltip text (via `title` attribute) for the menu button */
|
|
566
|
+
'pane-header.context-menu-button.tooltip': string; /** Appears in a document list pane header if there are more than one option for create. This is the label for that menu */
|
|
567
|
+
'pane-header.create-menu.label': string; /** Tooltip displayed on the create new button in document lists */
|
|
568
|
+
'pane-header.create-new-button.tooltip': string; /** The `aria-label` for the disabled button in the pane header if create permissions are granted */
|
|
569
|
+
'pane-header.disabled-created-button.aria-label': string; /** The text shown in the tooltip of pane item previews of documents if there are unpublished edits */
|
|
570
|
+
'pane-item.draft-status.has-draft.tooltip': string; /** The text shown in the tooltip of pane item previews of documents if there are no unpublished edits */
|
|
571
|
+
'pane-item.draft-status.no-draft.tooltip': string; /** The subtitle tor pane item previews if there isn't a matching schema type found */
|
|
572
|
+
'pane-item.missing-schema-type.subtitle': string; /** The title tor pane item previews if there isn't a matching schema type found */
|
|
573
|
+
'pane-item.missing-schema-type.title': string; /** The text shown in the tooltip of pane item previews of documents if there are unpublished edits */
|
|
574
|
+
'pane-item.published-status.has-published.tooltip': string; /** The text shown in the tooltip of pane item previews of documents if there are no unpublished edits */
|
|
575
|
+
'pane-item.published-status.no-published.tooltip': string; /** The text used in the document header title if there is an error */
|
|
576
|
+
'panes.document-header-title.error.text': string; /** The text used in the document header title if creating a new item */
|
|
577
|
+
'panes.document-header-title.new.text': string; /** The text used in the document header title if no other title can be determined */
|
|
578
|
+
'panes.document-header-title.untitled.text': string; /** The help text saying that we have given up on automatic retry */
|
|
579
|
+
'panes.document-list-pane.error.max-retries-attempted': string; /** The help text saying that we'll retry fetching the document list */
|
|
580
|
+
'panes.document-list-pane.error.retrying': string; /** The error text on the document list pane */
|
|
581
|
+
'panes.document-list-pane.error.text': string; /** The error text on the document list pane */
|
|
582
|
+
'panes.document-list-pane.error.text.dev': string; /** The error text on the document list pane if the browser appears to be offlline */
|
|
583
|
+
'panes.document-list-pane.error.text.offline': string; /** The error title on the document list pane */
|
|
584
|
+
'panes.document-list-pane.error.title': string; /** The help text saying that we'll retry fetching the document list */
|
|
585
|
+
'panes.document-list-pane.error.will-retry-automatically_one': string;
|
|
586
|
+
'panes.document-list-pane.error.will-retry-automatically_other': string; /** The text of the document list pane if more than a maximum number of documents are returned */
|
|
587
|
+
'panes.document-list-pane.max-items.text': string; /** The text of the document list pane if no documents are found for a specified type */
|
|
588
|
+
'panes.document-list-pane.no-documents-of-type.text': string; /** The text of the document list pane if no documents are found */
|
|
589
|
+
'panes.document-list-pane.no-documents.text': string; /** The text of the document list pane if no documents are found matching specified criteria */
|
|
590
|
+
'panes.document-list-pane.no-matching-documents.text': string; /** The search input for the search input on the document list pane */
|
|
591
|
+
'panes.document-list-pane.reconnecting': string; /** The aria-label for the search input on the document list pane */
|
|
592
|
+
'panes.document-list-pane.search-input.aria-label': string; /** The search input for the search input on the document list pane */
|
|
593
|
+
'panes.document-list-pane.search-input.placeholder': string; /** The summary title when displaying an error for a document operation result */
|
|
594
|
+
'panes.document-operation-results.error.summary.title': string; /** The text when a generic operation failed (fallback, generally not shown) */
|
|
595
|
+
'panes.document-operation-results.operation-error': string; /** The text when a delete operation failed */
|
|
596
|
+
'panes.document-operation-results.operation-error_delete': string; /** The text when an unpublish operation failed */
|
|
597
|
+
'panes.document-operation-results.operation-error_unpublish': string; /** The text when a generic operation succeeded (fallback, generally not shown) */
|
|
598
|
+
'panes.document-operation-results.operation-success': string; /** The text when copy document ID operation succeeded */
|
|
599
|
+
'panes.document-operation-results.operation-success_copy-id': string; /** The text when copy URL operation succeeded */
|
|
600
|
+
'panes.document-operation-results.operation-success_copy-url': string; /** */
|
|
601
|
+
'panes.document-operation-results.operation-success_createVersion': string; /** The text when a delete operation succeeded */
|
|
602
|
+
'panes.document-operation-results.operation-success_delete': string; /** The text when a discard changes operation succeeded */
|
|
603
|
+
'panes.document-operation-results.operation-success_discardChanges': string; /** The text when a duplicate operation succeeded */
|
|
604
|
+
'panes.document-operation-results.operation-success_duplicate': string; /** The text when a publish operation succeeded */
|
|
605
|
+
'panes.document-operation-results.operation-success_publish': string; /** The text when a restore operation succeeded */
|
|
606
|
+
'panes.document-operation-results.operation-success_restore': string; /** The text when an unpublish operation succeeded */
|
|
607
|
+
'panes.document-operation-results.operation-success_unpublish': string; /** The document title shown when document title is "undefined" in operation message */
|
|
608
|
+
'panes.document-operation-results.operation-undefined-title': string; /** The loading message for the document not found pane */
|
|
609
|
+
'panes.document-pane.document-not-found.loading': string; /** The text of the document not found pane if the schema is known */
|
|
610
|
+
'panes.document-pane.document-not-found.text': string; /** The title of the document not found pane if the schema is known */
|
|
611
|
+
'panes.document-pane.document-not-found.title': string; /** The text of the document not found pane if the schema is not found */
|
|
612
|
+
'panes.document-pane.document-unknown-type.text': string; /** The title of the document not found pane if the schema is not found or unknown */
|
|
613
|
+
'panes.document-pane.document-unknown-type.title': string; /** The title of the document not found pane if the schema is unknown */
|
|
614
|
+
'panes.document-pane.document-unknown-type.without-schema.text': string; /** Default message shown while resolving the structure definition for an asynchronous node */
|
|
615
|
+
'panes.resolving.default-message': string; /** Message shown while resolving the structure definition for an asynchronous node and it is taking a while (more than 5s) */
|
|
616
|
+
'panes.resolving.slow-resolve-message': string; /** The text to display when type is missing */
|
|
617
|
+
'panes.unknown-pane-type.missing-type.text': string; /** The title of the unknown pane */
|
|
618
|
+
'panes.unknown-pane-type.title': string; /** The text to display when type is unknown */
|
|
619
|
+
'panes.unknown-pane-type.unknown-type.text': string; /** The text for the "Open preview" action for a document */
|
|
620
|
+
'production-preview.menu-item.title': string; /** The text for the confirm button in the request permission dialog used in the permissions banner */
|
|
621
|
+
'request-permission-dialog.confirm-button.text': string; /** The description text for the request permission dialog used in the permissions banner */
|
|
622
|
+
'request-permission-dialog.description.text': string; /** The header/title for the request permission dialog used in the permissions banner */
|
|
623
|
+
'request-permission-dialog.header.text': string; /** The text describing the note input for the request permission dialog used in the permissions banner */
|
|
624
|
+
'request-permission-dialog.note-input.description.text': string; /** The placeholder for the note input in the request permission dialog used in the permissions banner */
|
|
625
|
+
'request-permission-dialog.note-input.placeholder.text': string; /** The error/warning text in the request permission dialog when the user's request has been declined */
|
|
626
|
+
'request-permission-dialog.warning.denied.text': string; /** The error/warning text in the request permission dialog when the user's request has been denied due to too many outstanding requests */
|
|
627
|
+
'request-permission-dialog.warning.limit-reached.text': string; /** Label for button when status is saved */
|
|
628
|
+
'status-bar.document-status-pulse.status.saved.text': string; /** Label for button when status is syncing */
|
|
629
|
+
'status-bar.document-status-pulse.status.syncing.text': string; /** Accessibility label indicating when the document was last published, in relative time, eg "3 weeks ago" */
|
|
630
|
+
'status-bar.publish-status-button.last-published-time.aria-label': string; /** Text for tooltip showing explanation of timestamp/relative time, eg "Last published <RelativeTime/>" */
|
|
631
|
+
'status-bar.publish-status-button.last-published-time.tooltip': string; /** Accessibility label indicating when the document was last updated, in relative time, eg "2 hours ago" */
|
|
632
|
+
'status-bar.publish-status-button.last-updated-time.aria-label': string; /** Text for tooltip showing explanation of timestamp/relative time, eg "Last updated <RelativeTime/>" */
|
|
633
|
+
'status-bar.publish-status-button.last-updated-time.tooltip': string; /** Aria label for the button */
|
|
634
|
+
'status-bar.review-changes-button.aria-label': string; /** Label for button when status is saved */
|
|
635
|
+
'status-bar.review-changes-button.status.saved.text': string; /** Label for button when status is syncing */
|
|
636
|
+
'status-bar.review-changes-button.status.syncing.text': string; /** Text for the secondary text for tooltip for the button */
|
|
637
|
+
'status-bar.review-changes-button.tooltip.changes-saved': string; /** Primary text for tooltip for the button */
|
|
638
|
+
'status-bar.review-changes-button.tooltip.text': string; /** The text that appears in side the documentation link */
|
|
639
|
+
'structure-error.docs-link.text': string; /** Labels the error message or error stack of the structure error screen */
|
|
640
|
+
'structure-error.error.label': string; /** The header that appears at the top of the error screen */
|
|
641
|
+
'structure-error.header.text': string; /** The text in the reload button to retry rendering the structure */
|
|
642
|
+
'structure-error.reload-button.text': string; /** Labels the structure path of the structure error screen */
|
|
643
|
+
'structure-error.structure-path.label': string; /** The aria label for the menu button in the timeline item */
|
|
644
|
+
'timeline-item.menu-button.aria-label': string; /** The text for the tooltip in menu button the timeline item */
|
|
645
|
+
'timeline-item.menu-button.tooltip': string; /** The text for the collapse action in the timeline item menu */
|
|
646
|
+
'timeline-item.menu.action-collapse': string; /** The text for the expand action in the timeline item menu */
|
|
647
|
+
'timeline-item.menu.action-expand': string; /** The text for the published event menu tooltip when the release is not found */
|
|
648
|
+
'timeline-item.not-found-release.tooltip': string; /** The text for the "Inline changes" action, which is used to toggle the visibility of content diffs inside inputs */
|
|
649
|
+
'toggle-inline-changes.menu-item.title': string;
|
|
650
|
+
};
|
|
651
|
+
/**
|
|
652
|
+
* @alpha
|
|
653
|
+
*/
|
|
654
|
+
type StructureLocaleResourceKeys = keyof typeof structureLocaleStrings;
|
|
655
|
+
/**
|
|
656
|
+
* The locale namespace for the structure tool
|
|
657
|
+
*
|
|
658
|
+
* @public
|
|
659
|
+
*/
|
|
660
|
+
declare const structureLocaleNamespace: "structure";
|
|
661
|
+
/** @internal */
|
|
662
|
+
type DocumentPaneProviderProps = {
|
|
663
|
+
children?: React.ReactNode;
|
|
664
|
+
onFocusPath?: (path: Path) => void;
|
|
665
|
+
onSetMaximizedPane?: () => void;
|
|
666
|
+
maximized?: boolean;
|
|
667
|
+
} & BaseStructureToolPaneProps<'document'>;
|
|
668
|
+
type DocumentPaneOptions = DocumentPaneNode['options'];
|
|
669
|
+
/**
|
|
670
|
+
* @internal
|
|
671
|
+
*/
|
|
672
|
+
declare const DocumentPane: react.NamedExoticComponent<DocumentPaneProviderProps>;
|
|
673
|
+
/**
|
|
674
|
+
* @internal
|
|
675
|
+
*/
|
|
676
|
+
declare function usePaneOptions(options: DocumentPaneOptions, params?: Record<string, string | undefined>): DocumentPaneOptions;
|
|
677
|
+
/**
|
|
678
|
+
* @internal
|
|
679
|
+
*/
|
|
680
|
+
declare const DocumentPaneProviderWrapper: react.MemoExoticComponent<(props: DocumentPaneProviderProps) => react.JSX.Element>;
|
|
681
|
+
/**
|
|
682
|
+
* useDocumentTitle hook return type.
|
|
683
|
+
*
|
|
684
|
+
* @beta
|
|
685
|
+
* @hidden
|
|
686
|
+
*/
|
|
687
|
+
interface UseDocumentTitle {
|
|
688
|
+
error?: string;
|
|
689
|
+
title?: string;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* React hook that returns the document title for the current document in the document pane.
|
|
693
|
+
*
|
|
694
|
+
* @beta
|
|
695
|
+
* @hidden
|
|
696
|
+
*
|
|
697
|
+
* @returns The document title or error. See {@link UseDocumentTitle}
|
|
698
|
+
*/
|
|
699
|
+
declare function useDocumentTitle(): UseDocumentTitle;
|
|
700
|
+
interface DocumentInspectorHeaderProps {
|
|
701
|
+
as?: CardProps['as'];
|
|
702
|
+
closeButtonLabel: string;
|
|
703
|
+
flex?: CardProps['flex'];
|
|
704
|
+
onClose: () => void;
|
|
705
|
+
title: ReactNode;
|
|
706
|
+
}
|
|
707
|
+
/** @internal */
|
|
708
|
+
declare function DocumentInspectorHeader(props: DocumentInspectorHeaderProps & Omit<HTMLProps<HTMLDivElement>, 'as' | 'height' | 'ref'>): react.JSX.Element;
|
|
709
|
+
/** @internal */
|
|
710
|
+
declare function useDocumentPane(): DocumentPaneContextValue;
|
|
711
|
+
/**
|
|
712
|
+
* @internal
|
|
713
|
+
*/
|
|
714
|
+
declare const PaneContainer: react.NamedExoticComponent<BaseStructureToolPaneProps<"documentList">>;
|
|
715
|
+
/**
|
|
716
|
+
* @internal
|
|
717
|
+
*/
|
|
718
|
+
type DocumentListPaneProps = ComponentProps<typeof PaneContainer>;
|
|
719
|
+
/**
|
|
720
|
+
* The structureTool is a studio plugin which adds the “structure tool” – a tool within
|
|
721
|
+
* Sanity Studio in which content editors can drill down to specific documents to edit them.
|
|
722
|
+
* You can configure your Studio's structure tool(s).
|
|
723
|
+
*
|
|
724
|
+
* @public
|
|
725
|
+
* @param options - Options for the structure tool. See {@link StructureToolOptions}
|
|
726
|
+
* @example Minimal example
|
|
727
|
+
* ```ts
|
|
728
|
+
* // sanity.config.ts
|
|
729
|
+
* import { defineConfig } from 'sanity'
|
|
730
|
+
* import { structureTool } from 'sanity/structure'
|
|
731
|
+
*
|
|
732
|
+
* export default defineConfig((
|
|
733
|
+
* // ...
|
|
734
|
+
* plugins: [
|
|
735
|
+
* structureTool() // use defaults
|
|
736
|
+
* ]
|
|
737
|
+
* })
|
|
738
|
+
* ```
|
|
739
|
+
*
|
|
740
|
+
* @example To customise your structure tool
|
|
741
|
+
* ```ts
|
|
742
|
+
* // sanity.config.ts
|
|
743
|
+
* import { defineConfig } from 'sanity'
|
|
744
|
+
* import { structureTool } from 'sanity/structure'
|
|
745
|
+
* import { FaCar } from 'react-icons'
|
|
746
|
+
|
|
747
|
+
* export default defineConfig((
|
|
748
|
+
* // ...
|
|
749
|
+
* plugins: [
|
|
750
|
+
* structureTool({
|
|
751
|
+
* name: 'cars',
|
|
752
|
+
* title: 'Cars',
|
|
753
|
+
* icon: FaCar,
|
|
754
|
+
* structure: (S) => S.documentTypeList('car'),
|
|
755
|
+
* defaultDocumentNode: (S) =>
|
|
756
|
+
* S.document().views([
|
|
757
|
+
* S.view.form(),
|
|
758
|
+
* S.view.component(Preview).title('Preview')
|
|
759
|
+
* ])
|
|
760
|
+
* })
|
|
761
|
+
* ]
|
|
762
|
+
* })
|
|
763
|
+
* ```
|
|
764
|
+
* */
|
|
765
|
+
declare const structureTool: sanity.Plugin<void | StructureToolOptions>;
|
|
766
|
+
/** @internal */
|
|
767
|
+
interface StructureToolProviderProps {
|
|
768
|
+
structure?: StructureResolver;
|
|
769
|
+
defaultDocumentNode?: DefaultDocumentNodeResolver;
|
|
770
|
+
children: ReactNode;
|
|
771
|
+
}
|
|
772
|
+
/** @internal */
|
|
773
|
+
declare function StructureToolProvider({
|
|
774
|
+
defaultDocumentNode,
|
|
775
|
+
structure: resolveStructure,
|
|
776
|
+
children
|
|
777
|
+
}: StructureToolProviderProps): React.JSX.Element;
|
|
778
|
+
/** @internal */
|
|
779
|
+
declare function useStructureTool(): StructureToolContextValue;
|
|
780
|
+
export { PaneLayout as C, ConfirmDeleteDialogProps as D, ConfirmDeleteDialogContainer as E, BaseStructureToolPaneProps as O, usePaneRouter as S, Pane as T, StructureLocaleResourceKeys as _, structureTool as a, IncomingReferenceAction as b, useDocumentPane as c, useDocumentTitle as d, DocumentPaneProviderWrapper as f, structureLocaleNamespace as g, DocumentPaneProviderProps as h, StructureToolProviderProps as i, DocumentInspectorHeader as l, usePaneOptions as m, useStructureTool as n, DocumentListPaneProps as o, DocumentPane as p, StructureToolProvider as r, PaneContainer as s, PaneRouterContext as t, UseDocumentTitle as u, isIncomingReferenceCreation as v, PaneContent as w, IncomingReferencesOptions as x, defineIncomingReferenceDecoration as y };
|