@sanity/ui 2.16.4 → 2.16.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"refractor.mjs","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import Refractor from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? Refractor.hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","Refractor","hasLanguage","registered","t1","t2","String","t3","displayName"],"mappings":";;;AAEA,SAAeA,cAAAC,OAAA;AAAAC,QAAAA,IAAAC,EAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAYC,MAAAA;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,UAAAC,YAAsBN,QAAe,IAAS,IAAAF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAA5E,QAAAS,aAAmBH;AAAyDI,MAAAA;AAAAV,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SAIvEM,KAAA,EAAER,YAAYO,2CAAsBL,EAAAA,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAAW,MAAAA;AAAAX,IAAAE,CAAAA,MAAAA,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SACjDO,KAAAT,YAAYO,kCAAe,WAAU,EAAA,QAAK,IAAYP,UAAiB,OAAAU,OAAOR,KAAK,EAAA,CAAK,GAAAJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAW,MAAAA,KAAAX,EAAA,CAAA;AAAAa,MAAAA;AAAAb,SAAAA,EAAAU,EAAAA,MAAAA,MAAAV,UAAAW,MAF3FE,KACGH,qBAAAA,UAAAA,EAAAA,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAwF,CAAA,GACxFX,QAAAU,IAAAV,QAAAW,IAAAX,QAAAa,MAAAA,KAAAb,EAAA,EAAA,GAHHa;AAGG;AAIPf,cAAcgB,cAAc;"}
1
+ {"version":3,"file":"refractor.mjs","sources":["../../src/core/primitives/code/refractor.tsx"],"sourcesContent":["import Refractor from 'react-refractor'\n\nexport default function LazyRefractor(\n props: Partial<Pick<React.ComponentProps<typeof Refractor>, 'language'>> & {\n value: React.ReactNode\n },\n) {\n const {language: languageProp, value} = props\n const language = typeof languageProp === 'string' ? languageProp : undefined\n const registered = language ? Refractor.hasLanguage(language as any) : false\n\n return (\n <>\n {!(language && registered) && <code>{value}</code>}\n {language && registered && <Refractor inline language={language} value={String(value)} />}\n </>\n )\n}\n\nLazyRefractor.displayName = 'LazyRefractor'\n"],"names":["LazyRefractor","props","$","_c","language","languageProp","value","undefined","t0","Refractor","hasLanguage","registered","t1","t2","String","t3","displayName"],"mappings":";;;AAEA,SAAeA,cAAAC,OAAA;AAAA,QAAAC,IAAAC,EAAA,EAAA,GAKb;AAAA,IAAAC,UAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAwCL,OACxCG,WAAiB,OAAOC,gBAAiB,WAAWA,eAAYE;AAAY,MAAAC;AAAAN,WAAAE,YACzDI,KAAAJ,WAAWK,UAAAC,YAAsBN,QAAe,IAAC,IAAQF,OAAAE,UAAAF,OAAAM,MAAAA,KAAAN,EAAA,CAAA;AAA5E,QAAAS,aAAmBH;AAAyD,MAAAI;AAAAV,IAAA,CAAA,MAAAE,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SAIvEM,KAAA,EAAER,YAAYO,6CAAsBL,UAAAA,MAAAA,CAAM,GAAOJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAU,MAAAA,KAAAV,EAAA,CAAA;AAAA,MAAAW;AAAAX,IAAA,CAAA,MAAAE,YAAAF,SAAAS,cAAAT,EAAA,CAAA,MAAAI,SACjDO,KAAAT,YAAYO,kCAAe,WAAA,EAAU,QAAA,IAAiBP,UAAiB,OAAAU,OAAOR,KAAK,EAAA,CAAC,GAAIJ,OAAAE,UAAAF,OAAAS,YAAAT,OAAAI,OAAAJ,OAAAW,MAAAA,KAAAX,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,EAAA,MAAAU,MAAAV,UAAAW,MAF3FE,sCACGH,UAAAA;AAAAA,IAAAA;AAAAA,IACAC;AAAAA,EAAAA,EAAAA,CAAwF,GACxFX,QAAAU,IAAAV,QAAAW,IAAAX,QAAAa,MAAAA,KAAAb,EAAA,EAAA,GAHHa;AAGG;AAIPf,cAAcgB,cAAc;"}
@@ -346,7 +346,7 @@ declare interface LayerProviderProps {
346
346
  * @public
347
347
  */
348
348
  export declare const Menu: ForwardRefExoticComponent<
349
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
349
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
350
350
  RefAttributes<HTMLDivElement>
351
351
  >
352
352
 
@@ -402,7 +402,7 @@ declare interface MenuGroupProps {
402
402
  */
403
403
  export declare const MenuItem: ForwardRefExoticComponent<
404
404
  MenuItemProps &
405
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'tabIndex' | 'ref' | 'as'> &
405
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
406
406
  RefAttributes<HTMLDivElement>
407
407
  >
408
408
 
@@ -346,7 +346,7 @@ declare interface LayerProviderProps {
346
346
  * @public
347
347
  */
348
348
  export declare const Menu: ForwardRefExoticComponent<
349
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
349
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
350
350
  RefAttributes<HTMLDivElement>
351
351
  >
352
352
 
@@ -402,7 +402,7 @@ declare interface MenuGroupProps {
402
402
  */
403
403
  export declare const MenuItem: ForwardRefExoticComponent<
404
404
  MenuItemProps &
405
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'tabIndex' | 'ref' | 'as'> &
405
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
406
406
  RefAttributes<HTMLDivElement>
407
407
  >
408
408
 
package/dist/index.d.mts CHANGED
@@ -673,7 +673,7 @@ export declare interface CodeProps {
673
673
  */
674
674
  export declare const CodeSkeleton: ForwardRefExoticComponent<
675
675
  Omit<
676
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
676
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
677
677
  'ref'
678
678
  > &
679
679
  RefAttributes<HTMLDivElement>
@@ -1093,7 +1093,7 @@ export declare interface HeadingProps {
1093
1093
  */
1094
1094
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1095
1095
  Omit<
1096
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1096
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1097
1097
  'ref'
1098
1098
  > &
1099
1099
  RefAttributes<HTMLDivElement>
@@ -1260,7 +1260,7 @@ export declare interface LabelProps {
1260
1260
  */
1261
1261
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1262
1262
  Omit<
1263
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1263
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1264
1264
  'ref'
1265
1265
  > &
1266
1266
  RefAttributes<HTMLDivElement>
@@ -1341,7 +1341,7 @@ export declare interface _MediaStore {
1341
1341
  * @public
1342
1342
  */
1343
1343
  export declare const Menu: ForwardRefExoticComponent<
1344
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
1344
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1345
1345
  RefAttributes<HTMLDivElement>
1346
1346
  >
1347
1347
 
@@ -1447,7 +1447,7 @@ export declare interface MenuGroupProps {
1447
1447
  */
1448
1448
  export declare const MenuItem: ForwardRefExoticComponent<
1449
1449
  MenuItemProps &
1450
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'tabIndex' | 'ref' | 'as'> &
1450
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
1451
1451
  RefAttributes<HTMLDivElement>
1452
1452
  >
1453
1453
 
@@ -2293,7 +2293,7 @@ export declare interface TextProps {
2293
2293
  */
2294
2294
  export declare const TextSkeleton: ForwardRefExoticComponent<
2295
2295
  Omit<
2296
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
2296
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
2297
2297
  'ref'
2298
2298
  > &
2299
2299
  RefAttributes<HTMLDivElement>
@@ -2686,7 +2686,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2686
2686
  */
2687
2687
  export declare const Tree: NamedExoticComponent<
2688
2688
  TreeProps &
2689
- Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'wrap' | 'ref' | 'as' | 'align'> &
2689
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'wrap' | 'ref' | 'role' | 'as' | 'align'> &
2690
2690
  RefAttributes<HTMLDivElement>
2691
2691
  >
2692
2692
 
@@ -2710,7 +2710,7 @@ export declare interface TreeContextValue {
2710
2710
  * @beta
2711
2711
  */
2712
2712
  export declare const TreeItem: NamedExoticComponent<
2713
- TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'role' | 'ref' | 'as'>
2713
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
2714
2714
  >
2715
2715
 
2716
2716
  /**
@@ -2935,7 +2935,7 @@ export declare function useTree(): TreeContextValue
2935
2935
  export declare const VirtualList: ForwardRefExoticComponent<
2936
2936
  VirtualListProps<any> &
2937
2937
  StackProps &
2938
- Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
2938
+ Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
2939
2939
  RefAttributes<HTMLDivElement>
2940
2940
  >
2941
2941
 
package/dist/index.d.ts CHANGED
@@ -673,7 +673,7 @@ export declare interface CodeProps {
673
673
  */
674
674
  export declare const CodeSkeleton: ForwardRefExoticComponent<
675
675
  Omit<
676
- CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
676
+ CodeSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
677
677
  'ref'
678
678
  > &
679
679
  RefAttributes<HTMLDivElement>
@@ -1093,7 +1093,7 @@ export declare interface HeadingProps {
1093
1093
  */
1094
1094
  export declare const HeadingSkeleton: ForwardRefExoticComponent<
1095
1095
  Omit<
1096
- HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1096
+ HeadingSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1097
1097
  'ref'
1098
1098
  > &
1099
1099
  RefAttributes<HTMLDivElement>
@@ -1260,7 +1260,7 @@ export declare interface LabelProps {
1260
1260
  */
1261
1261
  export declare const LabelSkeleton: ForwardRefExoticComponent<
1262
1262
  Omit<
1263
- LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
1263
+ LabelSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
1264
1264
  'ref'
1265
1265
  > &
1266
1266
  RefAttributes<HTMLDivElement>
@@ -1341,7 +1341,7 @@ export declare interface _MediaStore {
1341
1341
  * @public
1342
1342
  */
1343
1343
  export declare const Menu: ForwardRefExoticComponent<
1344
- Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'tabIndex' | 'as'>, 'ref'> &
1344
+ Omit<MenuProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'tabIndex' | 'role' | 'as'>, 'ref'> &
1345
1345
  RefAttributes<HTMLDivElement>
1346
1346
  >
1347
1347
 
@@ -1447,7 +1447,7 @@ export declare interface MenuGroupProps {
1447
1447
  */
1448
1448
  export declare const MenuItem: ForwardRefExoticComponent<
1449
1449
  MenuItemProps &
1450
- Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'tabIndex' | 'ref' | 'as'> &
1450
+ Omit<HTMLProps<HTMLDivElement>, 'selected' | 'height' | 'ref' | 'tabIndex' | 'as'> &
1451
1451
  RefAttributes<HTMLDivElement>
1452
1452
  >
1453
1453
 
@@ -2293,7 +2293,7 @@ export declare interface TextProps {
2293
2293
  */
2294
2294
  export declare const TextSkeleton: ForwardRefExoticComponent<
2295
2295
  Omit<
2296
- TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'children' | 'size' | 'as'>,
2296
+ TextSkeletonProps & Omit<HTMLProps<HTMLDivElement>, 'height' | 'size' | 'children' | 'as'>,
2297
2297
  'ref'
2298
2298
  > &
2299
2299
  RefAttributes<HTMLDivElement>
@@ -2686,7 +2686,7 @@ export declare interface TooltipProps extends Omit<LayerProps, 'as'> {
2686
2686
  */
2687
2687
  export declare const Tree: NamedExoticComponent<
2688
2688
  TreeProps &
2689
- Omit<HTMLProps<HTMLDivElement>, 'height' | 'role' | 'wrap' | 'ref' | 'as' | 'align'> &
2689
+ Omit<HTMLProps<HTMLDivElement>, 'height' | 'wrap' | 'ref' | 'role' | 'as' | 'align'> &
2690
2690
  RefAttributes<HTMLDivElement>
2691
2691
  >
2692
2692
 
@@ -2710,7 +2710,7 @@ export declare interface TreeContextValue {
2710
2710
  * @beta
2711
2711
  */
2712
2712
  export declare const TreeItem: NamedExoticComponent<
2713
- TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'role' | 'ref' | 'as'>
2713
+ TreeItemProps & Omit<HTMLProps<HTMLLIElement>, 'ref' | 'role' | 'as'>
2714
2714
  >
2715
2715
 
2716
2716
  /**
@@ -2935,7 +2935,7 @@ export declare function useTree(): TreeContextValue
2935
2935
  export declare const VirtualList: ForwardRefExoticComponent<
2936
2936
  VirtualListProps<any> &
2937
2937
  StackProps &
2938
- Omit<HTMLProps<HTMLDivElement>, 'children' | 'onChange' | 'ref' | 'as'> &
2938
+ Omit<HTMLProps<HTMLDivElement>, 'children' | 'ref' | 'onChange' | 'as'> &
2939
2939
  RefAttributes<HTMLDivElement>
2940
2940
  >
2941
2941