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.
- package/dist/exporter/blocks.js +3 -0
- package/dist/exporter/blocks.js.map +1 -1
- package/dist/exporter/files.d.ts +1 -1
- package/dist/exporter/files.js +2 -6
- package/dist/exporter/files.js.map +1 -1
- package/dist/exporter/types.d.ts +1 -0
- package/dist/exporter/variables.d.ts +2 -0
- package/dist/exporter/variables.js +3 -1
- package/dist/exporter/variables.js.map +1 -1
- package/dist/ui/cjs/index.js +1 -1
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/exporter/files.d.ts +1 -1
- package/dist/ui/cjs/types/exporter/types.d.ts +1 -0
- package/dist/ui/cjs/types/exporter/variables.d.ts +2 -0
- package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
- package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
- package/dist/ui/esm/index.js +1 -1
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/exporter/files.d.ts +1 -1
- package/dist/ui/esm/types/exporter/types.d.ts +1 -0
- package/dist/ui/esm/types/exporter/variables.d.ts +2 -0
- package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
- package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
- package/dist/ui/types.d.ts +5 -1
- package/dist/ui/umd/index.js +1 -1
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/exporter/files.d.ts +1 -1
- package/dist/ui/umd/types/exporter/types.d.ts +1 -0
- package/dist/ui/umd/types/exporter/variables.d.ts +2 -0
- package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.d.ts +1 -1
- package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +6 -0
- 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
|
|
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>;
|
|
@@ -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
|
}
|