sanity 5.27.0-next.9 → 5.28.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,6 +29,7 @@ import { CSSProperties as CSSProperties$1, ExecutionProps } from "styled-compone
29
29
  import { ThrottleSettings } from "lodash-es/throttle.js";
30
30
  import { DEFAULT_ANNOTATIONS, DEFAULT_DECORATORS } from "@sanity/schema";
31
31
  import * as _$styled_components_dist_types0 from "/home/runner/work/sanity/sanity/node_modules/.pnpm/@sanity+styled-components@6.1.24_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@sanity/styled-components/dist/types.js";
32
+ import { SanityImageSource } from "@sanity/asset-utils";
32
33
  import { PortableTextMemberSchemaTypes } from "@portabletext/sanity-bridge";
33
34
  import { ImageUrlBuilder, ImageUrlBuilder as ImageUrlBuilder$1 } from "@sanity/image-url";
34
35
  import { MarkdownShortcutsPluginProps } from "@portabletext/plugin-markdown-shortcuts";
@@ -9901,7 +9902,7 @@ interface PreviewProps<TLayoutKey = PreviewLayoutKey> {
9901
9902
  imageUrl?: string;
9902
9903
  isPlaceholder?: boolean;
9903
9904
  layout?: TLayoutKey;
9904
- media?: ReactNode | ComponentType<{
9905
+ media?: ReactNode | SanityImageSource | ComponentType<{
9905
9906
  dimensions: PreviewMediaDimensions;
9906
9907
  layout: TLayoutKey;
9907
9908
  }>;
@@ -3,6 +3,18 @@ const variantsLocaleStrings = {
3
3
  "navbar.view-as": "View as",
4
4
  /** Label for the version selector in the variants navigation row. */
5
5
  "navbar.version": "Version",
6
+ /** Label for the variant selector in the variants navigation row. */
7
+ "navbar.variant": "Variant",
8
+ /** Default option label when no variant is selected. */
9
+ "navbar.variant.default": "All users (Default)",
10
+ /** Placeholder for the variant filter input in the dropdown. */
11
+ "navbar.variant.filter-placeholder": "Filter variants\u2026",
12
+ /** Section header for non-default variants in the dropdown. */
13
+ "navbar.variant.other": "Other variants",
14
+ /** Label for clearing version and variant selections. */
15
+ "navbar.clear": "Clear",
16
+ /** Tooltip for clearing the selected variant. */
17
+ "navbar.variant.clear": "Clear variant selection",
6
18
  /** Label for the Variants overview create action. */
7
19
  "overview.action.create-variant": "Create variant",
8
20
  /** Label for the Variants overview delete action. */
@@ -1 +1 @@
1
- {"version":3,"file":"resources7.js","sources":["../../src/core/variants/i18n/resources.ts"],"sourcesContent":["/**\n * Defined locale strings for variants, in US English.\n *\n * @internal\n */\nconst variantsLocaleStrings = {\n /** Label for the variants navigation row. */\n 'navbar.view-as': 'View as',\n /** Label for the version selector in the variants navigation row. */\n 'navbar.version': 'Version',\n /** Label for the Variants overview create action. */\n 'overview.action.create-variant': 'Create variant',\n /** Label for the Variants overview delete action. */\n 'overview.action.delete-variant': 'Delete variant',\n /** Error toast title when variant deletion fails. */\n 'overview.action.delete-variant.error.title': 'Unable to delete variant',\n /** Link label for Variants overview documentation (empty state). */\n 'overview.action.documentation': 'Documentation',\n /** Description for the Variants overview empty state. */\n 'overview.empty-state.description':\n 'Variant definitions describe how content is personalized for audiences, locales, segments, and more.',\n /** Description for the Variants overview. */\n 'overview.description':\n 'Manage variant definitions that control how content is personalized for different audiences, locales, and segments.',\n /** Error message for the Variants overview. */\n 'overview.error': 'Unable to load variants',\n /** Placeholder for the Variants overview search field. */\n 'overview.search.placeholder': 'Search variant definitions…',\n /** Column header for the variant title column in the overview table. */\n 'overview.table.variant': 'Variant',\n /** Column header for document count in the overview table. */\n 'overview.table.documents': 'Documents',\n /** Fallback text when a variant has no conditions. */\n 'overview.table.no-conditions': 'No conditions',\n /** Title for the Variants overview. */\n 'overview.title': 'Variants',\n /** Back action on the Variant detail page. */\n 'detail.back': 'Back to variants',\n /** Loading message on the Variant detail page. */\n 'detail.loading': 'Loading variant',\n /** Fallback text when a variant has no description. */\n 'detail.no-description': 'No description yet.',\n /** Description for the missing Variant detail page. */\n 'detail.not-found.description': 'The requested variant could not be found.',\n /** Title for the missing Variant detail page. */\n 'detail.not-found.title': 'Variant not found',\n /** Placeholder text on the Variant detail page. */\n 'detail.placeholder': 'Variant detail editing will be added in a future iteration.',\n /** Title for the create variant dialog. */\n 'dialog.create.title': 'Create variant',\n /** Confirm action for the create variant dialog. */\n 'dialog.create.action.confirm': 'Create variant',\n /** Add condition action for the create variant dialog. */\n 'dialog.create.action.add-condition': 'Add condition',\n /** Tooltip when add condition is disabled because the current row is incomplete. */\n 'dialog.create.action.add-condition.disabled-hint':\n 'Complete the current condition key and value before adding another.',\n /** Remove condition action for the create variant dialog. */\n 'dialog.create.remove-condition': 'Remove condition',\n /** Label for the variant title field in the create variant dialog. */\n 'dialog.create.variant-title.label': 'Title',\n /** Placeholder for the variant title field in the create variant dialog. */\n 'dialog.create.variant-title.placeholder': 'e.g. Loyal customers',\n /** Validation message when the variant title is missing. */\n 'dialog.create.variant-title.required': 'Title is required',\n /** Label for the description field in the create variant dialog. */\n 'dialog.create.description.label': 'Description',\n /** Placeholder for the description field in the create variant dialog. */\n 'dialog.create.description.placeholder': 'Describe who this variant targets',\n /** Title for the conditions section in the create variant dialog. */\n 'dialog.create.conditions.title': 'Conditions',\n /** Description for the conditions section in the create variant dialog. */\n 'dialog.create.conditions.description':\n 'Add key/value pairs that define when this variant applies.',\n /** Label for the condition key field in the create variant dialog. */\n 'dialog.create.condition-key.label': 'Key',\n /** Validation message when a condition key is repeated. */\n 'dialog.create.condition-key.duplicate': 'Condition keys must be unique',\n /** Placeholder for the condition key field in the create variant dialog. */\n 'dialog.create.condition-key.placeholder': 'e.g. audience',\n /** Label for the condition value field in the create variant dialog. */\n 'dialog.create.condition-value.label': 'Value',\n /** Placeholder for the condition value field in the create variant dialog. */\n 'dialog.create.condition-value.placeholder': 'e.g. loyal-customers',\n /** Error toast title when variant creation fails. */\n 'dialog.create.error.title': 'Unable to create variant',\n}\n\n/**\n * @alpha\n */\nexport type VariantsLocaleResourceKeys = keyof typeof variantsLocaleStrings\n\nexport default variantsLocaleStrings\n"],"names":["variantsLocaleStrings"],"mappings":"AAKA,MAAMA,wBAAwB;AAAA;AAAA,EAE5B,kBAAkB;AAAA;AAAA,EAElB,kBAAkB;AAAA;AAAA,EAElB,kCAAkC;AAAA;AAAA,EAElC,kCAAkC;AAAA;AAAA,EAElC,8CAA8C;AAAA;AAAA,EAE9C,iCAAiC;AAAA;AAAA,EAEjC,oCACE;AAAA;AAAA,EAEF,wBACE;AAAA;AAAA,EAEF,kBAAkB;AAAA;AAAA,EAElB,+BAA+B;AAAA;AAAA,EAE/B,0BAA0B;AAAA;AAAA,EAE1B,4BAA4B;AAAA;AAAA,EAE5B,gCAAgC;AAAA;AAAA,EAEhC,kBAAkB;AAAA;AAAA,EAElB,eAAe;AAAA;AAAA,EAEf,kBAAkB;AAAA;AAAA,EAElB,yBAAyB;AAAA;AAAA,EAEzB,gCAAgC;AAAA;AAAA,EAEhC,0BAA0B;AAAA;AAAA,EAE1B,sBAAsB;AAAA;AAAA,EAEtB,uBAAuB;AAAA;AAAA,EAEvB,gCAAgC;AAAA;AAAA,EAEhC,sCAAsC;AAAA;AAAA,EAEtC,oDACE;AAAA;AAAA,EAEF,kCAAkC;AAAA;AAAA,EAElC,qCAAqC;AAAA;AAAA,EAErC,2CAA2C;AAAA;AAAA,EAE3C,wCAAwC;AAAA;AAAA,EAExC,mCAAmC;AAAA;AAAA,EAEnC,yCAAyC;AAAA;AAAA,EAEzC,kCAAkC;AAAA;AAAA,EAElC,wCACE;AAAA;AAAA,EAEF,qCAAqC;AAAA;AAAA,EAErC,yCAAyC;AAAA;AAAA,EAEzC,2CAA2C;AAAA;AAAA,EAE3C,uCAAuC;AAAA;AAAA,EAEvC,6CAA6C;AAAA;AAAA,EAE7C,6BAA6B;AAC/B;"}
1
+ {"version":3,"file":"resources7.js","sources":["../../src/core/variants/i18n/resources.ts"],"sourcesContent":["/**\n * Defined locale strings for variants, in US English.\n *\n * @internal\n */\nconst variantsLocaleStrings = {\n /** Label for the variants navigation row. */\n 'navbar.view-as': 'View as',\n /** Label for the version selector in the variants navigation row. */\n 'navbar.version': 'Version',\n /** Label for the variant selector in the variants navigation row. */\n 'navbar.variant': 'Variant',\n /** Default option label when no variant is selected. */\n 'navbar.variant.default': 'All users (Default)',\n /** Placeholder for the variant filter input in the dropdown. */\n 'navbar.variant.filter-placeholder': 'Filter variants…',\n /** Section header for non-default variants in the dropdown. */\n 'navbar.variant.other': 'Other variants',\n /** Label for clearing version and variant selections. */\n 'navbar.clear': 'Clear',\n /** Tooltip for clearing the selected variant. */\n 'navbar.variant.clear': 'Clear variant selection',\n /** Label for the Variants overview create action. */\n 'overview.action.create-variant': 'Create variant',\n /** Label for the Variants overview delete action. */\n 'overview.action.delete-variant': 'Delete variant',\n /** Error toast title when variant deletion fails. */\n 'overview.action.delete-variant.error.title': 'Unable to delete variant',\n /** Link label for Variants overview documentation (empty state). */\n 'overview.action.documentation': 'Documentation',\n /** Description for the Variants overview empty state. */\n 'overview.empty-state.description':\n 'Variant definitions describe how content is personalized for audiences, locales, segments, and more.',\n /** Description for the Variants overview. */\n 'overview.description':\n 'Manage variant definitions that control how content is personalized for different audiences, locales, and segments.',\n /** Error message for the Variants overview. */\n 'overview.error': 'Unable to load variants',\n /** Placeholder for the Variants overview search field. */\n 'overview.search.placeholder': 'Search variant definitions…',\n /** Column header for the variant title column in the overview table. */\n 'overview.table.variant': 'Variant',\n /** Column header for document count in the overview table. */\n 'overview.table.documents': 'Documents',\n /** Fallback text when a variant has no conditions. */\n 'overview.table.no-conditions': 'No conditions',\n /** Title for the Variants overview. */\n 'overview.title': 'Variants',\n /** Back action on the Variant detail page. */\n 'detail.back': 'Back to variants',\n /** Loading message on the Variant detail page. */\n 'detail.loading': 'Loading variant',\n /** Fallback text when a variant has no description. */\n 'detail.no-description': 'No description yet.',\n /** Description for the missing Variant detail page. */\n 'detail.not-found.description': 'The requested variant could not be found.',\n /** Title for the missing Variant detail page. */\n 'detail.not-found.title': 'Variant not found',\n /** Placeholder text on the Variant detail page. */\n 'detail.placeholder': 'Variant detail editing will be added in a future iteration.',\n /** Title for the create variant dialog. */\n 'dialog.create.title': 'Create variant',\n /** Confirm action for the create variant dialog. */\n 'dialog.create.action.confirm': 'Create variant',\n /** Add condition action for the create variant dialog. */\n 'dialog.create.action.add-condition': 'Add condition',\n /** Tooltip when add condition is disabled because the current row is incomplete. */\n 'dialog.create.action.add-condition.disabled-hint':\n 'Complete the current condition key and value before adding another.',\n /** Remove condition action for the create variant dialog. */\n 'dialog.create.remove-condition': 'Remove condition',\n /** Label for the variant title field in the create variant dialog. */\n 'dialog.create.variant-title.label': 'Title',\n /** Placeholder for the variant title field in the create variant dialog. */\n 'dialog.create.variant-title.placeholder': 'e.g. Loyal customers',\n /** Validation message when the variant title is missing. */\n 'dialog.create.variant-title.required': 'Title is required',\n /** Label for the description field in the create variant dialog. */\n 'dialog.create.description.label': 'Description',\n /** Placeholder for the description field in the create variant dialog. */\n 'dialog.create.description.placeholder': 'Describe who this variant targets',\n /** Title for the conditions section in the create variant dialog. */\n 'dialog.create.conditions.title': 'Conditions',\n /** Description for the conditions section in the create variant dialog. */\n 'dialog.create.conditions.description':\n 'Add key/value pairs that define when this variant applies.',\n /** Label for the condition key field in the create variant dialog. */\n 'dialog.create.condition-key.label': 'Key',\n /** Validation message when a condition key is repeated. */\n 'dialog.create.condition-key.duplicate': 'Condition keys must be unique',\n /** Placeholder for the condition key field in the create variant dialog. */\n 'dialog.create.condition-key.placeholder': 'e.g. audience',\n /** Label for the condition value field in the create variant dialog. */\n 'dialog.create.condition-value.label': 'Value',\n /** Placeholder for the condition value field in the create variant dialog. */\n 'dialog.create.condition-value.placeholder': 'e.g. loyal-customers',\n /** Error toast title when variant creation fails. */\n 'dialog.create.error.title': 'Unable to create variant',\n}\n\n/**\n * @alpha\n */\nexport type VariantsLocaleResourceKeys = keyof typeof variantsLocaleStrings\n\nexport default variantsLocaleStrings\n"],"names":["variantsLocaleStrings"],"mappings":"AAKA,MAAMA,wBAAwB;AAAA;AAAA,EAE5B,kBAAkB;AAAA;AAAA,EAElB,kBA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let buildVersion;
3
3
  try {
4
4
  buildVersion = process.env.PKG_BUILD_VERSION;
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "5.27.0-next.9+c78ec37786";
10
+ "5.28.0-next.1+4b5e4bb96a";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;