sanity-plugin-aprimo 2.0.1 → 2.0.2

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":"index.d.ts","names":["AprimoCDNAsset","AprimoAdditionalFile","AprimoAsset","AprimoConfig","AprimoConfig","aprimoPlugin","Partial","sanity2","Plugin","SchemaType","AprimoDiff","diff","schemaType","React","JSX","Element","ObjectInputProps","AprimoCDNAsset","AprimoAsset","AprimoConfig","AprimoWidgetProps","AprimoWidget","React","JSX","Element","React","AprimoDiff","AprimoWidget","AprimoCDNAssetSchema","url","title","JSX","Element","AprimoWidget","AprimoAssetSchema","AprimoAdditionalFileSchema","sanity3","ObjectDefinition","Omit","Record","PreviewConfig"],"sources":["../src/types.d.ts","../src/plugin.d.ts","../src/components/AprimoDiff.d.ts","../src/components/AprimoWidget.d.ts","../src/schema/AprimoCDNAsset.d.ts","../src/schema/AprimoAsset.d.ts","../src/schema/AdditionalFile.d.ts"],"sourcesContent":["export interface AprimoCDNAsset {\n id: string;\n title: string;\n rendition: {\n id: string;\n publicuri: string;\n };\n _key?: string;\n}\nexport interface AprimoAdditionalFile {\n additionalFileId: string;\n fileName: string;\n label: string;\n type: string;\n}\nexport interface AprimoAsset {\n id: string;\n title: string;\n additionalFile?: AprimoAdditionalFile;\n _key?: string;\n}\nexport interface AprimoConfig {\n tenantName: string;\n}\n//# sourceMappingURL=types.d.ts.map","import type { AprimoConfig } from './types';\nexport declare const aprimoPlugin: import(\"sanity\").Plugin<Partial<AprimoConfig>>;\n//# sourceMappingURL=plugin.d.ts.map","import { type SchemaType } from 'sanity';\nexport declare function AprimoDiff({ diff, schemaType }: {\n diff: any;\n schemaType: SchemaType;\n}): React.JSX.Element;\n//# sourceMappingURL=AprimoDiff.d.ts.map","import { type ObjectInputProps } from 'sanity';\nimport type { AprimoCDNAsset, AprimoAsset, AprimoConfig } from '../types';\nexport interface AprimoWidgetProps extends ObjectInputProps<AprimoCDNAsset | AprimoAsset> {\n pluginConfig: AprimoConfig;\n}\nexport declare function AprimoWidget(props: AprimoWidgetProps): React.JSX.Element;\n//# sourceMappingURL=AprimoWidget.d.ts.map","import type React from 'react';\nimport { AprimoDiff } from '../components/AprimoDiff';\nimport { AprimoWidget } from '../components/AprimoWidget';\nexport declare const AprimoCDNAssetSchema: {\n type: string;\n name: string;\n title: string;\n fields: ({\n type: string;\n name: string;\n fields?: undefined;\n } | {\n type: string;\n name: string;\n fields: {\n type: string;\n name: string;\n }[];\n })[];\n components: {\n input: typeof AprimoWidget;\n diff: typeof AprimoDiff;\n };\n preview: {\n select: {\n url: string;\n title: string;\n };\n prepare({ url, title }: {\n url: string;\n title: string;\n }): {\n title: string;\n media: React.JSX.Element;\n };\n };\n};\n//# sourceMappingURL=AprimoCDNAsset.d.ts.map","import { AprimoWidget } from '../components/AprimoWidget';\nexport declare const AprimoAssetSchema: {\n type: string;\n name: string;\n title: string;\n fields: {\n type: string;\n name: string;\n }[];\n components: {\n input: typeof AprimoWidget;\n };\n};\n//# sourceMappingURL=AprimoAsset.d.ts.map","export declare const AprimoAdditionalFileSchema: {\n type: \"object\";\n name: \"aprimo.additionalFile\";\n} & Omit<import(\"sanity\").ObjectDefinition, \"preview\"> & {\n preview?: import(\"sanity\").PreviewConfig<Record<string, string>, Record<never, any>> | undefined;\n};\n//# sourceMappingURL=AdditionalFile.d.ts.map"],"mappings":";;;UAAiBA,cAAAA;;;;IAAAA,EAAAA,EAAAA,MAAAA;IASAC,SAAAA,EAAAA,MAAAA;EAMAC,CAAAA;EAMAC,IAAAA,CAAAA,EAAAA,MAAAA;;ACpBIE,UDQJJ,oBAAAA,CCRgE;EAAdG,gBAAAA,EAAAA,MAAAA;EAARE,QAAAA,EAAAA,MAAAA;EAAOC,KAAdC,EAAAA,MAAAA;EAAM,IAAA,EAAA,MAAA;;ACAlCE,UFcPR,WAAAA,CEdiB;EAAGS,EAAAA,EAAAA,MAAAA;EAAMC,KAAAA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KC,CAAAA;EAKJL,CAAAA;CAAiB;cChCfS;;;ELDJlC,KAAAA,EAAAA,MAAAA;EASAC,MAAAA,EAAAA;IAMAC,IAAAA,EAAAA,MAAW;IAMXC,IAAAA,EAAAA,MAAY;;ECpBRE,UAAAA,EAAAA;IAA8CD,KAAAA,EAAAA,OIS7C6B,YJT6C7B;EAARE,CAAAA;CAAOC;cKD7C4B;;;IAGjBG,KAEHF,OAAAA,CAFyBC,gBAAAA;ENHTrC,OAAAA,CAAAA,EMI0DoC,OAAAA,CAA5CI,aNJA,CMIcD,MNJd,CAAA,MAAA,EAAA,MAAA,CAAA,EMIsCA,MNJtC,CAAA,KAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAS/B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/plugin.tsx","../src/components/AprimoDiff.tsx","../src/components/AprimoWidget.tsx","../src/schema/AprimoCDNAsset.tsx","../src/schema/AprimoAsset.ts","../src/schema/AdditionalFile.ts"],"sourcesContent":[],"mappings":";;;UAAiB,cAAA;;;;IAAA,EAAA,EAAA,MAAA;IAUA,SAAA,EAAA,MAAA;EAOA,CAAA;EAOA,IAAA,CAAA,EAAA,MAAA;;ACfJ,UDCI,oBAAA,CCkCf;EAnCuB,gBAAA,EAAA,MAAA;EAAA,QAAA,EAAA,MAAA;EAAA,KAAA,EAAA,MAAA;EAAA,IAAA,EAAA,MAAA;;ACJT,UFYC,WAAA,CEZS;EACxB,EAAA,EAAA,MAAA;EACA,KAAA,EAAA,MAAA;EAGY,cAAA,CAAA,EFUK,oBEVL;EACV,IAAM,CAAA,EAAI,MAAA;;UFaG,YAAA;EGLA,UAAA,EAAA,MAAA;;cFVJ,cAAY,OAAA,CAAA,OAAA,QAAA;iBCJT,UAAA;;;AFLhB;;cEUc;AFVd,CAAA,CAAA,EEWI,KAAA,CAAM,GAAA,CAAI,OFXiB;UGmBd,iBAAA,SAA0B,iBAAiB,iBAAiB;gBAC7D;AHpBhB;AAUiB,iBGaD,YAAA,CHbqB,KAAA,EGaD,iBHbC,CAAA,EGamB,KAAA,CAAM,GAAA,CAAI,OHb7B;cILxB;EJLI,IAAA,EAAA,MAAA;EAUA,IAAA,EAAA,MAAA;EAOA,KAAA,EAAA,MAAA;EAOA,MAAA,EAAA,CAAA;;ICfJ,IAAA,EAAA,MAmCX;IAnCuB,MAAA,CAAA,EAAA,SAAA;EAAA,CAAA,GAAA;IAAA,IAAA,EAAA,MAAA;IAAA,IAAA,EAAA,MAAA;;MCJT,IAAA,EAAU,MAAA;MACxB,IAAA,EAAA,MAAA;IACA,CAAA,EAAA;EAGY,CAAA,CAAA,EAAA;EACV,UAAU,EAAA;IAAO,KAAA,EAAA,mBAAA;;ECQJ,CAAA;EAA2C,OAAA,EAAA;IAAiB,MAAA,EAAA;MAC7D,GAAA,EAAA,MAAA;MAD2B,KAAA,EAAA,MAAA;IAAgB,CAAA;IAI3C,OAAA,CAAA;MAAA,GAAY;MAAA;KAAA,EAAQ;;MClBvB,KAAA,EAAA,MAAA;;;aAsCA,OAAA,CAAM,GAAA,CAAI;;EAAV,CAAA;CAAiB;cCzCjB;;;ELFI,KAAA,EAAA,MAAA;EAUA,MAAA,EAAA;IAOA,IAAA,EAAA,MAAW;IAOX,IAAA,EAAA,MAAY;;ECfhB,UAAA,EAAA;IAAY,KAAA,EAAA,OIcxB,YJdwB;EAAA,CAAA;CAAA;cKPZ;;;SA0BX,OAAA,CAAA,gBAAA;EN5Be,OAAA,CAAA,uBAAc,OAAA,CAAA,MAAA,EAAA,MAAA,CAAA,QAAA,CAAA,KAAA,EAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AAU/B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-aprimo",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Aprimo asset selector for Sanity",
5
5
  "keywords": [
6
6
  "sanity",
@@ -33,19 +33,17 @@
33
33
  "devDependencies": {
34
34
  "@sanity/pkg-utils": "^10.2.1",
35
35
  "@types/react": "^19.2.7",
36
- "@typescript/native-preview": "7.0.0-dev.20251216.1",
37
36
  "babel-plugin-react-compiler": "^1.0.0",
38
37
  "eslint": "^9.39.2",
39
38
  "react": "^19.2.3",
40
- "sanity": "^5.0.0",
41
- "typescript": "5.9.3",
39
+ "sanity": "^5.0.1",
42
40
  "@repo/eslint-config": "0.0.7",
43
- "@repo/package.config": "0.0.0",
44
- "@repo/tsconfig": "1.0.0"
41
+ "@repo/tsconfig": "1.0.0",
42
+ "@repo/package.config": "0.0.1"
45
43
  },
46
44
  "peerDependencies": {
47
45
  "react": "^19.2",
48
- "sanity": "^5.0.0-0"
46
+ "sanity": "^5"
49
47
  },
50
48
  "engines": {
51
49
  "node": ">=20.19 <22 || >=22.12"