manifest-editor 2.1.0 → 2.2.0

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.d.cts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { Vault } from "@iiif/helpers";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { Collection, Manifest } from "@iiif/presentation-3";
4
3
  import { Config, Config as Config$1, LazyPluginModule, MappedPlugin, PluginInput, PluginInput as PluginInput$1, PluginModule } from "@manifest-editor/shell";
5
-
6
4
  //#region src/ManifestEditor.d.ts
7
5
  interface ManifestEditorProps {
8
6
  resource: string | {
@@ -20,7 +18,7 @@ interface ManifestEditorProps {
20
18
  disabledPlugins?: string[];
21
19
  layoutMode?: "default" | "focused";
22
20
  }
23
- declare function ManifestEditor(props: ManifestEditorProps): react_jsx_runtime0.JSX.Element | null;
21
+ declare function ManifestEditor(props: ManifestEditorProps): import("react").JSX.Element | null;
24
22
  //#endregion
25
23
  export { type Config, type LazyPluginModule, ManifestEditor, ManifestEditorProps, type MappedPlugin, type PluginInput, type PluginModule };
26
24
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/ManifestEditor.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmBiB,mBAAA;;;IAAA,IAAA,EAAA,UAAA,GAAmB,YAAA;EAE3B,CAAA;EAAW,IAAA,CAAA,EAAX,QAAW,GAAA,UAAA;EACV,KAAA,CAAA,EAAA,KAAA;EACS,MAAA,CAAA,EAAR,OAAQ,CAAA,QAAA,CAAA;EAAR,UAAA,CAAA,EAAA,CAAA,MAAA,EACa,OADb,CACqB,QADrB,CAAA,EAAA,GAAA,IAAA;EACqB,kBAAA,CAAA,EACT,QADS,CAAA,SAAA,CAAA;EAAR,sBAAA,CAAA,EAAA,CAAA,MAAA,EAEY,QAFZ,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA,GAEyC,OAFzC,CAAA,IAAA,CAAA;EACD,OAAA,CAAA,EAEX,aAFW,EAAA;EACa,cAAA,CAAA,EAAA,MAAA,EAAA;EAA6B,eAAA,CAAA,EAAA,MAAA,EAAA;EACrD,UAAA,CAAA,EAAA,SAAA,GAAA,SAAA;;AAgCI,iBAAA,cAAA,CAAsB,KAAA,EAAA,mBAAmB,CAAA,EAAA,kBAAA,CAAA,GAAA,CAAA,OAAA,GAAA,IAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/ManifestEditor.tsx"],"mappings":";;;;UAmBiB;EACf;IAAqB;IAAY;;EACjC,OAAO,WAAW;EAClB,QAAQ;EACR,SAAS,QAAQ;EACjB,cAAc,QAAQ,QAAQ;EAC9B,qBAAqB;EACrB,0BAA0B,QAAQ,+BAA6B;EAC/D,UAAU;EACV;EACA;EACA;;iBA6Bc,eAAe,OAAO,sCAAmB,IAAA"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { Config, Config as Config$1, LazyPluginModule, MappedPlugin, PluginInput, PluginInput as PluginInput$1, PluginModule } from "@manifest-editor/shell";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { Vault } from "@iiif/helpers";
4
3
  import { Collection, Manifest } from "@iiif/presentation-3";
5
-
6
4
  //#region src/ManifestEditor.d.ts
7
5
  interface ManifestEditorProps {
8
6
  resource: string | {
@@ -20,7 +18,7 @@ interface ManifestEditorProps {
20
18
  disabledPlugins?: string[];
21
19
  layoutMode?: "default" | "focused";
22
20
  }
23
- declare function ManifestEditor(props: ManifestEditorProps): react_jsx_runtime0.JSX.Element | null;
21
+ declare function ManifestEditor(props: ManifestEditorProps): import("react").JSX.Element | null;
24
22
  //#endregion
25
23
  export { type Config, type LazyPluginModule, ManifestEditor, ManifestEditorProps, type MappedPlugin, type PluginInput, type PluginModule };
26
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/ManifestEditor.tsx"],"sourcesContent":[],"mappings":";;;;;;UAmBiB,mBAAA;;;IAAA,IAAA,EAAA,UAAA,GAAmB,YAAA;EAE3B,CAAA;EAAW,IAAA,CAAA,EAAX,QAAW,GAAA,UAAA;EACV,KAAA,CAAA,EAAA,KAAA;EACS,MAAA,CAAA,EAAR,OAAQ,CAAA,QAAA,CAAA;EAAR,UAAA,CAAA,EAAA,CAAA,MAAA,EACa,OADb,CACqB,QADrB,CAAA,EAAA,GAAA,IAAA;EACqB,kBAAA,CAAA,EACT,QADS,CAAA,SAAA,CAAA;EAAR,sBAAA,CAAA,EAAA,CAAA,MAAA,EAEY,QAFZ,CAAA,SAAA,CAAA,EAAA,GAAA,IAAA,GAEyC,OAFzC,CAAA,IAAA,CAAA;EACD,OAAA,CAAA,EAEX,aAFW,EAAA;EACa,cAAA,CAAA,EAAA,MAAA,EAAA;EAA6B,eAAA,CAAA,EAAA,MAAA,EAAA;EACrD,UAAA,CAAA,EAAA,SAAA,GAAA,SAAA;;AAgCI,iBAAA,cAAA,CAAsB,KAAA,EAAA,mBAAmB,CAAA,EAAA,kBAAA,CAAA,GAAA,CAAA,OAAA,GAAA,IAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/ManifestEditor.tsx"],"mappings":";;;;UAmBiB;EACf;IAAqB;IAAY;;EACjC,OAAO,WAAW;EAClB,QAAQ;EACR,SAAS,QAAQ;EACjB,cAAc,QAAQ,QAAQ;EAC9B,qBAAqB;EACrB,0BAA0B,QAAQ,+BAA6B;EAC/D,UAAU;EACV;EACA;EACA;;iBA6Bc,eAAe,OAAO,sCAAmB,IAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{collectionPreset as e}from"@manifest-editor/collection-preset";import*as t from"@manifest-editor/manifest-preset";import{AppProvider as n,Layout as r,PluginProvider as i,ShellProvider as a,mapApp as o}from"@manifest-editor/shell";import{useRef as s}from"react";import{VaultProvider as c,useExistingVault as l}from"react-iiif-vault";import{jsx as u}from"react/jsx-runtime";const d=o(t);function f(e,t){if(e)return;let n=`Configuration Error`,r=typeof t==`function`?t():t,i=r?`${n}: ${r}`:n;throw Error(i)}function p(o){let p=l(o.vault),m=s(``);f(o.resource,`Prop resource is required. Usage example:
1
+ import{collectionPreset as e}from"@manifest-editor/collection-preset";import*as t from"@manifest-editor/manifest-preset";import{AppProvider as n,Layout as r,PluginProvider as i,ShellProvider as a,mapApp as o}from"@manifest-editor/shell";import{useRef as s}from"react";import{VaultProvider as c,useExistingVault as l}from"react-iiif-vault";import{jsx as u}from"react/jsx-runtime";const d=o(t);function f(e,t){if(e)return;let n=`Configuration Error`,r=typeof t==`function`?t():t,i=r?`${n}: ${r}`:n;throw Error(i)}function p(o){let p=l(o.vault),m=s(p),h=o.vault||m.current,g=s(``);f(o.resource,`Prop resource is required. Usage example:
2
2
  <ManifestEditor resource="https://example.org/manifest" />
3
- `);let h=typeof o.resource==`string`?{id:o.resource,type:`Manifest`}:o.resource;p.requestStatus(h.id)||(o.data?p.loadManifestSync(h.id,o.data):m.current!==h.id&&(p.load(h),m.current=h.id));let g=null,_=null;return h.type===`Manifest`?(g=d,_=d.metadata.id):h.type===`Collection`&&(g=e,_=e.metadata.id),g===null||_===null?null:u(i,{plugins:h.type===`Manifest`?[...t.plugins||[],...o.plugins||[]]:o.plugins||[],enabled:o.enabledPlugins,disabled:o.disabledPlugins,globalPluginConfig:o.globalPluginConfig,saveGlobalPluginConfig:o.saveGlobalPluginConfig,children:u(n,{appId:_,definition:g,instanceId:`test-1`,children:u(c,{vault:p,children:u(a,{resource:h,config:o.config,saveConfig:o.saveConfig,children:u(r,{layoutMode:o.layoutMode})})})})})}export{p as ManifestEditor};
3
+ `);let _=typeof o.resource==`string`?{id:o.resource,type:`Manifest`}:o.resource;h.requestStatus(_.id)||(o.data?h.loadManifestSync(_.id,o.data):g.current!==_.id&&(h.load(_),g.current=_.id));let v=null,y=null;if(_.type===`Manifest`?(v=d,y=d.metadata.id):_.type===`Collection`&&(v=e,y=e.metadata.id),v===null||y===null)return null;let b=_.type===`Manifest`?[...t.plugins||[],...o.plugins||[]]:o.plugins||[];return u(i,{plugins:b,enabled:o.enabledPlugins,disabled:o.disabledPlugins,globalPluginConfig:o.globalPluginConfig,saveGlobalPluginConfig:o.saveGlobalPluginConfig,children:u(n,{appId:y,definition:v,instanceId:`test-1`,children:u(c,{vault:h,children:u(a,{resource:_,config:o.config,saveConfig:o.saveConfig,children:u(r,{layoutMode:o.layoutMode})})})})})}export{p as ManifestEditor};
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["prefix: string","provided: string | undefined","value: string"],"sources":["../src/ManifestEditor.tsx"],"sourcesContent":["import type { Vault } from \"@iiif/helpers\";\nimport type { Collection, Manifest } from \"@iiif/presentation-3\";\nimport { collectionPreset } from \"@manifest-editor/collection-preset\";\nimport * as manifestEditorPreset from \"@manifest-editor/manifest-preset\";\nimport {\n AppProvider,\n type Config,\n Layout,\n mapApp,\n type PluginInput,\n PluginProvider,\n ShellProvider,\n} from \"@manifest-editor/shell\";\nimport { useRef } from \"react\";\nimport { useExistingVault, VaultProvider } from \"react-iiif-vault\";\nimport invariant from \"tiny-invariant\";\n\nconst manifestEditor = mapApp(manifestEditorPreset);\n\nexport interface ManifestEditorProps {\n resource: string | { id: string; type: \"Manifest\" | \"Collection\" };\n data?: Manifest | Collection;\n vault?: Vault;\n config?: Partial<Config>;\n saveConfig?: (config: Partial<Config>) => void;\n globalPluginConfig?: Config[\"plugins\"];\n saveGlobalPluginConfig?: (config: Config[\"plugins\"]) => void | Promise<void>;\n plugins?: PluginInput[];\n enabledPlugins?: string[];\n disabledPlugins?: string[];\n layoutMode?: \"default\" | \"focused\";\n\n // // Future bits.\n // onChange?: (resource: { id: string; type: \"Manifest\" | \"Collection\" }, vault: Vault) => void;\n // onSave?: (data: Manifest | Collection) => void;\n // appState?: any;\n // previews?: PreviewConfiguration[];\n}\n\nfunction configInvariant(\n condition: any,\n // Not providing an inline default argument for message as the result is smaller\n /**\n * Can provide a string, or a function that returns a string for cases where\n * the message takes a fair amount of effort to compute\n */\n message?: string | (() => string),\n): asserts condition {\n if (condition) {\n return;\n }\n const prefix: string = \"Configuration Error\";\n\n const provided: string | undefined =\n typeof message === \"function\" ? message() : message;\n const value: string = provided ? `${prefix}: ${provided}` : prefix;\n throw new Error(value);\n}\n\nexport function ManifestEditor(props: ManifestEditorProps) {\n const vault = useExistingVault(props.vault);\n const didLoad = useRef(\"\");\n\n configInvariant(\n props.resource,\n `Prop resource is required. Usage example:\n <ManifestEditor resource=\"https://example.org/manifest\" />\n`,\n );\n\n const resource =\n typeof props.resource === \"string\"\n ? { id: props.resource, type: \"Manifest\" }\n : props.resource;\n\n if (!vault.requestStatus(resource.id)) {\n if (props.data) {\n vault.loadManifestSync(resource.id, props.data);\n } else {\n if (didLoad.current !== resource.id) {\n vault.load(resource);\n didLoad.current = resource.id;\n }\n }\n }\n\n let preset = null;\n let appId = null;\n\n if (resource.type === \"Manifest\") {\n preset = manifestEditor;\n appId = manifestEditor.metadata.id;\n } else if (resource.type === \"Collection\") {\n preset = collectionPreset;\n appId = collectionPreset.metadata.id;\n }\n\n if (preset === null || appId === null) {\n return null;\n }\n\n const plugins =\n resource.type === \"Manifest\"\n ? [...(manifestEditorPreset.plugins || []), ...(props.plugins || [])]\n : props.plugins || [];\n\n return (\n <PluginProvider\n plugins={plugins}\n enabled={props.enabledPlugins}\n disabled={props.disabledPlugins}\n globalPluginConfig={props.globalPluginConfig}\n saveGlobalPluginConfig={props.saveGlobalPluginConfig}\n >\n <AppProvider appId={appId} definition={preset} instanceId=\"test-1\">\n <VaultProvider vault={vault}>\n <ShellProvider\n resource={resource}\n config={props.config}\n saveConfig={props.saveConfig}\n >\n <Layout layoutMode={props.layoutMode} />\n </ShellProvider>\n </VaultProvider>\n </AppProvider>\n </PluginProvider>\n );\n}\n"],"mappings":"2XAiBA,MAAM,EAAiB,EAAO,EAAqB,CAsBnD,SAAS,EACP,EAMA,EACmB,CACnB,GAAI,EACF,OAEF,IAAMA,EAAiB,sBAEjBC,EACJ,OAAO,GAAY,WAAa,GAAS,CAAG,EACxCC,EAAgB,EAAW,GAAG,EAAO,IAAI,IAAa,EAC5D,MAAU,MAAM,EAAM,CAGxB,SAAgB,EAAe,EAA4B,CACzD,IAAM,EAAQ,EAAiB,EAAM,MAAM,CACrC,EAAU,EAAO,GAAG,CAE1B,EACE,EAAM,SACN;;EAGD,CAED,IAAM,EACJ,OAAO,EAAM,UAAa,SACtB,CAAE,GAAI,EAAM,SAAU,KAAM,WAAY,CACxC,EAAM,SAEP,EAAM,cAAc,EAAS,GAAG,GAC/B,EAAM,KACR,EAAM,iBAAiB,EAAS,GAAI,EAAM,KAAK,CAE3C,EAAQ,UAAY,EAAS,KAC/B,EAAM,KAAK,EAAS,CACpB,EAAQ,QAAU,EAAS,KAKjC,IAAI,EAAS,KACT,EAAQ,KAmBZ,OAjBI,EAAS,OAAS,YACpB,EAAS,EACT,EAAQ,EAAe,SAAS,IACvB,EAAS,OAAS,eAC3B,EAAS,EACT,EAAQ,EAAiB,SAAS,IAGhC,IAAW,MAAQ,IAAU,KACxB,KASP,EAAC,EAAA,CACC,QANF,EAAS,OAAS,WACd,CAAC,GAAI,EAAqB,SAAW,EAAE,CAAG,GAAI,EAAM,SAAW,EAAE,CAAE,CACnE,EAAM,SAAW,EAAE,CAKrB,QAAS,EAAM,eACf,SAAU,EAAM,gBAChB,mBAAoB,EAAM,mBAC1B,uBAAwB,EAAM,gCAE9B,EAAC,EAAA,CAAmB,QAAO,WAAY,EAAQ,WAAW,kBACxD,EAAC,EAAA,CAAqB,iBACpB,EAAC,EAAA,CACW,WACV,OAAQ,EAAM,OACd,WAAY,EAAM,oBAElB,EAAC,EAAA,CAAO,WAAY,EAAM,WAAA,CAAc,EAC1B,EACF,EACJ,EACC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/ManifestEditor.tsx"],"sourcesContent":["import type { Vault } from \"@iiif/helpers\";\nimport type { Collection, Manifest } from \"@iiif/presentation-3\";\nimport { collectionPreset } from \"@manifest-editor/collection-preset\";\nimport * as manifestEditorPreset from \"@manifest-editor/manifest-preset\";\nimport {\n AppProvider,\n type Config,\n Layout,\n mapApp,\n type PluginInput,\n PluginProvider,\n ShellProvider,\n} from \"@manifest-editor/shell\";\nimport { useRef } from \"react\";\nimport { useExistingVault, VaultProvider } from \"react-iiif-vault\";\nimport invariant from \"tiny-invariant\";\n\nconst manifestEditor = mapApp(manifestEditorPreset);\n\nexport interface ManifestEditorProps {\n resource: string | { id: string; type: \"Manifest\" | \"Collection\" };\n data?: Manifest | Collection;\n vault?: Vault;\n config?: Partial<Config>;\n saveConfig?: (config: Partial<Config>) => void;\n globalPluginConfig?: Config[\"plugins\"];\n saveGlobalPluginConfig?: (config: Config[\"plugins\"]) => void | Promise<void>;\n plugins?: PluginInput[];\n enabledPlugins?: string[];\n disabledPlugins?: string[];\n layoutMode?: \"default\" | \"focused\";\n\n // // Future bits.\n // onChange?: (resource: { id: string; type: \"Manifest\" | \"Collection\" }, vault: Vault) => void;\n // onSave?: (data: Manifest | Collection) => void;\n // appState?: any;\n // previews?: PreviewConfiguration[];\n}\n\nfunction configInvariant(\n condition: any,\n // Not providing an inline default argument for message as the result is smaller\n /**\n * Can provide a string, or a function that returns a string for cases where\n * the message takes a fair amount of effort to compute\n */\n message?: string | (() => string),\n): asserts condition {\n if (condition) {\n return;\n }\n const prefix: string = \"Configuration Error\";\n\n const provided: string | undefined =\n typeof message === \"function\" ? message() : message;\n const value: string = provided ? `${prefix}: ${provided}` : prefix;\n throw new Error(value);\n}\n\nexport function ManifestEditor(props: ManifestEditorProps) {\n const existingVault = useExistingVault(props.vault);\n const fallbackVault = useRef(existingVault);\n const vault = props.vault || fallbackVault.current;\n const didLoad = useRef(\"\");\n\n configInvariant(\n props.resource,\n `Prop resource is required. Usage example:\n <ManifestEditor resource=\"https://example.org/manifest\" />\n`,\n );\n\n const resource =\n typeof props.resource === \"string\"\n ? { id: props.resource, type: \"Manifest\" }\n : props.resource;\n\n if (!vault.requestStatus(resource.id)) {\n if (props.data) {\n vault.loadManifestSync(resource.id, props.data);\n } else {\n if (didLoad.current !== resource.id) {\n vault.load(resource);\n didLoad.current = resource.id;\n }\n }\n }\n\n let preset = null;\n let appId = null;\n\n if (resource.type === \"Manifest\") {\n preset = manifestEditor;\n appId = manifestEditor.metadata.id;\n } else if (resource.type === \"Collection\") {\n preset = collectionPreset;\n appId = collectionPreset.metadata.id;\n }\n\n if (preset === null || appId === null) {\n return null;\n }\n\n const plugins =\n resource.type === \"Manifest\"\n ? [...(manifestEditorPreset.plugins || []), ...(props.plugins || [])]\n : props.plugins || [];\n\n return (\n <PluginProvider\n plugins={plugins}\n enabled={props.enabledPlugins}\n disabled={props.disabledPlugins}\n globalPluginConfig={props.globalPluginConfig}\n saveGlobalPluginConfig={props.saveGlobalPluginConfig}\n >\n <AppProvider appId={appId} definition={preset} instanceId=\"test-1\">\n <VaultProvider vault={vault}>\n <ShellProvider\n resource={resource}\n config={props.config}\n saveConfig={props.saveConfig}\n >\n <Layout layoutMode={props.layoutMode} />\n </ShellProvider>\n </VaultProvider>\n </AppProvider>\n </PluginProvider>\n );\n}\n"],"mappings":"2XAiBA,MAAM,EAAiB,EAAO,CAAoB,EAsBlD,SAAS,EACP,EAMA,EACmB,CACnB,GAAI,EACF,OAEF,IAAM,EAAiB,sBAEjB,EACJ,OAAO,GAAY,WAAa,EAAQ,EAAI,EACxC,EAAgB,EAAW,GAAG,EAAO,IAAI,IAAa,EAC5D,MAAU,MAAM,CAAK,CACvB,CAEA,SAAgB,EAAe,EAA4B,CACzD,IAAM,EAAgB,EAAiB,EAAM,KAAK,EAC5C,EAAgB,EAAO,CAAa,EACpC,EAAQ,EAAM,OAAS,EAAc,QACrC,EAAU,EAAO,EAAE,EAEzB,EACE,EAAM,SACN;;CAGF,EAEA,IAAM,EACJ,OAAO,EAAM,UAAa,SACtB,CAAE,GAAI,EAAM,SAAU,KAAM,UAAW,EACvC,EAAM,SAEP,EAAM,cAAc,EAAS,EAAE,IAC9B,EAAM,KACR,EAAM,iBAAiB,EAAS,GAAI,EAAM,IAAI,EAE1C,EAAQ,UAAY,EAAS,KAC/B,EAAM,KAAK,CAAQ,EACnB,EAAQ,QAAU,EAAS,KAKjC,IAAI,EAAS,KACT,EAAQ,KAUZ,GARI,EAAS,OAAS,YACpB,EAAS,EACT,EAAQ,EAAe,SAAS,IACvB,EAAS,OAAS,eAC3B,EAAS,EACT,EAAQ,EAAiB,SAAS,IAGhC,IAAW,MAAQ,IAAU,KAC/B,OAAO,KAGT,IAAM,EACJ,EAAS,OAAS,WACd,CAAC,GAAI,EAAqB,SAAW,CAAC,EAAI,GAAI,EAAM,SAAW,CAAC,CAAE,EAClE,EAAM,SAAW,CAAC,EAExB,OACE,EAAC,EAAD,CACW,UACT,QAAS,EAAM,eACf,SAAU,EAAM,gBAChB,mBAAoB,EAAM,mBAC1B,uBAAwB,EAAM,uBAE9B,SAAA,EAAC,EAAD,CAAoB,QAAO,WAAY,EAAQ,WAAW,SACxD,SAAA,EAAC,EAAD,CAAsB,QACpB,SAAA,EAAC,EAAD,CACY,WACV,OAAQ,EAAM,OACd,WAAY,EAAM,WAElB,SAAA,EAAC,EAAD,CAAQ,WAAY,EAAM,UAAa,CAAA,CAC1B,CAAA,CACF,CAAA,CACJ,CAAA,CACC,CAAA,CAEpB"}
@@ -1 +1 @@
1
- var e=require(`@manifest-editor/manifest-preset`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
1
+ var e=require("@manifest-editor/manifest-preset");Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/dist/parser.cjs CHANGED
@@ -1 +1 @@
1
- var e=require(`@iiif/parser`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
1
+ var e=require("@iiif/parser");Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/dist/shell.cjs CHANGED
@@ -1 +1 @@
1
- var e=require(`@manifest-editor/shell`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
1
+ var e=require("@manifest-editor/shell");Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/dist/vault.cjs CHANGED
@@ -1 +1 @@
1
- var e=require(`react-iiif-vault`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
1
+ var e=require("react-iiif-vault");Object.keys(e).forEach(function(t){t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manifest-editor",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "bugs": "https://github.com/digirati-co-uk/iiif-manifest-editor/issues",
6
6
  "repository": {
@@ -77,6 +77,7 @@
77
77
  "require": "./dist/vault.cjs"
78
78
  },
79
79
  "./package.json": "./package.json",
80
+ "./index.css": "./dist/index.css",
80
81
  "./dist/index.css": "./dist/index.css",
81
82
  "./reset.css": "./reset.css"
82
83
  },
@@ -88,44 +89,43 @@
88
89
  "prepack": "tsdown"
89
90
  },
90
91
  "dependencies": {
91
- "@iiif/helpers": "1.5.7",
92
- "@iiif/parser": "2.2.8",
92
+ "@atlas-viewer/atlas": "3.2.3",
93
+ "@iiif/helpers": "1.6.1",
94
+ "@iiif/parser": "2.2.14",
93
95
  "@iiif/presentation-3": "^2.2.3",
94
96
  "@iiif/presentation-3-normalized": "^0.9.7",
95
- "@manifest-editor/collection-preset": "2.1.0",
96
- "@manifest-editor/components": "2.1.0",
97
- "@manifest-editor/creator-api": "2.1.0",
98
- "@manifest-editor/creators": "2.1.0",
99
- "@manifest-editor/editor-api": "2.1.0",
100
- "@manifest-editor/editors": "2.1.0",
101
- "@manifest-editor/exhibition-preset": "2.1.0",
102
- "@manifest-editor/manifest-preset": "2.1.0",
103
- "@manifest-editor/shell": "2.1.0",
104
- "@mdxeditor/editor": "^3.29.0",
105
- "iiif-browser": "2.0.5-next.95a29ac",
106
- "react": "19.2.0",
107
- "react-dom": "19.2.0",
108
- "react-iiif-vault": "2.0.11"
97
+ "@manifest-editor/collection-preset": "2.2.0",
98
+ "@manifest-editor/components": "2.2.0",
99
+ "@manifest-editor/creator-api": "2.2.0",
100
+ "@manifest-editor/creators": "2.2.0",
101
+ "@manifest-editor/editor-api": "2.2.0",
102
+ "@manifest-editor/editors": "2.2.0",
103
+ "@manifest-editor/exhibition-preset": "2.2.0",
104
+ "@manifest-editor/manifest-preset": "2.2.0",
105
+ "@manifest-editor/shell": "2.2.0",
106
+ "@mdxeditor/editor": "^4.0.4",
107
+ "iiif-browser": "https://pkg.pr.new/digirati-co-uk/iiif-browser/iiif-browser@4934ee2",
108
+ "react": "19.2.8",
109
+ "react-dom": "19.2.8",
110
+ "react-iiif-vault": "2.0.18"
109
111
  },
110
112
  "devDependencies": {
111
- "@manifest-editor/ui": "2.1.0",
112
- "@repo/eslint-config": "",
113
- "@tailwindcss/postcss": "^4.1.12",
114
- "@types/react": "^18.3.3",
115
- "@types/react-dom": "^18.3.0",
113
+ "@manifest-editor/ui": "2.2.0",
114
+ "@tsdown/css": "0.22.14",
115
+ "@types/react": "19.2.18",
116
+ "@types/react-dom": "19.2.4",
116
117
  "postcss": "^8.4.38",
117
118
  "postcss-import": "^16.1.0",
118
119
  "postcss-nested": "^7.0.2",
119
120
  "react-calendar": "^4.8.0",
120
121
  "react-clock": "^4.6.0",
121
122
  "react-datetime-picker": "^5.6.0",
122
- "rollup-plugin-postcss": "^4.0.2",
123
123
  "tailwindcss": "^3.4.3",
124
124
  "tiny-invariant": "^1.3.3",
125
- "tsdown": "0.16.4"
125
+ "tsdown": "0.22.14"
126
126
  },
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "gitHead": "96fdf3010c854efc620205ad43a3e361fea56691"
130
+ "gitHead": "9ee7ce32bf7728205e22d852fb80061b86067471"
131
131
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.css","names":[],"sources":["../src/index.css"],"sourcesContent":["export default undefined;"],"mappings":"AAAA"}