hanbiro-react16-sdk 1.0.19 → 1.0.21

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 (60) hide show
  1. package/dist/components/ChatAIDraft/SettingPopper.js +5 -5
  2. package/dist/components/CountryFlag/flags/KRFlag.js +1 -1
  3. package/dist/hanbiro-react16-sdk.style.css +1 -1
  4. package/dist/hanbiro-react16-sdk.umd.js +2 -2
  5. package/dist/index.js +10 -10
  6. package/dist/utils/api.d.ts +9 -0
  7. package/dist/utils/api.js +55 -0
  8. package/package.json +9 -7
  9. package/dist/node_modules/axios/index.js +0 -38
  10. package/dist/node_modules/axios/lib/adapters/adapters.js +0 -71
  11. package/dist/node_modules/axios/lib/adapters/fetch.js +0 -272
  12. package/dist/node_modules/axios/lib/adapters/xhr.js +0 -153
  13. package/dist/node_modules/axios/lib/axios.js +0 -50
  14. package/dist/node_modules/axios/lib/cancel/CancelToken.js +0 -99
  15. package/dist/node_modules/axios/lib/cancel/CanceledError.js +0 -20
  16. package/dist/node_modules/axios/lib/cancel/isCancel.js +0 -6
  17. package/dist/node_modules/axios/lib/core/Axios.js +0 -220
  18. package/dist/node_modules/axios/lib/core/AxiosError.js +0 -76
  19. package/dist/node_modules/axios/lib/core/AxiosHeaders.js +0 -238
  20. package/dist/node_modules/axios/lib/core/InterceptorManager.js +0 -66
  21. package/dist/node_modules/axios/lib/core/buildFullPath.js +0 -12
  22. package/dist/node_modules/axios/lib/core/dispatchRequest.js +0 -48
  23. package/dist/node_modules/axios/lib/core/mergeConfig.js +0 -100
  24. package/dist/node_modules/axios/lib/core/settle.js +0 -20
  25. package/dist/node_modules/axios/lib/core/transformData.js +0 -17
  26. package/dist/node_modules/axios/lib/defaults/index.js +0 -120
  27. package/dist/node_modules/axios/lib/defaults/transitional.js +0 -9
  28. package/dist/node_modules/axios/lib/env/data.js +0 -4
  29. package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -34
  30. package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
  31. package/dist/node_modules/axios/lib/helpers/bind.js +0 -8
  32. package/dist/node_modules/axios/lib/helpers/buildURL.js +0 -32
  33. package/dist/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  34. package/dist/node_modules/axios/lib/helpers/composeSignals.js +0 -41
  35. package/dist/node_modules/axios/lib/helpers/cookies.js +0 -49
  36. package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +0 -54
  37. package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -9
  38. package/dist/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  39. package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -11
  40. package/dist/node_modules/axios/lib/helpers/null.js +0 -4
  41. package/dist/node_modules/axios/lib/helpers/parseHeaders.js +0 -47
  42. package/dist/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  43. package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +0 -44
  44. package/dist/node_modules/axios/lib/helpers/resolveConfig.js +0 -52
  45. package/dist/node_modules/axios/lib/helpers/speedometer.js +0 -36
  46. package/dist/node_modules/axios/lib/helpers/spread.js +0 -8
  47. package/dist/node_modules/axios/lib/helpers/throttle.js +0 -35
  48. package/dist/node_modules/axios/lib/helpers/toFormData.js +0 -120
  49. package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -33
  50. package/dist/node_modules/axios/lib/helpers/trackStream.js +0 -169
  51. package/dist/node_modules/axios/lib/helpers/validator.js +0 -70
  52. package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  53. package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  54. package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  55. package/dist/node_modules/axios/lib/platform/browser/index.js +0 -15
  56. package/dist/node_modules/axios/lib/platform/common/utils.js +0 -15
  57. package/dist/node_modules/axios/lib/platform/index.js +0 -22
  58. package/dist/node_modules/axios/lib/utils.js +0 -429
  59. package/dist/utils/axiosAPI.d.ts +0 -1
  60. package/dist/utils/axiosAPI.js +0 -89
@@ -1,33 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import utils from "../utils.js";
18
- import toFormData from "./toFormData.js";
19
- import platform from "../platform/index.js";
20
- function toURLEncodedForm(data, options) {
21
- return toFormData(data, new platform.classes.URLSearchParams(), __spreadValues({
22
- visitor: function(value, key, path, helpers) {
23
- if (platform.isNode && utils.isBuffer(value)) {
24
- this.append(key, value.toString("base64"));
25
- return false;
26
- }
27
- return helpers.defaultVisitor.apply(this, arguments);
28
- }
29
- }, options));
30
- }
31
- export {
32
- toURLEncodedForm as default
33
- };
@@ -1,169 +0,0 @@
1
- var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
2
- var __typeError = (msg) => {
3
- throw TypeError(msg);
4
- };
5
- var __async = (__this, __arguments, generator) => {
6
- return new Promise((resolve, reject) => {
7
- var fulfilled = (value) => {
8
- try {
9
- step(generator.next(value));
10
- } catch (e) {
11
- reject(e);
12
- }
13
- };
14
- var rejected = (value) => {
15
- try {
16
- step(generator.throw(value));
17
- } catch (e) {
18
- reject(e);
19
- }
20
- };
21
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
22
- step((generator = generator.apply(__this, __arguments)).next());
23
- });
24
- };
25
- var __await = function(promise, isYieldStar) {
26
- this[0] = promise;
27
- this[1] = isYieldStar;
28
- };
29
- var __asyncGenerator = (__this, __arguments, generator) => {
30
- var resume = (k, v, yes, no) => {
31
- try {
32
- var x = generator[k](v), isAwait = (v = x.value) instanceof __await, done = x.done;
33
- Promise.resolve(isAwait ? v[0] : v).then((y) => isAwait ? resume(k === "return" ? k : "next", v[1] ? { done: y.done, value: y.value } : y, yes, no) : yes({ value: y, done })).catch((e) => resume("throw", e, yes, no));
34
- } catch (e) {
35
- no(e);
36
- }
37
- }, method = (k) => it[k] = (x) => new Promise((yes, no) => resume(k, x, yes, no)), it = {};
38
- return generator = generator.apply(__this, __arguments), it[__knownSymbol("asyncIterator")] = () => it, method("next"), method("throw"), method("return"), it;
39
- };
40
- var __yieldStar = (value) => {
41
- var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
42
- if (obj == null) {
43
- obj = value[__knownSymbol("iterator")]();
44
- method = (k) => it[k] = (x) => obj[k](x);
45
- } else {
46
- obj = obj.call(value);
47
- method = (k) => it[k] = (v) => {
48
- if (isAwait) {
49
- isAwait = false;
50
- if (k === "throw") throw v;
51
- return v;
52
- }
53
- isAwait = true;
54
- return {
55
- done: false,
56
- value: new __await(new Promise((resolve) => {
57
- var x = obj[k](v);
58
- if (!(x instanceof Object)) __typeError("Object expected");
59
- resolve(x);
60
- }), 1)
61
- };
62
- };
63
- }
64
- return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
65
- throw x;
66
- }, "return" in obj && method("return"), it;
67
- };
68
- var __forAwait = (obj, it, method) => (it = obj[__knownSymbol("asyncIterator")]) ? it.call(obj) : (obj = obj[__knownSymbol("iterator")](), it = {}, method = (key, fn) => (fn = obj[key]) && (it[key] = (arg) => new Promise((yes, no, done) => (arg = fn.call(obj, arg), done = arg.done, Promise.resolve(arg.value).then((value) => yes({ value, done }), no)))), method("next"), method("return"), it);
69
- const streamChunk = function* (chunk, chunkSize) {
70
- let len = chunk.byteLength;
71
- if (len < chunkSize) {
72
- yield chunk;
73
- return;
74
- }
75
- let pos = 0;
76
- let end;
77
- while (pos < len) {
78
- end = pos + chunkSize;
79
- yield chunk.slice(pos, end);
80
- pos = end;
81
- }
82
- };
83
- const readBytes = function(iterable, chunkSize) {
84
- return __asyncGenerator(this, null, function* () {
85
- try {
86
- for (var iter = __forAwait(readStream(iterable)), more, temp, error; more = !(temp = yield new __await(iter.next())).done; more = false) {
87
- const chunk = temp.value;
88
- yield* __yieldStar(streamChunk(chunk, chunkSize));
89
- }
90
- } catch (temp) {
91
- error = [temp];
92
- } finally {
93
- try {
94
- more && (temp = iter.return) && (yield new __await(temp.call(iter)));
95
- } finally {
96
- if (error)
97
- throw error[0];
98
- }
99
- }
100
- });
101
- };
102
- const readStream = function(stream) {
103
- return __asyncGenerator(this, null, function* () {
104
- if (stream[Symbol.asyncIterator]) {
105
- yield* __yieldStar(stream);
106
- return;
107
- }
108
- const reader = stream.getReader();
109
- try {
110
- for (; ; ) {
111
- const { done, value } = yield new __await(reader.read());
112
- if (done) {
113
- break;
114
- }
115
- yield value;
116
- }
117
- } finally {
118
- yield new __await(reader.cancel());
119
- }
120
- });
121
- };
122
- const trackStream = (stream, chunkSize, onProgress, onFinish) => {
123
- const iterator = readBytes(stream, chunkSize);
124
- let bytes = 0;
125
- let done;
126
- let _onFinish = (e) => {
127
- if (!done) {
128
- done = true;
129
- onFinish && onFinish(e);
130
- }
131
- };
132
- return new ReadableStream(
133
- {
134
- pull(controller) {
135
- return __async(this, null, function* () {
136
- try {
137
- const { done: done2, value } = yield iterator.next();
138
- if (done2) {
139
- _onFinish();
140
- controller.close();
141
- return;
142
- }
143
- let len = value.byteLength;
144
- if (onProgress) {
145
- let loadedBytes = bytes += len;
146
- onProgress(loadedBytes);
147
- }
148
- controller.enqueue(new Uint8Array(value));
149
- } catch (err) {
150
- _onFinish(err);
151
- throw err;
152
- }
153
- });
154
- },
155
- cancel(reason) {
156
- _onFinish(reason);
157
- return iterator.return();
158
- }
159
- },
160
- {
161
- highWaterMark: 2
162
- }
163
- );
164
- };
165
- export {
166
- readBytes,
167
- streamChunk,
168
- trackStream
169
- };
@@ -1,70 +0,0 @@
1
- import { VERSION } from "../env/data.js";
2
- import AxiosError from "../core/AxiosError.js";
3
- const validators = {};
4
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
5
- validators[type] = function validator2(thing) {
6
- return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
7
- };
8
- });
9
- const deprecatedWarnings = {};
10
- validators.transitional = function transitional(validator2, version, message) {
11
- function formatMessage(opt, desc) {
12
- return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
13
- }
14
- return (value, opt, opts) => {
15
- if (validator2 === false) {
16
- throw new AxiosError(
17
- formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
18
- AxiosError.ERR_DEPRECATED
19
- );
20
- }
21
- if (version && !deprecatedWarnings[opt]) {
22
- deprecatedWarnings[opt] = true;
23
- console.warn(
24
- formatMessage(
25
- opt,
26
- " has been deprecated since v" + version + " and will be removed in the near future"
27
- )
28
- );
29
- }
30
- return validator2 ? validator2(value, opt, opts) : true;
31
- };
32
- };
33
- validators.spelling = function spelling(correctSpelling) {
34
- return (value, opt) => {
35
- console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
36
- return true;
37
- };
38
- };
39
- function assertOptions(options, schema, allowUnknown) {
40
- if (typeof options !== "object") {
41
- throw new AxiosError("options must be an object", AxiosError.ERR_BAD_OPTION_VALUE);
42
- }
43
- const keys = Object.keys(options);
44
- let i = keys.length;
45
- while (i-- > 0) {
46
- const opt = keys[i];
47
- const validator2 = schema[opt];
48
- if (validator2) {
49
- const value = options[opt];
50
- const result = value === void 0 || validator2(value, opt, options);
51
- if (result !== true) {
52
- throw new AxiosError(
53
- "option " + opt + " must be " + result,
54
- AxiosError.ERR_BAD_OPTION_VALUE
55
- );
56
- }
57
- continue;
58
- }
59
- if (allowUnknown !== true) {
60
- throw new AxiosError("Unknown option " + opt, AxiosError.ERR_BAD_OPTION);
61
- }
62
- }
63
- }
64
- const validator = {
65
- assertOptions,
66
- validators
67
- };
68
- export {
69
- validator as default
70
- };
@@ -1,4 +0,0 @@
1
- const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
2
- export {
3
- Blob$1 as default
4
- };
@@ -1,4 +0,0 @@
1
- const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
2
- export {
3
- FormData$1 as default
4
- };
@@ -1,5 +0,0 @@
1
- import AxiosURLSearchParams from "../../../helpers/AxiosURLSearchParams.js";
2
- const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
3
- export {
4
- URLSearchParams$1 as default
5
- };
@@ -1,15 +0,0 @@
1
- import URLSearchParams from "./classes/URLSearchParams.js";
2
- import FormData from "./classes/FormData.js";
3
- import Blob from "./classes/Blob.js";
4
- const platform = {
5
- isBrowser: true,
6
- classes: {
7
- URLSearchParams,
8
- FormData,
9
- Blob
10
- },
11
- protocols: ["http", "https", "file", "blob", "url", "data"]
12
- };
13
- export {
14
- platform as default
15
- };
@@ -1,15 +0,0 @@
1
- const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
2
- const _navigator = typeof navigator === "object" && navigator || void 0;
3
- const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
4
- const hasStandardBrowserWebWorkerEnv = (() => {
5
- return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
6
- self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
7
- })();
8
- const origin = hasBrowserEnv && window.location.href || "http://localhost";
9
- export {
10
- hasBrowserEnv,
11
- hasStandardBrowserEnv,
12
- hasStandardBrowserWebWorkerEnv,
13
- _navigator as navigator,
14
- origin
15
- };
@@ -1,22 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- import platform$1 from "./browser/index.js";
18
- import * as utils from "./common/utils.js";
19
- const platform = __spreadValues(__spreadValues({}, utils), platform$1);
20
- export {
21
- platform as default
22
- };