rotion 1.6.2 → 1.7.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 (32) 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/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  16. package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
  17. package/dist/ui/esm/index.js +1 -1
  18. package/dist/ui/esm/index.js.map +1 -1
  19. package/dist/ui/esm/types/exporter/files.d.ts +1 -1
  20. package/dist/ui/esm/types/exporter/types.d.ts +1 -0
  21. package/dist/ui/esm/types/exporter/variables.d.ts +2 -0
  22. package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  23. package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
  24. package/dist/ui/types.d.ts +5 -1
  25. package/dist/ui/umd/index.js +1 -1
  26. package/dist/ui/umd/index.js.map +1 -1
  27. package/dist/ui/umd/types/exporter/files.d.ts +1 -1
  28. package/dist/ui/umd/types/exporter/types.d.ts +1 -0
  29. package/dist/ui/umd/types/exporter/variables.d.ts +2 -0
  30. package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
  31. package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
  32. package/package.json +1 -1
@@ -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: {
@@ -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,10 @@
1
+ /// <reference types="node" />
1
2
  import type { CalloutBlockObjectResponseEx } from '../../../../exporter';
3
+ import type { ParsedUrlQueryInput } from 'node:querystring';
4
+ import type { Link } from '../../types';
2
5
  export interface CalloutBlockProps {
3
6
  block: CalloutBlockObjectResponseEx;
7
+ href?: string;
8
+ link?: Link;
9
+ query?: ParsedUrlQueryInput;
4
10
  }