Skip to content

Commit

Permalink
feat: (#591) creating @faustjs/next/components export
Browse files Browse the repository at this point in the history
  • Loading branch information
wjohnsto committed Oct 22, 2021
1 parent e4ad3ea commit b1ba602
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/next/components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/cjs/export/config';
4 changes: 4 additions & 0 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"import": "./dist/mjs/export/client.js",
"require": "./dist/cjs/export/client.js"
},
"./components": {
"import": "./dist/mjs/export/components.js",
"require": "./dist/cjs/export/components.js"
},
"./config": {
"import": "./dist/mjs/export/config.js",
"require": "./dist/cjs/export/config.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import isNil from 'lodash/isNil';
import React from 'react';
import type { getClient } from './gqty/client';
import type { getClient } from '../gqty/client';
import {
AUTH_CLIENT_CACHE_PROP,
CLIENT_CACHE_PROP,
PageProps,
} from './server/getProps';
import { HeadlessContext } from './gqty/client';
} from '../server/getProps';
import { HeadlessContext } from '../gqty/client';

/**
* The HeadlessProvider is a React component required to properly facilitate SSR and SSG for Faust.js.
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './HeadlessProvider';
1 change: 1 addition & 0 deletions packages/next/src/export/components.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '../components';
2 changes: 1 addition & 1 deletion packages/next/src/export/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from '../gqty/client';
export * from '../config/config';
export * from '../server/getProps';
export * from '../HeadlessProvider';
export * from '../components/HeadlessProvider';
export * from '../utils';
export * from '../config/withFaust';
export * from '../log/log';

0 comments on commit b1ba602

Please sign in to comment.