@public-ui/hydrate 3.1.0 → 3.1.1-rc.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.ts +0 -12
- package/dist/index.js +965 -5406
- package/dist/index.mjs +966 -5405
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { Readable } from 'node:stream';
|
|
4
4
|
|
|
5
5
|
export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
|
|
6
|
-
export type TagTransformer = (tag: string) => string;
|
|
7
6
|
/**
|
|
8
7
|
* Serialize a value to a string that can be deserialized later.
|
|
9
8
|
* @param {unknown} value - The value to serialize.
|
|
@@ -272,16 +271,5 @@ export declare function renderToString(html: string | any, options: SerializeDoc
|
|
|
272
271
|
export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
|
|
273
272
|
export declare function hydrateDocument(doc: any | string, options: HydrateDocumentOptions | undefined, asStream?: boolean): Readable;
|
|
274
273
|
export declare function serializeDocumentToString(doc: Document, opts: HydrateFactoryOptions): string;
|
|
275
|
-
/**
|
|
276
|
-
* Transforms a tag name using the current tag transformer
|
|
277
|
-
* @param tag - the tag to transform e.g. `my-tag`
|
|
278
|
-
* @returns the transformed tag e.g. `new-my-tag`
|
|
279
|
-
*/
|
|
280
|
-
export declare function transformTag<T extends string>(tag: T): T;
|
|
281
|
-
/**
|
|
282
|
-
* Sets the tag transformer to be used when rendering custom elements
|
|
283
|
-
* @param transformer the transformer function to use. Must return a string
|
|
284
|
-
*/
|
|
285
|
-
export declare function setTagTransformer(transformer: TagTransformer): void;
|
|
286
274
|
|
|
287
275
|
export {};
|