@molecule/app-svelte 2.0.0 → 3.0.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.
- package/README.md +75 -30
- package/dist/stores/forms.d.ts +5 -5
- package/dist/stores/forms.d.ts.map +1 -1
- package/dist/stores/forms.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-27T23:36:55.367Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-svelte
|
|
@@ -319,7 +319,7 @@ Form controller interface.
|
|
|
319
319
|
All form providers must implement this interface.
|
|
320
320
|
|
|
321
321
|
```typescript
|
|
322
|
-
interface FormController<T extends
|
|
322
|
+
interface FormController<T extends FormValuesConstraint<T> = Record<string, unknown>> {
|
|
323
323
|
/**
|
|
324
324
|
* Gets the current form state.
|
|
325
325
|
*/
|
|
@@ -427,7 +427,7 @@ interface FormController<T extends Record<string, unknown> = Record<string, unkn
|
|
|
427
427
|
Form creation options.
|
|
428
428
|
|
|
429
429
|
```typescript
|
|
430
|
-
interface FormOptions<T extends
|
|
430
|
+
interface FormOptions<T extends FormValuesConstraint<T>> {
|
|
431
431
|
/**
|
|
432
432
|
* Default values, captured as the form's clean baseline when the controller
|
|
433
433
|
* is created. Mutating this object afterwards does not change the baseline.
|
|
@@ -1085,6 +1085,31 @@ interface StorageProvider {
|
|
|
1085
1085
|
* Removes multiple values from storage.
|
|
1086
1086
|
*/
|
|
1087
1087
|
removeMany?(keys: string[]): Promise<void>
|
|
1088
|
+
/**
|
|
1089
|
+
* Reads a value synchronously.
|
|
1090
|
+
*
|
|
1091
|
+
* Optional: only a provider backed by a SYNCHRONOUS store (browser
|
|
1092
|
+
* `localStorage`, an in-memory map) can answer without I/O. A render-time
|
|
1093
|
+
* caller reads through `getPreferenceStore()`, which uses this method to see
|
|
1094
|
+
* the persisted value on the first paint; a provider without it is read
|
|
1095
|
+
* through {@link StorageProvider.get} and subscribers update when the value
|
|
1096
|
+
* lands.
|
|
1097
|
+
* @param key - The storage key.
|
|
1098
|
+
* @returns The stored value, or `null` when it is absent, unreadable or corrupt.
|
|
1099
|
+
*/
|
|
1100
|
+
getSync?<T = unknown>(key: string): T | null
|
|
1101
|
+
/**
|
|
1102
|
+
* Subscribes to changes made to a key OUTSIDE this provider instance — for
|
|
1103
|
+
* example another browser tab's `localStorage` write.
|
|
1104
|
+
*
|
|
1105
|
+
* Writes made through the same provider instance do not re-emit here; a
|
|
1106
|
+
* synchronous caller observes them through `getPreferenceStore()`'s own
|
|
1107
|
+
* subscribers.
|
|
1108
|
+
* @param key - The storage key.
|
|
1109
|
+
* @param listener - Called with the new value, or `null` when it was removed.
|
|
1110
|
+
* @returns A function that stops the subscription.
|
|
1111
|
+
*/
|
|
1112
|
+
subscribe?(key: string, listener: (value: unknown) => void): () => void
|
|
1088
1113
|
}
|
|
1089
1114
|
```
|
|
1090
1115
|
|
|
@@ -1372,7 +1397,7 @@ function setStateContext(provider: StateProvider): void
|
|
|
1372
1397
|
Sets the auth context.
|
|
1373
1398
|
|
|
1374
1399
|
```typescript
|
|
1375
|
-
function setAuthContext(client: AuthClient<T
|
|
1400
|
+
function setAuthContext<T>(client: AuthClient<T>): void
|
|
1376
1401
|
```
|
|
1377
1402
|
|
|
1378
1403
|
- `client` — The auth client to store in Svelte context.
|
|
@@ -1452,7 +1477,10 @@ function getStateProvider(): StateProvider
|
|
|
1452
1477
|
Gets the auth client from Svelte context.
|
|
1453
1478
|
|
|
1454
1479
|
```typescript
|
|
1455
|
-
function getAuthClient
|
|
1480
|
+
function getAuthClient<
|
|
1481
|
+
T = unknown,
|
|
1482
|
+
TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
|
|
1483
|
+
>(): AuthClient<T, TRegister>
|
|
1456
1484
|
```
|
|
1457
1485
|
|
|
1458
1486
|
**Returns:** The auth client instance.
|
|
@@ -1522,7 +1550,7 @@ function getLoggerProvider(): LoggerProvider
|
|
|
1522
1550
|
Creates a writable store with async-capable setState and extendState.
|
|
1523
1551
|
|
|
1524
1552
|
```typescript
|
|
1525
|
-
function createAsyncState(initialValue: T): AsyncStateStore<T>
|
|
1553
|
+
function createAsyncState<T>(initialValue: T): AsyncStateStore<T>
|
|
1526
1554
|
```
|
|
1527
1555
|
|
|
1528
1556
|
- `initialValue` — The initial state value
|
|
@@ -1534,7 +1562,12 @@ function createAsyncState(initialValue: T): AsyncStateStore<T>
|
|
|
1534
1562
|
Create auth stores from the auth client in context.
|
|
1535
1563
|
|
|
1536
1564
|
```typescript
|
|
1537
|
-
function createAuthStores
|
|
1565
|
+
function createAuthStores<
|
|
1566
|
+
T = unknown,
|
|
1567
|
+
TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
|
|
1568
|
+
>(): AuthStores<T, TRegister> & {
|
|
1569
|
+
error: Readable<string | null>
|
|
1570
|
+
}
|
|
1538
1571
|
```
|
|
1539
1572
|
|
|
1540
1573
|
**Returns:** Auth stores and actions
|
|
@@ -1546,7 +1579,10 @@ Create auth stores from a specific auth client.
|
|
|
1546
1579
|
Use this when you don't want to use context.
|
|
1547
1580
|
|
|
1548
1581
|
```typescript
|
|
1549
|
-
function createAuthStoresFromClient
|
|
1582
|
+
function createAuthStoresFromClient<
|
|
1583
|
+
T = unknown,
|
|
1584
|
+
TRegister extends RegisterExtraShape<TRegister> = Record<never, never>,
|
|
1585
|
+
>(client: AuthClient<T, TRegister>): AuthStores<T, TRegister>
|
|
1550
1586
|
```
|
|
1551
1587
|
|
|
1552
1588
|
- `client` — Auth client
|
|
@@ -1607,7 +1643,10 @@ function createDeviceStores(): {
|
|
|
1607
1643
|
Create form stores from a form provider and options.
|
|
1608
1644
|
|
|
1609
1645
|
```typescript
|
|
1610
|
-
function createFormStores
|
|
1646
|
+
function createFormStores<T extends FormValuesConstraint<T>>(
|
|
1647
|
+
provider: FormProvider,
|
|
1648
|
+
options: FormOptions<T>,
|
|
1649
|
+
): FormStores<T>
|
|
1611
1650
|
```
|
|
1612
1651
|
|
|
1613
1652
|
- `provider` — Form provider instance
|
|
@@ -1620,7 +1659,10 @@ function createFormStores(provider: FormProvider, options: FormOptions<T>): Form
|
|
|
1620
1659
|
Create a readable store that tracks a single field's state.
|
|
1621
1660
|
|
|
1622
1661
|
```typescript
|
|
1623
|
-
function createFieldStore
|
|
1662
|
+
function createFieldStore<T extends FormValuesConstraint<T>, K extends keyof T>(
|
|
1663
|
+
controller: FormController<T>,
|
|
1664
|
+
name: K,
|
|
1665
|
+
): Readable<FieldState<T[K]>>
|
|
1624
1666
|
```
|
|
1625
1667
|
|
|
1626
1668
|
- `controller` — Form controller
|
|
@@ -1633,7 +1675,10 @@ function createFieldStore(controller: FormController<T>, name: K): Readable<Fiel
|
|
|
1633
1675
|
Create a readable store that tracks a single field's value.
|
|
1634
1676
|
|
|
1635
1677
|
```typescript
|
|
1636
|
-
function createWatchStore
|
|
1678
|
+
function createWatchStore<T extends FormValuesConstraint<T>, K extends keyof T>(
|
|
1679
|
+
controller: FormController<T>,
|
|
1680
|
+
name: K,
|
|
1681
|
+
): Readable<T[K]>
|
|
1637
1682
|
```
|
|
1638
1683
|
|
|
1639
1684
|
- `controller` — Form controller
|
|
@@ -1646,7 +1691,7 @@ function createWatchStore(controller: FormController<T>, name: K): Readable<T[K]
|
|
|
1646
1691
|
Create an HTTP request store.
|
|
1647
1692
|
|
|
1648
1693
|
```typescript
|
|
1649
|
-
function createHttpStore(
|
|
1694
|
+
function createHttpStore<T>(
|
|
1650
1695
|
method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE',
|
|
1651
1696
|
url: string,
|
|
1652
1697
|
config?: RequestConfig,
|
|
@@ -1664,7 +1709,7 @@ function createHttpStore(
|
|
|
1664
1709
|
Creates a GET request store.
|
|
1665
1710
|
|
|
1666
1711
|
```typescript
|
|
1667
|
-
function createGetStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
1712
|
+
function createGetStore<T>(url: string, config?: RequestConfig): HttpStore<T>
|
|
1668
1713
|
```
|
|
1669
1714
|
|
|
1670
1715
|
- `url` — The request endpoint URL.
|
|
@@ -1677,7 +1722,7 @@ function createGetStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
|
1677
1722
|
Creates a POST request store.
|
|
1678
1723
|
|
|
1679
1724
|
```typescript
|
|
1680
|
-
function createPostStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
1725
|
+
function createPostStore<T>(url: string, config?: RequestConfig): HttpStore<T>
|
|
1681
1726
|
```
|
|
1682
1727
|
|
|
1683
1728
|
- `url` — The request endpoint URL.
|
|
@@ -1690,7 +1735,7 @@ function createPostStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
|
1690
1735
|
Creates a PUT request store.
|
|
1691
1736
|
|
|
1692
1737
|
```typescript
|
|
1693
|
-
function createPutStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
1738
|
+
function createPutStore<T>(url: string, config?: RequestConfig): HttpStore<T>
|
|
1694
1739
|
```
|
|
1695
1740
|
|
|
1696
1741
|
- `url` — The request endpoint URL.
|
|
@@ -1703,7 +1748,7 @@ function createPutStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
|
1703
1748
|
Creates a PATCH request store.
|
|
1704
1749
|
|
|
1705
1750
|
```typescript
|
|
1706
|
-
function createPatchStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
1751
|
+
function createPatchStore<T>(url: string, config?: RequestConfig): HttpStore<T>
|
|
1707
1752
|
```
|
|
1708
1753
|
|
|
1709
1754
|
- `url` — The request endpoint URL.
|
|
@@ -1716,7 +1761,7 @@ function createPatchStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
|
1716
1761
|
Creates a DELETE request store.
|
|
1717
1762
|
|
|
1718
1763
|
```typescript
|
|
1719
|
-
function createDeleteStore(url: string, config?: RequestConfig): HttpStore<T>
|
|
1764
|
+
function createDeleteStore<T>(url: string, config?: RequestConfig): HttpStore<T>
|
|
1720
1765
|
```
|
|
1721
1766
|
|
|
1722
1767
|
- `url` — The request endpoint URL.
|
|
@@ -1832,7 +1877,7 @@ function createLoggerHelpersFromProvider(provider: LoggerProvider): LoggerHelper
|
|
|
1832
1877
|
Creates a login store with async state tracking.
|
|
1833
1878
|
|
|
1834
1879
|
```typescript
|
|
1835
|
-
function createLoginStore(): LoginStore<T>
|
|
1880
|
+
function createLoginStore<T = unknown>(): LoginStore<T>
|
|
1836
1881
|
```
|
|
1837
1882
|
|
|
1838
1883
|
**Returns:** Login promise store
|
|
@@ -1897,7 +1942,9 @@ function createPlatformStores(): {
|
|
|
1897
1942
|
Creates a store that tracks async function state.
|
|
1898
1943
|
|
|
1899
1944
|
```typescript
|
|
1900
|
-
function createPromiseStore(
|
|
1945
|
+
function createPromiseStore<T extends (...args: any[]) => Promise<any>>(
|
|
1946
|
+
asyncFn: T,
|
|
1947
|
+
): PromiseStore<Awaited<ReturnType<T>>>
|
|
1901
1948
|
```
|
|
1902
1949
|
|
|
1903
1950
|
- `asyncFn` — The async function to track
|
|
@@ -1973,7 +2020,7 @@ function createRouterStoresFromRouter(router: Router): RouterStores
|
|
|
1973
2020
|
Creates a signup store with async state tracking.
|
|
1974
2021
|
|
|
1975
2022
|
```typescript
|
|
1976
|
-
function createSignupStore(): SignupStore<T>
|
|
2023
|
+
function createSignupStore<T = unknown>(): SignupStore<T>
|
|
1977
2024
|
```
|
|
1978
2025
|
|
|
1979
2026
|
**Returns:** Signup promise store
|
|
@@ -1983,7 +2030,7 @@ function createSignupStore(): SignupStore<T>
|
|
|
1983
2030
|
Create a readable Svelte store from a molecule store.
|
|
1984
2031
|
|
|
1985
2032
|
```typescript
|
|
1986
|
-
function createStoreReadable(store: MoleculeStore<T>): Readable<T>
|
|
2033
|
+
function createStoreReadable<T>(store: MoleculeStore<T>): Readable<T>
|
|
1987
2034
|
```
|
|
1988
2035
|
|
|
1989
2036
|
- `store` — The molecule store
|
|
@@ -1995,7 +2042,7 @@ function createStoreReadable(store: MoleculeStore<T>): Readable<T>
|
|
|
1995
2042
|
Create a derived Svelte store with a selector.
|
|
1996
2043
|
|
|
1997
2044
|
```typescript
|
|
1998
|
-
function createStoreSelector(store: MoleculeStore<T>, selector: (state: T) => S): Readable<S>
|
|
2045
|
+
function createStoreSelector<T, S>(store: MoleculeStore<T>, selector: (state: T) => S): Readable<S>
|
|
1999
2046
|
```
|
|
2000
2047
|
|
|
2001
2048
|
- `store` — The molecule store
|
|
@@ -2008,9 +2055,7 @@ function createStoreSelector(store: MoleculeStore<T>, selector: (state: T) => S)
|
|
|
2008
2055
|
Get the setState function from a molecule store.
|
|
2009
2056
|
|
|
2010
2057
|
```typescript
|
|
2011
|
-
function getSetStore(
|
|
2012
|
-
store: MoleculeStore<T>,
|
|
2013
|
-
): (partial: Partial<T> | ((state: T) => Partial<T>)) => void
|
|
2058
|
+
function getSetStore<T>(store: MoleculeStore<T>): MoleculeStore<T>['setState']
|
|
2014
2059
|
```
|
|
2015
2060
|
|
|
2016
2061
|
- `store` — The molecule store
|
|
@@ -2022,7 +2067,7 @@ function getSetStore(
|
|
|
2022
2067
|
Create a bound action for a store.
|
|
2023
2068
|
|
|
2024
2069
|
```typescript
|
|
2025
|
-
function createStoreAction(
|
|
2070
|
+
function createStoreAction<T, Args extends unknown[], R>(
|
|
2026
2071
|
store: MoleculeStore<T>,
|
|
2027
2072
|
action: (
|
|
2028
2073
|
setState: MoleculeStore<T>['setState'],
|
|
@@ -2041,7 +2086,7 @@ function createStoreAction(
|
|
|
2041
2086
|
Create a storage value store.
|
|
2042
2087
|
|
|
2043
2088
|
```typescript
|
|
2044
|
-
function createStorageStore(key: string, defaultValue?: T): StorageStore<T>
|
|
2089
|
+
function createStorageStore<T>(key: string, defaultValue?: T): StorageStore<T>
|
|
2045
2090
|
```
|
|
2046
2091
|
|
|
2047
2092
|
- `key` — Storage key
|
|
@@ -2064,7 +2109,7 @@ function createStorageHelpers(): StorageHelpers
|
|
|
2064
2109
|
Create storage store from a specific provider.
|
|
2065
2110
|
|
|
2066
2111
|
```typescript
|
|
2067
|
-
function createStorageStoreFromProvider(
|
|
2112
|
+
function createStorageStoreFromProvider<T>(
|
|
2068
2113
|
storage: StorageProvider,
|
|
2069
2114
|
key: string,
|
|
2070
2115
|
defaultValue?: T,
|
|
@@ -2092,7 +2137,7 @@ function createThemeStores(): ThemeStores & { colors: Readable<Theme['colors']>
|
|
|
2092
2137
|
Create a derived store that returns just the theme colors.
|
|
2093
2138
|
|
|
2094
2139
|
```typescript
|
|
2095
|
-
function createThemeColorsStore(theme: Readable<Theme>): Readable<
|
|
2140
|
+
function createThemeColorsStore(theme: Readable<Theme>): Readable<Theme['colors']>
|
|
2096
2141
|
```
|
|
2097
2142
|
|
|
2098
2143
|
- `theme` — A readable theme store (from createThemeStores or createThemeStoresFromProvider)
|
|
@@ -2140,7 +2185,7 @@ Peer dependencies:
|
|
|
2140
2185
|
|
|
2141
2186
|
- `@molecule/app-auth` ^3.0.0
|
|
2142
2187
|
- `@molecule/app-device` ^1.0.1
|
|
2143
|
-
- `@molecule/app-forms` ^
|
|
2188
|
+
- `@molecule/app-forms` ^2.0.0
|
|
2144
2189
|
- `@molecule/app-http` ^1.0.1
|
|
2145
2190
|
- `@molecule/app-i18n` ^1.0.1
|
|
2146
2191
|
- `@molecule/app-logger` ^1.0.1
|
package/dist/stores/forms.d.ts
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
6
|
import { type Readable } from 'svelte/store';
|
|
7
|
-
import type { FieldRegistration, FieldState, FormController, FormOptions, FormProvider, FormState, RegisterOptions } from '@molecule/app-forms';
|
|
7
|
+
import type { FieldRegistration, FieldState, FormController, FormOptions, FormProvider, FormState, FormValuesConstraint, RegisterOptions } from '@molecule/app-forms';
|
|
8
8
|
/**
|
|
9
9
|
* Form stores and actions return type.
|
|
10
10
|
*/
|
|
11
|
-
interface FormStores<T extends
|
|
11
|
+
interface FormStores<T extends FormValuesConstraint<T>> {
|
|
12
12
|
formState: Readable<FormState<T>>;
|
|
13
13
|
isValid: Readable<boolean>;
|
|
14
14
|
isDirty: Readable<boolean>;
|
|
@@ -72,7 +72,7 @@ interface FormStores<T extends Record<string, unknown>> {
|
|
|
72
72
|
* </form>
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
export declare function createFormStores<T extends
|
|
75
|
+
export declare function createFormStores<T extends FormValuesConstraint<T>>(provider: FormProvider, options: FormOptions<T>): FormStores<T>;
|
|
76
76
|
/**
|
|
77
77
|
* Create a readable store that tracks a single field's state.
|
|
78
78
|
*
|
|
@@ -94,7 +94,7 @@ export declare function createFormStores<T extends Record<string, unknown>>(prov
|
|
|
94
94
|
* <p>Touched: {$emailField.touched}</p>
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
export declare function createFieldStore<T extends
|
|
97
|
+
export declare function createFieldStore<T extends FormValuesConstraint<T>, K extends keyof T>(controller: FormController<T>, name: K): Readable<FieldState<T[K]>>;
|
|
98
98
|
/**
|
|
99
99
|
* Create a readable store that tracks a single field's value.
|
|
100
100
|
*
|
|
@@ -116,6 +116,6 @@ export declare function createFieldStore<T extends Record<string, unknown>, K ex
|
|
|
116
116
|
* {/if}
|
|
117
117
|
* ```
|
|
118
118
|
*/
|
|
119
|
-
export declare function createWatchStore<T extends
|
|
119
|
+
export declare function createWatchStore<T extends FormValuesConstraint<T>, K extends keyof T>(controller: FormController<T>, name: K): Readable<T[K]>;
|
|
120
120
|
export {};
|
|
121
121
|
//# sourceMappingURL=forms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../src/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AAC,CAAC,GACtB,UAAU,CAAC,CAAC,CAAC,CAmGf;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACnF,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,EAC7B,IAAI,EAAE,CAAC,GACN,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAM5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACnF,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,EAC7B,IAAI,EAAE,CAAC,GACN,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAMhB"}
|
package/dist/stores/forms.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/stores/forms.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/stores/forms.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAiB,QAAQ,EAAE,MAAM,cAAc,CAAA;AA0C/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAsB,EACtB,OAAuB;IAEvB,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAI,OAAO,CAAC,CAAA;IAElD,wBAAwB;IACxB,MAAM,SAAS,GAA2B,QAAQ,CAChD,UAAU,CAAC,QAAQ,EAAE,EACrB,CAAC,GAAkC,EAAE,EAAE;QACrC,O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B,EAC7B,IAAO;IAEP,OAAO,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,GAAsC,EAAE,EAAE;QACzF,OAAO,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;YAC/B,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;QACrC,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,gBAAgB,CAC9B,UAA6B,EAC7B,IAAO;IAEP,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,GAA0B,EAAE,EAAE;QACxE,OAAO,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;YAC/B,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;QAChC,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-svelte",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Svelte framework bindings for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@molecule/app-auth": "^3.0.0",
|
|
26
26
|
"@molecule/app-device": "^1.0.1",
|
|
27
|
-
"@molecule/app-forms": "^
|
|
27
|
+
"@molecule/app-forms": "^2.0.0",
|
|
28
28
|
"@molecule/app-http": "^1.0.1",
|
|
29
29
|
"@molecule/app-i18n": "^1.0.1",
|
|
30
30
|
"@molecule/app-logger": "^1.0.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"svelte": "^4.0.0 || ^5.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@molecule/app-utilities": "1.0.
|
|
43
|
+
"@molecule/app-utilities": "1.0.6",
|
|
44
44
|
"@types/node": "26.6.5",
|
|
45
45
|
"svelte": "5.57.2",
|
|
46
46
|
"typescript": "6.0.3",
|