@darajs/core 1.21.9 → 1.21.11
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/dist/{dara_core-1.21.9-py3-none-any.whl → dara_core-1.21.11-py3-none-any.whl} +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/shared/interactivity/server-variable.d.ts.map +1 -1
- package/dist/shared/interactivity/server-variable.js +23 -1
- package/dist/shared/interactivity/server-variable.js.map +1 -1
- package/dist/umd/dara.core.umd.cjs +22 -1
- package/package.json +9 -9
|
Binary file
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../js/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAGxB,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../js/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAGxB,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AAGzB,eAAe,GAAG,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../js/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,2FAA2F;AAC3F,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../js/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,2FAA2F;AAC3F,OAAO,KAAK,WAAW,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAE1D,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AAEzB,qBAAqB;AACrB,eAAe,GAAG,CAAC"}
|
package/dist/router/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { SingleUseCache as LockSecuredCache } from './cache';
|
|
|
2
2
|
export { RouterContextProvider, useRouterContext } from './context';
|
|
3
3
|
export { createRouter, findFirstPath } from './create-router';
|
|
4
4
|
export { fetchRouteData, getFromPreloadCache, usePreloadRoute, type LoaderData } from './fetching';
|
|
5
|
-
export { default as
|
|
5
|
+
export { default as RouteContentDisplay, createRouteLoader, type LoaderResult } from './route-content';
|
|
6
6
|
export { default as RouterRoot } from './router-root';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../js/router/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../js/router/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/router/index.js
CHANGED
|
@@ -2,6 +2,6 @@ export { SingleUseCache as LockSecuredCache } from './cache';
|
|
|
2
2
|
export { RouterContextProvider, useRouterContext } from './context';
|
|
3
3
|
export { createRouter, findFirstPath } from './create-router';
|
|
4
4
|
export { fetchRouteData, getFromPreloadCache, usePreloadRoute } from './fetching';
|
|
5
|
-
export { default as
|
|
5
|
+
export { default as RouteContentDisplay, createRouteLoader } from './route-content';
|
|
6
6
|
export { default as RouterRoot } from './router-root';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/router/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../js/router/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAmB,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../js/router/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAmB,MAAM,YAAY,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,iBAAiB,EAAqB,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../js/shared/interactivity/server-variable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAc,MAAM,QAAQ,CAAC;AAKtF,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,YAAY,CAAC;AAEpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../js/shared/interactivity/server-variable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmB,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAc,MAAM,QAAQ,CAAC;AAKtF,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,YAAY,CAAC;AAEpF,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AA+D3E;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC,CAsEhH;AAED,sDAAsD;AACtD,wBAAsB,qBAAqB,CACvC,QAAQ,EAAE,cAAc,EACxB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,GACpD,OAAO,CAAC,sBAAsB,CAAC,CASjC;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,GAAG,sBAAsB,CAmBhH;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAsCnG"}
|
|
@@ -33,12 +33,34 @@ function serverSyncEffect(variable, requestExtras) {
|
|
|
33
33
|
// Assumption: the set of extras is unique to the store, i.e. the variable will not be used under different sets of extras
|
|
34
34
|
// Otherwise we sync multiple different stores but then we treat them as the same atom, which would cause issues
|
|
35
35
|
STORE_EXTRAS_MAP.set(variable.uid, requestExtras);
|
|
36
|
-
|
|
36
|
+
const eff = syncEffect({
|
|
37
37
|
/** Use store uid as the unique identifier */
|
|
38
38
|
itemKey: variable.uid,
|
|
39
39
|
refine: mixed(),
|
|
40
40
|
storeKey: 'ServerVariable',
|
|
41
41
|
});
|
|
42
|
+
return (params) => {
|
|
43
|
+
// NOTE:
|
|
44
|
+
// This is a hack to work around a "bug"/quirk I found in Recoil.
|
|
45
|
+
// Turns out within the atom effect logic, the initial storage read only runs when params.storeID is found within the
|
|
46
|
+
// Recoil internal atom registries - see https://github.com/facebookexperimental/Recoil/blob/c1b97f3a0117cad76cbc6ab3cb06d89a9ce717af/packages/recoil-sync/RecoilSync.js#L560,
|
|
47
|
+
// if `registries.getStorage` returns null then the atom initial read is not ran.
|
|
48
|
+
// However, when registering the atom and its effect within e.g. a useRecoilCallback, such as within
|
|
49
|
+
// actions, the snapshot provided is cloned https://github.com/facebookexperimental/Recoil/blob/c1b97f3a0117cad76cbc6ab3cb06d89a9ce717af/packages/recoil/hooks/Recoil_useRecoilCallback.js#L88
|
|
50
|
+
// and provided a new storeID https://github.com/facebookexperimental/Recoil/blob/c1b97f3a0117cad76cbc6ab3cb06d89a9ce717af/packages/recoil/core/Recoil_Snapshot.js#L85 .
|
|
51
|
+
// This might be intentional on their side:
|
|
52
|
+
// > If an atom is used first for a snapshot then it will execute the effect to initialize for that local snapshot, which would not affect the rendered state. Updating snapshots should not update the rendered state.
|
|
53
|
+
// (as per https://github.com/facebookexperimental/Recoil/issues/1407#issuecomment-966666105)
|
|
54
|
+
// This however breaks our assumptions that the effect always runs.
|
|
55
|
+
// Fortunately, the params have the original storeID as the parentStoreID_UNSTABLE, so we run the effect here
|
|
56
|
+
// with storeID set to the original parentStoreID_UNSTABLE which makes the `storage.read()` run.
|
|
57
|
+
const updatedParams = params.parentStoreID_UNSTABLE ? Object.assign(Object.assign({}, params), { storeID: params.parentStoreID_UNSTABLE }) : params;
|
|
58
|
+
// debugger;
|
|
59
|
+
const cleanup = eff(updatedParams);
|
|
60
|
+
return () => {
|
|
61
|
+
cleanup === null || cleanup === void 0 ? void 0 : cleanup();
|
|
62
|
+
};
|
|
63
|
+
};
|
|
42
64
|
}
|
|
43
65
|
const STATE_SYNCHRONIZER = new StateSynchronizer();
|
|
44
66
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-variable.js","sourceRoot":"","sources":["../../../js/shared/interactivity/server-variable.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoD,UAAU,EAAE,MAAM,QAAQ,CAAC;AACtF,OAAO,EAAqC,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAsB,yBAAyB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAoD,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAExE;;GAEG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAqC,CAAC;AAEtE;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,QAAwB,EAAE,aAAwC;IACxF,0HAA0H;IAC1H,gHAAgH;IAChH,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAA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rD,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,CAAC;IACN,CAAC,EACD,CAAC,MAAM,CAAC,CACX,CAAC;IAEF,OAAO,CACH,KAAC,UAAU,IAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAC,gBAAgB,YACnF,QAAQ,GACA,CAChB,CAAC;AACN,CAAC"}
|
|
@@ -69440,12 +69440,22 @@ Inferred class string: "${iconClasses}."`
|
|
|
69440
69440
|
const STORE_EXTRAS_MAP$1 = /* @__PURE__ */ new Map();
|
|
69441
69441
|
function serverSyncEffect(variable, requestExtras) {
|
|
69442
69442
|
STORE_EXTRAS_MAP$1.set(variable.uid, requestExtras);
|
|
69443
|
-
|
|
69443
|
+
const eff = RecoilSync_index_2({
|
|
69444
69444
|
/** Use store uid as the unique identifier */
|
|
69445
69445
|
itemKey: variable.uid,
|
|
69446
69446
|
refine: Refine_index_6(),
|
|
69447
69447
|
storeKey: "ServerVariable"
|
|
69448
69448
|
});
|
|
69449
|
+
return (params) => {
|
|
69450
|
+
const updatedParams = params.parentStoreID_UNSTABLE ? {
|
|
69451
|
+
...params,
|
|
69452
|
+
storeID: params.parentStoreID_UNSTABLE
|
|
69453
|
+
} : params;
|
|
69454
|
+
const cleanup = eff(updatedParams);
|
|
69455
|
+
return () => {
|
|
69456
|
+
cleanup?.();
|
|
69457
|
+
};
|
|
69458
|
+
};
|
|
69449
69459
|
}
|
|
69450
69460
|
const STATE_SYNCHRONIZER = new StateSynchronizer();
|
|
69451
69461
|
function getOrRegisterServerVariable(variable, extras) {
|
|
@@ -98698,6 +98708,7 @@ body,
|
|
|
98698
98708
|
exports.ImportersCtx = importersCtx;
|
|
98699
98709
|
exports.Link = Link;
|
|
98700
98710
|
exports.LoaderError = LoaderError;
|
|
98711
|
+
exports.LockSecuredCache = SingleUseCache;
|
|
98701
98712
|
exports.Menu = Menu;
|
|
98702
98713
|
exports.MenuLink = MenuLink;
|
|
98703
98714
|
exports.Navigate = Navigate;
|
|
@@ -98713,6 +98724,9 @@ body,
|
|
|
98713
98724
|
exports.RequestExtrasCtx = requestExtrasCtx;
|
|
98714
98725
|
exports.RequestExtrasProvider = RequestExtrasProvider;
|
|
98715
98726
|
exports.ResetVariables = ResetVariables;
|
|
98727
|
+
exports.RouteContentDisplay = RouteContent;
|
|
98728
|
+
exports.RouterContextProvider = RouterContextProvider;
|
|
98729
|
+
exports.RouterRoot = RouterRoot;
|
|
98716
98730
|
exports.RowFallback = RowFallback;
|
|
98717
98731
|
exports.ServerVariableSyncProvider = ServerVariableSyncProvider;
|
|
98718
98732
|
exports.SideBarFrame = SideBarFrame;
|
|
@@ -98734,14 +98748,19 @@ body,
|
|
|
98734
98748
|
exports.clearCaches_TEST = clearCaches_TEST;
|
|
98735
98749
|
exports.clearRegistries_TEST = clearRegistries_TEST;
|
|
98736
98750
|
exports.combineFilters = combineFilters;
|
|
98751
|
+
exports.createRouteLoader = createRouteLoader;
|
|
98752
|
+
exports.createRouter = createRouter;
|
|
98737
98753
|
exports.default = run;
|
|
98738
98754
|
exports.deferred = deferred;
|
|
98739
98755
|
exports.depsRegistry = depsRegistry;
|
|
98740
98756
|
exports.fetchDerivedVariable = fetchDerivedVariable;
|
|
98757
|
+
exports.fetchRouteData = fetchRouteData;
|
|
98741
98758
|
exports.fetchTabularServerVariable = fetchTabularServerVariable;
|
|
98742
98759
|
exports.fetchTaskResult = fetchTaskResult;
|
|
98760
|
+
exports.findFirstPath = findFirstPath;
|
|
98743
98761
|
exports.getComponentRegistryKey = getComponentRegistryKey;
|
|
98744
98762
|
exports.getDeps = getDeps;
|
|
98763
|
+
exports.getFromPreloadCache = getFromPreloadCache;
|
|
98745
98764
|
exports.getIcon = getIcon;
|
|
98746
98765
|
exports.getOrRegisterDerivedVariable = getOrRegisterDerivedVariable;
|
|
98747
98766
|
exports.getOrRegisterDerivedVariableResult = getOrRegisterDerivedVariableResult;
|
|
@@ -98810,11 +98829,13 @@ body,
|
|
|
98810
98829
|
exports.useFetchTabularDerivedVariable = useFetchTabularDerivedVariable;
|
|
98811
98830
|
exports.useFetchTabularServerVariable = useFetchTabularServerVariable;
|
|
98812
98831
|
exports.useInterval = useInterval;
|
|
98832
|
+
exports.usePreloadRoute = usePreloadRoute;
|
|
98813
98833
|
exports.usePrevious = usePrevious$1;
|
|
98814
98834
|
exports.useRefreshSelector = useRefreshSelector;
|
|
98815
98835
|
exports.useRefreshServerComponent = useRefreshServerComponent;
|
|
98816
98836
|
exports.useRegistriesCtx = useRegistriesCtx;
|
|
98817
98837
|
exports.useRequestExtras = useRequestExtras;
|
|
98838
|
+
exports.useRouterContext = useRouterContext;
|
|
98818
98839
|
exports.useSession = useSession;
|
|
98819
98840
|
exports.useSessionToken = useSessionToken;
|
|
98820
98841
|
exports.useSwitchVariable = useSwitchVariable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/core",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.11",
|
|
4
4
|
"description": "Dara Framework core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.0",
|
|
40
40
|
"@babel/preset-react": "^7.22.15",
|
|
41
41
|
"@babel/preset-typescript": "^7.23.0",
|
|
42
|
-
"@darajs/eslint-config": "1.21.
|
|
43
|
-
"@darajs/prettier-config": "1.21.
|
|
44
|
-
"@darajs/stylelint-config": "1.21.
|
|
42
|
+
"@darajs/eslint-config": "1.21.11",
|
|
43
|
+
"@darajs/prettier-config": "1.21.11",
|
|
44
|
+
"@darajs/stylelint-config": "1.21.11",
|
|
45
45
|
"@rollup/plugin-inject": "^4.0.4",
|
|
46
46
|
"@testing-library/dom": "^9.3.0",
|
|
47
47
|
"@testing-library/jest-dom": "^6.0.0",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"whatwg-fetch": "^3.6.20"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@darajs/styled-components": "1.21.
|
|
79
|
-
"@darajs/ui-components": "1.21.
|
|
80
|
-
"@darajs/ui-notifications": "1.21.
|
|
81
|
-
"@darajs/ui-utils": "1.21.
|
|
78
|
+
"@darajs/styled-components": "1.21.11",
|
|
79
|
+
"@darajs/ui-components": "1.21.11",
|
|
80
|
+
"@darajs/ui-notifications": "1.21.11",
|
|
81
|
+
"@darajs/ui-utils": "1.21.11",
|
|
82
82
|
"@fortawesome/fontawesome-free": "~6.4.0",
|
|
83
83
|
"@recoiljs/refine": "^0.1.1",
|
|
84
84
|
"@tanstack/query-core": "^4.40.0",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"engines": {
|
|
117
117
|
"node": ">=20.19.0"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "f47539951c7fe34c70aa65027c86bb9f82e10e42"
|
|
120
120
|
}
|