@molecule/app-angular 3.3.1 → 3.6.0

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 (114) hide show
  1. package/README.md +4049 -1255
  2. package/dist/chat.d.ts.map +1 -1
  3. package/dist/chat.js +3 -2
  4. package/dist/chat.js.map +1 -1
  5. package/dist/hooks/external-store.d.ts +32 -0
  6. package/dist/hooks/external-store.d.ts.map +1 -0
  7. package/dist/hooks/external-store.js +62 -0
  8. package/dist/hooks/external-store.js.map +1 -0
  9. package/dist/hooks/index.d.ts +24 -0
  10. package/dist/hooks/index.d.ts.map +1 -0
  11. package/dist/hooks/index.js +24 -0
  12. package/dist/hooks/index.js.map +1 -0
  13. package/dist/hooks/use-ai-models.d.ts +53 -0
  14. package/dist/hooks/use-ai-models.d.ts.map +1 -0
  15. package/dist/hooks/use-ai-models.js +167 -0
  16. package/dist/hooks/use-ai-models.js.map +1 -0
  17. package/dist/hooks/use-async.d.ts +129 -0
  18. package/dist/hooks/use-async.d.ts.map +1 -0
  19. package/dist/hooks/use-async.js +194 -0
  20. package/dist/hooks/use-async.js.map +1 -0
  21. package/dist/hooks/use-auth-flows.d.ts +226 -0
  22. package/dist/hooks/use-auth-flows.d.ts.map +1 -0
  23. package/dist/hooks/use-auth-flows.js +481 -0
  24. package/dist/hooks/use-auth-flows.js.map +1 -0
  25. package/dist/hooks/use-auth.d.ts +85 -0
  26. package/dist/hooks/use-auth.d.ts.map +1 -0
  27. package/dist/hooks/use-auth.js +104 -0
  28. package/dist/hooks/use-auth.js.map +1 -0
  29. package/dist/hooks/use-forms.d.ts +174 -0
  30. package/dist/hooks/use-forms.d.ts.map +1 -0
  31. package/dist/hooks/use-forms.js +221 -0
  32. package/dist/hooks/use-forms.js.map +1 -0
  33. package/dist/hooks/use-http.d.ts +163 -0
  34. package/dist/hooks/use-http.d.ts.map +1 -0
  35. package/dist/hooks/use-http.js +198 -0
  36. package/dist/hooks/use-http.js.map +1 -0
  37. package/dist/hooks/use-ide.d.ts +208 -0
  38. package/dist/hooks/use-ide.d.ts.map +1 -0
  39. package/dist/hooks/use-ide.js +217 -0
  40. package/dist/hooks/use-ide.js.map +1 -0
  41. package/dist/hooks/use-logger.d.ts +40 -0
  42. package/dist/hooks/use-logger.d.ts.map +1 -0
  43. package/dist/hooks/use-logger.js +56 -0
  44. package/dist/hooks/use-logger.js.map +1 -0
  45. package/dist/hooks/use-native.d.ts +218 -0
  46. package/dist/hooks/use-native.d.ts.map +1 -0
  47. package/dist/hooks/use-native.js +173 -0
  48. package/dist/hooks/use-native.js.map +1 -0
  49. package/dist/hooks/use-profile-form.d.ts +113 -0
  50. package/dist/hooks/use-profile-form.d.ts.map +1 -0
  51. package/dist/hooks/use-profile-form.js +253 -0
  52. package/dist/hooks/use-profile-form.js.map +1 -0
  53. package/dist/hooks/use-router.d.ts +219 -0
  54. package/dist/hooks/use-router.d.ts.map +1 -0
  55. package/dist/hooks/use-router.js +266 -0
  56. package/dist/hooks/use-router.js.map +1 -0
  57. package/dist/hooks/use-storage.d.ts +142 -0
  58. package/dist/hooks/use-storage.d.ts.map +1 -0
  59. package/dist/hooks/use-storage.js +299 -0
  60. package/dist/hooks/use-storage.js.map +1 -0
  61. package/dist/hooks/use-store.d.ts +81 -0
  62. package/dist/hooks/use-store.d.ts.map +1 -0
  63. package/dist/hooks/use-store.js +143 -0
  64. package/dist/hooks/use-store.js.map +1 -0
  65. package/dist/hooks/use-theme.d.ts +59 -0
  66. package/dist/hooks/use-theme.d.ts.map +1 -0
  67. package/dist/hooks/use-theme.js +117 -0
  68. package/dist/hooks/use-theme.js.map +1 -0
  69. package/dist/hooks/use-translation.d.ts +91 -0
  70. package/dist/hooks/use-translation.d.ts.map +1 -0
  71. package/dist/hooks/use-translation.js +152 -0
  72. package/dist/hooks/use-translation.js.map +1 -0
  73. package/dist/hooks/use-verify-payment-return.d.ts +86 -0
  74. package/dist/hooks/use-verify-payment-return.d.ts.map +1 -0
  75. package/dist/hooks/use-verify-payment-return.js +167 -0
  76. package/dist/hooks/use-verify-payment-return.js.map +1 -0
  77. package/dist/hooks/use-version.d.ts +49 -0
  78. package/dist/hooks/use-version.d.ts.map +1 -0
  79. package/dist/hooks/use-version.js +70 -0
  80. package/dist/hooks/use-version.js.map +1 -0
  81. package/dist/i18n-reactive.d.ts +2 -5
  82. package/dist/i18n-reactive.d.ts.map +1 -1
  83. package/dist/i18n-reactive.js.map +1 -1
  84. package/dist/index.d.ts +8 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +8 -0
  87. package/dist/index.js.map +1 -1
  88. package/dist/inject.d.ts +24 -0
  89. package/dist/inject.d.ts.map +1 -0
  90. package/dist/inject.js +33 -0
  91. package/dist/inject.js.map +1 -0
  92. package/dist/link.d.ts +63 -0
  93. package/dist/link.d.ts.map +1 -0
  94. package/dist/link.js +82 -0
  95. package/dist/link.js.map +1 -0
  96. package/dist/maybe-signal.d.ts +26 -0
  97. package/dist/maybe-signal.d.ts.map +1 -0
  98. package/dist/maybe-signal.js +20 -0
  99. package/dist/maybe-signal.js.map +1 -0
  100. package/dist/providers.d.ts +24 -0
  101. package/dist/providers.d.ts.map +1 -1
  102. package/dist/providers.js +44 -3
  103. package/dist/providers.js.map +1 -1
  104. package/dist/session-ready.d.ts +41 -0
  105. package/dist/session-ready.d.ts.map +1 -0
  106. package/dist/session-ready.js +79 -0
  107. package/dist/session-ready.js.map +1 -0
  108. package/dist/tokens.d.ts +15 -0
  109. package/dist/tokens.d.ts.map +1 -1
  110. package/dist/tokens.js +12 -0
  111. package/dist/tokens.js.map +1 -1
  112. package/dist/types.d.ts +14 -1
  113. package/dist/types.d.ts.map +1 -1
  114. package/package.json +5 -5
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Angular functions for the IDE services, mirroring `useWorkspace`,
3
+ * `useWorkspaceProvider`, `useEditor`, `useEditorProvider`, `usePreview` and
4
+ * `usePreviewProvider` from `@molecule/app-react`.
5
+ *
6
+ * @module
7
+ */
8
+ import { computed, DestroyRef, inject, signal } from '@angular/core';
9
+ import { injectProvider } from '../inject.js';
10
+ import { EDITOR_PROVIDER, PREVIEW_PROVIDER, WORKSPACE_PROVIDER } from '../tokens.js';
11
+ import { useExternalStore } from './external-store.js';
12
+ /**
13
+ * The workspace provider registered by `provideMolecule({ workspace })` or
14
+ * `provideWorkspace`. Call it in an injection context.
15
+ *
16
+ * @returns The workspace provider.
17
+ * @throws {Error} When no workspace provider is registered.
18
+ */
19
+ export function useWorkspaceProvider() {
20
+ return injectProvider(WORKSPACE_PROVIDER, 'useWorkspaceOutsideProvider', 'useWorkspaceProvider must be used within a WorkspaceProvider');
21
+ }
22
+ /**
23
+ * IDE workspace layout management. Call it in an injection context (a
24
+ * component field initializer or constructor).
25
+ *
26
+ * @returns The workspace state as signals and the layout actions.
27
+ */
28
+ export function useWorkspace() {
29
+ const provider = useWorkspaceProvider();
30
+ // Snapshot cache: a bond without getState builds its answers fresh, and the
31
+ // emitted state is cached here so the read after a notification returns the
32
+ // emitted object (React's cachedRef).
33
+ let cached = null;
34
+ const read = () => {
35
+ // A bond with getState answers with the full state, the same object until it changes.
36
+ const full = provider.getState?.();
37
+ if (full)
38
+ return full;
39
+ const layout = provider.getLayout();
40
+ // Without getState, only the layout is readable before the first subscribe
41
+ // callback; the rest starts at the core's initial values. Use a lightweight cache comparison.
42
+ const prev = cached;
43
+ if (prev && prev.layout === layout) {
44
+ return prev;
45
+ }
46
+ const next = {
47
+ layout,
48
+ activePanel: null,
49
+ collapsedPanels: new Set(),
50
+ isFullscreen: false,
51
+ };
52
+ cached = next;
53
+ return next;
54
+ };
55
+ const state = useExternalStore(read, (onStoreChange) => {
56
+ return provider.subscribe((next) => {
57
+ cached = next;
58
+ onStoreChange();
59
+ });
60
+ });
61
+ const togglePanel = (panelId) => provider.togglePanel(panelId);
62
+ const resizePanel = (panelId, size) => provider.resizePanel(panelId, size);
63
+ const setActivePanel = (panelId) => provider.setActivePanel(panelId);
64
+ const resetLayout = () => provider.resetLayout();
65
+ return {
66
+ layout: computed(() => state().layout),
67
+ activePanel: computed(() => state().activePanel),
68
+ collapsedPanels: computed(() => state().collapsedPanels),
69
+ togglePanel,
70
+ resizePanel,
71
+ setActivePanel,
72
+ resetLayout,
73
+ };
74
+ }
75
+ /**
76
+ * The editor provider registered by `provideMolecule({ editor })` or
77
+ * `provideEditor`. Call it in an injection context.
78
+ *
79
+ * @returns The editor provider.
80
+ * @throws {Error} When no editor provider is registered.
81
+ */
82
+ export function useEditorProvider() {
83
+ return injectProvider(EDITOR_PROVIDER, 'useEditorOutsideProvider', 'useEditorProvider must be used within an EditorProvider');
84
+ }
85
+ /**
86
+ * Code editor management. Call it in an injection context (a component field
87
+ * initializer or constructor).
88
+ *
89
+ * `tabs` and `activeFile` always come from the provider's own tab list:
90
+ * `activeFile` is the path of the tab marked `isActive`, or `null` when no
91
+ * tab is. They are read at mount (tabs opened before the component mounted
92
+ * show at once), on every provider change event, and after each action that
93
+ * changes the tab list (`openFile`, `closeFile`, `setActiveTab`, `openDiff`,
94
+ * `closeDiff`, `pinTab`).
95
+ *
96
+ * @returns Editor state as signals and the editor actions.
97
+ */
98
+ export function useEditor() {
99
+ const provider = useEditorProvider();
100
+ const destroyRef = inject(DestroyRef);
101
+ const tabs = signal(provider.getTabs(), /* @ts-ignore */
102
+ ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
103
+ const activeFile = computed(() => tabs().find((tab) => tab.isActive)?.path ?? null, /* @ts-ignore */
104
+ ...(ngDevMode ? [{ debugName: "activeFile" }] : /* istanbul ignore next */ []));
105
+ // Re-reads the provider's tab list, which also carries the active tab.
106
+ const syncTabs = () => tabs.set(provider.getTabs());
107
+ // Subscribe to changes to update tabs and active file. Read once on
108
+ // subscribing too: a change between the first read and this subscription, or
109
+ // a replaced provider, sends no event this subscription could see.
110
+ const unsubscribe = provider.onChange(syncTabs);
111
+ syncTabs();
112
+ destroyRef.onDestroy(unsubscribe);
113
+ const openFile = (file) => {
114
+ provider.openFile(file);
115
+ syncTabs();
116
+ };
117
+ const closeFile = (path) => {
118
+ provider.closeFile(path);
119
+ syncTabs();
120
+ };
121
+ const getContent = () => provider.getContent();
122
+ const setContent = (path, content) => provider.setContent(path, content);
123
+ const setActiveTab = (path) => {
124
+ provider.setActiveTab(path);
125
+ syncTabs();
126
+ };
127
+ const mount = (...args) => provider.mount(...args);
128
+ const dispose = () => provider.dispose();
129
+ const focus = () => provider.focus();
130
+ const openDiff = (file) => {
131
+ provider.openDiff?.(file);
132
+ syncTabs();
133
+ };
134
+ const closeDiff = () => {
135
+ provider.closeDiff?.();
136
+ syncTabs();
137
+ };
138
+ const pinTab = (path) => {
139
+ provider.pinTab?.(path);
140
+ syncTabs();
141
+ };
142
+ const addExtraLib = (content, filePath) => {
143
+ provider.addExtraLib?.(content, filePath);
144
+ };
145
+ const onFixWithAI = (callback) => {
146
+ return provider.onFixWithAI?.(callback) ?? (() => { });
147
+ };
148
+ return {
149
+ tabs: tabs.asReadonly(),
150
+ activeFile,
151
+ openFile,
152
+ closeFile,
153
+ getContent,
154
+ setContent,
155
+ setActiveTab,
156
+ mount,
157
+ dispose,
158
+ focus,
159
+ openDiff,
160
+ closeDiff,
161
+ pinTab,
162
+ addExtraLib,
163
+ onFixWithAI,
164
+ };
165
+ }
166
+ /**
167
+ * The preview provider registered by `provideMolecule({ preview })` or
168
+ * `providePreview`. Call it in an injection context.
169
+ *
170
+ * @returns The preview provider.
171
+ * @throws {Error} When no preview provider is registered.
172
+ */
173
+ export function usePreviewProvider() {
174
+ return injectProvider(PREVIEW_PROVIDER, 'usePreviewOutsideProvider', 'usePreviewProvider must be used within a PreviewProvider');
175
+ }
176
+ /**
177
+ * Live preview management. Call it in an injection context (a component field
178
+ * initializer or constructor).
179
+ *
180
+ * @returns The preview state as a signal and the preview actions.
181
+ */
182
+ export function usePreview() {
183
+ const provider = usePreviewProvider();
184
+ // Snapshot cache: a provider that builds its answers fresh keeps the
185
+ // snapshot stable between notifications (React's cachedRef).
186
+ let cached = null;
187
+ const read = () => {
188
+ const next = provider.getState();
189
+ const prev = cached;
190
+ if (prev &&
191
+ prev.url === next.url &&
192
+ prev.currentUrl === next.currentUrl &&
193
+ prev.isLoading === next.isLoading &&
194
+ prev.device === next.device &&
195
+ prev.error === next.error &&
196
+ prev.isConnected === next.isConnected &&
197
+ prev.canGoBack === next.canGoBack &&
198
+ prev.canGoForward === next.canGoForward &&
199
+ prev.loadNonce === next.loadNonce) {
200
+ return prev;
201
+ }
202
+ cached = next;
203
+ return next;
204
+ };
205
+ const state = useExternalStore(read, (onStoreChange) => {
206
+ return provider.subscribe(() => onStoreChange());
207
+ });
208
+ const setUrl = (url) => provider.setUrl(url);
209
+ const refresh = () => provider.refresh();
210
+ const setDevice = (device) => provider.setDevice(device);
211
+ const openExternal = () => provider.openExternal();
212
+ const recordNavigation = (url, isReplace) => provider.recordNavigation(url, isReplace);
213
+ const back = () => provider.back();
214
+ const forward = () => provider.forward();
215
+ return { state, setUrl, refresh, setDevice, openExternal, recordNavigation, back, forward };
216
+ }
217
+ //# sourceMappingURL=use-ide.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-ide.js","sourceRoot":"","sources":["../../src/hooks/use-ide.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAe,MAAM,EAAE,MAAM,eAAe,CAAA;AAYjF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO,cAAc,CACnB,kBAAkB,EAClB,6BAA6B,EAC7B,8DAA8D,CAC/D,CAAA;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,U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;IAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAC7F,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Angular functions for loggers, mirroring `useLogger`, `useLoggerProvider`,
3
+ * `useRootLogger` and `useChildLogger` from `@molecule/app-react`.
4
+ *
5
+ * @module
6
+ */
7
+ import type { Logger, LoggerConfig, LoggerProvider } from '@molecule/app-logger';
8
+ /**
9
+ * The logger provider registered by `provideMolecule({ logger })` or
10
+ * `provideLogger`. Call it in an injection context.
11
+ *
12
+ * @returns The logger provider.
13
+ * @throws {Error} When no logger provider is registered.
14
+ */
15
+ export declare function useLoggerProvider(): LoggerProvider;
16
+ /**
17
+ * A named logger from the registered provider. Call it in an injection
18
+ * context.
19
+ *
20
+ * @param name - Logger name (usually the component or module name).
21
+ * @param config - Optional configuration; a `name` in it wins over `name`.
22
+ * @returns The logger instance.
23
+ */
24
+ export declare function useLogger(name: string, config?: Partial<LoggerConfig>): Logger;
25
+ /**
26
+ * The provider's unnamed root logger. Call it in an injection context.
27
+ *
28
+ * @returns The root logger instance.
29
+ */
30
+ export declare function useRootLogger(): Logger;
31
+ /**
32
+ * A child logger whose context rides every call. Call it in an injection
33
+ * context.
34
+ *
35
+ * @param parentName - The parent logger's name.
36
+ * @param context - Additional context included in every log call.
37
+ * @returns The child logger instance.
38
+ */
39
+ export declare function useChildLogger(parentName: string, context: Record<string, unknown>): Logger;
40
+ //# sourceMappingURL=use-logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-logger.d.ts","sourceRoot":"","sources":["../../src/hooks/use-logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAKhF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAMlD;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,MAAM,CAM9E;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAGtC;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAI3F"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Angular functions for loggers, mirroring `useLogger`, `useLoggerProvider`,
3
+ * `useRootLogger` and `useChildLogger` from `@molecule/app-react`.
4
+ *
5
+ * @module
6
+ */
7
+ import { injectProvider } from '../inject.js';
8
+ import { LOGGER_PROVIDER } from '../tokens.js';
9
+ /**
10
+ * The logger provider registered by `provideMolecule({ logger })` or
11
+ * `provideLogger`. Call it in an injection context.
12
+ *
13
+ * @returns The logger provider.
14
+ * @throws {Error} When no logger provider is registered.
15
+ */
16
+ export function useLoggerProvider() {
17
+ return injectProvider(LOGGER_PROVIDER, 'useLoggerOutsideProvider', 'useLoggerProvider must be used within a LoggerProvider');
18
+ }
19
+ /**
20
+ * A named logger from the registered provider. Call it in an injection
21
+ * context.
22
+ *
23
+ * @param name - Logger name (usually the component or module name).
24
+ * @param config - Optional configuration; a `name` in it wins over `name`.
25
+ * @returns The logger instance.
26
+ */
27
+ export function useLogger(name, config) {
28
+ const provider = useLoggerProvider();
29
+ if (config) {
30
+ return provider.createLogger({ name, ...config });
31
+ }
32
+ return provider.getLogger(name);
33
+ }
34
+ /**
35
+ * The provider's unnamed root logger. Call it in an injection context.
36
+ *
37
+ * @returns The root logger instance.
38
+ */
39
+ export function useRootLogger() {
40
+ const provider = useLoggerProvider();
41
+ return provider.getLogger();
42
+ }
43
+ /**
44
+ * A child logger whose context rides every call. Call it in an injection
45
+ * context.
46
+ *
47
+ * @param parentName - The parent logger's name.
48
+ * @param context - Additional context included in every log call.
49
+ * @returns The child logger instance.
50
+ */
51
+ export function useChildLogger(parentName, context) {
52
+ const provider = useLoggerProvider();
53
+ const parent = provider.getLogger(parentName);
54
+ return parent.withContext(context);
55
+ }
56
+ //# sourceMappingURL=use-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-logger.js","sourceRoot":"","sources":["../../src/hooks/use-logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,cAAc,CACnB,eAAe,EACf,0BAA0B,EAC1B,wDAAwD,CACzD,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,MAA8B;IACpE,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAA;IACpC,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC,CAAA;IACnD,CAAC;IACD,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;AACjC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAA;IACpC,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAA;AAC7B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,UAAkB,EAAE,OAAgC;IACjF,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAA;IACpC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;IAC7C,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;AACpC,CAAC"}
@@ -0,0 +1,218 @@
1
+ /**
2
+ * Angular functions for native capabilities, mirroring `useDevice`,
3
+ * `usePlatform`, `useCapacitorApp` and `usePush` from `@molecule/app-react`.
4
+ *
5
+ * @module
6
+ */
7
+ import { type Signal } from '@angular/core';
8
+ import type { DeviceInfo, FeatureSupport, HardwareInfo, ScreenInfo } from '@molecule/app-device';
9
+ import type { Platform } from '@molecule/app-platform';
10
+ import { type CapacitorAppOptions } from '@molecule/app-platform';
11
+ import type { NotificationActionListener, NotificationReceivedListener, PermissionStatus, PushRegisterOptions, PushToken, TokenChangeListener } from '@molecule/app-push';
12
+ import { type MaybeSignal } from '../maybe-signal.js';
13
+ /**
14
+ * What {@link useDevice} returns: the provider's info objects and its two
15
+ * helpers.
16
+ */
17
+ export interface UseDeviceResult {
18
+ /** The device info. */
19
+ deviceInfo: DeviceInfo;
20
+ /** The screen info. */
21
+ screenInfo: ScreenInfo;
22
+ /** The hardware info. */
23
+ hardwareInfo: HardwareInfo;
24
+ /** Which features this device supports. */
25
+ featureSupport: FeatureSupport;
26
+ /**
27
+ * Whether a feature is supported.
28
+ *
29
+ * @param feature - The feature to check.
30
+ * @returns Whether the feature is supported.
31
+ */
32
+ supports: (feature: keyof FeatureSupport) => boolean;
33
+ /**
34
+ * Whether the device is online.
35
+ *
36
+ * @returns Whether the device is online.
37
+ */
38
+ isOnline: () => boolean;
39
+ /**
40
+ * Whether the app runs standalone (installed).
41
+ *
42
+ * @returns Whether the app is standalone.
43
+ */
44
+ isStandalone: () => boolean;
45
+ /** The primary language tag. */
46
+ language: string;
47
+ /** The preferred language tags. */
48
+ languages: string[];
49
+ }
50
+ /**
51
+ * Device information and utility methods. Call it in an injection context.
52
+ *
53
+ * Uses module-level `getProvider()` — device info is a singleton, not
54
+ * registration-provided. Device info is static and doesn't change at runtime,
55
+ * so it is read once, like React's memoized hook.
56
+ *
57
+ * @returns Device information and utility methods.
58
+ */
59
+ export declare function useDevice(): UseDeviceResult;
60
+ /**
61
+ * What {@link usePlatform} returns: the detected platform's info and the
62
+ * `isPlatform` helper.
63
+ */
64
+ export interface UsePlatformResult {
65
+ /** The detected platform. */
66
+ platform: Platform;
67
+ /** Whether the app runs in a native container. */
68
+ isNative: boolean;
69
+ /** Whether the platform is mobile. */
70
+ isMobile: boolean;
71
+ /** Whether the platform is desktop. */
72
+ isDesktop: boolean;
73
+ /** Whether the platform is the web. */
74
+ isWeb: boolean;
75
+ /** Whether the app runs in development. */
76
+ isDevelopment: boolean;
77
+ /** Whether the app runs in production. */
78
+ isProduction: boolean;
79
+ /**
80
+ * Whether the current platform is one of the candidates.
81
+ *
82
+ * @param platforms - The candidate platforms.
83
+ * @returns Whether any candidate matches.
84
+ */
85
+ isPlatform: (...platforms: Platform[]) => boolean;
86
+ }
87
+ /**
88
+ * Platform detection. Call it in an injection context.
89
+ *
90
+ * Uses module-level functions — platform is a singleton, not
91
+ * registration-provided. Platform info is static and doesn't change at
92
+ * runtime, so it is read once, like React's memoized hook.
93
+ *
94
+ * @returns Platform information and utility methods.
95
+ */
96
+ export declare function usePlatform(): UsePlatformResult;
97
+ /**
98
+ * What {@link useCapacitorApp} returns: every state field as a signal and
99
+ * `initialize` as a plain function.
100
+ */
101
+ export interface UseCapacitorAppResult {
102
+ /** Whether the app is fully initialized. */
103
+ readonly ready: Signal<boolean>;
104
+ /** Whether device ready has fired. */
105
+ readonly deviceReady: Signal<boolean>;
106
+ /** Whether push notifications are initialized. */
107
+ readonly pushReady: Signal<boolean>;
108
+ /** The initialization error, if any. */
109
+ readonly error: Signal<Error | null>;
110
+ /**
111
+ * Runs initialization again (manual re-initialization).
112
+ *
113
+ * @returns Resolves once initialization finished.
114
+ */
115
+ initialize: () => Promise<void>;
116
+ }
117
+ /**
118
+ * Capacitor app initialization and state management. Call it in an injection
119
+ * context (a component field initializer or constructor).
120
+ *
121
+ * Creates a `CapacitorApp` coordinator, subscribes to state changes, and
122
+ * auto-initializes. Cleans up on destroy via `destroy()`.
123
+ *
124
+ * @param options - Capacitor app configuration options.
125
+ * @returns The current app state as signals and an `initialize` function.
126
+ */
127
+ export declare function useCapacitorApp(options?: CapacitorAppOptions): UseCapacitorAppResult;
128
+ /**
129
+ * Options for {@link usePush} (e.g. check permission on mount).
130
+ */
131
+ export interface UsePushOptions {
132
+ /** Whether to check permission status on mount. */
133
+ checkOnMount?: boolean;
134
+ }
135
+ /**
136
+ * What {@link usePush} returns: the permission and token as signals and every
137
+ * action as a plain function.
138
+ */
139
+ export interface UsePushResult {
140
+ /** The known permission status, `null` until one is read. */
141
+ readonly permission: Signal<PermissionStatus | null>;
142
+ /** The registered token, `null` while unregistered. */
143
+ readonly token: Signal<PushToken | null>;
144
+ /**
145
+ * Reads the permission status and stores it.
146
+ *
147
+ * @returns The status.
148
+ */
149
+ checkPermission: () => Promise<PermissionStatus>;
150
+ /**
151
+ * Asks for permission and stores the status.
152
+ *
153
+ * @returns The status.
154
+ */
155
+ requestPermission: () => Promise<PermissionStatus>;
156
+ /**
157
+ * Registers for push notifications and stores the token.
158
+ *
159
+ * @param options - Registration options.
160
+ * @returns The token.
161
+ */
162
+ register: (options?: PushRegisterOptions) => Promise<PushToken>;
163
+ /**
164
+ * Unregisters and clears the token.
165
+ *
166
+ * @returns Resolves once unregistered.
167
+ */
168
+ unregister: () => Promise<void>;
169
+ /**
170
+ * Subscribes to received notifications.
171
+ *
172
+ * @param listener - Called for every notification.
173
+ * @returns A function that removes the listener.
174
+ */
175
+ onNotificationReceived: (listener: NotificationReceivedListener) => () => void;
176
+ /**
177
+ * Subscribes to notification actions.
178
+ *
179
+ * @param listener - Called for every action.
180
+ * @returns A function that removes the listener.
181
+ */
182
+ onNotificationAction: (listener: NotificationActionListener) => () => void;
183
+ /**
184
+ * Subscribes to token changes.
185
+ *
186
+ * @param listener - Called for every new token.
187
+ * @returns A function that removes the listener.
188
+ */
189
+ onTokenChange: (listener: TokenChangeListener) => () => void;
190
+ /**
191
+ * Sets the badge count.
192
+ *
193
+ * @param count - The count to set.
194
+ * @returns Resolves once set.
195
+ */
196
+ setBadge: (count: number) => Promise<void>;
197
+ /**
198
+ * Clears the badge count.
199
+ *
200
+ * @returns Resolves once cleared.
201
+ */
202
+ clearBadge: () => Promise<void>;
203
+ }
204
+ /**
205
+ * Push notification state and actions. Call it in an injection context.
206
+ *
207
+ * Uses module-level `getProvider()` — push is a singleton, not
208
+ * registration-provided.
209
+ *
210
+ * The options may be a signal: `checkOnMount` turning on through it checks the
211
+ * permission once more (when it was off before), the way React re-renders
212
+ * `usePush` with the new option.
213
+ *
214
+ * @param options - Hook options (or a signal of them).
215
+ * @returns The permission and token as signals and the action functions.
216
+ */
217
+ export declare function usePush(options?: MaybeSignal<UsePushOptions>): UsePushResult;
218
+ //# sourceMappingURL=use-native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-native.d.ts","sourceRoot":"","sources":["../../src/hooks/use-native.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAwC,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAA;AAEpG,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGhG,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAEL,KAAK,mBAAmB,EAKzB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EACV,0BAA0B,EAC1B,4BAA4B,EAC5B,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,oBAAoB,CAAA;AAEtE;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,UAAU,EAAE,UAAU,CAAA;IACtB,uBAAuB;IACvB,UAAU,EAAE,UAAU,CAAA;IACtB,yBAAyB;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,2CAA2C;IAC3C,cAAc,EAAE,cAAc,CAAA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