fika-editor 3.0.2 → 3.0.3
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/README.md +8 -0
- package/dist/embed/{947.js → 183.js} +15 -15
- package/dist/embed/_e2e-statika.json +10909 -0
- package/dist/embed/agentic-manifest.json +4 -4
- package/dist/embed/chunks/1131.css +1 -1
- package/dist/embed/chunks/1131.js +1 -1
- package/dist/embed/chunks/1668.js +1 -1
- package/dist/embed/chunks/2595.js +1 -0
- package/dist/embed/chunks/2807.js +1 -1
- package/dist/embed/chunks/4467.js +1 -1
- package/dist/embed/chunks/5216.js +1 -1
- package/dist/embed/fika-embed.css +1 -1
- package/dist/embed/fika-embed.js +9 -3
- package/dist/types/components/Draggable.d.ts +1 -1
- package/dist/types/components/Slider.d.ts +1 -0
- package/dist/types/configs/animation.d.ts +1 -1
- package/dist/types/configs/transitions.d.ts +28 -0
- package/dist/types/embed/agentic/types.d.ts +7 -0
- package/dist/types/embed/types.d.ts +8 -0
- package/dist/types/i18n/i18n-types.d.ts +202 -34
- package/dist/types/paint/rasterResources.d.ts +7 -0
- package/dist/types/paint/scheduler.d.ts +17 -0
- package/dist/types/paint/slidePainter.d.ts +17 -0
- package/dist/types/paint/textPainter.d.ts +31 -0
- package/dist/types/store/importConfirm.d.ts +6 -1
- package/dist/types/store/slides.d.ts +12 -5
- package/dist/types/types/slides.d.ts +3 -2
- package/dist/types/utils/elementOutline.d.ts +33 -3
- package/dist/types/utils/exportFonts.d.ts +7 -3
- package/dist/types/utils/importApply.d.ts +10 -0
- package/dist/types/utils/importTransition.d.ts +19 -0
- package/dist/types/utils/layerStack.d.ts +24 -0
- package/dist/types/utils/liveElementOffset.d.ts +6 -5
- package/dist/types/utils/mediaIntern.d.ts +9 -0
- package/dist/types/utils/textFit.d.ts +14 -6
- package/dist/types/views/Editor/Canvas/LayerStackPanel.d.ts +14 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +2 -0
- package/dist/types/views/components/ThumbnailSlide/CanvasSlideThumb.d.ts +11 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +2 -7
- package/package.json +15 -11
- package/dist/embed/chunks/1505.js +0 -8
- package/dist/embed/chunks/1932.js +0 -1
- package/dist/embed/chunks/5901.js +0 -1
- package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +0 -21
- package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +0 -54
- /package/dist/embed/{947.css → 183.css} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=5901;export const __rspack_esm_ids=[5901];export const __webpack_modules__={20220(){}};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Slide } from '../../../types/slides';
|
|
2
|
-
export type ILiveSlideThumbProps = {
|
|
3
|
-
slide: Slide;
|
|
4
|
-
width: number;
|
|
5
|
-
/** Opt into the identity-keyed snapshot cache (editor rail only). */
|
|
6
|
-
snapshot?: boolean;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* A thumbnail that IS the slide: the genuine ScreenSlide tree, scaled to the
|
|
10
|
-
* thumbnail box. With `snapshot` enabled, a row that already has a fresh
|
|
11
|
-
* bitmap renders only the <img>. A row without one mounts the live tree —
|
|
12
|
-
* the virtualizer screenshots that tree with snapdom before tearing the row
|
|
13
|
-
* down, so the next visit is the bitmap. Nothing is captured ahead of the
|
|
14
|
-
* viewport; only a row that was actually shown is snapshotted on leave.
|
|
15
|
-
*
|
|
16
|
-
* During a gutter drag only this light wrapper tracks the live width; the
|
|
17
|
-
* mounted ScreenSlide keeps its drag-start scale and is visually scaled by a
|
|
18
|
-
* composited transform — the heavy tree never re-renders mid-drag.
|
|
19
|
-
*/
|
|
20
|
-
declare const LiveSlideThumb: import("react").MemoExoticComponent<(props: ILiveSlideThumbProps) => import("react").JSX.Element>;
|
|
21
|
-
export default LiveSlideThumb;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { Slide } from '../../../types/slides';
|
|
2
|
-
export type ThumbSnapshot = {
|
|
3
|
-
url: string;
|
|
4
|
-
cssWidth: number;
|
|
5
|
-
cssHeight: number;
|
|
6
|
-
};
|
|
7
|
-
export type ThumbSnapshotDeps = {
|
|
8
|
-
slideId: string;
|
|
9
|
-
slide: Slide | undefined;
|
|
10
|
-
theme: unknown;
|
|
11
|
-
viewportRatio: number;
|
|
12
|
-
viewportSize: number;
|
|
13
|
-
cssWidth: number;
|
|
14
|
-
dpr: number;
|
|
15
|
-
};
|
|
16
|
-
export declare const thumbSnapshotStats: {
|
|
17
|
-
hits: number;
|
|
18
|
-
misses: number;
|
|
19
|
-
captures: number;
|
|
20
|
-
failed: number;
|
|
21
|
-
hostileSkips: number;
|
|
22
|
-
evictions: number;
|
|
23
|
-
invalidated: number;
|
|
24
|
-
captureMs: number[];
|
|
25
|
-
};
|
|
26
|
-
/** Re-render when snapshots arrive or are cleared. */
|
|
27
|
-
export declare const useThumbSnapshotVersion: () => number;
|
|
28
|
-
/**
|
|
29
|
-
* Fresh lookup for the current render. A stored snapshot whose key no longer
|
|
30
|
-
* matches is revoked on the spot — stale pixels are never handed out.
|
|
31
|
-
*/
|
|
32
|
-
export declare function lookupThumbSnapshot(deps: ThumbSnapshotDeps): ThumbSnapshot | null;
|
|
33
|
-
export declare function clearThumbSnapshots(): void;
|
|
34
|
-
export declare function hasFreshSnapshotFor(slideId: string): boolean;
|
|
35
|
-
export declare function canCaptureThumb(slideId: string): boolean;
|
|
36
|
-
export declare const isRailScrollIdle: () => boolean;
|
|
37
|
-
export declare function requestThumbCapture(deps: ThumbSnapshotDeps, getNode: () => HTMLElement | null): void;
|
|
38
|
-
/** Screenshot a live thumb now — used before the virtualizer tears the row down. */
|
|
39
|
-
export declare function requestTeardownCapture(deps: ThumbSnapshotDeps, getNode: () => HTMLElement | null): Promise<boolean>;
|
|
40
|
-
export declare function teardownThumbSnapshot(slideId: string, getNode: () => HTMLElement | null): Promise<boolean>;
|
|
41
|
-
export declare const readThumbSnapshotReport: () => {
|
|
42
|
-
hits: number;
|
|
43
|
-
misses: number;
|
|
44
|
-
captures: number;
|
|
45
|
-
failed: number;
|
|
46
|
-
hostileSkips: number;
|
|
47
|
-
evictions: number;
|
|
48
|
-
invalidated: number;
|
|
49
|
-
captureMs: number[];
|
|
50
|
-
captureMsAvg: number;
|
|
51
|
-
captureMsMax: number;
|
|
52
|
-
cached: number;
|
|
53
|
-
hostile: number;
|
|
54
|
-
};
|
|
File without changes
|