frame.identify 0.2.4 → 0.2.6
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/ModalImageCropped.d.ts +9 -0
- package/dist/ModalImageCropped.d.ts.map +1 -0
- package/dist/ModalImageLoaded.d.ts +11 -0
- package/dist/ModalImageLoaded.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/state/machine.d.ts +9 -0
- package/dist/state/machine.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { identifyMachine } from './state/machine';
|
|
2
|
+
import { ActorRefFrom } from 'xstate';
|
|
3
|
+
export declare function ModalImageCropped(props: {
|
|
4
|
+
actor: ActorRefFrom<typeof identifyMachine>;
|
|
5
|
+
dataUrl: string;
|
|
6
|
+
modalIsOpen: boolean;
|
|
7
|
+
closeModal: (reset: boolean) => () => void;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ModalImageCropped.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalImageCropped.d.ts","sourceRoot":"","sources":["../src/ModalImageCropped.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,KAAK,EAAE,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,IAAI,CAAC;CAC5C,+BAwKA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { identifyMachine } from './state/machine';
|
|
2
|
+
import { ActorRefFrom } from 'xstate';
|
|
3
|
+
export type ModalImageLoadedHandle = {
|
|
4
|
+
openFileDialog: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const ModalImageLoaded: import('react').ForwardRefExoticComponent<{
|
|
7
|
+
actor: ActorRefFrom<typeof identifyMachine>;
|
|
8
|
+
modalIsOpen: boolean;
|
|
9
|
+
closeModal: () => void;
|
|
10
|
+
} & import('react').RefAttributes<ModalImageLoadedHandle>>;
|
|
11
|
+
//# sourceMappingURL=ModalImageLoaded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalImageLoaded.d.ts","sourceRoot":"","sources":["../src/ModalImageLoaded.tsx"],"names":[],"mappings":"AAIA,OAAO,EAKL,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAS3C,MAAM,MAAM,sBAAsB,GAAG;IACnC,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B,CAAC;AAIF,eAAO,MAAM,gBAAgB;WAGlB,YAAY,CAAC,OAAO,eAAe,CAAC;iBAC9B,OAAO;gBACR,MAAM,IAAI;0DA8PxB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ModalImageLoaded } from './ModalImageLoaded';
|
|
2
|
+
export { ModalImageCropped } from './ModalImageCropped';
|
|
3
|
+
export { identifyMachine, ACTION_RESET, ACTION_CROP, ACTION_SKIP_CROP, ACTION_UNDO_CROP, ACTION_ZOOM, ACTION_UNDO_ZOOM, } from './state/machine';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ACTION_RESET = "RESET";
|
|
2
|
+
export declare const ACTION_LOAD_IMAGE = "LOAD_IMAGE";
|
|
3
|
+
export declare const ACTION_CROP = "CROP";
|
|
4
|
+
export declare const ACTION_SKIP_CROP = "SKIP_CROP";
|
|
5
|
+
export declare const ACTION_UNDO_CROP = "UNDO_CROP";
|
|
6
|
+
export declare const ACTION_ZOOM = "ZOOM";
|
|
7
|
+
export declare const ACTION_UNDO_ZOOM = "UNDO_ZOOM";
|
|
8
|
+
export declare const identifyMachine: import('xstate').StateMachine<import('xstate').MachineContext, import('xstate').AnyEventObject, Record<string, import('xstate').AnyActorRef>, import('xstate').ProvidedActor, import('xstate').ParameterizedObject, import('xstate').ParameterizedObject, string, import('xstate').StateValue, string, unknown, import('xstate').NonReducibleUnknown, import('xstate').EventObject, import('xstate').MetaObject, any>;
|
|
9
|
+
//# sourceMappingURL=machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../src/state/machine.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,eAAO,MAAM,iBAAiB,eAAe,CAAC;AAC9C,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAC5C,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAC5C,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,eAAe,uZA+B1B,CAAC"}
|