@manifest-editor/shell 1.0.2 → 1.0.5

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
@@ -236,6 +236,7 @@ interface LayoutActions {
236
236
  reset?: boolean;
237
237
  property?: string;
238
238
  stacked?: boolean | undefined;
239
+ selectedTab?: string;
239
240
  }): void;
240
241
  create(resource: CreatableResource): void;
241
242
  leftPanel: PanelActions;
@@ -567,6 +568,10 @@ declare function useAnnotationPageEditor(): EditorInstance<Partial<_iiif_present
567
568
  declare function useEditor(): EditorInstance<Partial<_iiif_presentation_3.DescriptiveProperties> & Partial<_iiif_presentation_3.TechnicalProperties> & Partial<_iiif_presentation_3.LinkingProperties> & Partial<_iiif_presentation_3.StructuralProperties<unknown>> & Partial<_iiif_presentation_3.NavPlaceExtension & _iiif_presentation_3.TextGranularityExtension>>;
568
569
  declare function EditingStack(props: {
569
570
  children?: any;
571
+ editing?: {
572
+ id: string;
573
+ type: string;
574
+ };
570
575
  }): react_jsx_runtime.JSX.Element;
571
576
 
572
577
  interface ExportPanelProps {
@@ -713,13 +718,17 @@ declare function ResourceEditingProvider({ resource, children, }: {
713
718
  children: ReactNode;
714
719
  }): react_jsx_runtime.JSX.Element;
715
720
 
716
- declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, }: {
721
+ declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, editing, }: {
717
722
  resource: Resource;
718
723
  config?: Partial<Config>;
719
724
  saveConfig?: (config: Partial<Config>) => void;
720
725
  children: ReactNode;
721
726
  theme?: any;
722
727
  previews?: Preview[];
728
+ editing?: {
729
+ id: string;
730
+ type: string;
731
+ };
723
732
  }): react_jsx_runtime.JSX.Element;
724
733
 
725
734
  interface Task<Req = any, Res = any> {
package/dist/index.d.ts CHANGED
@@ -236,6 +236,7 @@ interface LayoutActions {
236
236
  reset?: boolean;
237
237
  property?: string;
238
238
  stacked?: boolean | undefined;
239
+ selectedTab?: string;
239
240
  }): void;
240
241
  create(resource: CreatableResource): void;
241
242
  leftPanel: PanelActions;
@@ -567,6 +568,10 @@ declare function useAnnotationPageEditor(): EditorInstance<Partial<_iiif_present
567
568
  declare function useEditor(): EditorInstance<Partial<_iiif_presentation_3.DescriptiveProperties> & Partial<_iiif_presentation_3.TechnicalProperties> & Partial<_iiif_presentation_3.LinkingProperties> & Partial<_iiif_presentation_3.StructuralProperties<unknown>> & Partial<_iiif_presentation_3.NavPlaceExtension & _iiif_presentation_3.TextGranularityExtension>>;
568
569
  declare function EditingStack(props: {
569
570
  children?: any;
571
+ editing?: {
572
+ id: string;
573
+ type: string;
574
+ };
570
575
  }): react_jsx_runtime.JSX.Element;
571
576
 
572
577
  interface ExportPanelProps {
@@ -713,13 +718,17 @@ declare function ResourceEditingProvider({ resource, children, }: {
713
718
  children: ReactNode;
714
719
  }): react_jsx_runtime.JSX.Element;
715
720
 
716
- declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, }: {
721
+ declare function ShellProvider({ config, saveConfig, children, theme, previews, resource, editing, }: {
717
722
  resource: Resource;
718
723
  config?: Partial<Config>;
719
724
  saveConfig?: (config: Partial<Config>) => void;
720
725
  children: ReactNode;
721
726
  theme?: any;
722
727
  previews?: Preview[];
728
+ editing?: {
729
+ id: string;
730
+ type: string;
731
+ };
723
732
  }): react_jsx_runtime.JSX.Element;
724
733
 
725
734
  interface Task<Req = any, Res = any> {
package/dist/index.js CHANGED
@@ -3363,9 +3363,9 @@ var CenterPanel2 = styled12.div`
3363
3363
  flex: 1 1 0;
3364
3364
  background: #e3e7f0;
3365
3365
  // background: #efefef;
3366
- box-shadow:
3367
- inset 0 3px 2px 0 rgba(0, 0, 0, 0.04),
3368
- inset 0 1px 0 0 rgba(0, 0, 0, 0.14);
3366
+ // box-shadow:
3367
+ // inset 0 3px 2px 0 rgba(0, 0, 0, 0.04),
3368
+ // inset 0 1px 0 0 rgba(0, 0, 0, 0.14);
3369
3369
  padding-top: 1px;
3370
3370
  // background: linear-gradient(0deg, rgba(251, 242, 237, 1) 0%, rgba(240, 229, 245, 1) 50%, rgba(236, 245, 255, 1) 100%);
3371
3371
 
@@ -3456,7 +3456,7 @@ var PanelSideMenu = styled12.div`
3456
3456
  flex-direction: column;
3457
3457
  width: 3em;
3458
3458
  /* width: 3.35em;
3459
- padding: 0.3em;
3459
+ padding: 0.3em;
3460
3460
  gap: 0.3em; */
3461
3461
  `;
3462
3462
  var PanelSideMenuItem = styled12.button`
@@ -4020,7 +4020,7 @@ var Layout = memo4(function Layout2(props) {
4020
4020
  ] }) })
4021
4021
  ] });
4022
4022
  }
4023
- return /* @__PURE__ */ jsxs17(OuterWrapper, { className: props.className, children: [
4023
+ return /* @__PURE__ */ jsxs17(OuterWrapper, { className: `manifest-editor ${props.className}`, children: [
4024
4024
  props.hideHeader ? null : /* @__PURE__ */ jsxs17(Header2, { children: [
4025
4025
  props.header || null,
4026
4026
  props.menu ? /* @__PURE__ */ jsx30("menu", { children: props.menu }) : null
@@ -4578,7 +4578,8 @@ function ShellProvider({
4578
4578
  children,
4579
4579
  theme,
4580
4580
  previews,
4581
- resource
4581
+ resource,
4582
+ editing
4582
4583
  }) {
4583
4584
  return /* @__PURE__ */ jsx34(ErrorBoundary2, { children: /* @__PURE__ */ jsx34(ImageServiceLoaderContext.Provider, { value: imageServiceLoader, children: /* @__PURE__ */ jsx34(AppResourceProvider, { resource, children: /* @__PURE__ */ jsx34(PreviewVaultContext, { children: /* @__PURE__ */ jsx34(ThemeProvider, { theme: theme || defaultTheme, children: /* @__PURE__ */ jsx34(ConfigProvider, { config, saveConfig, children: /* @__PURE__ */ jsx34(EditingStack, { children: /* @__PURE__ */ jsx34(LayoutProvider, { children: /* @__PURE__ */ jsx34(PreviewProvider, { previews: previews || [], configs: config?.previews || previewConfigs, children }) }) }) }) }) }) }) }) });
4584
4585
  }