@bcrumbs.net/bc-api 0.0.35 → 0.0.37

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/index.cjs.js CHANGED
@@ -5,7 +5,6 @@ var client = require('@apollo/client');
5
5
  var error = require('@apollo/client/link/error');
6
6
  var context = require('@apollo/client/link/context');
7
7
  var apolloLinkRest = require('apollo-link-rest');
8
- var nextWithApollo = require('next-with-apollo');
9
8
  var Stream = require('stream');
10
9
  var http = require('http');
11
10
  var Url = require('url');
@@ -3543,16 +3542,6 @@ const dqueryClient = new client.ApolloClient({
3543
3542
  connectToDevTools: isDevEnv$3,
3544
3543
  queryDeduplication: true
3545
3544
  });
3546
- const withDQueryClient = nextWithApollo.withApollo(({
3547
- initialState
3548
- }) =>
3549
- // @ts-expect-error TypeScript is complaining
3550
- new client.ApolloClient({
3551
- link: link_dquery$2,
3552
- cache: new client.InMemoryCache()
3553
- // rehydrate the cache using the initial data passed from the server:
3554
- .restore(initialState || {})
3555
- }));
3556
3545
 
3557
3546
  let _$7 = t => t,
3558
3547
  _t$7;
@@ -86921,13 +86910,6 @@ const showcaseClient = new client.ApolloClient({
86921
86910
  // rehydrate the cache using the initial data passed from the server:
86922
86911
  // .restore(initialState || {}),
86923
86912
  });
86924
- // Export a HOC from next-with-apollo
86925
- // Docs: https://www.npmjs.com/package/next-with-apollo
86926
- const withShowcaseClient = nextWithApollo.withApollo(({
86927
- initialState
86928
- }) =>
86929
- // @ts-expect-error will be fixed later
86930
- showcaseClient);
86931
86913
 
86932
86914
  const {
86933
86915
  networkInterface: uri$1
@@ -87593,5 +87575,3 @@ exports.viewTypeChildrenQuery = viewTypeChildrenQuery;
87593
87575
  exports.viewTypeChildrenQueryOptions = viewTypeChildrenQueryOptions;
87594
87576
  exports.viewTypesQuery = viewTypesQuery;
87595
87577
  exports.viewTypesQueryOptions = viewTypesQueryOptions;
87596
- exports.withDQueryClient = withDQueryClient;
87597
- exports.withShowcaseClient = withShowcaseClient;
package/index.esm.js CHANGED
@@ -3,7 +3,6 @@ import { InMemoryCache, ApolloClient, from, useQuery, createHttpLink, useLazyQue
3
3
  import { onError } from '@apollo/client/link/error';
4
4
  import { setContext } from '@apollo/client/link/context';
5
5
  import { RestLink } from 'apollo-link-rest';
6
- import { withApollo } from 'next-with-apollo';
7
6
  import Stream from 'stream';
8
7
  import http from 'http';
9
8
  import Url from 'url';
@@ -3541,16 +3540,6 @@ const dqueryClient = new ApolloClient({
3541
3540
  connectToDevTools: isDevEnv$3,
3542
3541
  queryDeduplication: true
3543
3542
  });
3544
- const withDQueryClient = withApollo(({
3545
- initialState
3546
- }) =>
3547
- // @ts-expect-error TypeScript is complaining
3548
- new ApolloClient({
3549
- link: link_dquery$2,
3550
- cache: new InMemoryCache()
3551
- // rehydrate the cache using the initial data passed from the server:
3552
- .restore(initialState || {})
3553
- }));
3554
3543
 
3555
3544
  let _$7 = t => t,
3556
3545
  _t$7;
@@ -86919,13 +86908,6 @@ const showcaseClient = new ApolloClient({
86919
86908
  // rehydrate the cache using the initial data passed from the server:
86920
86909
  // .restore(initialState || {}),
86921
86910
  });
86922
- // Export a HOC from next-with-apollo
86923
- // Docs: https://www.npmjs.com/package/next-with-apollo
86924
- const withShowcaseClient = withApollo(({
86925
- initialState
86926
- }) =>
86927
- // @ts-expect-error will be fixed later
86928
- showcaseClient);
86929
86911
 
86930
86912
  const {
86931
86913
  networkInterface: uri$1
@@ -87475,4 +87457,4 @@ var ModelFieldsTypes;
87475
87457
  ModelFieldsTypes["JSON"] = "JSON";
87476
87458
  })(ModelFieldsTypes || (ModelFieldsTypes = {}));
87477
87459
 
87478
- export { CreateCheckoutSessionUri, CreatePortalSessionUri, ModelFieldsTypes, ModelUtilities, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, botClient, companyUsersQuery, contentInstancesQuery, coreClient, createCompany, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, portalThemeConfig, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcasePagesQuery, showcaseSectionQuery, showcaseSectionsQuery, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateCompanyMutation, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, usePortalThemeConfig, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseSectionsQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
87460
+ export { CreateCheckoutSessionUri, CreatePortalSessionUri, ModelFieldsTypes, ModelUtilities, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, botClient, companyUsersQuery, contentInstancesQuery, coreClient, createCompany, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, portalThemeConfig, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcasePagesQuery, showcaseSectionQuery, showcaseSectionsQuery, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateCompanyMutation, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, usePortalThemeConfig, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseSectionsQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions };
package/package.json CHANGED
@@ -1,17 +1,16 @@
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.35",
4
+ "version": "0.0.37",
5
5
  "keyword": [
6
6
  "bcrumbs",
7
7
  "bc-api",
8
8
  "Bread Crumbs"
9
9
  ],
10
10
  "dependencies": {
11
- "apollo-link-rest": "^0.9.0-rc.1",
12
- "next-with-apollo": "^5.3.0",
13
- "@apollo/client": "^3.5.10",
14
- "graphql": "^15.4.0"
11
+ "apollo-link-rest": "^0.9.0",
12
+ "@apollo/client": "3.13.8",
13
+ "graphql": "15.4.0"
15
14
  },
16
15
  "author": {
17
16
  "name": "Ahmad Mhaish"
@@ -1,8 +1,2 @@
1
1
  import { ApolloClient } from '@apollo/client';
2
- declare const dqueryClient: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
3
- declare const withDQueryClient: (Page: any, pageOptions?: import("next-with-apollo").WithApolloOptions | undefined) => {
4
- ({ apollo, apolloState, router, ...props }: Partial<import("next-with-apollo").WithApolloProps<any>>): any;
5
- displayName: string;
6
- getInitialProps(pageCtx: import("next-with-apollo").ApolloContext<any>): Promise<{}>;
7
- };
8
- export { dqueryClient, withDQueryClient };
2
+ export declare const dqueryClient: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
@@ -1,7 +1,2 @@
1
1
  import { ApolloClient } from '@apollo/client';
2
2
  export declare const showcaseClient: ApolloClient<import("@apollo/client").NormalizedCacheObject>;
3
- export declare const withShowcaseClient: (Page: any, pageOptions?: import("next-with-apollo").WithApolloOptions | undefined) => {
4
- ({ apollo, apolloState, router, ...props }: Partial<import("next-with-apollo").WithApolloProps<any>>): any;
5
- displayName: string;
6
- getInitialProps(pageCtx: import("next-with-apollo").ApolloContext<any>): Promise<{}>;
7
- };