feat(core): unused blob management in settings (#9795)

fix AF-2144, PD-2064, PD-2065, PD-2066
This commit is contained in:
pengx17
2025-01-23 07:12:16 +00:00
parent 8021b89944
commit 6ac6a8d6d6
26 changed files with 846 additions and 30 deletions

View File

@@ -1,3 +1,4 @@
export { createComponent as createReactComponentFromLit } from './create-component';
export * from './lit-portal';
export { toReactNode } from './to-react-node';
export { templateToString } from './utils';

View File

@@ -0,0 +1,9 @@
import type { TemplateResult } from 'lit';
export function templateToString({ strings, values }: TemplateResult): string {
return strings.reduce(
(result, str, i) =>
result + str + (i < values.length ? String(values[i]) : ''),
''
);
}