@supernova-studio/client 1.33.2 → 1.34.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.mts CHANGED
@@ -135942,6 +135942,105 @@ declare class DocumentationEndpoint {
135942
135942
  } | undefined;
135943
135943
  };
135944
135944
  }>;
135945
+ documentationPageContent(dsId: string, versionId: string, pageId: string): Promise<{
135946
+ pageContent: {
135947
+ data: {
135948
+ items: ({
135949
+ type: "Block";
135950
+ data: {
135951
+ items: {
135952
+ id: string;
135953
+ props: Record<string, {
135954
+ value?: any;
135955
+ } & Record<string, any>>;
135956
+ linksTo?: {
135957
+ type: "DocumentationItem" | "PageHeading" | "Url";
135958
+ url?: string | undefined;
135959
+ documentationItemId?: string | undefined;
135960
+ pageHeadingId?: string | undefined;
135961
+ openInNewTab?: boolean | undefined;
135962
+ } | undefined;
135963
+ }[];
135964
+ packageId: string;
135965
+ indentLevel: number;
135966
+ appearance?: {
135967
+ numberOfColumns?: number | undefined;
135968
+ itemBackgroundColor?: {
135969
+ value: string;
135970
+ referencedTokenId?: string | undefined;
135971
+ } | undefined;
135972
+ } | undefined;
135973
+ variantId?: string | undefined;
135974
+ };
135975
+ id: string;
135976
+ } | {
135977
+ type: "Section";
135978
+ id: string;
135979
+ items: {
135980
+ id: string;
135981
+ title: string;
135982
+ columns: {
135983
+ id: string;
135984
+ blocks: {
135985
+ type: "Block";
135986
+ data: {
135987
+ items: {
135988
+ id: string;
135989
+ props: Record<string, {
135990
+ value?: any;
135991
+ } & Record<string, any>>;
135992
+ linksTo?: {
135993
+ type: "DocumentationItem" | "PageHeading" | "Url";
135994
+ url?: string | undefined;
135995
+ documentationItemId?: string | undefined;
135996
+ pageHeadingId?: string | undefined;
135997
+ openInNewTab?: boolean | undefined;
135998
+ } | undefined;
135999
+ }[];
136000
+ packageId: string;
136001
+ indentLevel: number;
136002
+ appearance?: {
136003
+ numberOfColumns?: number | undefined;
136004
+ itemBackgroundColor?: {
136005
+ value: string;
136006
+ referencedTokenId?: string | undefined;
136007
+ } | undefined;
136008
+ } | undefined;
136009
+ variantId?: string | undefined;
136010
+ };
136011
+ id: string;
136012
+ }[];
136013
+ }[];
136014
+ }[];
136015
+ appearance: {
136016
+ expandToEdges: boolean;
136017
+ contentExpandToEdges: boolean;
136018
+ backgroundColor?: {
136019
+ value: string;
136020
+ referencedTokenId?: string | undefined;
136021
+ } | undefined;
136022
+ foregroundColor?: {
136023
+ value: string;
136024
+ referencedTokenId?: string | undefined;
136025
+ } | undefined;
136026
+ padding?: {
136027
+ top?: number | undefined;
136028
+ bottom?: number | undefined;
136029
+ left?: number | undefined;
136030
+ right?: number | undefined;
136031
+ } | undefined;
136032
+ };
136033
+ sectionType: "Tabs";
136034
+ variantId?: string | undefined;
136035
+ })[];
136036
+ };
136037
+ id: string;
136038
+ createdAt: Date;
136039
+ updatedAt: Date;
136040
+ designSystemVersionId: string;
136041
+ documentationPageId: string;
136042
+ };
136043
+ }>;
135945
136044
  }
135946
136045
 
135947
136046
  declare class DesignSystemComponentEndpoint {
package/dist/index.d.ts CHANGED
@@ -135942,6 +135942,105 @@ declare class DocumentationEndpoint {
135942
135942
  } | undefined;
135943
135943
  };
135944
135944
  }>;
135945
+ documentationPageContent(dsId: string, versionId: string, pageId: string): Promise<{
135946
+ pageContent: {
135947
+ data: {
135948
+ items: ({
135949
+ type: "Block";
135950
+ data: {
135951
+ items: {
135952
+ id: string;
135953
+ props: Record<string, {
135954
+ value?: any;
135955
+ } & Record<string, any>>;
135956
+ linksTo?: {
135957
+ type: "DocumentationItem" | "PageHeading" | "Url";
135958
+ url?: string | undefined;
135959
+ documentationItemId?: string | undefined;
135960
+ pageHeadingId?: string | undefined;
135961
+ openInNewTab?: boolean | undefined;
135962
+ } | undefined;
135963
+ }[];
135964
+ packageId: string;
135965
+ indentLevel: number;
135966
+ appearance?: {
135967
+ numberOfColumns?: number | undefined;
135968
+ itemBackgroundColor?: {
135969
+ value: string;
135970
+ referencedTokenId?: string | undefined;
135971
+ } | undefined;
135972
+ } | undefined;
135973
+ variantId?: string | undefined;
135974
+ };
135975
+ id: string;
135976
+ } | {
135977
+ type: "Section";
135978
+ id: string;
135979
+ items: {
135980
+ id: string;
135981
+ title: string;
135982
+ columns: {
135983
+ id: string;
135984
+ blocks: {
135985
+ type: "Block";
135986
+ data: {
135987
+ items: {
135988
+ id: string;
135989
+ props: Record<string, {
135990
+ value?: any;
135991
+ } & Record<string, any>>;
135992
+ linksTo?: {
135993
+ type: "DocumentationItem" | "PageHeading" | "Url";
135994
+ url?: string | undefined;
135995
+ documentationItemId?: string | undefined;
135996
+ pageHeadingId?: string | undefined;
135997
+ openInNewTab?: boolean | undefined;
135998
+ } | undefined;
135999
+ }[];
136000
+ packageId: string;
136001
+ indentLevel: number;
136002
+ appearance?: {
136003
+ numberOfColumns?: number | undefined;
136004
+ itemBackgroundColor?: {
136005
+ value: string;
136006
+ referencedTokenId?: string | undefined;
136007
+ } | undefined;
136008
+ } | undefined;
136009
+ variantId?: string | undefined;
136010
+ };
136011
+ id: string;
136012
+ }[];
136013
+ }[];
136014
+ }[];
136015
+ appearance: {
136016
+ expandToEdges: boolean;
136017
+ contentExpandToEdges: boolean;
136018
+ backgroundColor?: {
136019
+ value: string;
136020
+ referencedTokenId?: string | undefined;
136021
+ } | undefined;
136022
+ foregroundColor?: {
136023
+ value: string;
136024
+ referencedTokenId?: string | undefined;
136025
+ } | undefined;
136026
+ padding?: {
136027
+ top?: number | undefined;
136028
+ bottom?: number | undefined;
136029
+ left?: number | undefined;
136030
+ right?: number | undefined;
136031
+ } | undefined;
136032
+ };
136033
+ sectionType: "Tabs";
136034
+ variantId?: string | undefined;
136035
+ })[];
136036
+ };
136037
+ id: string;
136038
+ createdAt: Date;
136039
+ updatedAt: Date;
136040
+ designSystemVersionId: string;
136041
+ documentationPageId: string;
136042
+ };
136043
+ }>;
135945
136044
  }
135946
136045
 
135947
136046
  declare class DesignSystemComponentEndpoint {
package/dist/index.js CHANGED
@@ -10344,6 +10344,12 @@ var DocumentationEndpoint = class {
10344
10344
  }
10345
10345
  );
10346
10346
  }
10347
+ documentationPageContent(dsId, versionId, pageId) {
10348
+ return this.requestExecutor.json(
10349
+ `/design-systems/${dsId}/versions/${versionId}/documentation/pages/${pageId}/content`,
10350
+ DTODocumentationPageContentGetResponse
10351
+ );
10352
+ }
10347
10353
  };
10348
10354
 
10349
10355
  // src/api/endpoints/design-system/versions/ds-components.ts