@bcrumbs.net/bc-api 0.0.2 → 0.0.3

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 CHANGED
@@ -1,3 +1,7 @@
1
- # bc-api
1
+ # bc-ui
2
2
 
3
- The SDK that helps to work with Bread Crumbs APIs
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test bc-ui` to execute the unit tests via [Jest](https://jestjs.io).
package/index.esm.js CHANGED
@@ -89749,20 +89749,21 @@ const link = createHttpLink$1({
89749
89749
  fetch: isomorphicUnfetch,
89750
89750
  uri: GRAPHQL_URL
89751
89751
  });
89752
+ const showcaseClient = new ApolloClient({
89753
+ // @ts-expect-error TypeScript is complaining
89754
+ link: link,
89755
+ // @ts-expect-error TypeScript is complaining
89756
+ cache: new InMemoryCache$1()
89757
+ // rehydrate the cache using the initial data passed from the server:
89758
+ // .restore(initialState || {}),
89759
+ });
89752
89760
  // Export a HOC from next-with-apollo
89753
89761
  // Docs: https://www.npmjs.com/package/next-with-apollo
89754
89762
  const withShowcaseClient = withApollo(({
89755
89763
  initialState
89756
89764
  }) =>
89757
89765
  // @ts-expect-error TypeScript is complaining
89758
- new ApolloClient({
89759
- // @ts-expect-error TypeScript is complaining
89760
- link: link,
89761
- // @ts-expect-error TypeScript is complaining
89762
- cache: new InMemoryCache$1()
89763
- // rehydrate the cache using the initial data passed from the server:
89764
- .restore(initialState || {})
89765
- }));
89766
+ showcaseClient);
89766
89767
 
89767
89768
  var wellKnownSymbol$5 = wellKnownSymbol$i;
89768
89769
  var create$1 = objectCreate;
@@ -90681,4 +90682,4 @@ if (typeof window !== 'undefined') {
90681
90682
  window.global = window;
90682
90683
  }
90683
90684
 
90684
- export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, addDomain, addDomainOptions, auth, companyUsersQuery, contentInstancesQuery, createCompany, createCompanyOptions, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, inviteUser, inviteUserOptions, login, loginOptions, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionQueryOptions, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, usageQuery, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useModelChildrenQuery, useModelsQuery, useShowcaseConfig, useShowcaseConfigurationQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
90685
+ export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, LOCAL_STORAGE_I18N_STRING, LangService, Languages, ModelFieldsTypes, ModelUtilities, StringsUtils, addDomain, addDomainOptions, auth, companyUsersQuery, contentInstancesQuery, createCompany, createCompanyOptions, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, inviteUser, inviteUserOptions, login, loginOptions, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionQueryOptions, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, usageQuery, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useModelChildrenQuery, useModelsQuery, useShowcaseConfig, useShowcaseConfigurationQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
package/index.umd.js CHANGED
@@ -89405,19 +89405,20 @@
89405
89405
  fetch: isomorphicUnfetch,
89406
89406
  uri: GRAPHQL_URL
89407
89407
  });
89408
+ var showcaseClient = new client.ApolloClient({
89409
+ // @ts-expect-error TypeScript is complaining
89410
+ link: link,
89411
+ // @ts-expect-error TypeScript is complaining
89412
+ cache: new apolloCacheInmemory.InMemoryCache()
89413
+ // rehydrate the cache using the initial data passed from the server:
89414
+ // .restore(initialState || {}),
89415
+ });
89408
89416
  // Export a HOC from next-with-apollo
89409
89417
  // Docs: https://www.npmjs.com/package/next-with-apollo
89410
89418
  var withShowcaseClient = withApollo__default["default"](function (_a) {
89411
- var initialState = _a.initialState;
89419
+ _a.initialState;
89412
89420
  // @ts-expect-error TypeScript is complaining
89413
- return new client.ApolloClient({
89414
- // @ts-expect-error TypeScript is complaining
89415
- link: link,
89416
- // @ts-expect-error TypeScript is complaining
89417
- cache: new apolloCacheInmemory.InMemoryCache()
89418
- // rehydrate the cache using the initial data passed from the server:
89419
- .restore(initialState || {})
89420
- });
89421
+ return showcaseClient;
89421
89422
  });
89422
89423
 
89423
89424
  var wellKnownSymbol$5 = wellKnownSymbol$i;
@@ -90382,6 +90383,8 @@
90382
90383
  exports.removeUserFromCompanyOptions = removeUserFromCompanyOptions;
90383
90384
  exports.resetPassword = resetPassword;
90384
90385
  exports.resetPasswordOptions = resetPasswordOptions;
90386
+ exports.showcaseClient = showcaseClient;
90387
+ exports.showcaseConfig = showcaseConfig;
90385
90388
  exports.showcaseConfigurationQuery = showcaseConfigurationQuery;
90386
90389
  exports.showcaseConfigurationQueryOptions = showcaseConfigurationQueryOptions;
90387
90390
  exports.showcaseContentsQuery = showcaseContentsQuery;
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
+ import { ApolloClient } from '@apollo/client';
3
+ export declare const showcaseClient: ApolloClient<unknown>;
2
4
  export declare const withShowcaseClient: (Page: typeof import("next/app").default | (import("react").ComponentClass<any, any> & {
3
5
  getInitialProps?(context: import("next").NextPageContext): any;
4
6
  }) | (import("react").FunctionComponent<any> & {
@@ -10,6 +10,7 @@ export declare const showcaseDomainsQueryOptions: any;
10
10
  export declare const useDomainsQuery: () => import("@apollo/client").QueryResult<any, {
11
11
  companyId: string | null;
12
12
  }>;
13
+ export declare const showcaseConfig: import("@apollo/client").DocumentNode;
13
14
  export declare const useShowcaseConfig: (domain: string) => import("@apollo/client").QueryResult<any, {
14
15
  domain: string;
15
16
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bcrumbs.net/bc-api",
3
3
  "description": "The SDK that helps to work with Bread Crumbs APIs",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-api"