@shelf/global-renderer 3.2.0 → 3.4.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.
@@ -1,3 +1,3 @@
1
- import type { RenderDTContentData } from './types';
2
- declare const DecisionTreeContent: ({ title, description, tree, exportedBy, exportedAt, createdBy, gemVersionDate, fields, variables, editorVersion, acronymPluginProps, gemLinkPluginProps, }: RenderDTContentData) => import("react/jsx-runtime").JSX.Element;
1
+ import type { RenderDTContentProps } from './types';
2
+ declare const DecisionTreeContent: ({ title, description, tree, exportedBy, exportedAt, createdBy, gemVersionDate, fields, variables, editorVersion, acronymPluginProps, gemLinkPluginProps, expandCollapsibleSections, scrollContainer, }: RenderDTContentProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DecisionTreeContent;
@@ -1,7 +1,7 @@
1
1
  import type { DecisionTree } from '@shelf/types-ddb';
2
- import type { DTStep, RenderDTContentData } from '../types';
3
- declare const _default: ({ step, variables, editorVersion, acronymPluginProps, gemLinkPluginProps, }: {
2
+ import type { DTStep, RenderDTContentProps } from '../types';
3
+ declare const _default: ({ step, variables, editorVersion, acronymPluginProps, gemLinkPluginProps, expandCollapsibleSections, scrollContainer, }: {
4
4
  step: DTStep;
5
5
  variables: Pick<DecisionTree.ContextualVariableDefaults, "name" | "id" | "isDeleted">[];
6
- } & Pick<RenderDTContentData, "editorVersion" | "acronymPluginProps" | "gemLinkPluginProps">) => import("react/jsx-runtime").JSX.Element;
6
+ } & Pick<RenderDTContentProps, "editorVersion" | "acronymPluginProps" | "gemLinkPluginProps" | "expandCollapsibleSections" | "scrollContainer">) => import("react/jsx-runtime").JSX.Element;
7
7
  export default _default;
@@ -1,5 +1,5 @@
1
- import type { DTStep, RenderDTContentData } from '../types';
2
- declare const _default: ({ step, editorVersion, acronymPluginProps, gemLinkPluginProps, }: {
1
+ import type { DTStep, RenderDTContentProps } from '../types';
2
+ declare const _default: ({ step, editorVersion, acronymPluginProps, gemLinkPluginProps, expandCollapsibleSections, scrollContainer, }: {
3
3
  step: DTStep;
4
- } & Pick<RenderDTContentData, "editorVersion" | "acronymPluginProps" | "gemLinkPluginProps">) => import("react/jsx-runtime").JSX.Element;
4
+ } & Pick<RenderDTContentProps, "editorVersion" | "acronymPluginProps" | "gemLinkPluginProps" | "expandCollapsibleSections" | "scrollContainer">) => import("react/jsx-runtime").JSX.Element;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
- import type { RenderDTContentData } from '../types';
2
- type Props = Pick<RenderDTContentData, 'editorVersion' | 'acronymPluginProps' | 'gemLinkPluginProps'> & {
1
+ import type { RenderDTContentProps } from '../types';
2
+ type Props = Pick<RenderDTContentProps, 'editorVersion' | 'acronymPluginProps' | 'gemLinkPluginProps' | 'expandCollapsibleSections' | 'scrollContainer'> & {
3
3
  content?: string;
4
4
  };
5
- declare const _default: ({ content, editorVersion, acronymPluginProps, gemLinkPluginProps }: Props) => import("react/jsx-runtime").JSX.Element | null;
5
+ declare const _default: ({ content, editorVersion, acronymPluginProps, gemLinkPluginProps, expandCollapsibleSections, scrollContainer, }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
6
  export default _default;
@@ -20,7 +20,8 @@ export type RenderDTContentData = {
20
20
  }[];
21
21
  variables: Pick<DecisionTree.ContextualVariableDefaults, 'name' | 'id' | 'isDeleted'>[];
22
22
  editorVersion?: 'froala' | 'lexical';
23
- } & Partial<Pick<GemContentViewProps, 'acronymPluginProps' | 'gemLinkPluginProps'>>;
23
+ } & Partial<Pick<GemContentViewProps, 'acronymPluginProps' | 'gemLinkPluginProps' | 'expandCollapsibleSections'>>;
24
+ export type RenderDTContentProps = RenderDTContentData & Pick<GemContentViewProps, 'scrollContainer'>;
24
25
  type StepPointer = {
25
26
  id?: string;
26
27
  number?: number;
@@ -1,2 +1,2 @@
1
1
  import type { GemContentViewProps } from '@shelf/lexical-gem-content-view';
2
- export type RenderWikiContentData = Pick<GemContentViewProps, 'content' | 'gemType' | 'acronymPluginProps' | 'gemLinkPluginProps'>;
2
+ export type RenderWikiContentData = Pick<GemContentViewProps, 'content' | 'gemType' | 'acronymPluginProps' | 'gemLinkPluginProps' | 'expandCollapsibleSections'>;