@viasoftbr/shared-ui 0.0.3 → 0.0.4

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/dist/i18n.js CHANGED
@@ -4,14 +4,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined")
11
- return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __commonJS = (cb, mod) => function __require2() {
7
+ var __commonJS = (cb, mod) => function __require() {
15
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
9
  };
17
10
  var __copyProps = (to, from, except, desc) => {
@@ -53,71 +46,6 @@ var require_void_elements = __commonJS({
53
46
  }
54
47
  });
55
48
 
56
- // node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
57
- var require_use_sync_external_store_shim_production = __commonJS({
58
- "node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
59
- "use strict";
60
- var React3 = __require("react");
61
- function is(x, y) {
62
- return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
63
- }
64
- var objectIs = "function" === typeof Object.is ? Object.is : is;
65
- var useState2 = React3.useState;
66
- var useEffect2 = React3.useEffect;
67
- var useLayoutEffect = React3.useLayoutEffect;
68
- var useDebugValue = React3.useDebugValue;
69
- function useSyncExternalStore$2(subscribe, getSnapshot) {
70
- var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
71
- useLayoutEffect(
72
- function() {
73
- inst.value = value;
74
- inst.getSnapshot = getSnapshot;
75
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
76
- },
77
- [subscribe, value, getSnapshot]
78
- );
79
- useEffect2(
80
- function() {
81
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
82
- return subscribe(function() {
83
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
84
- });
85
- },
86
- [subscribe]
87
- );
88
- useDebugValue(value);
89
- return value;
90
- }
91
- function checkIfSnapshotChanged(inst) {
92
- var latestGetSnapshot = inst.getSnapshot;
93
- inst = inst.value;
94
- try {
95
- var nextValue = latestGetSnapshot();
96
- return !objectIs(inst, nextValue);
97
- } catch (error) {
98
- return true;
99
- }
100
- }
101
- function useSyncExternalStore$1(subscribe, getSnapshot) {
102
- return getSnapshot();
103
- }
104
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
105
- exports.useSyncExternalStore = void 0 !== React3.useSyncExternalStore ? React3.useSyncExternalStore : shim;
106
- }
107
- });
108
-
109
- // node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/shim/index.js
110
- var require_shim = __commonJS({
111
- "node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
112
- "use strict";
113
- if (true) {
114
- module.exports = require_use_sync_external_store_shim_production();
115
- } else {
116
- module.exports = null;
117
- }
118
- }
119
- });
120
-
121
49
  // node_modules/.pnpm/i18next@25.8.2_typescript@5.9.3/node_modules/i18next/dist/esm/i18next.js
122
50
  var isString = (obj) => typeof obj === "string";
123
51
  var defer = () => {
@@ -3086,8 +3014,8 @@ function IcuTrans({
3086
3014
  IcuTrans.displayName = "IcuTrans";
3087
3015
 
3088
3016
  // node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.2_typescript@5.9.3__react-dom@19.2.4_react@19.2.4__react@19.2.4_typescript@5.9.3/node_modules/react-i18next/dist/es/useTranslation.js
3089
- var import_shim = __toESM(require_shim(), 1);
3090
3017
  import { useContext as useContext3, useCallback, useMemo, useEffect, useRef, useState } from "react";
3018
+ import { useSyncExternalStore } from "use-sync-external-store/shim";
3091
3019
 
3092
3020
  // node_modules/.pnpm/react-i18next@16.5.4_i18next@25.8.2_typescript@5.9.3__react-dom@19.2.4_react@19.2.4__react@19.2.4_typescript@5.9.3/node_modules/react-i18next/dist/es/withTranslation.js
3093
3021
  import { createElement as createElement2, forwardRef as forwardRefReact } from "react";
@@ -3337,16 +3265,3 @@ var i18n_default = instance;
3337
3265
  export {
3338
3266
  i18n_default as default
3339
3267
  };
3340
- /*! Bundled license information:
3341
-
3342
- use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
3343
- (**
3344
- * @license React
3345
- * use-sync-external-store-shim.production.js
3346
- *
3347
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3348
- *
3349
- * This source code is licensed under the MIT license found in the
3350
- * LICENSE file in the root directory of this source tree.
3351
- *)
3352
- */