@ehfuse/forma 1.4.2 → 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 (81) 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 +11 -2
  10. package/dist/esm/hooks/useForm.js.map +1 -1
  11. package/dist/esm/hooks/useFormaState.d.ts +2 -0
  12. package/dist/esm/hooks/useFormaState.d.ts.map +1 -1
  13. package/dist/esm/hooks/useFormaState.js +14 -15
  14. package/dist/esm/hooks/useFormaState.js.map +1 -1
  15. package/dist/esm/hooks/useGlobalForm.js +2 -2
  16. package/dist/esm/hooks/useGlobalForm.js.map +1 -1
  17. package/dist/esm/hooks/useGlobalFormaState.js +2 -2
  18. package/dist/esm/hooks/useGlobalFormaState.js.map +1 -1
  19. package/dist/esm/hooks/useRegisterGlobalForm.js +2 -2
  20. package/dist/esm/hooks/useRegisterGlobalForm.js.map +1 -1
  21. package/dist/esm/hooks/useRegisterGlobalFormaState.d.ts +55 -0
  22. package/dist/esm/hooks/useRegisterGlobalFormaState.d.ts.map +1 -0
  23. package/dist/esm/hooks/useRegisterGlobalFormaState.js +64 -0
  24. package/dist/esm/hooks/useRegisterGlobalFormaState.js.map +1 -0
  25. package/dist/esm/hooks/useUnregisterGlobalForm.d.ts +68 -0
  26. package/dist/esm/hooks/useUnregisterGlobalForm.d.ts.map +1 -0
  27. package/dist/esm/hooks/useUnregisterGlobalForm.js +88 -0
  28. package/dist/esm/hooks/useUnregisterGlobalForm.js.map +1 -0
  29. package/dist/esm/hooks/useUnregisterGlobalFormaState.d.ts +69 -0
  30. package/dist/esm/hooks/useUnregisterGlobalFormaState.d.ts.map +1 -0
  31. package/dist/esm/hooks/useUnregisterGlobalFormaState.js +89 -0
  32. package/dist/esm/hooks/useUnregisterGlobalFormaState.js.map +1 -0
  33. package/dist/esm/index.d.ts +5 -2
  34. package/dist/esm/index.d.ts.map +1 -1
  35. package/dist/esm/index.js +4 -1
  36. package/dist/esm/index.js.map +1 -1
  37. package/dist/esm/types/globalForm.d.ts +56 -7
  38. package/dist/esm/types/globalForm.d.ts.map +1 -1
  39. package/dist/esm/types/globalForm.js.map +1 -1
  40. package/dist/esm/types/index.d.ts +1 -1
  41. package/dist/esm/types/index.d.ts.map +1 -1
  42. package/dist/esm/types/index.js.map +1 -1
  43. package/dist/hooks/useForm.js +10 -1
  44. package/dist/hooks/useForm.js.map +1 -1
  45. package/dist/hooks/useFormaState.d.ts +2 -0
  46. package/dist/hooks/useFormaState.d.ts.map +1 -1
  47. package/dist/hooks/useFormaState.js +14 -15
  48. package/dist/hooks/useFormaState.js.map +1 -1
  49. package/dist/hooks/useGlobalForm.js +2 -2
  50. package/dist/hooks/useGlobalForm.js.map +1 -1
  51. package/dist/hooks/useGlobalFormaState.js +2 -2
  52. package/dist/hooks/useGlobalFormaState.js.map +1 -1
  53. package/dist/hooks/useRegisterGlobalForm.js +2 -2
  54. package/dist/hooks/useRegisterGlobalForm.js.map +1 -1
  55. package/dist/hooks/useRegisterGlobalFormaState.d.ts +55 -0
  56. package/dist/hooks/useRegisterGlobalFormaState.d.ts.map +1 -0
  57. package/dist/hooks/useRegisterGlobalFormaState.js +67 -0
  58. package/dist/hooks/useRegisterGlobalFormaState.js.map +1 -0
  59. package/dist/hooks/useUnregisterGlobalForm.d.ts +68 -0
  60. package/dist/hooks/useUnregisterGlobalForm.d.ts.map +1 -0
  61. package/dist/hooks/useUnregisterGlobalForm.js +91 -0
  62. package/dist/hooks/useUnregisterGlobalForm.js.map +1 -0
  63. package/dist/hooks/useUnregisterGlobalFormaState.d.ts +69 -0
  64. package/dist/hooks/useUnregisterGlobalFormaState.d.ts.map +1 -0
  65. package/dist/hooks/useUnregisterGlobalFormaState.js +92 -0
  66. package/dist/hooks/useUnregisterGlobalFormaState.js.map +1 -0
  67. package/dist/index.d.ts +5 -2
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +10 -4
  70. package/dist/index.js.map +1 -1
  71. package/dist/types/globalForm.d.ts +56 -7
  72. package/dist/types/globalForm.d.ts.map +1 -1
  73. package/dist/types/globalForm.js.map +1 -1
  74. package/dist/types/index.d.ts +1 -1
  75. package/dist/types/index.d.ts.map +1 -1
  76. package/dist/types/index.js.map +1 -1
  77. package/package.json +1 -1
  78. package/dist/contexts/GlobalFormContext.d.ts.map +0 -1
  79. package/dist/contexts/GlobalFormContext.js.map +0 -1
  80. package/dist/esm/contexts/GlobalFormContext.d.ts.map +0 -1
  81. package/dist/esm/contexts/GlobalFormContext.js.map +0 -1
@@ -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,64 @@
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 { useContext, useEffect } from "react";
31
+ import { GlobalFormaContext } from "../contexts/GlobalFormaContext";
32
+ /**
33
+ * 기존 useFormaState를 글로벌 상태로 등록하는 훅 | Hook to register existing useFormaState as global state
34
+ *
35
+ * 이미 만들어진 로컬 FormaState를 글로벌 상태로 공유하고 싶을 때 사용합니다.
36
+ * Use this when you want to share an already created local FormaState as global state.
37
+ *
38
+ * @template T FormaState 데이터의 타입 | FormaState data type
39
+ * @param stateId 글로벌 상태 식별자 | Global state identifier
40
+ * @param formaState 등록할 useFormaState 인스턴스 | useFormaState instance to register
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * function MyComponent() {
45
+ * const formaState = useFormaState({ name: '', email: '', settings: { theme: 'light' } });
46
+ *
47
+ * // 로컬 FormaState를 글로벌로 등록
48
+ * useRegisterGlobalFormaState('my-state-id', formaState);
49
+ *
50
+ * // 이제 다른 컴포넌트에서 useGlobalFormaState({ stateId: 'my-state-id' })로 접근 가능
51
+ * return <div>...</div>;
52
+ * }
53
+ * ```
54
+ */
55
+ export function useRegisterGlobalFormaState(stateId, formaState) {
56
+ const { registerStore } = useContext(GlobalFormaContext);
57
+ useEffect(() => {
58
+ // useFormaState의 내부 store를 글로벌에 등록 | Register useFormaState's internal store globally
59
+ if (formaState._store) {
60
+ registerStore(stateId, formaState._store);
61
+ }
62
+ }, [stateId, formaState._store, registerStore]);
63
+ }
64
+ //# sourceMappingURL=useRegisterGlobalFormaState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterGlobalFormaState.js","sourceRoot":"","sources":["../../../hooks/useRegisterGlobalFormaState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,2BAA2B,CACvC,OAAe,EACf,UAAkC;IAElC,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAEzD,SAAS,CAAC,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,88 @@
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
+ import { useContext } from "react";
31
+ import { GlobalFormaContext } from "../contexts/GlobalFormaContext";
32
+ /**
33
+ * 글로벌 폼 등록 해제 훅 | Hook to unregister global form
34
+ *
35
+ * 등록된 글로벌 폼을 메모리에서 제거합니다.
36
+ * Remove registered global form from memory.
37
+ *
38
+ * @returns 폼 등록 해제 함수들 | Form unregistration functions
39
+ *
40
+ * @example
41
+ * ```typescript
42
+ * function MyComponent() {
43
+ * const { unregisterForm, clearForms } = useUnregisterGlobalForm();
44
+ *
45
+ * const handleCleanup = () => {
46
+ * // 특정 폼 제거
47
+ * const success = unregisterForm('my-form-id');
48
+ * console.log(`Form unregistered: ${success}`);
49
+ * };
50
+ *
51
+ * const handleReset = () => {
52
+ * // 모든 폼 제거
53
+ * clearForms();
54
+ * console.log('All forms cleared');
55
+ * };
56
+ *
57
+ * return (
58
+ * <div>
59
+ * <button onClick={handleCleanup}>Remove Form</button>
60
+ * <button onClick={handleReset}>Clear All</button>
61
+ * </div>
62
+ * );
63
+ * }
64
+ * ```
65
+ */
66
+ export function useUnregisterGlobalForm() {
67
+ const { unregisterStore, clearStores } = useContext(GlobalFormaContext);
68
+ /**
69
+ * 특정 formId의 글로벌 폼을 등록 해제합니다 | Unregister specific global form
70
+ *
71
+ * @param formId 제거할 폼 식별자 | Form identifier to remove
72
+ * @returns 제거 성공 여부 | Whether removal was successful
73
+ */
74
+ const unregisterForm = (formId) => {
75
+ return unregisterStore(formId);
76
+ };
77
+ /**
78
+ * 모든 글로벌 폼을 제거합니다 | Clear all global forms
79
+ */
80
+ const clearForms = () => {
81
+ clearStores();
82
+ };
83
+ return {
84
+ unregisterForm,
85
+ clearForms,
86
+ };
87
+ }
88
+ //# sourceMappingURL=useUnregisterGlobalForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalForm.js","sourceRoot":"","sources":["../../../hooks/useUnregisterGlobalForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,uBAAuB;IACnC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,kBAAkB,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,89 @@
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
+ import { useContext } from "react";
32
+ import { GlobalFormaContext } from "../contexts/GlobalFormaContext";
33
+ /**
34
+ * 글로벌 FormaState 등록 해제 훅 | Hook to unregister global FormaState
35
+ *
36
+ * 등록된 글로벌 FormaState를 메모리에서 제거합니다.
37
+ * Remove registered global FormaState from memory.
38
+ *
39
+ * @returns FormaState 등록 해제 함수들 | FormaState unregistration functions
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * function MyComponent() {
44
+ * const { unregisterState, clearStates } = useUnregisterGlobalFormaState();
45
+ *
46
+ * const handleCleanup = () => {
47
+ * // 특정 상태 제거
48
+ * const success = unregisterState('my-state-id');
49
+ * console.log(`State unregistered: ${success}`);
50
+ * };
51
+ *
52
+ * const handleReset = () => {
53
+ * // 모든 상태 제거
54
+ * clearStates();
55
+ * console.log('All states cleared');
56
+ * };
57
+ *
58
+ * return (
59
+ * <div>
60
+ * <button onClick={handleCleanup}>Remove State</button>
61
+ * <button onClick={handleReset}>Clear All</button>
62
+ * </div>
63
+ * );
64
+ * }
65
+ * ```
66
+ */
67
+ export function useUnregisterGlobalFormaState() {
68
+ const { unregisterStore, clearStores } = useContext(GlobalFormaContext);
69
+ /**
70
+ * 특정 stateId의 글로벌 FormaState를 등록 해제합니다 | Unregister specific global FormaState
71
+ *
72
+ * @param stateId 제거할 상태 식별자 | State identifier to remove
73
+ * @returns 제거 성공 여부 | Whether removal was successful
74
+ */
75
+ const unregisterState = (stateId) => {
76
+ return unregisterStore(stateId);
77
+ };
78
+ /**
79
+ * 모든 글로벌 FormaState를 제거합니다 | Clear all global FormaStates
80
+ */
81
+ const clearStates = () => {
82
+ clearStores();
83
+ };
84
+ return {
85
+ unregisterState,
86
+ clearStates,
87
+ };
88
+ }
89
+ //# sourceMappingURL=useUnregisterGlobalFormaState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnregisterGlobalFormaState.js","sourceRoot":"","sources":["../../../hooks/useUnregisterGlobalFormaState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,6BAA6B;IACzC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,kBAAkB,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"}
@@ -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,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,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,gBAA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,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/esm/index.js CHANGED
@@ -30,10 +30,13 @@
30
30
  export { useForm } from "./hooks/useForm";
31
31
  export { useGlobalForm } from "./hooks/useGlobalForm";
32
32
  export { useRegisterGlobalForm } from "./hooks/useRegisterGlobalForm";
33
+ export { useUnregisterGlobalForm } from "./hooks/useUnregisterGlobalForm";
33
34
  export { useFormaState, useFieldSubscription } from "./hooks/useFormaState";
34
35
  export { useGlobalFormaState } from "./hooks/useGlobalFormaState";
36
+ export { useRegisterGlobalFormaState } from "./hooks/useRegisterGlobalFormaState";
37
+ export { useUnregisterGlobalFormaState } from "./hooks/useUnregisterGlobalFormaState";
35
38
  // ===== Context & Providers =====
36
- export { GlobalFormContext, GlobalFormProvider, } from "./contexts/GlobalFormContext";
39
+ export { GlobalFormaContext, GlobalFormaProvider, } from "./contexts/GlobalFormaContext";
37
40
  // ===== Core Classes =====
38
41
  export { FieldStore } from "./core/FieldStore";
39
42
  // ===== Utility Functions =====
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,yBAAyB;AACzB,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,oBA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AAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAEtF,kCAAkC;AAClC,OAAO,EACH,kBAAkB,EAClB,mBAAmB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,2BAA2B;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,gCAAgC;AAChC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAwC/E;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC;AAErC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,+BAA+B;IACvC,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE;QACN,4DAA4D;QAC5D,kDAAkD;QAClD,wCAAwC;QACxC,8BAA8B;QAC9B,6BAA6B;QAC7B,qCAAqC;KACxC;CACK,CAAC"}
@@ -25,14 +25,15 @@
25
25
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  * SOFTWARE.
27
27
  */
28
+ import { ReactNode } from "react";
28
29
  import { FieldStore } from "../core/FieldStore";
29
30
  import { UseFormReturn } from "./form";
30
31
  import { UseFormaStateReturn } from "../hooks/useFormaState";
31
32
  /**
32
- * 전역 컨텍스트 제공자의 Props 타입 | Props type for global form context provider
33
+ * 글로벌 Forma Provider Props | Global Forma provider props
33
34
  */
34
- export interface GlobalFormProviderProps {
35
- children: React.ReactNode;
35
+ export interface GlobalFormaProviderProps {
36
+ children: ReactNode;
36
37
  }
37
38
  /**
38
39
  * useGlobalForm 훅의 Props 타입 | useGlobalForm hook Props type
@@ -74,6 +75,52 @@ export interface UseGlobalFormaStateReturn<T extends Record<string, any>> extend
74
75
  /** 글로벌 스토어 직접 접근 (UseFormaStateReturn에도 있지만 명시적으로 재정의) | Direct access to global store */
75
76
  _store: FieldStore<T>;
76
77
  }
78
+ /**
79
+ * useRegisterGlobalForm Hook Props | useRegisterGlobalForm 훅 Props
80
+ */
81
+ export interface UseRegisterGlobalFormProps<T extends Record<string, any>> {
82
+ /** 글로벌 폼 식별자 | Global form identifier */
83
+ formId: string;
84
+ /** 등록할 useForm 인스턴스 | useForm instance to register */
85
+ form: UseFormReturn<T>;
86
+ }
87
+ /**
88
+ * useRegisterGlobalForm Hook Return | useRegisterGlobalForm 훅 반환값
89
+ */
90
+ export interface UseRegisterGlobalFormReturn {
91
+ }
92
+ /**
93
+ * useRegisterGlobalFormaState Hook Props | useRegisterGlobalFormaState 훅 Props
94
+ */
95
+ export interface UseRegisterGlobalFormaStateProps<T extends Record<string, any>> {
96
+ /** 글로벌 상태 식별자 | Global state identifier */
97
+ stateId: string;
98
+ /** 등록할 useFormaState 인스턴스 | useFormaState instance to register */
99
+ formaState: UseFormaStateReturn<T>;
100
+ }
101
+ /**
102
+ * useRegisterGlobalFormaState Hook Return | useRegisterGlobalFormaState 훅 반환값
103
+ */
104
+ export interface UseRegisterGlobalFormaStateReturn {
105
+ }
106
+ /**
107
+ * useUnregisterGlobalForm Hook Return | useUnregisterGlobalForm 훅 반환값
108
+ */
109
+ export interface UseUnregisterGlobalFormReturn {
110
+ /** 특정 폼 등록 해제 | Unregister specific form */
111
+ unregisterForm: (formId: string) => boolean;
112
+ /** 모든 폼 제거 | Clear all forms */
113
+ clearForms: () => void;
114
+ }
115
+ /**
116
+ * useUnregisterGlobalFormaState Hook Return | useUnregisterGlobalFormaState 훅 반환값
117
+ */
118
+ export interface UseUnregisterGlobalFormaStateReturn {
119
+ /** 특정 상태 등록 해제 | Unregister specific state */
120
+ unregisterState: (stateId: string) => boolean;
121
+ /** 모든 상태 제거 | Clear all states */
122
+ clearStates: () => void;
123
+ }
77
124
  /**
78
125
  * 전역 폼 스토어 맵의 타입 | Type for global form store map
79
126
  * Key: formId (string)
@@ -266,9 +313,9 @@ export interface GlobalFormMiddleware {
266
313
  onFormDestroy?: (formId: string) => void;
267
314
  }
268
315
  /**
269
- * 전역 Provider에 확장된 Props
316
+ * 전역 Forma Provider에 확장된 Props
270
317
  */
271
- export interface ExtendedGlobalFormProviderProps extends GlobalFormProviderProps {
318
+ export interface ExtendedGlobalFormaProviderProps extends GlobalFormaProviderProps {
272
319
  /** 전역 폼 설정 */
273
320
  config?: GlobalFormConfig;
274
321
  /** 미들웨어 목록 */
@@ -277,10 +324,12 @@ export interface ExtendedGlobalFormProviderProps extends GlobalFormProviderProps
277
324
  enableDevTools?: boolean;
278
325
  }
279
326
  /**
280
- * 글로벌 컨텍스트 타입 / Global form context type
327
+ * 글로벌 Forma 컨텍스트 타입 / Global Forma context type
281
328
  */
282
- export interface GlobalFormContextType {
329
+ export interface GlobalFormaContextType {
283
330
  getOrCreateStore: <T extends Record<string, any>>(formId: string) => FieldStore<T>;
284
331
  registerStore: <T extends Record<string, any>>(formId: string, store: FieldStore<T>) => void;
332
+ unregisterStore: (formId: string) => boolean;
333
+ clearStores: () => void;
285
334
  }
286
335
  //# sourceMappingURL=globalForm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"globalForm.d.ts","sourceRoot":"","sources":["../../../types/globalForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,KAAK,CAAC,SAA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AAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5C,MAAM,EAAE,MAAM,KACb,UAAU,CAAC,CAAC,CAAC,CAAC;IACnB,aAAa,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KACnB,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"globalForm.js","sourceRoot":"","sources":["../../../types/globalForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AA0KH;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACtC,YACI,OAAe,EACR,MAAe,EACf,SAAkB;QAEzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,WAAM,GAAN,MAAM,CAAS;QACf,cAAS,GAAT,SAAS,CAAS;QAGzB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAClC,CAAC;CACJ"}
1
+ {"version":3,"file":"globalForm.js","sourceRoot":"","sources":["../../../types/globalForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAmOH;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACtC,YACI,OAAe,EACR,MAAe,EACf,SAAkB;QAEzB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,WAAM,GAAN,MAAM,CAAS;QACf,cAAS,GAAT,SAAS,CAAS;QAGzB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAClC,CAAC;CACJ"}