@ehfuse/forma 1.4.3 → 1.4.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.
Files changed (73) hide show
  1. package/dist/contexts/{GlobalFormContext.d.ts → GlobalFormaContext.d.ts} +12 -12
  2. package/dist/contexts/GlobalFormaContext.d.ts.map +1 -0
  3. package/dist/contexts/{GlobalFormContext.js → GlobalFormaContext.js} +42 -16
  4. package/dist/contexts/GlobalFormaContext.js.map +1 -0
  5. package/dist/esm/contexts/{GlobalFormContext.d.ts → GlobalFormaContext.d.ts} +12 -12
  6. package/dist/esm/contexts/GlobalFormaContext.d.ts.map +1 -0
  7. package/dist/esm/contexts/{GlobalFormContext.js → GlobalFormaContext.js} +40 -14
  8. package/dist/esm/contexts/GlobalFormaContext.js.map +1 -0
  9. package/dist/esm/hooks/useForm.js +3 -1
  10. package/dist/esm/hooks/useForm.js.map +1 -1
  11. package/dist/esm/hooks/useGlobalForm.js +2 -2
  12. package/dist/esm/hooks/useGlobalForm.js.map +1 -1
  13. package/dist/esm/hooks/useGlobalFormaState.js +2 -2
  14. package/dist/esm/hooks/useGlobalFormaState.js.map +1 -1
  15. package/dist/esm/hooks/useRegisterGlobalForm.js +2 -2
  16. package/dist/esm/hooks/useRegisterGlobalForm.js.map +1 -1
  17. package/dist/esm/hooks/useRegisterGlobalFormaState.d.ts +55 -0
  18. package/dist/esm/hooks/useRegisterGlobalFormaState.d.ts.map +1 -0
  19. package/dist/esm/hooks/useRegisterGlobalFormaState.js +64 -0
  20. package/dist/esm/hooks/useRegisterGlobalFormaState.js.map +1 -0
  21. package/dist/esm/hooks/useUnregisterGlobalForm.d.ts +68 -0
  22. package/dist/esm/hooks/useUnregisterGlobalForm.d.ts.map +1 -0
  23. package/dist/esm/hooks/useUnregisterGlobalForm.js +88 -0
  24. package/dist/esm/hooks/useUnregisterGlobalForm.js.map +1 -0
  25. package/dist/esm/hooks/useUnregisterGlobalFormaState.d.ts +69 -0
  26. package/dist/esm/hooks/useUnregisterGlobalFormaState.d.ts.map +1 -0
  27. package/dist/esm/hooks/useUnregisterGlobalFormaState.js +89 -0
  28. package/dist/esm/hooks/useUnregisterGlobalFormaState.js.map +1 -0
  29. package/dist/esm/index.d.ts +5 -2
  30. package/dist/esm/index.d.ts.map +1 -1
  31. package/dist/esm/index.js +4 -1
  32. package/dist/esm/index.js.map +1 -1
  33. package/dist/esm/types/globalForm.d.ts +56 -7
  34. package/dist/esm/types/globalForm.d.ts.map +1 -1
  35. package/dist/esm/types/globalForm.js.map +1 -1
  36. package/dist/esm/types/index.d.ts +1 -1
  37. package/dist/esm/types/index.d.ts.map +1 -1
  38. package/dist/esm/types/index.js.map +1 -1
  39. package/dist/hooks/useForm.js +3 -1
  40. package/dist/hooks/useForm.js.map +1 -1
  41. package/dist/hooks/useGlobalForm.js +2 -2
  42. package/dist/hooks/useGlobalForm.js.map +1 -1
  43. package/dist/hooks/useGlobalFormaState.js +2 -2
  44. package/dist/hooks/useGlobalFormaState.js.map +1 -1
  45. package/dist/hooks/useRegisterGlobalForm.js +2 -2
  46. package/dist/hooks/useRegisterGlobalForm.js.map +1 -1
  47. package/dist/hooks/useRegisterGlobalFormaState.d.ts +55 -0
  48. package/dist/hooks/useRegisterGlobalFormaState.d.ts.map +1 -0
  49. package/dist/hooks/useRegisterGlobalFormaState.js +67 -0
  50. package/dist/hooks/useRegisterGlobalFormaState.js.map +1 -0
  51. package/dist/hooks/useUnregisterGlobalForm.d.ts +68 -0
  52. package/dist/hooks/useUnregisterGlobalForm.d.ts.map +1 -0
  53. package/dist/hooks/useUnregisterGlobalForm.js +91 -0
  54. package/dist/hooks/useUnregisterGlobalForm.js.map +1 -0
  55. package/dist/hooks/useUnregisterGlobalFormaState.d.ts +69 -0
  56. package/dist/hooks/useUnregisterGlobalFormaState.d.ts.map +1 -0
  57. package/dist/hooks/useUnregisterGlobalFormaState.js +92 -0
  58. package/dist/hooks/useUnregisterGlobalFormaState.js.map +1 -0
  59. package/dist/index.d.ts +5 -2
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +10 -4
  62. package/dist/index.js.map +1 -1
  63. package/dist/types/globalForm.d.ts +56 -7
  64. package/dist/types/globalForm.d.ts.map +1 -1
  65. package/dist/types/globalForm.js.map +1 -1
  66. package/dist/types/index.d.ts +1 -1
  67. package/dist/types/index.d.ts.map +1 -1
  68. package/dist/types/index.js.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/contexts/GlobalFormContext.d.ts.map +0 -1
  71. package/dist/contexts/GlobalFormContext.js.map +0 -1
  72. package/dist/esm/contexts/GlobalFormContext.d.ts.map +0 -1
  73. package/dist/esm/contexts/GlobalFormContext.js.map +0 -1
@@ -31,7 +31,7 @@
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.useRegisterGlobalForm = useRegisterGlobalForm;
33
33
  const react_1 = require("react");
34
- const GlobalFormContext_1 = require("../contexts/GlobalFormContext");
34
+ const GlobalFormaContext_1 = require("../contexts/GlobalFormaContext");
35
35
  /**
36
36
  * 기존 useForm을 글로벌 폼으로 등록하는 훅 | Hook to register existing useForm as global form
37
37
  *
@@ -56,7 +56,7 @@ const GlobalFormContext_1 = require("../contexts/GlobalFormContext");
56
56
  * ```
57
57
  */
58
58
  function useRegisterGlobalForm(formId, form) {
59
- const { registerStore } = (0, react_1.useContext)(GlobalFormContext_1.GlobalFormContext);
59
+ const { registerStore } = (0, react_1.useContext)(GlobalFormaContext_1.GlobalFormaContext);
60
60
  (0, react_1.useEffect)(() => {
61
61
  // useForm의 내부 store를 글로벌에 등록 | Register useForm's internal store globally
62
62
  if (form._store) {
@@ -1 +1 @@
1
- {"version":3,"file":"useRegisterGlobalForm.js","sourceRoot":"","sources":["../../hooks/useRegisterGlobalForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;AA6BH,sDAYC;AAvCD,iCAA8C;AAE9C,qEAAkE;AAElE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,qBAAqB,CACjC,MAAc,EACd,IAAsB;IAEtB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kBAAU,EAAC,qCAAiB,CAAC,CAAC;IAExD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,0EAA0E;QAC1E,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"useRegisterGlobalForm.js","sourceRoot":"","sources":["../../hooks/useRegisterGlobalForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;AA6BH,sDAYC;AAvCD,iCAA8C;AAE9C,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,qBAAqB,CACjC,MAAc,EACd,IAAsB;IAEtB,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAEzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,0EAA0E;QAC1E,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACd,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * useRegisterGlobalFormaState.ts
3
+ *
4
+ * Forma - 기존 useFormaState를 글로벌 상태로 등록하는 훅 | Hook to register existing useFormaState as global state
5
+ * 기존에 만든 로컬 FormaState를 글로벌 상태로 공유할 수 있게 해주는 유틸리티
6
+ * Utility to enable sharing existing local FormaState as global state
7
+ *
8
+ * @license MIT License
9
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
10
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+ import { UseFormaStateReturn } from "./useFormaState";
31
+ /**
32
+ * 기존 useFormaState를 글로벌 상태로 등록하는 훅 | Hook to register existing useFormaState as global state
33
+ *
34
+ * 이미 만들어진 로컬 FormaState를 글로벌 상태로 공유하고 싶을 때 사용합니다.
35
+ * Use this when you want to share an already created local FormaState as global state.
36
+ *
37
+ * @template T FormaState 데이터의 타입 | FormaState data type
38
+ * @param stateId 글로벌 상태 식별자 | Global state identifier
39
+ * @param formaState 등록할 useFormaState 인스턴스 | useFormaState instance to register
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * function MyComponent() {
44
+ * const formaState = useFormaState({ name: '', email: '', settings: { theme: 'light' } });
45
+ *
46
+ * // 로컬 FormaState를 글로벌로 등록
47
+ * useRegisterGlobalFormaState('my-state-id', formaState);
48
+ *
49
+ * // 이제 다른 컴포넌트에서 useGlobalFormaState({ stateId: 'my-state-id' })로 접근 가능
50
+ * return <div>...</div>;
51
+ * }
52
+ * ```
53
+ */
54
+ export declare function useRegisterGlobalFormaState<T extends Record<string, any>>(stateId: string, formaState: UseFormaStateReturn<T>): void;
55
+ //# sourceMappingURL=useRegisterGlobalFormaState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterGlobalFormaState.d.ts","sourceRoot":"","sources":["../../hooks/useRegisterGlobalFormaState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrE,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,GACnC,IAAI,CASN"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /**
3
+ * useRegisterGlobalFormaState.ts
4
+ *
5
+ * Forma - 기존 useFormaState를 글로벌 상태로 등록하는 훅 | Hook to register existing useFormaState as global state
6
+ * 기존에 만든 로컬 FormaState를 글로벌 상태로 공유할 수 있게 해주는 유틸리티
7
+ * Utility to enable sharing existing local FormaState as global state
8
+ *
9
+ * @license MIT License
10
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
11
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in all
21
+ * copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ * SOFTWARE.
30
+ */
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.useRegisterGlobalFormaState = useRegisterGlobalFormaState;
33
+ const react_1 = require("react");
34
+ const GlobalFormaContext_1 = require("../contexts/GlobalFormaContext");
35
+ /**
36
+ * 기존 useFormaState를 글로벌 상태로 등록하는 훅 | Hook to register existing useFormaState as global state
37
+ *
38
+ * 이미 만들어진 로컬 FormaState를 글로벌 상태로 공유하고 싶을 때 사용합니다.
39
+ * Use this when you want to share an already created local FormaState as global state.
40
+ *
41
+ * @template T FormaState 데이터의 타입 | FormaState data type
42
+ * @param stateId 글로벌 상태 식별자 | Global state identifier
43
+ * @param formaState 등록할 useFormaState 인스턴스 | useFormaState instance to register
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * function MyComponent() {
48
+ * const formaState = useFormaState({ name: '', email: '', settings: { theme: 'light' } });
49
+ *
50
+ * // 로컬 FormaState를 글로벌로 등록
51
+ * useRegisterGlobalFormaState('my-state-id', formaState);
52
+ *
53
+ * // 이제 다른 컴포넌트에서 useGlobalFormaState({ stateId: 'my-state-id' })로 접근 가능
54
+ * return <div>...</div>;
55
+ * }
56
+ * ```
57
+ */
58
+ function useRegisterGlobalFormaState(stateId, formaState) {
59
+ const { registerStore } = (0, react_1.useContext)(GlobalFormaContext_1.GlobalFormaContext);
60
+ (0, react_1.useEffect)(() => {
61
+ // useFormaState의 내부 store를 글로벌에 등록 | Register useFormaState's internal store globally
62
+ if (formaState._store) {
63
+ registerStore(stateId, formaState._store);
64
+ }
65
+ }, [stateId, formaState._store, registerStore]);
66
+ }
67
+ //# sourceMappingURL=useRegisterGlobalFormaState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterGlobalFormaState.js","sourceRoot":"","sources":["../../hooks/useRegisterGlobalFormaState.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;AA6BH,kEAYC;AAvCD,iCAA8C;AAE9C,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,2BAA2B,CACvC,OAAe,EACf,UAAkC;IAElC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAEzD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,sFAAsF;QACtF,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpB,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9C,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * useUnregisterGlobalForm.ts
3
+ *
4
+ * Forma - 글로벌 폼 등록 해제 훅 | Hook to unregister global form
5
+ * 등록된 글로벌 폼을 메모리에서 제거하는 유틸리티
6
+ * Utility to remove registered global form from memory
7
+ *
8
+ * @license MIT License
9
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
10
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
11
+ *
12
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ * of this software and associated documentation files (the "Software"), to deal
14
+ * in the Software without restriction, including without limitation the rights
15
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ * copies of the Software, and to permit persons to whom the Software is
17
+ * furnished to do so, subject to the following conditions:
18
+ *
19
+ * The above copyright notice and this permission notice shall be included in all
20
+ * copies or substantial portions of the Software.
21
+ *
22
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ * SOFTWARE.
29
+ */
30
+ /**
31
+ * 글로벌 폼 등록 해제 훅 | Hook to unregister global form
32
+ *
33
+ * 등록된 글로벌 폼을 메모리에서 제거합니다.
34
+ * Remove registered global form from memory.
35
+ *
36
+ * @returns 폼 등록 해제 함수들 | Form unregistration functions
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * function MyComponent() {
41
+ * const { unregisterForm, clearForms } = useUnregisterGlobalForm();
42
+ *
43
+ * const handleCleanup = () => {
44
+ * // 특정 폼 제거
45
+ * const success = unregisterForm('my-form-id');
46
+ * console.log(`Form unregistered: ${success}`);
47
+ * };
48
+ *
49
+ * const handleReset = () => {
50
+ * // 모든 폼 제거
51
+ * clearForms();
52
+ * console.log('All forms cleared');
53
+ * };
54
+ *
55
+ * return (
56
+ * <div>
57
+ * <button onClick={handleCleanup}>Remove Form</button>
58
+ * <button onClick={handleReset}>Clear All</button>
59
+ * </div>
60
+ * );
61
+ * }
62
+ * ```
63
+ */
64
+ export declare function useUnregisterGlobalForm(): {
65
+ unregisterForm: (formId: string) => boolean;
66
+ clearForms: () => void;
67
+ };
68
+ //# sourceMappingURL=useUnregisterGlobalForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalForm.d.ts","sourceRoot":"","sources":["../../hooks/useUnregisterGlobalForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAKH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,uBAAuB;6BASH,MAAM,KAAG,OAAO;sBAOzB,IAAI;EAQ9B"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /**
3
+ * useUnregisterGlobalForm.ts
4
+ *
5
+ * Forma - 글로벌 폼 등록 해제 훅 | Hook to unregister global form
6
+ * 등록된 글로벌 폼을 메모리에서 제거하는 유틸리티
7
+ * Utility to remove registered global form from memory
8
+ *
9
+ * @license MIT License
10
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
11
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in all
21
+ * copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ * SOFTWARE.
30
+ */
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.useUnregisterGlobalForm = useUnregisterGlobalForm;
33
+ const react_1 = require("react");
34
+ const GlobalFormaContext_1 = require("../contexts/GlobalFormaContext");
35
+ /**
36
+ * 글로벌 폼 등록 해제 훅 | Hook to unregister global form
37
+ *
38
+ * 등록된 글로벌 폼을 메모리에서 제거합니다.
39
+ * Remove registered global form from memory.
40
+ *
41
+ * @returns 폼 등록 해제 함수들 | Form unregistration functions
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * function MyComponent() {
46
+ * const { unregisterForm, clearForms } = useUnregisterGlobalForm();
47
+ *
48
+ * const handleCleanup = () => {
49
+ * // 특정 폼 제거
50
+ * const success = unregisterForm('my-form-id');
51
+ * console.log(`Form unregistered: ${success}`);
52
+ * };
53
+ *
54
+ * const handleReset = () => {
55
+ * // 모든 폼 제거
56
+ * clearForms();
57
+ * console.log('All forms cleared');
58
+ * };
59
+ *
60
+ * return (
61
+ * <div>
62
+ * <button onClick={handleCleanup}>Remove Form</button>
63
+ * <button onClick={handleReset}>Clear All</button>
64
+ * </div>
65
+ * );
66
+ * }
67
+ * ```
68
+ */
69
+ function useUnregisterGlobalForm() {
70
+ const { unregisterStore, clearStores } = (0, react_1.useContext)(GlobalFormaContext_1.GlobalFormaContext);
71
+ /**
72
+ * 특정 formId의 글로벌 폼을 등록 해제합니다 | Unregister specific global form
73
+ *
74
+ * @param formId 제거할 폼 식별자 | Form identifier to remove
75
+ * @returns 제거 성공 여부 | Whether removal was successful
76
+ */
77
+ const unregisterForm = (formId) => {
78
+ return unregisterStore(formId);
79
+ };
80
+ /**
81
+ * 모든 글로벌 폼을 제거합니다 | Clear all global forms
82
+ */
83
+ const clearForms = () => {
84
+ clearStores();
85
+ };
86
+ return {
87
+ unregisterForm,
88
+ clearForms,
89
+ };
90
+ }
91
+ //# sourceMappingURL=useUnregisterGlobalForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalForm.js","sourceRoot":"","sources":["../../hooks/useUnregisterGlobalForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;AAuCH,0DAwBC;AA7DD,iCAAmC;AACnC,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,uBAAuB;IACnC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAExE;;;;;OAKG;IACH,MAAM,cAAc,GAAG,CAAC,MAAc,EAAW,EAAE;QAC/C,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF;;OAEG;IACH,MAAM,UAAU,GAAG,GAAS,EAAE;QAC1B,WAAW,EAAE,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO;QACH,cAAc;QACd,UAAU;KACb,CAAC;AACN,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * useUnregisterGlobalFormaState.ts
3
+ *
4
+ * Forma - 글로벌 FormaState 등록 해제 훅 | H /**
5
+
6
+ * 등록된 글로벌 FormaState를 메모리에서 제거하는 유틸리티
7
+ * Utility to remove registered global FormaState from memory
8
+ *
9
+ * @license MIT License
10
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
11
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in all
21
+ * copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ * SOFTWARE.
30
+ */
31
+ /**
32
+ * 글로벌 FormaState 등록 해제 훅 | Hook to unregister global FormaState
33
+ *
34
+ * 등록된 글로벌 FormaState를 메모리에서 제거합니다.
35
+ * Remove registered global FormaState from memory.
36
+ *
37
+ * @returns FormaState 등록 해제 함수들 | FormaState unregistration functions
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * function MyComponent() {
42
+ * const { unregisterState, clearStates } = useUnregisterGlobalFormaState();
43
+ *
44
+ * const handleCleanup = () => {
45
+ * // 특정 상태 제거
46
+ * const success = unregisterState('my-state-id');
47
+ * console.log(`State unregistered: ${success}`);
48
+ * };
49
+ *
50
+ * const handleReset = () => {
51
+ * // 모든 상태 제거
52
+ * clearStates();
53
+ * console.log('All states cleared');
54
+ * };
55
+ *
56
+ * return (
57
+ * <div>
58
+ * <button onClick={handleCleanup}>Remove State</button>
59
+ * <button onClick={handleReset}>Clear All</button>
60
+ * </div>
61
+ * );
62
+ * }
63
+ * ```
64
+ */
65
+ export declare function useUnregisterGlobalFormaState(): {
66
+ unregisterState: (stateId: string) => boolean;
67
+ clearStates: () => void;
68
+ };
69
+ //# sourceMappingURL=useUnregisterGlobalFormaState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalFormaState.d.ts","sourceRoot":"","sources":["../../hooks/useUnregisterGlobalFormaState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B;+BASP,MAAM,KAAG,OAAO;uBAO1B,IAAI;EAQ/B"}
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ /**
3
+ * useUnregisterGlobalFormaState.ts
4
+ *
5
+ * Forma - 글로벌 FormaState 등록 해제 훅 | H /**
6
+
7
+ * 등록된 글로벌 FormaState를 메모리에서 제거하는 유틸리티
8
+ * Utility to remove registered global FormaState from memory
9
+ *
10
+ * @license MIT License
11
+ * @copyright 2025 KIM YOUNG JIN (Kim Young Jin)
12
+ * @author KIM YOUNG JIN (ehfuse@gmail.com)
13
+ *
14
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ * of this software and associated documentation files (the "Software"), to deal
16
+ * in the Software without restriction, including without limitation the rights
17
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ * copies of the Software, and to permit persons to whom the Software is
19
+ * furnished to do so, subject to the following conditions:
20
+ *
21
+ * The above copyright notice and this permission notice shall be included in all
22
+ * copies or substantial portions of the Software.
23
+ *
24
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ * SOFTWARE.
31
+ */
32
+ Object.defineProperty(exports, "__esModule", { value: true });
33
+ exports.useUnregisterGlobalFormaState = useUnregisterGlobalFormaState;
34
+ const react_1 = require("react");
35
+ const GlobalFormaContext_1 = require("../contexts/GlobalFormaContext");
36
+ /**
37
+ * 글로벌 FormaState 등록 해제 훅 | Hook to unregister global FormaState
38
+ *
39
+ * 등록된 글로벌 FormaState를 메모리에서 제거합니다.
40
+ * Remove registered global FormaState from memory.
41
+ *
42
+ * @returns FormaState 등록 해제 함수들 | FormaState unregistration functions
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * function MyComponent() {
47
+ * const { unregisterState, clearStates } = useUnregisterGlobalFormaState();
48
+ *
49
+ * const handleCleanup = () => {
50
+ * // 특정 상태 제거
51
+ * const success = unregisterState('my-state-id');
52
+ * console.log(`State unregistered: ${success}`);
53
+ * };
54
+ *
55
+ * const handleReset = () => {
56
+ * // 모든 상태 제거
57
+ * clearStates();
58
+ * console.log('All states cleared');
59
+ * };
60
+ *
61
+ * return (
62
+ * <div>
63
+ * <button onClick={handleCleanup}>Remove State</button>
64
+ * <button onClick={handleReset}>Clear All</button>
65
+ * </div>
66
+ * );
67
+ * }
68
+ * ```
69
+ */
70
+ function useUnregisterGlobalFormaState() {
71
+ const { unregisterStore, clearStores } = (0, react_1.useContext)(GlobalFormaContext_1.GlobalFormaContext);
72
+ /**
73
+ * 특정 stateId의 글로벌 FormaState를 등록 해제합니다 | Unregister specific global FormaState
74
+ *
75
+ * @param stateId 제거할 상태 식별자 | State identifier to remove
76
+ * @returns 제거 성공 여부 | Whether removal was successful
77
+ */
78
+ const unregisterState = (stateId) => {
79
+ return unregisterStore(stateId);
80
+ };
81
+ /**
82
+ * 모든 글로벌 FormaState를 제거합니다 | Clear all global FormaStates
83
+ */
84
+ const clearStates = () => {
85
+ clearStores();
86
+ };
87
+ return {
88
+ unregisterState,
89
+ clearStates,
90
+ };
91
+ }
92
+ //# sourceMappingURL=useUnregisterGlobalFormaState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalFormaState.js","sourceRoot":"","sources":["../../hooks/useUnregisterGlobalFormaState.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;;AAuCH,sEAwBC;AA7DD,iCAAmC;AACnC,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,SAAgB,6BAA6B;IACzC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAExE;;;;;OAKG;IACH,MAAM,eAAe,GAAG,CAAC,OAAe,EAAW,EAAE;QACjD,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC,CAAC;IAEF;;OAEG;IACH,MAAM,WAAW,GAAG,GAAS,EAAE;QAC3B,WAAW,EAAE,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO;QACH,eAAe;QACf,WAAW;KACd,CAAC;AACN,CAAC"}
package/dist/index.d.ts CHANGED
@@ -29,15 +29,18 @@
29
29
  export { useForm } from "./hooks/useForm";
30
30
  export { useGlobalForm } from "./hooks/useGlobalForm";
31
31
  export { useRegisterGlobalForm } from "./hooks/useRegisterGlobalForm";
32
+ export { useUnregisterGlobalForm } from "./hooks/useUnregisterGlobalForm";
32
33
  export { useFormaState, useFieldSubscription } from "./hooks/useFormaState";
33
34
  export { useGlobalFormaState } from "./hooks/useGlobalFormaState";
34
- export { GlobalFormContext, GlobalFormProvider, } from "./contexts/GlobalFormContext";
35
+ export { useRegisterGlobalFormaState } from "./hooks/useRegisterGlobalFormaState";
36
+ export { useUnregisterGlobalFormaState } from "./hooks/useUnregisterGlobalFormaState";
37
+ export { GlobalFormaContext, GlobalFormaProvider, } from "./contexts/GlobalFormaContext";
35
38
  export { FieldStore } from "./core/FieldStore";
36
39
  export { getNestedValue, setNestedValue } from "./utils/dotNotation";
37
40
  export { isDevelopment, devWarn, devError, devLog } from "./utils/environment";
38
41
  export type { UseFormProps, UseFormReturn, FormValidationResult, FormChangeEvent, } from "./types/form";
39
42
  export type { UseFormaStateOptions, UseFormaStateReturn, } from "./hooks/useFormaState";
40
- export type { UseGlobalFormProps, UseGlobalFormReturn, UseGlobalFormaStateProps, UseGlobalFormaStateReturn, GlobalFormProviderProps, GlobalFormContextType, GlobalFormStoreMap, GlobalFormMetadata, GlobalFormEvent, GlobalFormEventListener, GlobalFormConfig, GlobalFormMiddleware, ExtendedGlobalFormProviderProps, } from "./types/globalForm";
43
+ export type { UseGlobalFormProps, UseGlobalFormReturn, UseGlobalFormaStateProps, UseGlobalFormaStateReturn, UseRegisterGlobalFormProps, UseRegisterGlobalFormReturn, UseRegisterGlobalFormaStateProps, UseRegisterGlobalFormaStateReturn, UseUnregisterGlobalFormReturn, UseUnregisterGlobalFormaStateReturn, GlobalFormaProviderProps, GlobalFormaContextType, GlobalFormStoreMap, GlobalFormMetadata, GlobalFormEvent, GlobalFormEventListener, GlobalFormConfig, GlobalFormMiddleware, ExtendedGlobalFormaProviderProps, } from "./types/globalForm";
41
44
  /**
42
45
  * Forma library version
43
46
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EACH,iBAAiB,EACjB,kBAAkB,GACrB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,M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AmB,GACtB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI/E,YAAY,EACR,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,eAAe,GAClB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACR,oBAAoB,EACpB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAG/B,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,6BAA6B,EAC7B,mCAAmC,EACnC,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,GACnC,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,aAAa,UAAU,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;CAejB,CAAC"}
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@
28
28
  * SOFTWARE.
29
29
  */
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.FORMA_METADATA = exports.FORMA_VERSION = exports.devLog = exports.devError = exports.devWarn = exports.isDevelopment = exports.setNestedValue = exports.getNestedValue = exports.FieldStore = exports.GlobalFormProvider = exports.GlobalFormContext = exports.useGlobalFormaState = exports.useFieldSubscription = exports.useFormaState = exports.useRegisterGlobalForm = exports.useGlobalForm = exports.useForm = void 0;
31
+ exports.FORMA_METADATA = exports.FORMA_VERSION = exports.devLog = exports.devError = exports.devWarn = exports.isDevelopment = exports.setNestedValue = exports.getNestedValue = exports.FieldStore = exports.GlobalFormaProvider = exports.GlobalFormaContext = exports.useUnregisterGlobalFormaState = exports.useRegisterGlobalFormaState = exports.useGlobalFormaState = exports.useFieldSubscription = exports.useFormaState = exports.useUnregisterGlobalForm = exports.useRegisterGlobalForm = exports.useGlobalForm = exports.useForm = void 0;
32
32
  // ===== Core Hooks =====
33
33
  var useForm_1 = require("./hooks/useForm");
34
34
  Object.defineProperty(exports, "useForm", { enumerable: true, get: function () { return useForm_1.useForm; } });
@@ -36,15 +36,21 @@ var useGlobalForm_1 = require("./hooks/useGlobalForm");
36
36
  Object.defineProperty(exports, "useGlobalForm", { enumerable: true, get: function () { return useGlobalForm_1.useGlobalForm; } });
37
37
  var useRegisterGlobalForm_1 = require("./hooks/useRegisterGlobalForm");
38
38
  Object.defineProperty(exports, "useRegisterGlobalForm", { enumerable: true, get: function () { return useRegisterGlobalForm_1.useRegisterGlobalForm; } });
39
+ var useUnregisterGlobalForm_1 = require("./hooks/useUnregisterGlobalForm");
40
+ Object.defineProperty(exports, "useUnregisterGlobalForm", { enumerable: true, get: function () { return useUnregisterGlobalForm_1.useUnregisterGlobalForm; } });
39
41
  var useFormaState_1 = require("./hooks/useFormaState");
40
42
  Object.defineProperty(exports, "useFormaState", { enumerable: true, get: function () { return useFormaState_1.useFormaState; } });
41
43
  Object.defineProperty(exports, "useFieldSubscription", { enumerable: true, get: function () { return useFormaState_1.useFieldSubscription; } });
42
44
  var useGlobalFormaState_1 = require("./hooks/useGlobalFormaState");
43
45
  Object.defineProperty(exports, "useGlobalFormaState", { enumerable: true, get: function () { return useGlobalFormaState_1.useGlobalFormaState; } });
46
+ var useRegisterGlobalFormaState_1 = require("./hooks/useRegisterGlobalFormaState");
47
+ Object.defineProperty(exports, "useRegisterGlobalFormaState", { enumerable: true, get: function () { return useRegisterGlobalFormaState_1.useRegisterGlobalFormaState; } });
48
+ var useUnregisterGlobalFormaState_1 = require("./hooks/useUnregisterGlobalFormaState");
49
+ Object.defineProperty(exports, "useUnregisterGlobalFormaState", { enumerable: true, get: function () { return useUnregisterGlobalFormaState_1.useUnregisterGlobalFormaState; } });
44
50
  // ===== Context & Providers =====
45
- var GlobalFormContext_1 = require("./contexts/GlobalFormContext");
46
- Object.defineProperty(exports, "GlobalFormContext", { enumerable: true, get: function () { return GlobalFormContext_1.GlobalFormContext; } });
47
- Object.defineProperty(exports, "GlobalFormProvider", { enumerable: true, get: function () { return GlobalFormContext_1.GlobalFormProvider; } });
51
+ var GlobalFormaContext_1 = require("./contexts/GlobalFormaContext");
52
+ Object.defineProperty(exports, "GlobalFormaContext", { enumerable: true, get: function () { return GlobalFormaContext_1.GlobalFormaContext; } });
53
+ Object.defineProperty(exports, "GlobalFormaProvider", { enumerable: true, get: function () { return GlobalFormaContext_1.GlobalFormaProvider; } });
48
54
  // ===== Core Classes =====
49
55
  var FieldStore_1 = require("./core/FieldStore");
50
56
  Object.defineProperty(exports, "FieldStore", { enumerable: true, get: function () { return FieldStore_1.FieldStore; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;AAEH,yBAAyB;AACzB,2CAA0C;AAAjC,kGAAA,OAAO,OAAA;AAChB,uDAAsD;AAA7C,8GAAA,aAAa,OAAA;AACtB,uEAAsE;AAA7D,8HAAA,qBAAqB,OAAA;AAC9B,uDAA4E;AAAnE,8GAAA,aAAa,OAAA;AAAE,qHAAA,oBAAoB,OAAA;AAC5C,mEAAkE;AAAzD,0HAAA,mBAAmB,OAAA;AAE5B,kCAAkC;AAClC,kEAGsC;AAFlC,sHAAA,iBAAiB,OAAA;AACjB,uHAAA,kBAAkB,OAAA;AAGtB,2BAA2B;AAC3B,gDAA+C;AAAtC,wGAAA,UAAU,OAAA;AAEnB,gCAAgC;AAChC,mDAAqE;AAA5D,6GAAA,cAAc,OAAA;AAAE,6GAAA,cAAc,OAAA;AACvC,mD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