@kizenapps/engine 1.7.0 → 1.7.1
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/{chunk-3SCL3FNO.js → chunk-D6T7TAGQ.js} +33 -8
- package/dist/chunk-D6T7TAGQ.js.map +1 -0
- package/dist/{chunk-MPUGGQAY.js → chunk-DGNNZWVL.js} +6 -6
- package/dist/{chunk-MPUGGQAY.js.map → chunk-DGNNZWVL.js.map} +1 -1
- package/dist/{chunk-GBAWVM5Q.js → chunk-DTWFRBQ4.js} +3 -3
- package/dist/{chunk-GBAWVM5Q.js.map → chunk-DTWFRBQ4.js.map} +1 -1
- package/dist/{chunk-U4QMP34G.js → chunk-DXETPNTZ.js} +5 -5
- package/dist/{chunk-U4QMP34G.js.map → chunk-DXETPNTZ.js.map} +1 -1
- package/dist/{chunk-WWPPSRAI.js → chunk-HXGQOZOQ.js} +3 -3
- package/dist/{chunk-WWPPSRAI.js.map → chunk-HXGQOZOQ.js.map} +1 -1
- package/dist/{chunk-VQFRKWPY.js → chunk-MNUJNBGO.js} +3 -3
- package/dist/{chunk-VQFRKWPY.js.map → chunk-MNUJNBGO.js.map} +1 -1
- package/dist/{chunk-OR5DUN56.js → chunk-RFWJ5L3U.js} +3 -3
- package/dist/{chunk-OR5DUN56.js.map → chunk-RFWJ5L3U.js.map} +1 -1
- package/dist/{chunk-TXKN3LGP.js → chunk-WYF2F5I2.js} +3 -3
- package/dist/{chunk-TXKN3LGP.js.map → chunk-WYF2F5I2.js.map} +1 -1
- package/dist/{chunk-MZQIORZ4.js → chunk-Y2VV7FNS.js} +4 -4
- package/dist/{chunk-MZQIORZ4.js.map → chunk-Y2VV7FNS.js.map} +1 -1
- package/dist/communication.js +2 -2
- package/dist/contexts/base.js +4 -4
- package/dist/contexts/floatingFrame.js +5 -5
- package/dist/contexts/recordDetail.js +5 -5
- package/dist/index.js +4 -4
- package/dist/react.js +22 -13
- package/dist/react.js.map +1 -1
- package/dist/util.js +6 -6
- package/dist/workers/calendarSource.worker.js +6 -6
- package/dist/workers/floatingFrame.worker.js +7 -7
- package/dist/workers/generic.worker.js +6 -6
- package/dist/workers/recordDetail.worker.js +7 -7
- package/package.json +4 -1
- package/dist/chunk-3SCL3FNO.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { RecordDetailWorkerContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
export { RecordDetailWorkerContext } from '../chunk-MNUJNBGO.js';
|
|
2
|
+
import '../chunk-DXETPNTZ.js';
|
|
3
|
+
import '../chunk-D6T7TAGQ.js';
|
|
4
|
+
import '../chunk-WYF2F5I2.js';
|
|
5
|
+
import '../chunk-RFWJ5L3U.js';
|
|
6
6
|
import '../chunk-5WRI5ZAA.js';
|
|
7
7
|
//# sourceMappingURL=recordDetail.js.map
|
|
8
8
|
//# sourceMappingURL=recordDetail.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { modalSize, runExpression, runObjectExpression, runOptionExpression, runScript, runStringExpression, version } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { modalSize, runExpression, runObjectExpression, runOptionExpression, runScript, runStringExpression, version } from './chunk-DGNNZWVL.js';
|
|
2
|
+
import './chunk-DTWFRBQ4.js';
|
|
3
|
+
import './chunk-D6T7TAGQ.js';
|
|
4
|
+
import './chunk-RFWJ5L3U.js';
|
|
5
5
|
import './chunk-5WRI5ZAA.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { runScript, getPluginSafeHTML, runExpression, getStableHash, isFlagEnabled } from './chunk-
|
|
1
|
+
import { runScript, getPluginSafeHTML, runExpression, getStableHash, isFlagEnabled } from './chunk-DGNNZWVL.js';
|
|
2
2
|
import './chunk-LGJYUPYZ.js';
|
|
3
|
-
import { generateExecutionKey } from './chunk-
|
|
4
|
-
import { buildIframeURLWithProxy, getAllNestedInputsFromConfig, getActionFieldKey, getFieldFromAction, getActionMenuFieldKey } from './chunk-
|
|
5
|
-
import { runFrameScriptEventName } from './chunk-
|
|
6
|
-
import { QUERY_KEYS, ROUTE_CHANGE_INTERNAL_EVENT, IFRAME_PREFIX, ROUTE_CHANGE_IFRAME_EVENT } from './chunk-
|
|
3
|
+
import { generateExecutionKey } from './chunk-DTWFRBQ4.js';
|
|
4
|
+
import { buildIframeURLWithProxy, unwrapProxyMessage, getAllNestedInputsFromConfig, getActionFieldKey, getFieldFromAction, getActionMenuFieldKey } from './chunk-D6T7TAGQ.js';
|
|
5
|
+
import { runFrameScriptEventName } from './chunk-WYF2F5I2.js';
|
|
6
|
+
import { QUERY_KEYS, ROUTE_CHANGE_INTERNAL_EVENT, IFRAME_PREFIX, ROUTE_CHANGE_IFRAME_EVENT } from './chunk-RFWJ5L3U.js';
|
|
7
7
|
import './chunk-5WRI5ZAA.js';
|
|
8
8
|
import { QueryClient, useQueries, useQueryClient, QueryClientContext, QueryClientProvider } from '@tanstack/react-query';
|
|
9
9
|
import { createContext, useContext, useState, useCallback, useMemo, useRef, useEffect, useImperativeHandle } from 'react';
|
|
@@ -1419,11 +1419,15 @@ var useAppPage = (currentPage, search, isLoading, frameOptions) => {
|
|
|
1419
1419
|
}, [iframeURL, execute, script, args, isLoading]);
|
|
1420
1420
|
const handleMessage = useCallback(
|
|
1421
1421
|
(e) => {
|
|
1422
|
-
const
|
|
1422
|
+
const result = unwrapProxyMessage(e);
|
|
1423
|
+
if (!result.handled) {
|
|
1424
|
+
return;
|
|
1425
|
+
}
|
|
1426
|
+
const message = result.data;
|
|
1423
1427
|
if (message?.type === "kizen:plugin_callback") {
|
|
1424
|
-
const
|
|
1428
|
+
const callbackArgs = message.query;
|
|
1425
1429
|
if (callback) {
|
|
1426
|
-
void execute(callback,
|
|
1430
|
+
void execute(callback, callbackArgs);
|
|
1427
1431
|
}
|
|
1428
1432
|
}
|
|
1429
1433
|
},
|
|
@@ -1929,12 +1933,17 @@ var useFloatingFrame = (params, options) => {
|
|
|
1929
1933
|
useManualInteraction(execute, currentWindow, scriptUIRef, pending, args);
|
|
1930
1934
|
useEffect(() => {
|
|
1931
1935
|
const handleMessageEvent = (ev) => {
|
|
1932
|
-
if (ev.source
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1936
|
+
if (ev.source === window || !messageHandlerScript || defaultFrameIgnoreUrls.includes(ev.origin)) {
|
|
1937
|
+
return;
|
|
1938
|
+
}
|
|
1939
|
+
const result = unwrapProxyMessage(ev);
|
|
1940
|
+
if (!result.handled) {
|
|
1941
|
+
return;
|
|
1937
1942
|
}
|
|
1943
|
+
void execute(messageHandlerScript, {
|
|
1944
|
+
...args,
|
|
1945
|
+
eventData: result.data
|
|
1946
|
+
});
|
|
1938
1947
|
};
|
|
1939
1948
|
window.addEventListener("message", handleMessageEvent);
|
|
1940
1949
|
return () => {
|