@uniformdev/context-remix 19.35.2 → 19.36.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 (2) hide show
  1. package/dist/index.d.mts +29 -0
  2. package/package.json +4 -4
@@ -0,0 +1,29 @@
1
+ import { CookieTransitionDataStoreOptions, CookieTransitionDataStore, Context } from '@uniformdev/context';
2
+ import { UniformContextProps } from '@uniformdev/context-react';
3
+ import * as React from 'react';
4
+ import React__default from 'react';
5
+
6
+ type RemixCookieTransitionDataStoreOptions = Omit<CookieTransitionDataStoreOptions, 'serverCookieValue'> & {
7
+ request: Request | undefined;
8
+ };
9
+ /**
10
+ * Provides client-to-server score transition using cookies for Remix SSR
11
+ */
12
+ declare class RemixCookieTransitionDataStore extends CookieTransitionDataStore {
13
+ constructor({ request, ...options }: RemixCookieTransitionDataStoreOptions);
14
+ }
15
+
16
+ /**
17
+ * Consumes a Uniform Context provided by RemixUniformProvider in the Remix root,
18
+ * providing route change tracking.
19
+ */
20
+ declare const RemixUniformContext: React__default.FC<React__default.PropsWithChildren<Omit<UniformContextProps, 'trackRouteOnRender' | 'context'>>>;
21
+
22
+ /**
23
+ * Transports the Uniform Context from the Remix entry points down to the Remix root
24
+ * where we can get at router events to track changes.
25
+ */
26
+ declare const RemixUniformContextProvider: React.Provider<Context | null>;
27
+ declare function useRemixUniformProvider(): Context;
28
+
29
+ export { RemixCookieTransitionDataStore, RemixCookieTransitionDataStoreOptions, RemixUniformContext, RemixUniformContextProvider, useRemixUniformProvider };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-remix",
3
- "version": "19.35.2",
3
+ "version": "19.36.0",
4
4
  "description": "Uniform Context Remix integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -31,8 +31,8 @@
31
31
  "react-dom": "18.2.0"
32
32
  },
33
33
  "dependencies": {
34
- "@uniformdev/context": "19.35.2",
35
- "@uniformdev/context-react": "19.35.2",
34
+ "@uniformdev/context": "19.36.0",
35
+ "@uniformdev/context-react": "19.36.0",
36
36
  "cookie": "0.5.0"
37
37
  },
38
38
  "peerDependencies": {
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "64d3270175087c87cfaa29a283aa4a7b0a98fd2c"
49
+ "gitHead": "3ae246a7f0f39adeaf04ecba4c7e48c478c019ad"
50
50
  }