@sankhyalabs/sankhyablocks 1.1.27 → 1.1.28

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 (97) hide show
  1. package/dist/cjs/{AssetsUtils-bd004f63.js → AssetsUtils-7e3c38f9.js} +1 -1
  2. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-button_4.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-grid.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-modal_2.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
  24. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  26. package/dist/cjs/{index-6ac5268e.js → index-682c98b2.js} +9 -7
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/sankhyablocks.cjs.js +2 -2
  29. package/dist/cjs/snk-application.cjs.entry.js +291 -8
  30. package/dist/cjs/test-du.cjs.entry.js +1 -1
  31. package/dist/collection/collection-manifest.json +1 -1
  32. package/dist/collection/components/snk-application/snk-application.js +0 -3
  33. package/dist/components/snk-application.js +290 -7
  34. package/dist/esm/{AssetsUtils-98074c9c.js → AssetsUtils-6e6624dc.js} +1 -1
  35. package/dist/esm/ez-action-chip.entry.js +1 -1
  36. package/dist/esm/ez-application.entry.js +1 -1
  37. package/dist/esm/ez-button_4.entry.js +1 -1
  38. package/dist/esm/ez-calendar.entry.js +1 -1
  39. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  40. package/dist/esm/ez-combo-box.entry.js +1 -1
  41. package/dist/esm/ez-date-input.entry.js +1 -1
  42. package/dist/esm/ez-date-time-input.entry.js +1 -1
  43. package/dist/esm/ez-dialog.entry.js +1 -1
  44. package/dist/esm/ez-form.entry.js +1 -1
  45. package/dist/esm/ez-grid.entry.js +1 -1
  46. package/dist/esm/ez-icon.entry.js +1 -1
  47. package/dist/esm/ez-label-chip.entry.js +1 -1
  48. package/dist/esm/ez-modal_2.entry.js +2 -2
  49. package/dist/esm/ez-number-input.entry.js +1 -1
  50. package/dist/esm/ez-popover.entry.js +1 -1
  51. package/dist/esm/ez-popup.entry.js +1 -1
  52. package/dist/esm/ez-search.entry.js +1 -1
  53. package/dist/esm/ez-tabselector.entry.js +1 -1
  54. package/dist/esm/ez-text-area.entry.js +1 -1
  55. package/dist/esm/ez-text-input.entry.js +1 -1
  56. package/dist/esm/ez-time-input.entry.js +2 -2
  57. package/dist/esm/ez-toast.entry.js +1 -1
  58. package/dist/esm/ez-upload.entry.js +1 -1
  59. package/dist/esm/{index-df166135.js → index-35088a3f.js} +9 -7
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/sankhyablocks.js +2 -2
  62. package/dist/esm/snk-application.entry.js +291 -8
  63. package/dist/esm/test-du.entry.js +1 -1
  64. package/dist/sankhyablocks/{p-28a0dbf0.entry.js → p-0183d259.entry.js} +1 -1
  65. package/dist/sankhyablocks/{p-9e22ec87.entry.js → p-01f23a70.entry.js} +1 -1
  66. package/dist/sankhyablocks/{p-b3a83eaf.entry.js → p-07c32f68.entry.js} +1 -1
  67. package/dist/sankhyablocks/p-0f90499d.entry.js +1 -0
  68. package/dist/sankhyablocks/{p-9f7239df.entry.js → p-105724a3.entry.js} +1 -1
  69. package/dist/sankhyablocks/{p-e5f77a59.entry.js → p-2ac02d48.entry.js} +1 -1
  70. package/dist/sankhyablocks/{p-ca29d028.entry.js → p-35364a97.entry.js} +1 -1
  71. package/dist/sankhyablocks/{p-afda7940.entry.js → p-3f6aa9a7.entry.js} +1 -1
  72. package/dist/sankhyablocks/{p-d3a5366d.entry.js → p-4811bc0a.entry.js} +1 -1
  73. package/dist/sankhyablocks/{p-9b33a005.entry.js → p-5f9af495.entry.js} +1 -1
  74. package/dist/sankhyablocks/p-60967cf0.js +1 -0
  75. package/dist/sankhyablocks/{p-c61c0e40.entry.js → p-70ad6c16.entry.js} +1 -1
  76. package/dist/sankhyablocks/{p-7122cec4.entry.js → p-710bfffe.entry.js} +1 -1
  77. package/dist/sankhyablocks/{p-0a77ac95.entry.js → p-73397a0f.entry.js} +6 -6
  78. package/dist/sankhyablocks/p-85a9446b.js +2 -0
  79. package/dist/sankhyablocks/{p-1c423f5d.entry.js → p-89a1100f.entry.js} +1 -1
  80. package/dist/sankhyablocks/{p-1beadcaf.entry.js → p-8b543003.entry.js} +1 -1
  81. package/dist/sankhyablocks/{p-08e1cded.entry.js → p-9750632b.entry.js} +1 -1
  82. package/dist/sankhyablocks/{p-d5703a41.entry.js → p-a96272f7.entry.js} +1 -1
  83. package/dist/sankhyablocks/{p-5dc772be.entry.js → p-ac8842e5.entry.js} +1 -1
  84. package/dist/sankhyablocks/{p-4c66200a.entry.js → p-ba64cc41.entry.js} +1 -1
  85. package/dist/sankhyablocks/{p-a9aba60a.entry.js → p-c1ede043.entry.js} +1 -1
  86. package/dist/sankhyablocks/{p-e9e94d51.entry.js → p-d90ebb85.entry.js} +1 -1
  87. package/dist/sankhyablocks/{p-b96a8d40.entry.js → p-e5355a29.entry.js} +1 -1
  88. package/dist/sankhyablocks/{p-a47e0537.entry.js → p-ef04b633.entry.js} +1 -1
  89. package/dist/sankhyablocks/{p-1421b89a.entry.js → p-f6db07fb.entry.js} +1 -1
  90. package/dist/sankhyablocks/{p-5ff3e300.entry.js → p-f80cabc7.entry.js} +1 -1
  91. package/dist/sankhyablocks/{p-cd17abb1.entry.js → p-fcd9bd92.entry.js} +1 -1
  92. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  93. package/dist/types/components.d.ts +6 -2
  94. package/package.json +6 -6
  95. package/dist/sankhyablocks/p-126c4aaa.entry.js +0 -1
  96. package/dist/sankhyablocks/p-4763d5c2.js +0 -1
  97. package/dist/sankhyablocks/p-9f7e6e48.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6ac5268e.js');
5
+ const index = require('./index-682c98b2.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
@@ -5655,6 +5655,280 @@ exports.ClientError = ClientError;
5655
5655
  //# sourceMappingURL=types.js.map
5656
5656
  });
5657
5657
 
5658
+ var graphqlWs = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5659
+ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
5660
+ __assign = Object.assign || function(t) {
5661
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5662
+ s = arguments[i];
5663
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
5664
+ t[p] = s[p];
5665
+ }
5666
+ return t;
5667
+ };
5668
+ return __assign.apply(this, arguments);
5669
+ };
5670
+ var __awaiter = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
5671
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5672
+ return new (P || (P = Promise))(function (resolve, reject) {
5673
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5674
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5675
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
5676
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
5677
+ });
5678
+ };
5679
+ var __generator = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__generator) || function (thisArg, body) {
5680
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5681
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5682
+ function verb(n) { return function (v) { return step([n, v]); }; }
5683
+ function step(op) {
5684
+ if (f) throw new TypeError("Generator is already executing.");
5685
+ while (_) try {
5686
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
5687
+ if (y = 0, t) op = [op[0] & 2, t.value];
5688
+ switch (op[0]) {
5689
+ case 0: case 1: t = op; break;
5690
+ case 4: _.label++; return { value: op[1], done: false };
5691
+ case 5: _.label++; y = op[1]; op = [0]; continue;
5692
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
5693
+ default:
5694
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
5695
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
5696
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
5697
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
5698
+ if (t[2]) _.ops.pop();
5699
+ _.trys.pop(); continue;
5700
+ }
5701
+ op = body.call(thisArg, _);
5702
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
5703
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5704
+ }
5705
+ };
5706
+ Object.defineProperty(exports, "__esModule", { value: true });
5707
+ exports.GraphQLWebSocketClient = void 0;
5708
+
5709
+
5710
+ var CONNECTION_INIT = 'connection_init';
5711
+ var CONNECTION_ACK = 'connection_ack';
5712
+ var PING = 'ping';
5713
+ var PONG = 'pong';
5714
+ var SUBSCRIBE = 'subscribe';
5715
+ var NEXT = 'next';
5716
+ var ERROR = 'error';
5717
+ var COMPLETE = 'complete';
5718
+ var GraphQLWebSocketMessage = /** @class */ (function () {
5719
+ function GraphQLWebSocketMessage(type, payload, id) {
5720
+ this._type = type;
5721
+ this._payload = payload;
5722
+ this._id = id;
5723
+ }
5724
+ Object.defineProperty(GraphQLWebSocketMessage.prototype, "type", {
5725
+ get: function () { return this._type; },
5726
+ enumerable: false,
5727
+ configurable: true
5728
+ });
5729
+ Object.defineProperty(GraphQLWebSocketMessage.prototype, "id", {
5730
+ get: function () { return this._id; },
5731
+ enumerable: false,
5732
+ configurable: true
5733
+ });
5734
+ Object.defineProperty(GraphQLWebSocketMessage.prototype, "payload", {
5735
+ get: function () { return this._payload; },
5736
+ enumerable: false,
5737
+ configurable: true
5738
+ });
5739
+ Object.defineProperty(GraphQLWebSocketMessage.prototype, "text", {
5740
+ get: function () {
5741
+ var result = { type: this.type };
5742
+ if (this.id != null && this.id != undefined)
5743
+ result.id = this.id;
5744
+ if (this.payload != null && this.payload != undefined)
5745
+ result.payload = this.payload;
5746
+ return JSON.stringify(result);
5747
+ },
5748
+ enumerable: false,
5749
+ configurable: true
5750
+ });
5751
+ GraphQLWebSocketMessage.parse = function (data, f) {
5752
+ var _a = JSON.parse(data), type = _a.type, payload = _a.payload, id = _a.id;
5753
+ return new GraphQLWebSocketMessage(type, f(payload), id);
5754
+ };
5755
+ return GraphQLWebSocketMessage;
5756
+ }());
5757
+ var GraphQLWebSocketClient = /** @class */ (function () {
5758
+ function GraphQLWebSocketClient(socket, _a) {
5759
+ var _this = this;
5760
+ var onInit = _a.onInit, onAcknowledged = _a.onAcknowledged, onPing = _a.onPing, onPong = _a.onPong;
5761
+ this.socketState = { acknowledged: false, lastRequestId: 0, subscriptions: {} };
5762
+ this.socket = socket;
5763
+ socket.onopen = function (e) { return __awaiter(_this, void 0, void 0, function () {
5764
+ var _a, _b, _c, _d;
5765
+ return __generator(this, function (_e) {
5766
+ switch (_e.label) {
5767
+ case 0:
5768
+ this.socketState.acknowledged = false;
5769
+ this.socketState.subscriptions = {};
5770
+ _b = (_a = socket).send;
5771
+ _c = ConnectionInit;
5772
+ if (!onInit) return [3 /*break*/, 2];
5773
+ return [4 /*yield*/, onInit()];
5774
+ case 1:
5775
+ _d = _e.sent();
5776
+ return [3 /*break*/, 3];
5777
+ case 2:
5778
+ _d = null;
5779
+ _e.label = 3;
5780
+ case 3:
5781
+ _b.apply(_a, [_c.apply(void 0, [_d]).text]);
5782
+ return [2 /*return*/];
5783
+ }
5784
+ });
5785
+ }); };
5786
+ socket.onclose = function (e) {
5787
+ _this.socketState.acknowledged = false;
5788
+ _this.socketState.subscriptions = {};
5789
+ };
5790
+ socket.onerror = function (e) {
5791
+ console.error(e);
5792
+ };
5793
+ socket.onmessage = function (e) {
5794
+ try {
5795
+ var message = parseMessage(e.data);
5796
+ switch (message.type) {
5797
+ case CONNECTION_ACK: {
5798
+ if (_this.socketState.acknowledged) {
5799
+ console.warn("Duplicate CONNECTION_ACK message ignored");
5800
+ }
5801
+ else {
5802
+ _this.socketState.acknowledged = true;
5803
+ if (onAcknowledged)
5804
+ onAcknowledged(message.payload);
5805
+ }
5806
+ return;
5807
+ }
5808
+ case PING: {
5809
+ if (onPing)
5810
+ onPing(message.payload).then(function (r) { return socket.send(Pong(r).text); });
5811
+ else
5812
+ socket.send(Pong(null).text);
5813
+ return;
5814
+ }
5815
+ case PONG: {
5816
+ if (onPong)
5817
+ onPong(message.payload);
5818
+ return;
5819
+ }
5820
+ }
5821
+ if (!_this.socketState.acknowledged) {
5822
+ // Web-socket connection not acknowledged
5823
+ return;
5824
+ }
5825
+ if (message.id === undefined || message.id === null || !_this.socketState.subscriptions[message.id]) {
5826
+ // No subscription identifer or subscription indentifier is not found
5827
+ return;
5828
+ }
5829
+ var _a = _this.socketState.subscriptions[message.id], query = _a.query, variables = _a.variables, subscriber = _a.subscriber;
5830
+ switch (message.type) {
5831
+ case NEXT: {
5832
+ if (!message.payload.errors && message.payload.data) {
5833
+ subscriber.next && subscriber.next(message.payload.data);
5834
+ }
5835
+ if (message.payload.errors) {
5836
+ subscriber.error && subscriber.error(new types.ClientError(__assign(__assign({}, message.payload), { status: 200 }), { query: query, variables: variables }));
5837
+ }
5838
+ return;
5839
+ }
5840
+ case ERROR: {
5841
+ subscriber.error && subscriber.error(new types.ClientError({ errors: message.payload, status: 200 }, { query: query, variables: variables }));
5842
+ return;
5843
+ }
5844
+ case COMPLETE: {
5845
+ subscriber.complete && subscriber.complete();
5846
+ delete _this.socketState.subscriptions[message.id];
5847
+ return;
5848
+ }
5849
+ }
5850
+ }
5851
+ catch (e) {
5852
+ // Unexpected errors while handling graphql-ws message
5853
+ console.error(e);
5854
+ socket.close(1006);
5855
+ }
5856
+ socket.close(4400, "Unknown graphql-ws message.");
5857
+ };
5858
+ }
5859
+ GraphQLWebSocketClient.prototype.makeSubscribe = function (query, operationName, variables, subscriber) {
5860
+ var _this = this;
5861
+ var subscriptionId = (this.socketState.lastRequestId++).toString();
5862
+ this.socketState.subscriptions[subscriptionId] = { query: query, variables: variables, subscriber: subscriber };
5863
+ this.socket.send(Subscribe(subscriptionId, { query: query, operationName: operationName, variables: variables }).text);
5864
+ return function () {
5865
+ _this.socket.send(Complete(subscriptionId).text);
5866
+ delete _this.socketState.subscriptions[subscriptionId];
5867
+ };
5868
+ };
5869
+ GraphQLWebSocketClient.prototype.rawRequest = function (query, variables) {
5870
+ var _this = this;
5871
+ return new Promise(function (resolve, reject) {
5872
+ var result;
5873
+ _this.rawSubscribe(query, {
5874
+ next: function (data, extensions) { return (result = { data: data, extensions: extensions }); },
5875
+ error: reject,
5876
+ complete: function () { return resolve(result); },
5877
+ }, variables);
5878
+ });
5879
+ };
5880
+ GraphQLWebSocketClient.prototype.request = function (document, variables) {
5881
+ var _this = this;
5882
+ return new Promise(function (resolve, reject) {
5883
+ var result;
5884
+ _this.subscribe(document, {
5885
+ next: function (data) { return (result = data); },
5886
+ error: reject,
5887
+ complete: function () { return resolve(result); },
5888
+ }, variables);
5889
+ });
5890
+ };
5891
+ GraphQLWebSocketClient.prototype.subscribe = function (document, subscriber, variables) {
5892
+ var _a = dist.resolveRequestDocument(document), query = _a.query, operationName = _a.operationName;
5893
+ return this.makeSubscribe(query, operationName, variables, subscriber);
5894
+ };
5895
+ GraphQLWebSocketClient.prototype.rawSubscribe = function (query, subscriber, variables) {
5896
+ return this.makeSubscribe(query, undefined, variables, subscriber);
5897
+ };
5898
+ GraphQLWebSocketClient.prototype.ping = function (payload) {
5899
+ this.socket.send(Ping(payload).text);
5900
+ };
5901
+ GraphQLWebSocketClient.prototype.close = function () {
5902
+ this.socket.close(1000);
5903
+ };
5904
+ GraphQLWebSocketClient.PROTOCOL = "graphql-transport-ws";
5905
+ return GraphQLWebSocketClient;
5906
+ }());
5907
+ exports.GraphQLWebSocketClient = GraphQLWebSocketClient;
5908
+ // Helper functions
5909
+ function parseMessage(data, f) {
5910
+ if (f === void 0) { f = function (a) { return a; }; }
5911
+ var m = GraphQLWebSocketMessage.parse(data, f);
5912
+ return m;
5913
+ }
5914
+ function ConnectionInit(payload) {
5915
+ return new GraphQLWebSocketMessage(CONNECTION_INIT, payload);
5916
+ }
5917
+ function Ping(payload) {
5918
+ return new GraphQLWebSocketMessage(PING, payload, undefined);
5919
+ }
5920
+ function Pong(payload) {
5921
+ return new GraphQLWebSocketMessage(PONG, payload, undefined);
5922
+ }
5923
+ function Subscribe(id, payload) {
5924
+ return new GraphQLWebSocketMessage(SUBSCRIBE, payload, id);
5925
+ }
5926
+ function Complete(id) {
5927
+ return new GraphQLWebSocketMessage(COMPLETE, undefined, id);
5928
+ }
5929
+ //# sourceMappingURL=graphql-ws.js.map
5930
+ });
5931
+
5658
5932
  var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5659
5933
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
5660
5934
  __assign = Object.assign || function(t) {
@@ -5737,7 +6011,7 @@ var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commo
5737
6011
  return (mod && mod.__esModule) ? mod : { "default": mod };
5738
6012
  };
5739
6013
  Object.defineProperty(exports, "__esModule", { value: true });
5740
- exports.gql = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
6014
+ exports.GraphQLWebSocketClient = exports.gql = exports.resolveRequestDocument = exports.batchRequests = exports.request = exports.rawRequest = exports.GraphQLClient = exports.ClientError = void 0;
5741
6015
  var cross_fetch_1 = __importStar(browserPonyfill), CrossFetch = cross_fetch_1;
5742
6016
 
5743
6017
 
@@ -5871,7 +6145,7 @@ var GraphQLClient = /** @class */ (function () {
5871
6145
  url: url,
5872
6146
  query: rawRequestOptions.query,
5873
6147
  variables: rawRequestOptions.variables,
5874
- headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(rawRequestOptions.requestHeaders)),
6148
+ headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(rawRequestOptions.requestHeaders)),
5875
6149
  operationName: operationName,
5876
6150
  fetch: fetch,
5877
6151
  method: method,
@@ -5897,7 +6171,7 @@ var GraphQLClient = /** @class */ (function () {
5897
6171
  url: url,
5898
6172
  query: query,
5899
6173
  variables: requestOptions.variables,
5900
- headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(requestOptions.requestHeaders)),
6174
+ headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(requestOptions.requestHeaders)),
5901
6175
  operationName: operationName,
5902
6176
  fetch: fetch,
5903
6177
  method: method,
@@ -5934,7 +6208,7 @@ var GraphQLClient = /** @class */ (function () {
5934
6208
  url: url,
5935
6209
  query: queries,
5936
6210
  variables: variables,
5937
- headers: __assign(__assign({}, resolveHeaders(headers)), resolveHeaders(batchRequestOptions.requestHeaders)),
6211
+ headers: __assign(__assign({}, resolveHeaders(callOrIdentity(headers))), resolveHeaders(batchRequestOptions.requestHeaders)),
5938
6212
  operationName: undefined,
5939
6213
  fetch: fetch,
5940
6214
  method: method,
@@ -5980,7 +6254,7 @@ exports.GraphQLClient = GraphQLClient;
5980
6254
  function makeRequest(_a) {
5981
6255
  var url = _a.url, query = _a.query, variables = _a.variables, headers = _a.headers, operationName = _a.operationName, fetch = _a.fetch, _b = _a.method, method = _b === void 0 ? 'POST' : _b, fetchOptions = _a.fetchOptions;
5982
6256
  return __awaiter(this, void 0, void 0, function () {
5983
- var fetcher, isBathchingQuery, response, result, successfullyReceivedData, headers_1, status_1, errorResult;
6257
+ var fetcher, isBathchingQuery, response, result, successfullyReceivedData, successfullyPassedErrorPolicy, headers_1, status_1, rest, data, errorResult;
5984
6258
  return __generator(this, function (_c) {
5985
6259
  switch (_c.label) {
5986
6260
  case 0:
@@ -6004,9 +6278,12 @@ function makeRequest(_a) {
6004
6278
  var data = _a.data;
6005
6279
  return !data;
6006
6280
  }) : !!result.data;
6007
- if (response.ok && !result.errors && successfullyReceivedData) {
6281
+ successfullyPassedErrorPolicy = !result.errors || fetchOptions.errorPolicy === 'all' || fetchOptions.errorPolicy === 'ignore';
6282
+ if (response.ok && successfullyPassedErrorPolicy && successfullyReceivedData) {
6008
6283
  headers_1 = response.headers, status_1 = response.status;
6009
- return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: result } : result)), { headers: headers_1, status: status_1 })];
6284
+ rest = __rest(result, ["errors"]);
6285
+ data = fetchOptions.errorPolicy === 'ignore' ? rest : result;
6286
+ return [2 /*return*/, __assign(__assign({}, (isBathchingQuery ? { data: data } : data)), { headers: headers_1, status: status_1 })];
6010
6287
  }
6011
6288
  else {
6012
6289
  errorResult = typeof result === 'string' ? { error: result } : result;
@@ -6101,6 +6378,10 @@ function resolveRequestDocument(document) {
6101
6378
  var operationName = extractOperationName(document);
6102
6379
  return { query: printer.print(document), operationName: operationName };
6103
6380
  }
6381
+ exports.resolveRequestDocument = resolveRequestDocument;
6382
+ function callOrIdentity(value) {
6383
+ return typeof value === 'function' ? value() : value;
6384
+ }
6104
6385
  /**
6105
6386
  * Convenience passthrough template tag to get the benefits of tooling for the gql template tag. This does not actually parse the input into a GraphQL DocumentNode like graphql-tag package does. It just returns the string with any variables given interpolated. Can save you a bit of performance and having to install another package.
6106
6387
  *
@@ -6132,6 +6413,8 @@ function HeadersInstanceToPlainObject(headers) {
6132
6413
  });
6133
6414
  return o;
6134
6415
  }
6416
+
6417
+ Object.defineProperty(exports, "GraphQLWebSocketClient", { enumerable: true, get: function () { return graphqlWs.GraphQLWebSocketClient; } });
6135
6418
  //# sourceMappingURL=index.js.map
6136
6419
  });
6137
6420
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6ac5268e.js');
5
+ const index = require('./index-682c98b2.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const testDuCss = ":host{display:block}";
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.15.2",
7
+ "version": "2.16.1",
8
8
  "typescriptVersion": "4.5.4"
9
9
  },
10
10
  "collections": [
@@ -3,9 +3,6 @@ import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/dataunit-fetch
3
3
  import UrlUtils from "../../lib/utils/urlutils";
4
4
  import Workspace from "../../lib/workspace/workspace";
5
5
  import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
6
- //FIXME: temporariamente estamos compiando essa classe do ezui pois não conseguimos
7
- //incluída no pacote. Isso deve ser resolvido nas proximas entregas e então ajustado aqui
8
- //import ApplicationUtils from "../../temp/ApplicationUtils";
9
6
  import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
10
7
  import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
11
8
  import { ApplicationContext } from "@sankhyalabs/core";