phx-react 1.3.8 → 1.3.9

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.
@@ -1,2 +1,2 @@
1
1
  import { ApolloCache, DefaultContext, MutationFunction, OperationVariables } from '@apollo/client';
2
- export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>): Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
2
+ export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>, option?: OperationVariables): Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  var tslib_1 = require("tslib");
4
- function PHXClientMutation(mutationName) {
4
+ function PHXClientMutation(mutationName, option) {
5
5
  return tslib_1.__awaiter(this, void 0, void 0, function () {
6
6
  var startTime, data, endTime, duration;
7
7
  return tslib_1.__generator(this, function (_a) {
8
8
  switch (_a.label) {
9
9
  case 0:
10
10
  startTime = performance.now();
11
- return [4 /*yield*/, mutationName()];
11
+ return [4 /*yield*/, mutationName(option)];
12
12
  case 1:
13
13
  data = _a.sent();
14
14
  endTime = performance.now();
@@ -1 +1 @@
1
- {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,iBAAiB,CAC7C,YAAyF;;;;;;oBAEnF,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,EAAE,EAAA;;oBAA3B,IAAI,GAAG,SAAoB;oBAE3B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AAhBD,uCAgBC"}
1
+ {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,iBAAiB,CAC7C,YAAyF,EACzF,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AAjBD,uCAiBC"}
@@ -1,2 +1,2 @@
1
1
  import { LazyQueryExecFunction, OperationVariables } from '@apollo/client';
2
- export default function PHXClientQuery(queryName: LazyQueryExecFunction<any, OperationVariables>): Promise<import("@apollo/client").QueryResult<any, OperationVariables>>;
2
+ export default function PHXClientQuery(queryName: LazyQueryExecFunction<any, OperationVariables>, option?: OperationVariables): Promise<import("@apollo/client").QueryResult<any, OperationVariables>>;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  var tslib_1 = require("tslib");
4
- function PHXClientQuery(queryName) {
4
+ function PHXClientQuery(queryName, option) {
5
5
  return tslib_1.__awaiter(this, void 0, void 0, function () {
6
6
  var startTime, data, endTime, duration;
7
7
  return tslib_1.__generator(this, function (_a) {
8
8
  switch (_a.label) {
9
9
  case 0:
10
10
  startTime = performance.now();
11
- return [4 /*yield*/, queryName()];
11
+ return [4 /*yield*/, queryName(option)];
12
12
  case 1:
13
13
  data = _a.sent();
14
14
  endTime = performance.now();
@@ -1 +1 @@
1
- {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,cAAc,CAAC,SAAyD;;;;;;oBAC9F,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,SAAS,EAAE,EAAA;;oBAAxB,IAAI,GAAG,SAAiB;oBAExB,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AAdD,oCAcC"}
1
+ {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";;;AAEA,SAA8B,cAAc,CAC1C,SAAyD,EACzD,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,SAAS,CAAC,MAAM,CAAC,EAAA;;oBAA9B,IAAI,GAAG,SAAuB;oBAE9B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ;AAjBD,oCAiBC"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export interface MainWrapProps {
3
- children?: any;
4
- code?: 'iris-staging' | 'test';
5
- pathName?: string;
6
- router?: any;
3
+ children: any;
4
+ code: 'iris-staging' | 'test';
5
+ pathName: string;
6
+ router: any;
7
7
  }
8
8
  export declare const PHXMainWrap: ({ children, pathName, router, code }: MainWrapProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { ApolloCache, DefaultContext, MutationFunction, OperationVariables } from '@apollo/client';
2
- export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>): Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
2
+ export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>, option?: OperationVariables): Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>>>;
@@ -1,12 +1,12 @@
1
1
  import { __awaiter, __generator } from "tslib";
2
- export default function PHXClientMutation(mutationName) {
2
+ export default function PHXClientMutation(mutationName, option) {
3
3
  return __awaiter(this, void 0, void 0, function () {
4
4
  var startTime, data, endTime, duration;
5
5
  return __generator(this, function (_a) {
6
6
  switch (_a.label) {
7
7
  case 0:
8
8
  startTime = performance.now();
9
- return [4 /*yield*/, mutationName()];
9
+ return [4 /*yield*/, mutationName(option)];
10
10
  case 1:
11
11
  data = _a.sent();
12
12
  endTime = performance.now();
@@ -1 +1 @@
1
- {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,iBAAiB,CAC7C,YAAyF;;;;;;oBAEnF,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,EAAE,EAAA;;oBAA3B,IAAI,GAAG,SAAoB;oBAE3B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
1
+ {"version":3,"file":"clientMutationV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientMutationV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,iBAAiB,CAC7C,YAAyF,EACzF,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,YAAY,CAAC,MAAM,CAAC,EAAA;;oBAAjC,IAAI,GAAG,SAA0B;oBAEjC,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
@@ -1,2 +1,2 @@
1
1
  import { LazyQueryExecFunction, OperationVariables } from '@apollo/client';
2
- export default function PHXClientQuery(queryName: LazyQueryExecFunction<any, OperationVariables>): Promise<import("@apollo/client").QueryResult<any, OperationVariables>>;
2
+ export default function PHXClientQuery(queryName: LazyQueryExecFunction<any, OperationVariables>, option?: OperationVariables): Promise<import("@apollo/client").QueryResult<any, OperationVariables>>;
@@ -1,12 +1,12 @@
1
1
  import { __awaiter, __generator } from "tslib";
2
- export default function PHXClientQuery(queryName) {
2
+ export default function PHXClientQuery(queryName, option) {
3
3
  return __awaiter(this, void 0, void 0, function () {
4
4
  var startTime, data, endTime, duration;
5
5
  return __generator(this, function (_a) {
6
6
  switch (_a.label) {
7
7
  case 0:
8
8
  startTime = performance.now();
9
- return [4 /*yield*/, queryName()];
9
+ return [4 /*yield*/, queryName(option)];
10
10
  case 1:
11
11
  data = _a.sent();
12
12
  endTime = performance.now();
@@ -1 +1 @@
1
- {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,cAAc,CAAC,SAAyD;;;;;;oBAC9F,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,SAAS,EAAE,EAAA;;oBAAxB,IAAI,GAAG,SAAiB;oBAExB,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
1
+ {"version":3,"file":"clientQueryV2.js","sourceRoot":"","sources":["../../../../src/components/Func/clientQueryV2.ts"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAgB,cAAc,CAC1C,SAAyD,EACzD,MAA2B;;;;;;oBAErB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAGtB,qBAAM,SAAS,CAAC,MAAM,CAAC,EAAA;;oBAA9B,IAAI,GAAG,SAAuB;oBAE9B,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,CAAA;oBAC3B,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;yBAEhC,CAAA,QAAQ,GAAG,GAAG,CAAA,EAAd,wBAAc;oBAChB,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;oBAChC,qBAAM,IAAI,OAAO,CAAC,UAAC,CAAC,IAAK,OAAA,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,EAAlB,CAAkB,CAAC,EAAA;;oBAA5C,SAA4C,CAAA;;wBAE9C,sBAAO,IAAI,EAAA;;;;CACZ"}
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export interface MainWrapProps {
3
- children?: any;
4
- code?: 'iris-staging' | 'test';
5
- pathName?: string;
6
- router?: any;
3
+ children: any;
4
+ code: 'iris-staging' | 'test';
5
+ pathName: string;
6
+ router: any;
7
7
  }
8
8
  export declare const PHXMainWrap: ({ children, pathName, router, code }: MainWrapProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "My first react typescript package",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",