rotion 1.6.2 → 1.8.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.
Files changed (116) hide show
  1. package/dist/exporter/blocks.js +3 -0
  2. package/dist/exporter/blocks.js.map +1 -1
  3. package/dist/exporter/files.d.ts +1 -1
  4. package/dist/exporter/files.js +2 -6
  5. package/dist/exporter/files.js.map +1 -1
  6. package/dist/exporter/types.d.ts +1 -0
  7. package/dist/exporter/variables.d.ts +2 -0
  8. package/dist/exporter/variables.js +3 -1
  9. package/dist/exporter/variables.js.map +1 -1
  10. package/dist/ui/cjs/index.js +1 -1
  11. package/dist/ui/cjs/index.js.map +1 -1
  12. package/dist/ui/cjs/types/exporter/files.d.ts +1 -1
  13. package/dist/ui/cjs/types/exporter/types.d.ts +1 -0
  14. package/dist/ui/cjs/types/exporter/variables.d.ts +2 -0
  15. package/dist/ui/cjs/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
  16. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
  17. package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
  18. package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
  19. package/dist/ui/cjs/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
  20. package/dist/ui/cjs/types/ui/components/List/List.types.d.ts +0 -1
  21. package/dist/ui/cjs/types/ui/components/List/ListHandler.types.d.ts +0 -1
  22. package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  23. package/dist/ui/cjs/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  24. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
  25. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
  26. package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
  27. package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
  28. package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  29. package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +5 -0
  30. package/dist/ui/cjs/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
  31. package/dist/ui/cjs/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
  32. package/dist/ui/cjs/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
  33. package/dist/ui/cjs/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
  34. package/dist/ui/cjs/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
  35. package/dist/ui/cjs/types/ui/components/Page/Page.types.d.ts +0 -1
  36. package/dist/ui/cjs/types/ui/components/Page/PageHandler.types.d.ts +0 -1
  37. package/dist/ui/cjs/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
  38. package/dist/ui/cjs/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
  39. package/dist/ui/cjs/types/ui/components/Table/Table.types.d.ts +0 -1
  40. package/dist/ui/cjs/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  41. package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  42. package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  43. package/dist/ui/cjs/types/ui/components/lib.d.ts +0 -1
  44. package/dist/ui/cjs/types/ui/components/types.d.ts +0 -1
  45. package/dist/ui/esm/index.js +1 -1
  46. package/dist/ui/esm/index.js.map +1 -1
  47. package/dist/ui/esm/types/exporter/files.d.ts +1 -1
  48. package/dist/ui/esm/types/exporter/types.d.ts +1 -0
  49. package/dist/ui/esm/types/exporter/variables.d.ts +2 -0
  50. package/dist/ui/esm/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
  51. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
  52. package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
  53. package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
  54. package/dist/ui/esm/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
  55. package/dist/ui/esm/types/ui/components/List/List.types.d.ts +0 -1
  56. package/dist/ui/esm/types/ui/components/List/ListHandler.types.d.ts +0 -1
  57. package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  58. package/dist/ui/esm/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  59. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
  60. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
  61. package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
  62. package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
  63. package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  64. package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +5 -0
  65. package/dist/ui/esm/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
  66. package/dist/ui/esm/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
  67. package/dist/ui/esm/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
  68. package/dist/ui/esm/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
  69. package/dist/ui/esm/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
  70. package/dist/ui/esm/types/ui/components/Page/Page.types.d.ts +0 -1
  71. package/dist/ui/esm/types/ui/components/Page/PageHandler.types.d.ts +0 -1
  72. package/dist/ui/esm/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
  73. package/dist/ui/esm/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
  74. package/dist/ui/esm/types/ui/components/Table/Table.types.d.ts +0 -1
  75. package/dist/ui/esm/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  76. package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  77. package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  78. package/dist/ui/esm/types/ui/components/lib.d.ts +0 -1
  79. package/dist/ui/esm/types/ui/components/types.d.ts +0 -1
  80. package/dist/ui/types.d.ts +5 -1
  81. package/dist/ui/umd/index.js +1 -1
  82. package/dist/ui/umd/index.js.map +1 -1
  83. package/dist/ui/umd/types/exporter/files.d.ts +1 -1
  84. package/dist/ui/umd/types/exporter/types.d.ts +1 -0
  85. package/dist/ui/umd/types/exporter/variables.d.ts +2 -0
  86. package/dist/ui/umd/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
  87. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
  88. package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
  89. package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
  90. package/dist/ui/umd/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
  91. package/dist/ui/umd/types/ui/components/List/List.types.d.ts +0 -1
  92. package/dist/ui/umd/types/ui/components/List/ListHandler.types.d.ts +0 -1
  93. package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  94. package/dist/ui/umd/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  95. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
  96. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
  97. package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
  98. package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
  99. package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  100. package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +5 -0
  101. package/dist/ui/umd/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
  102. package/dist/ui/umd/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
  103. package/dist/ui/umd/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
  104. package/dist/ui/umd/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
  105. package/dist/ui/umd/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
  106. package/dist/ui/umd/types/ui/components/Page/Page.types.d.ts +0 -1
  107. package/dist/ui/umd/types/ui/components/Page/PageHandler.types.d.ts +0 -1
  108. package/dist/ui/umd/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
  109. package/dist/ui/umd/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
  110. package/dist/ui/umd/types/ui/components/Table/Table.types.d.ts +0 -1
  111. package/dist/ui/umd/types/ui/components/Table/TableHandler.types.d.ts +0 -1
  112. package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  113. package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
  114. package/dist/ui/umd/types/ui/components/lib.d.ts +0 -1
  115. package/dist/ui/umd/types/ui/components/types.d.ts +0 -1
  116. package/package.json +20 -20
@@ -1,6 +1,6 @@
1
1
  import type { VideoBlockObjectResponseEx, EmbedBlockObjectResponseEx } from './types.js';
2
2
  export declare const findLocationUrl: (rawHeaders: string[]) => string;
3
- export declare function getHTTP(reqUrl: string, redirectCount?: number): Promise<string>;
3
+ export declare function getHTTP(reqUrl: string): Promise<string>;
4
4
  export declare function getJson<T>(reqUrl: string): Promise<T>;
5
5
  export declare const atoh: (a: string) => string;
6
6
  export declare const createDirWhenNotfound: (dir: string) => Promise<void>;
@@ -111,6 +111,7 @@ export type CalloutBlockObjectResponseEx = CalloutBlockObjectResponse & {
111
111
  };
112
112
  };
113
113
  };
114
+ children?: ListBlockChildrenResponseEx;
114
115
  };
115
116
  export type ImageBlockObjectResponseEx = ImageBlockObjectResponse & {
116
117
  image: {
@@ -11,6 +11,8 @@ export declare const fileDir: string;
11
11
  export declare const timeout: number;
12
12
  export declare const webpQuality: number;
13
13
  export declare const debug: boolean;
14
+ export declare const maxRedirects: number;
15
+ export declare const userAgent: string;
14
16
  export declare const httpOptions: {
15
17
  timeout: number;
16
18
  headers: {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { FetchDatabaseRes } from '../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { DatabaseProperty } from '../../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { ReactNode } from 'react';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { ReactNode } from 'react';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { QueryDatabaseResponseEx } from '../../../exporter';
4
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { DatabaseProperty } from '../../../exporter';
4
3
  import type { Link } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { Link } from '../../types';
4
3
  import type { BreadcrumbBlockObjectResponseEx } from '../../../../exporter';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { Link } from '../../types';
4
3
  import type { Breadcrumb } from '../../../../exporter';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { BulletedListItemBlockObjectResponseEx } from '../../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import type { CalloutBlockProps } from './CalloutBlock.types';
3
3
  import '../../tokens.css';
4
4
  import './CalloutBlock.css';
5
- declare const CalloutBlock: ({ block }: CalloutBlockProps) => React.JSX.Element;
5
+ declare const CalloutBlock: ({ block, href, link, query }: CalloutBlockProps) => React.JSX.Element;
6
6
  export default CalloutBlock;
@@ -1,4 +1,9 @@
1
1
  import type { CalloutBlockObjectResponseEx } from '../../../../exporter';
2
+ import type { ParsedUrlQueryInput } from 'node:querystring';
3
+ import type { Link } from '../../types';
2
4
  export interface CalloutBlockProps {
3
5
  block: CalloutBlockObjectResponseEx;
6
+ href?: string;
7
+ link?: Link;
8
+ query?: ParsedUrlQueryInput;
4
9
  }
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="react" />
3
1
  import type { ChildDatabaseBlockObjectResponseEx } from '../../../../exporter';
4
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
5
3
  import type { Link } from '../../types';
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="react" />
3
1
  import type { ChildPageBlockObjectResponseEx } from '../../../../exporter';
4
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
5
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ColumnListBlockObjectResponseEx } from '../../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="node" />
3
1
  import type { Link } from '../../types';
4
2
  import type { BlockObjectResponse } from '../../../../exporter';
5
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { NumberedListItemBlockObjectResponseEx } from '../../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ListBlockChildrenResponseEx } from '../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { BlockObjectResponse } from '../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PDFDocumentProxy, PDFPageProxy } from 'pdfjs-dist';
3
2
  type HookProps = {
4
3
  canvasRef: React.RefObject<HTMLCanvasElement | null>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ParagraphBlockObjectResponseEx, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, DividerBlockObjectResponse } from '../../../../exporter';
3
2
  export interface TextBlockProps {
4
3
  tag: keyof JSX.IntrinsicElements;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { QueryDatabaseResponseEx } from '../../../exporter';
4
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { DatabaseProperty } from '../../../exporter';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { ParsedUrlQueryInput } from 'node:querystring';
4
3
  import type { Link } from '../../types';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ReactNode } from 'react';
3
2
  import type { Link } from '../../types';
4
3
  import type { ParsedUrlQueryInput } from 'node:querystring';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ParsedUrlQueryInput } from 'node:querystring';
3
2
  import type { ListBlockChildrenResponseEx, GetPageResponse } from '../../exporter';
4
3
  export declare function queryToString(q: ParsedUrlQueryInput | undefined): string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import React from 'react';
3
2
  import type { UrlObject } from 'node:url';
4
3
  export interface Link extends React.FC<{
@@ -101,6 +101,7 @@ type CalloutBlockObjectResponseEx = CalloutBlockObjectResponse & {
101
101
  };
102
102
  };
103
103
  };
104
+ children?: ListBlockChildrenResponseEx;
104
105
  };
105
106
  type ImageBlockObjectResponseEx = ImageBlockObjectResponse & {
106
107
  image: {
@@ -736,9 +737,12 @@ declare const BulletedListBlock: ({ block, href, link, query }: BulletedListBloc
736
737
 
737
738
  interface CalloutBlockProps {
738
739
  block: CalloutBlockObjectResponseEx;
740
+ href?: string;
741
+ link?: Link;
742
+ query?: ParsedUrlQueryInput;
739
743
  }
740
744
 
741
- declare const CalloutBlock: ({ block }: CalloutBlockProps) => React.JSX.Element;
745
+ declare const CalloutBlock: ({ block, href, link, query }: CalloutBlockProps) => React.JSX.Element;
742
746
 
743
747
  interface ChildDatabaseBlockProps {
744
748
  block: ChildDatabaseBlockObjectResponseEx;