@intlayer/editor 4.0.3 → 4.0.5
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 +22 -0
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs +85 -0
- package/dist/cjs/dictionaryManipulator/editDictionaryByKeyPath.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/getDictionaryValueByKeyPath.cjs +42 -0
- package/dist/cjs/dictionaryManipulator/getDictionaryValueByKeyPath.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/getSectionType.cjs +48 -0
- package/dist/cjs/dictionaryManipulator/getSectionType.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/index.cjs +31 -0
- package/dist/cjs/dictionaryManipulator/index.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/isValidReactElement.cjs +30 -0
- package/dist/cjs/dictionaryManipulator/isValidReactElement.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/removeDictionaryValueByKeyPath.cjs +55 -0
- package/dist/cjs/dictionaryManipulator/removeDictionaryValueByKeyPath.cjs.map +1 -0
- package/dist/cjs/dictionaryManipulator/renameDictionaryValueByKeyPath.cjs +64 -0
- package/dist/cjs/dictionaryManipulator/renameDictionaryValueByKeyPath.cjs.map +1 -0
- package/dist/cjs/dictionaryStatus.cjs +17 -0
- package/dist/cjs/dictionaryStatus.cjs.map +1 -0
- package/dist/cjs/index.cjs +4 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/server/index.cjs +23 -0
- package/dist/cjs/server/index.cjs.map +1 -0
- package/dist/cjs/server/writeContentDeclaration.cjs +118 -0
- package/dist/cjs/server/writeContentDeclaration.cjs.map +1 -0
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs +61 -0
- package/dist/esm/dictionaryManipulator/editDictionaryByKeyPath.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/getDictionaryValueByKeyPath.mjs +18 -0
- package/dist/esm/dictionaryManipulator/getDictionaryValueByKeyPath.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/getSectionType.mjs +26 -0
- package/dist/esm/dictionaryManipulator/getSectionType.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/index.mjs +6 -0
- package/dist/esm/dictionaryManipulator/index.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/isValidReactElement.mjs +6 -0
- package/dist/esm/dictionaryManipulator/isValidReactElement.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/removeDictionaryValueByKeyPath.mjs +31 -0
- package/dist/esm/dictionaryManipulator/removeDictionaryValueByKeyPath.mjs.map +1 -0
- package/dist/esm/dictionaryManipulator/renameDictionaryValueByKeyPath.mjs +40 -0
- package/dist/esm/dictionaryManipulator/renameDictionaryValueByKeyPath.mjs.map +1 -0
- package/dist/esm/dictionaryStatus.mjs +1 -0
- package/dist/esm/dictionaryStatus.mjs.map +1 -0
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/server/index.mjs +2 -0
- package/dist/esm/server/index.mjs.map +1 -0
- package/dist/esm/server/writeContentDeclaration.mjs +84 -0
- package/dist/esm/server/writeContentDeclaration.mjs.map +1 -0
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts +3 -0
- package/dist/types/dictionaryManipulator/editDictionaryByKeyPath.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/getDictionaryValueByKeyPath.d.ts +3 -0
- package/dist/types/dictionaryManipulator/getDictionaryValueByKeyPath.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/getSectionType.d.ts +3 -0
- package/dist/types/dictionaryManipulator/getSectionType.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/index.d.ts +6 -0
- package/dist/types/dictionaryManipulator/index.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/isValidReactElement.d.ts +9 -0
- package/dist/types/dictionaryManipulator/isValidReactElement.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/removeDictionaryValueByKeyPath.d.ts +3 -0
- package/dist/types/dictionaryManipulator/removeDictionaryValueByKeyPath.d.ts.map +1 -0
- package/dist/types/dictionaryManipulator/renameDictionaryValueByKeyPath.d.ts +3 -0
- package/dist/types/dictionaryManipulator/renameDictionaryValueByKeyPath.d.ts.map +1 -0
- package/dist/types/dictionaryStatus.d.ts +2 -0
- package/dist/types/dictionaryStatus.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/server/index.d.ts +2 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/server/writeContentDeclaration.d.ts +8 -0
- package/dist/types/server/writeContentDeclaration.d.ts.map +1 -0
- package/package.json +22 -5
- package/dist/cjs/CrossFrameCommunicator.cjs +0 -89
- package/dist/cjs/CrossFrameCommunicator.cjs.map +0 -1
- package/dist/esm/CrossFrameCommunicator.mjs +0 -65
- package/dist/esm/CrossFrameCommunicator.mjs.map +0 -1
- package/dist/types/CrossFrameCommunicator.d.ts +0 -52
- package/dist/types/CrossFrameCommunicator.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/CrossFrameCommunicator.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport interface CrossFrameMessage<T = any> {\n type: string;\n data: T;\n}\n\nexport type MessageHandler = (data: any, event: MessageEvent) => void;\n\nexport type CrossFrameCommunicatorOptions = {\n /**\n * The window to which we will post messages.\n * - In an iframe (child) app, this is usually `window.parent`.\n * - In the parent app, this is `iframe.contentWindow`.\n */\n targetWindow: Window;\n\n /**\n * The expected origin when sending messages.\n * - For example, \"https://my-parent-domain.com\" or \"https://my-child-domain.com\".\n * - Use \"*\" only if absolutely necessary, but it is not recommended.\n */\n targetOrigin?: string;\n\n /**\n * An array of allowed origins from which we accept incoming messages.\n * - If empty, no external origin is allowed.\n * - You can also add \"*\" to allow all, but that is not recommended in production.\n */\n allowedOrigins?: string[];\n};\n\nexport class CrossFrameCommunicator {\n private targetWindow: Window;\n private targetOrigin: string;\n private allowedOrigins: string[];\n private handlers: Record<string, MessageHandler[]>;\n\n constructor(options: CrossFrameCommunicatorOptions) {\n this.targetWindow = options.targetWindow;\n this.targetOrigin = options.targetOrigin ?? '*';\n this.allowedOrigins = options.allowedOrigins ?? ['*'];\n this.handlers = {};\n\n // Listen for incoming messages on the current window\n window.addEventListener('message', this.handleIncomingMessage);\n }\n\n /**\n * Clean up the event listener if needed (for single-page apps, unmounting, etc.).\n */\n public destroy() {\n window.removeEventListener('message', this.handleIncomingMessage);\n }\n\n /**\n * Register a handler for a specific message type.\n */\n public on(type: string, handler: MessageHandler) {\n if (!this.handlers[type]) {\n this.handlers[type] = [];\n }\n this.handlers[type].push(handler);\n }\n\n /**\n * Post a message to the target window.\n * @param type A string identifying the message\n * @param data The payload (any serializable data)\n */\n public sendMessage<T>(type: string, data: T) {\n // Use the targetOrigin instead of '*'\n this.targetWindow.postMessage({ type, data }, this.targetOrigin);\n }\n\n /**\n * Internal method to dispatch incoming messages to registered handlers.\n */\n private handleIncomingMessage = (event: MessageEvent) => {\n const { data, origin, source } = event;\n\n // 1) Check if the event has the structure we expect\n if (!data || typeof data !== 'object' || !data.type) {\n return;\n }\n\n // 2) Check if the origin is allowed\n if (!this.isAllowedOrigin(origin)) {\n // Optionally, you could console.warn or log this\n // console.warn(`Message from disallowed origin: ${origin}`);\n return;\n }\n\n // 3) (Optional) Check if the event source is the window we expect\n // This ensures the message is from the same Window object (iframe) we are targeting.\n // If you only care about the domain, you can skip this check.\n if (source !== this.targetWindow) {\n // console.warn('Message received from an unexpected window source');\n return;\n }\n\n // 4) Dispatch to any registered handlers\n const messageType = data.type;\n if (this.handlers[messageType]) {\n this.handlers[messageType].forEach((handler) => {\n handler(data.data, event);\n });\n }\n };\n\n private isAllowedOrigin(origin: string): boolean {\n // If the array includes \"*\", then all origins are allowed\n if (this.allowedOrigins.includes('*')) return true;\n\n // Otherwise,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A,MAC1B,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEQ,gBAAgB,QAAyB;AAE/C,QAAI,KAAK,eAAe,SAAS,GAAG,EAAG,QAAO;AAG9C,WAAO,KAAK,eAAe,SAAS,MAAM;AAAA,EAC5C;AACF;","names":[]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
class CrossFrameCommunicator {
|
|
2
|
-
targetWindow;
|
|
3
|
-
targetOrigin;
|
|
4
|
-
allowedOrigins;
|
|
5
|
-
handlers;
|
|
6
|
-
constructor(options) {
|
|
7
|
-
this.targetWindow = options.targetWindow;
|
|
8
|
-
this.targetOrigin = options.targetOrigin ?? "*";
|
|
9
|
-
this.allowedOrigins = options.allowedOrigins ?? ["*"];
|
|
10
|
-
this.handlers = {};
|
|
11
|
-
window.addEventListener("message", this.handleIncomingMessage);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Clean up the event listener if needed (for single-page apps, unmounting, etc.).
|
|
15
|
-
*/
|
|
16
|
-
destroy() {
|
|
17
|
-
window.removeEventListener("message", this.handleIncomingMessage);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Register a handler for a specific message type.
|
|
21
|
-
*/
|
|
22
|
-
on(type, handler) {
|
|
23
|
-
if (!this.handlers[type]) {
|
|
24
|
-
this.handlers[type] = [];
|
|
25
|
-
}
|
|
26
|
-
this.handlers[type].push(handler);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Post a message to the target window.
|
|
30
|
-
* @param type A string identifying the message
|
|
31
|
-
* @param data The payload (any serializable data)
|
|
32
|
-
*/
|
|
33
|
-
sendMessage(type, data) {
|
|
34
|
-
this.targetWindow.postMessage({ type, data }, this.targetOrigin);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Internal method to dispatch incoming messages to registered handlers.
|
|
38
|
-
*/
|
|
39
|
-
handleIncomingMessage = (event) => {
|
|
40
|
-
const { data, origin, source } = event;
|
|
41
|
-
if (!data || typeof data !== "object" || !data.type) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (!this.isAllowedOrigin(origin)) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (source !== this.targetWindow) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
const messageType = data.type;
|
|
51
|
-
if (this.handlers[messageType]) {
|
|
52
|
-
this.handlers[messageType].forEach((handler) => {
|
|
53
|
-
handler(data.data, event);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
isAllowedOrigin(origin) {
|
|
58
|
-
if (this.allowedOrigins.includes("*")) return true;
|
|
59
|
-
return this.allowedOrigins.includes(origin);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
CrossFrameCommunicator
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=CrossFrameCommunicator.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/CrossFrameCommunicator.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport interface CrossFrameMessage<T = any> {\n type: string;\n data: T;\n}\n\nexport type MessageHandler = (data: any, event: MessageEvent) => void;\n\nexport type CrossFrameCommunicatorOptions = {\n /**\n * The window to which we will post messages.\n * - In an iframe (child) app, this is usually `window.parent`.\n * - In the parent app, this is `iframe.contentWindow`.\n */\n targetWindow: Window;\n\n /**\n * The expected origin when sending messages.\n * - For example, \"https://my-parent-domain.com\" or \"https://my-child-domain.com\".\n * - Use \"*\" only if absolutely necessary, but it is not recommended.\n */\n targetOrigin?: string;\n\n /**\n * An array of allowed origins from which we accept incoming messages.\n * - If empty, no external origin is allowed.\n * - You can also add \"*\" to allow all, but that is not recommended in production.\n */\n allowedOrigins?: string[];\n};\n\nexport class CrossFrameCommunicator {\n private targetWindow: Window;\n private targetOrigin: string;\n private allowedOrigins: string[];\n private handlers: Record<string, MessageHandler[]>;\n\n constructor(options: CrossFrameCommunicatorOptions) {\n this.targetWindow = options.targetWindow;\n this.targetOrigin = options.targetOrigin ?? '*';\n this.allowedOrigins = options.allowedOrigins ?? ['*'];\n this.handlers = {};\n\n // Listen for incoming messages on the current window\n window.addEventListener('message', this.handleIncomingMessage);\n }\n\n /**\n * Clean up the event listener if needed (for single-page apps, unmounting, etc.).\n */\n public destroy() {\n window.removeEventListener('message', this.handleIncomingMessage);\n }\n\n /**\n * Register a handler for a specific message type.\n */\n public on(type: string, handler: MessageHandler) {\n if (!this.handlers[type]) {\n this.handlers[type] = [];\n }\n this.handlers[type].push(handler);\n }\n\n /**\n * Post a message to the target window.\n * @param type A string identifying the message\n * @param data The payload (any serializable data)\n */\n public sendMessage<T>(type: string, data: T) {\n // Use the targetOrigin instead of '*'\n this.targetWindow.postMessage({ type, data }, this.targetOrigin);\n }\n\n /**\n * Internal method to dispatch incoming messages to registered handlers.\n */\n private handleIncomingMessage = (event: MessageEvent) => {\n const { data, origin, source } = event;\n\n // 1) Check if the event has the structure we expect\n if (!data || typeof data !== 'object' || !data.type) {\n return;\n }\n\n // 2) Check if the origin is allowed\n if (!this.isAllowedOrigin(origin)) {\n // Optionally, you could console.warn or log this\n // console.warn(`Message from disallowed origin: ${origin}`);\n return;\n }\n\n // 3) (Optional) Check if the event source is the window we expect\n // This ensures the message is from the same Window object (iframe) we are targeting.\n // If you only care about the domain, you can skip this check.\n if (source !== this.targetWindow) {\n // console.warn('Message received from an unexpected window source');\n return;\n }\n\n // 4) Dispatch to any registered handlers\n const messageType = data.type;\n if (this.handlers[messageType]) {\n this.handlers[messageType].forEach((handler) => {\n handler(data.data, event);\n });\n }\n };\n\n private isAllowedOrigin(origin: string): boolean {\n // If the array includes \"*\", then all origins are allowed\n if (this.allowedOrigins.includes('*')) return true;\n\n // Otherwise, the origin must be in the array\n return this.allowedOrigins.includes(origin);\n }\n}\n"],"mappings":"AAgCO,MAAM,uBAAuB;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AA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C5C;AACF;","names":[]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export interface CrossFrameMessage<T = any> {
|
|
2
|
-
type: string;
|
|
3
|
-
data: T;
|
|
4
|
-
}
|
|
5
|
-
export type MessageHandler = (data: any, event: MessageEvent) => void;
|
|
6
|
-
export type CrossFrameCommunicatorOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* The window to which we will post messages.
|
|
9
|
-
* - In an iframe (child) app, this is usually `window.parent`.
|
|
10
|
-
* - In the parent app, this is `iframe.contentWindow`.
|
|
11
|
-
*/
|
|
12
|
-
targetWindow: Window;
|
|
13
|
-
/**
|
|
14
|
-
* The expected origin when sending messages.
|
|
15
|
-
* - For example, "https://my-parent-domain.com" or "https://my-child-domain.com".
|
|
16
|
-
* - Use "*" only if absolutely necessary, but it is not recommended.
|
|
17
|
-
*/
|
|
18
|
-
targetOrigin?: string;
|
|
19
|
-
/**
|
|
20
|
-
* An array of allowed origins from which we accept incoming messages.
|
|
21
|
-
* - If empty, no external origin is allowed.
|
|
22
|
-
* - You can also add "*" to allow all, but that is not recommended in production.
|
|
23
|
-
*/
|
|
24
|
-
allowedOrigins?: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare class CrossFrameCommunicator {
|
|
27
|
-
private targetWindow;
|
|
28
|
-
private targetOrigin;
|
|
29
|
-
private allowedOrigins;
|
|
30
|
-
private handlers;
|
|
31
|
-
constructor(options: CrossFrameCommunicatorOptions);
|
|
32
|
-
/**
|
|
33
|
-
* Clean up the event listener if needed (for single-page apps, unmounting, etc.).
|
|
34
|
-
*/
|
|
35
|
-
destroy(): void;
|
|
36
|
-
/**
|
|
37
|
-
* Register a handler for a specific message type.
|
|
38
|
-
*/
|
|
39
|
-
on(type: string, handler: MessageHandler): void;
|
|
40
|
-
/**
|
|
41
|
-
* Post a message to the target window.
|
|
42
|
-
* @param type A string identifying the message
|
|
43
|
-
* @param data The payload (any serializable data)
|
|
44
|
-
*/
|
|
45
|
-
sendMessage<T>(type: string, data: T): void;
|
|
46
|
-
/**
|
|
47
|
-
* Internal method to dispatch incoming messages to registered handlers.
|
|
48
|
-
*/
|
|
49
|
-
private handleIncomingMessage;
|
|
50
|
-
private isAllowedOrigin;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=CrossFrameCommunicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CrossFrameCommunicator.d.ts","sourceRoot":"","sources":["../../src/CrossFrameCommunicator.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,CAAC;CACT;AAED,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;AAEtE,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,qBAAa,sBAAsB;IACjC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,cAAc,CAAW;IACjC,OAAO,CAAC,QAAQ,CAAmC;gBAEvC,OAAO,EAAE,6BAA6B;IAUlD;;OAEG;IACI,OAAO;IAId;;OAEG;IACI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;IAO/C;;;;OAIG;IACI,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAK3C;;OAEG;IACH,OAAO,CAAC,qBAAqB,CA8B3B;IAEF,OAAO,CAAC,eAAe;CAOxB"}
|