sanity-plugin-mux-input 4.1.8 → 4.1.9

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.js CHANGED
@@ -342,7 +342,7 @@ function useAssets() {
342
342
  function useDialogState() {
343
343
  return useState(!1);
344
344
  }
345
- const PLUGIN_VERSION_QUERY = { sanityVersion: "4.1.8" };
345
+ const PLUGIN_VERSION_QUERY = { sanityVersion: "4.1.9" };
346
346
  function saveSecrets(client, token, secretKey, enableSignedUrls, signingKeyId, signingKeyPrivate, drmConfigId) {
347
347
  let doc = {
348
348
  _id: "secrets.mux",
@@ -3865,7 +3865,7 @@ function VideoPlayer({ asset, thumbnailWidth = 250, children, hlsConfig, ...prop
3865
3865
  crossOrigin: "anonymous",
3866
3866
  metadata: {
3867
3867
  player_name: "Sanity Admin Dashboard",
3868
- player_version: "4.1.8",
3868
+ player_version: "4.1.9",
3869
3869
  page_type: "Preview Player"
3870
3870
  },
3871
3871
  audio: isAudio,
@@ -4002,15 +4002,8 @@ function PaneItemPreview(props) {
4002
4002
  function getIconWithFallback(icon, schemaType, defaultIcon) {
4003
4003
  return icon === !1 ? !1 : icon || schemaType && schemaType.icon || defaultIcon || !1;
4004
4004
  }
4005
- function DocumentPreviewLink(props) {
4006
- return (linkProps) => /* @__PURE__ */ jsx(IntentLink, {
4007
- intent: "edit",
4008
- params: { id: props.documentPair.id },
4009
- children: linkProps.children
4010
- });
4011
- }
4012
4005
  function DocumentPreview(props) {
4013
- let { schemaType, documentPair } = props, doc = documentPair?.draft || documentPair?.published, id = documentPair.id || "", documentPreviewStore = useDocumentPreviewStore(), schema = useSchema(), documentPresence = useDocumentPresence(id), hasSchemaType = !!(schemaType && schemaType.name && schema.get(schemaType.name)), PreviewComponent = useMemo(() => doc ? !schemaType || !hasSchemaType ? /* @__PURE__ */ jsx(MissingSchemaType, { value: doc }) : /* @__PURE__ */ jsx(PaneItemPreview, {
4006
+ let { schemaType, documentPair } = props, doc = documentPair?.draft || documentPair?.published, id = documentPair.id || "", documentPreviewStore = useDocumentPreviewStore(), schema = useSchema(), documentPresence = useDocumentPresence(id), hasSchemaType = !!(schemaType && schemaType.name && schema.get(schemaType.name)), children = useMemo(() => doc ? !schemaType || !hasSchemaType ? /* @__PURE__ */ jsx(MissingSchemaType, { value: doc }) : /* @__PURE__ */ jsx(PaneItemPreview, {
4014
4007
  documentPreviewStore,
4015
4008
  icon: getIconWithFallback(void 0, schemaType, DocumentIcon),
4016
4009
  schemaType,
@@ -4026,13 +4019,15 @@ function DocumentPreview(props) {
4026
4019
  ]);
4027
4020
  return /* @__PURE__ */ jsx(PreviewCard, {
4028
4021
  __unstable_focusRing: !0,
4029
- as: DocumentPreviewLink(props),
4022
+ as: IntentLink,
4023
+ intent: "edit",
4024
+ params: { id: props.documentPair.id },
4030
4025
  "data-as": "a",
4031
4026
  "data-ui": "PaneItem",
4032
4027
  padding: 2,
4033
4028
  radius: 2,
4034
4029
  tone: "inherit",
4035
- children: PreviewComponent
4030
+ children
4036
4031
  });
4037
4032
  }
4038
4033
  const Container = styled(Box).withConfig({