@prismicio/editor-fields 0.4.89-alpha.jp-box-display-none.1 → 0.4.90

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 (124) hide show
  1. package/dist/DocumentEditor.d.ts +1 -0
  2. package/dist/EditorConfig.d.ts +22 -7
  3. package/dist/GroupAndNestableWidgetSwitch.d.ts +1 -0
  4. package/dist/GroupEditor.d.ts +1 -0
  5. package/dist/NestableWidgetSwitch.d.ts +1 -0
  6. package/dist/SectionEditor.d.ts +1 -0
  7. package/dist/SliceSelection.d.ts +1 -0
  8. package/dist/core/APIExplorer/APIExplorer.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +1 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +1 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +1 -0
  14. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +1 -0
  15. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +1 -0
  16. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +1 -0
  17. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -0
  18. package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +1 -0
  19. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +1 -0
  20. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +1 -0
  21. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +1 -0
  22. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -0
  23. package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +1 -0
  24. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +1 -0
  25. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +1 -0
  26. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
  27. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1413 -1
  28. package/dist/core/EditorErrorBoundary.d.ts +1 -0
  29. package/dist/core/MediaLibrary/MediaLibrary.d.ts +1 -0
  30. package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +1 -0
  31. package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +1 -0
  32. package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +1 -0
  33. package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +1 -0
  34. package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +1 -0
  35. package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +1 -0
  36. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +1 -0
  37. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +1 -0
  38. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +1 -0
  39. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +1 -0
  40. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +1 -0
  41. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +1 -0
  42. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +1 -0
  43. package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +1 -0
  44. package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +1 -0
  45. package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +1 -0
  46. package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +1 -0
  47. package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +1 -0
  48. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +3 -3
  49. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +1 -0
  50. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +1 -0
  51. package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +1 -0
  52. package/dist/core/SelectionManager/SelectionManager.d.ts +1 -0
  53. package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +1 -0
  54. package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +1 -0
  55. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +1 -0
  56. package/dist/core/service/customType.d.ts +16319 -175
  57. package/dist/core/service/document.d.ts +218 -48
  58. package/dist/core/service/onboarding.d.ts +1 -0
  59. package/dist/core/service/role.d.ts +1 -1
  60. package/dist/fields/BooleanField.d.ts +1 -0
  61. package/dist/fields/ColorField/ColorField.d.ts +1 -0
  62. package/dist/fields/DateField.d.ts +1 -0
  63. package/dist/fields/EmbedField/EmbedField.d.ts +1 -0
  64. package/dist/fields/FieldTextInput.d.ts +1 -0
  65. package/dist/fields/GeoPointField/GeoPointField.d.ts +1 -0
  66. package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +1 -0
  67. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -0
  68. package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +1 -0
  69. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +1 -0
  70. package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
  71. package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +1 -0
  72. package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -0
  73. package/dist/fields/ImageField/ImageField.d.ts +1 -0
  74. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +1 -0
  75. package/dist/fields/IntegrationField/IntegrationDialog.d.ts +1 -0
  76. package/dist/fields/IntegrationField/IntegrationField.d.ts +1 -0
  77. package/dist/fields/IntegrationField/IntegrationInput.d.ts +1 -0
  78. package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +1 -0
  79. package/dist/fields/IntegrationField/integrationData.d.ts +1 -5
  80. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
  81. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +1 -0
  82. package/dist/fields/LinkField/Documents/Filters.d.ts +1 -0
  83. package/dist/fields/LinkField/Documents/useFilters.d.ts +1 -0
  84. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +1 -0
  85. package/dist/fields/LinkField/LinkField.d.ts +1 -0
  86. package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
  87. package/dist/fields/LinkField/LinkImageCard.d.ts +1 -0
  88. package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +1 -0
  89. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
  90. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +1 -0
  91. package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +1 -0
  92. package/dist/fields/LinkField/useLinkField.d.ts +2 -1
  93. package/dist/fields/MetadataTextField.d.ts +1 -0
  94. package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
  95. package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +1 -0
  96. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +1 -0
  97. package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +1 -0
  98. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +1 -0
  99. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +1 -0
  100. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +1 -0
  101. package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +1 -0
  102. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +1 -0
  103. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +1 -0
  104. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +1 -0
  105. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +1 -0
  106. package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
  107. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -0
  108. package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -0
  109. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +1 -0
  110. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +1 -0
  111. package/dist/fields/SelectField.d.ts +1 -0
  112. package/dist/fields/TableField/TableField.d.ts +1 -0
  113. package/dist/fields/TimestampField.d.ts +1 -0
  114. package/dist/fields/UIDField.d.ts +1 -0
  115. package/dist/index.cjs.js +48 -48
  116. package/dist/index.es.js +16391 -16237
  117. package/dist/slices/SharedSliceEditor.d.ts +2 -1
  118. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +1 -0
  119. package/dist/zones/NonRepeatableZoneEditor.d.ts +1 -0
  120. package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
  121. package/dist/zones/SlicePrimaryZoneEditor.d.ts +1 -0
  122. package/dist/zones/SliceZoneEditor.d.ts +1 -0
  123. package/dist/zones/StaticZoneEditor.d.ts +1 -0
  124. package/package.json +6 -7
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Document } from "@prismicio/types-internal/lib/content";
2
3
  import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { type EditorConfig } from "./EditorConfig";
@@ -10,11 +10,7 @@ export type EditorConfig = {
10
10
  embedApiEndpoint: URL;
11
11
  unsplashApiBaseUrl: URL;
12
12
  authStrategy: AuthStrategy;
13
- useCollaborativeComments?: UseCollaborativeComments;
14
- useThreads?: UseThreads;
15
- CustomThreads?: CustomThreads;
16
- CollaborationPresence?: CollaborationPresence;
17
- hasSharedCollaborativeHistory?: boolean;
13
+ collaboration?: Collaboration;
18
14
  } & OptionalConfigs;
19
15
  type OptionalConfigs = SearchDocuments & MediaLibrary & UIDField & Analytics & ErrorTracking & IntegrationFields & LayoutConfig & UserService & AISeoMetadata;
20
16
  type UserService = {
@@ -116,11 +112,26 @@ interface ErrorTracking {
116
112
  /** Asks the editor to track this Error in its Error monitoring solution. */
117
113
  onTrackError?: (error: Error) => void;
118
114
  }
119
- interface UseCollaborativeCommentsArgs {
115
+ export type Collaboration = {
116
+ hasSharedCollaborativeHistory: boolean;
117
+ Presence: CollaborationPresence;
118
+ comments: {
119
+ useThreads: UseThreads;
120
+ useIsActiveThread: UseIsActiveThread;
121
+ ThreadLink: ThreadLink;
122
+ };
123
+ richText?: {
124
+ useComments: UseRichTextComments;
125
+ useThreads: UseThreads;
126
+ CustomThreads: CustomThreads;
127
+ };
128
+ };
129
+ interface UseRichTextCommentsArgs {
120
130
  field?: string;
121
131
  initialContent?: Content;
122
132
  }
123
- type UseCollaborativeComments = (args: UseCollaborativeCommentsArgs) => Extension;
133
+ type UseRichTextComments = (args: UseRichTextCommentsArgs) => Extension;
134
+ type UseIsActiveThread = (threadId?: string) => boolean;
124
135
  type UseThreads = (options?: UseThreadsOptions<BaseMetadata> | undefined) => ReturnType<typeof useLiveblocksThreads>;
125
136
  type CustomThreads = (props: {
126
137
  editor: Editor;
@@ -130,6 +141,10 @@ type CollaborationPresence = (props: {
130
141
  children: ReactNode;
131
142
  id: string;
132
143
  }) => JSX.Element;
144
+ type ThreadLink = (props: {
145
+ children: ReactNode;
146
+ threadId: string;
147
+ }) => JSX.Element;
133
148
  export type AuthStrategy = "cookie" | "token";
134
149
  export declare const EditorConfigContext: import("react").Context<EditorConfig | undefined>;
135
150
  export declare function useEditorConfig(): EditorConfig;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type GroupContent, type NestableContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Group, NestableWidget } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { GroupContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Group } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface GroupEditorProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NestableContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { NestableWidget } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type Document } from "@prismicio/types-internal/lib/content";
2
3
  import type { StaticCustomType, StaticSection } from "@prismicio/types-internal/lib/customtypes";
3
4
  import type { SliceSelection } from "./SliceSelection";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface SliceSelection {
2
3
  /**
3
4
  * The keys of the slices that are currently selected.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type APIExplorerProviderProps } from "./components/APIExplorerContext";
2
3
  type APIExplorerProps = Pick<APIExplorerProviderProps, "repository" | "track">;
3
4
  export declare function APIExplorer(props: APIExplorerProps): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function APIExplorerRequest(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function APIExplorerResponse(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const apiPaths: {
2
3
  doc: string;
3
4
  docType: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterType } from "./types";
2
3
  interface FilterConfigDialogProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request filters setting.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FormInputProps } from "@prismicio/editor-ui";
2
3
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
3
4
  export type RequestFormInputProps = Pick<RequestFormInputBaseProps, "label"> & FormInputProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type RequestFormInputBaseProps = {
2
3
  label: string;
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FormInputProps } from "@prismicio/editor-ui";
2
3
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
3
4
  export type RequestFormMultiInputProps = Pick<RequestFormInputBaseProps, "label"> & FormMultiInputProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type SelectProps } from "@prismicio/editor-ui";
2
3
  import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
3
4
  export declare function RequestFormSelect(props: Pick<RequestFormInputBaseProps, "label"> & SelectProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request document lang setting.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface OrderingConfigDialogProps {
2
3
  open: boolean;
3
4
  onOpenChange: (open: boolean) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request orderings setting.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request pagination settings.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request ref setting.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Display a fieldset managing a request tag settings.
3
4
  */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FormInputProps } from "@prismicio/editor-ui";
2
3
  /**
3
4
  * Display a fieldset managing a request tags settings.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type RequestTypeFieldsetProps = {
2
3
  nonRepeatableOnly?: boolean;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { BuildQueryURLArgs, Client, Ordering } from "@prismicio/client";
2
3
  import type { SnippetArgs } from "../../utils";
3
4
  import type { RequestRunReturnType } from "./types";