@propknot/shared-ui 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1 +1 @@
1
- # propknot-shared-ui
1
+ # propknot-shared-ui
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
- // ../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs
35
+ // ../../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs
36
36
  function createMemoryHistory(options = {}) {
37
37
  let { initialEntries = ["/"], initialIndex, v5Compat = false } = options;
38
38
  let entries;
@@ -9977,7 +9977,7 @@ function htmlEscape(str) {
9977
9977
  }
9978
9978
  var React2, React22, React3, React4, React9, React8, React7, React6, React5, React10, React11, import_meta, __typeError, __accessCheck, __privateGet, __privateAdd, Action, PopStateEventType, _map, RouterContextProvider, unsupportedLazyRouteObjectKeys, unsupportedLazyRouteFunctionKeys, paramRe, dynamicSegmentValue, indexRouteValue, emptySegmentValue, staticSegmentValue, splatPenalty, isSplat, ABSOLUTE_URL_REGEX, isAbsoluteUrl, joinPaths, normalizePathname, normalizeSearch, normalizeHash, DataWithResponseInit, redirect, redirectDocument, replace, ErrorResponseImpl, UninstrumentedSymbol, objectProtoNames, validMutationMethodsArr, validMutationMethods, validRequestMethodsArr, validRequestMethods, redirectStatusCodes, redirectPreserveMethodStatusCodes, IDLE_NAVIGATION, IDLE_FETCHER, IDLE_BLOCKER, defaultMapRouteProperties, TRANSITIONS_STORAGE_KEY, ResetLoaderDataSymbol, lazyRoutePropertyCache, loadLazyRouteProperty, lazyRouteFunctionCache, DataRouterContext, DataRouterStateContext, RSCRouterContext, ViewTransitionContext, FetchersContext, AwaitContext, AwaitContextProvider, NavigationContext, LocationContext, RouteContext, RouteErrorContext, ENABLE_DEV_WARNINGS, navigateEffectWarning, OutletContext, defaultErrorElement, RenderErrorBoundary, blockerId, alreadyWarned, alreadyWarned2, hydrationRouteProperties, Deferred, MemoizedDataRoutes, AwaitErrorBoundary, createRoutesFromElements, defaultMethod, defaultEncType, _formDataSupportsSubmitter, supportedFormEncTypes, HOLE, NAN, NEGATIVE_INFINITY, NEGATIVE_ZERO, NULL, POSITIVE_INFINITY, UNDEFINED, TYPE_BIGINT, TYPE_DATE, TYPE_ERROR, TYPE_MAP, TYPE_NULL_OBJECT, TYPE_PROMISE, TYPE_REGEXP, TYPE_SET, TYPE_SYMBOL, TYPE_URL, TYPE_PREVIOUS_RESOLVED, Deferred2, objectProtoNames2, globalObj, ESCAPE_LOOKUP, ESCAPE_REGEX, SingleFetchRedirectSymbol, SingleFetchNoResultError, SINGLE_FETCH_REDIRECT_STATUS, NO_BODY_STATUS_CODES, _isPreloadSupported, nextPaths, discoveredPathsMaxSize, discoveredPaths, URL_LIMIT, MANIFEST_VERSION_STORAGE_KEY, FrameworkContext, CRITICAL_CSS_DATA_ATTRIBUTE, isHydrated, RemixErrorBoundary, isBrowser, ABSOLUTE_URL_REGEX2, Link, NavLink, Form, fetcherId, getUniqueFetcherId, SCROLL_RESTORATION_STORAGE_KEY, savedScrollPositions, ABSOLUTE_URL_REGEX3, ESCAPE_LOOKUP2, ESCAPE_REGEX2;
9979
9979
  var init_chunk_4WY6JWTD = __esm({
9980
- "../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs"() {
9980
+ "../../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs"() {
9981
9981
  React2 = __toESM(require("react"), 1);
9982
9982
  React22 = __toESM(require("react"), 1);
9983
9983
  React3 = __toESM(require("react"), 1);
@@ -10704,9 +10704,9 @@ var init_chunk_4WY6JWTD = __esm({
10704
10704
  }
10705
10705
  });
10706
10706
 
10707
- // ../../node_modules/cookie/dist/index.js
10707
+ // ../../../node_modules/cookie/dist/index.js
10708
10708
  var require_dist = __commonJS({
10709
- "../../node_modules/cookie/dist/index.js"(exports2) {
10709
+ "../../../node_modules/cookie/dist/index.js"(exports2) {
10710
10710
  "use strict";
10711
10711
  Object.defineProperty(exports2, "__esModule", { value: true });
10712
10712
  exports2.parse = parse2;
@@ -10863,9 +10863,9 @@ var require_dist = __commonJS({
10863
10863
  }
10864
10864
  });
10865
10865
 
10866
- // ../../node_modules/set-cookie-parser/lib/set-cookie.js
10866
+ // ../../../node_modules/set-cookie-parser/lib/set-cookie.js
10867
10867
  var require_set_cookie = __commonJS({
10868
- "../../node_modules/set-cookie-parser/lib/set-cookie.js"(exports2, module2) {
10868
+ "../../../node_modules/set-cookie-parser/lib/set-cookie.js"(exports2, module2) {
10869
10869
  "use strict";
10870
10870
  var defaultParseOptions = {
10871
10871
  decodeValues: true,
@@ -11046,7 +11046,7 @@ var require_set_cookie = __commonJS({
11046
11046
  }
11047
11047
  });
11048
11048
 
11049
- // ../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs
11049
+ // ../../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs
11050
11050
  function ServerRouter({
11051
11051
  context,
11052
11052
  url,
@@ -13012,7 +13012,7 @@ function getHydrationData({
13012
13012
  }
13013
13013
  var React12, React23, import_cookie, import_set_cookie_parser, React42, import_react, encoder, sign, unsign, createKey2, createCookie, isCookie, ServerMode, globalDevServerHooksKey, SERVER_NO_BODY_STATUS_CODES, createRequestHandler, createSession, isSession, encoder2, trailer, RSCRouterGlobalErrorBoundary, noopComponent, REACT_USE, useImpl;
13014
13014
  var init_chunk_G3INQAYP = __esm({
13015
- "../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs"() {
13015
+ "../../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs"() {
13016
13016
  init_chunk_4WY6JWTD();
13017
13017
  React12 = __toESM(require("react"), 1);
13018
13018
  React23 = __toESM(require("react"), 1);
@@ -13209,7 +13209,7 @@ var init_chunk_G3INQAYP = __esm({
13209
13209
  }
13210
13210
  });
13211
13211
 
13212
- // ../../node_modules/react-router/dist/development/dom-export.mjs
13212
+ // ../../../node_modules/react-router/dist/development/dom-export.mjs
13213
13213
  var dom_export_exports = {};
13214
13214
  __export(dom_export_exports, {
13215
13215
  HydratedRouter: () => HydratedRouter2,
@@ -14076,7 +14076,7 @@ function getRSCStream() {
14076
14076
  }
14077
14077
  var React13, ReactDOM, React24, React33, ReactDOM2, ssrInfo, router, renderedRoutesContext, nextPaths2, discoveredPathsMaxSize2, discoveredPaths2, URL_LIMIT2;
14078
14078
  var init_dom_export = __esm({
14079
- "../../node_modules/react-router/dist/development/dom-export.mjs"() {
14079
+ "../../../node_modules/react-router/dist/development/dom-export.mjs"() {
14080
14080
  "use client";
14081
14081
  init_chunk_G3INQAYP();
14082
14082
  init_chunk_4WY6JWTD();
@@ -14095,7 +14095,7 @@ var init_dom_export = __esm({
14095
14095
  }
14096
14096
  });
14097
14097
 
14098
- // ../../node_modules/react-router/dist/development/index.mjs
14098
+ // ../../../node_modules/react-router/dist/development/index.mjs
14099
14099
  var development_exports = {};
14100
14100
  __export(development_exports, {
14101
14101
  Await: () => Await,
@@ -14227,16 +14227,16 @@ __export(development_exports, {
14227
14227
  useViewTransitionState: () => useViewTransitionState
14228
14228
  });
14229
14229
  var init_development = __esm({
14230
- "../../node_modules/react-router/dist/development/index.mjs"() {
14230
+ "../../../node_modules/react-router/dist/development/index.mjs"() {
14231
14231
  "use client";
14232
14232
  init_chunk_G3INQAYP();
14233
14233
  init_chunk_4WY6JWTD();
14234
14234
  }
14235
14235
  });
14236
14236
 
14237
- // ../../node_modules/react-router-dom/dist/index.js
14237
+ // ../../../node_modules/react-router-dom/dist/index.js
14238
14238
  var require_dist2 = __commonJS({
14239
- "../../node_modules/react-router-dom/dist/index.js"(exports2, module2) {
14239
+ "../../../node_modules/react-router-dom/dist/index.js"(exports2, module2) {
14240
14240
  "use strict";
14241
14241
  var __defProp2 = Object.defineProperty;
14242
14242
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -14473,7 +14473,9 @@ __export(index_exports, {
14473
14473
  getNotificationPermission: () => getNotificationPermission,
14474
14474
  getRelativeLuminance: () => getRelativeLuminance,
14475
14475
  getStatusContrastColors: () => getStatusContrastColors,
14476
+ hasNotificationPermission: () => hasNotificationPermission,
14476
14477
  isColorDark: () => isColorDark,
14478
+ isNotificationSupported: () => isNotificationSupported,
14477
14479
  isPushNotificationSupported: () => isPushNotificationSupported,
14478
14480
  isPushSubscribed: () => isPushSubscribed,
14479
14481
  isTenantAuthenticated: () => isTenantAuthenticated,
@@ -14487,6 +14489,7 @@ __export(index_exports, {
14487
14489
  notifyMessage: () => notifyMessage,
14488
14490
  notifySuccess: () => notifySuccess,
14489
14491
  notifyTicketUpdate: () => notifyTicketUpdate,
14492
+ requestNotificationPermission: () => requestNotificationPermission2,
14490
14493
  rgbToHex: () => rgbToHex,
14491
14494
  sendTestNotification: () => sendTestNotification,
14492
14495
  setSocketContext: () => setSocketContext,
@@ -19011,6 +19014,15 @@ var notificationManager = new NotificationManager2();
19011
19014
  var showMessageNotification = (senderName, messageContent, propertyAddress) => {
19012
19015
  notificationManager.showMessageNotification(senderName, messageContent, propertyAddress);
19013
19016
  };
19017
+ var requestNotificationPermission2 = () => {
19018
+ return notificationManager.requestPermission();
19019
+ };
19020
+ var hasNotificationPermission = () => {
19021
+ return notificationManager.hasPermission();
19022
+ };
19023
+ var isNotificationSupported = () => {
19024
+ return NotificationManager2.isSupported();
19025
+ };
19014
19026
 
19015
19027
  // src/utils/pushNotifications.js
19016
19028
  var isPushNotificationSupported = () => {
@@ -19114,7 +19126,9 @@ var isTenantAuthenticated = () => {
19114
19126
  getNotificationPermission,
19115
19127
  getRelativeLuminance,
19116
19128
  getStatusContrastColors,
19129
+ hasNotificationPermission,
19117
19130
  isColorDark,
19131
+ isNotificationSupported,
19118
19132
  isPushNotificationSupported,
19119
19133
  isPushSubscribed,
19120
19134
  isTenantAuthenticated,
@@ -19128,6 +19142,7 @@ var isTenantAuthenticated = () => {
19128
19142
  notifyMessage,
19129
19143
  notifySuccess,
19130
19144
  notifyTicketUpdate,
19145
+ requestNotificationPermission,
19131
19146
  rgbToHex,
19132
19147
  sendTestNotification,
19133
19148
  setSocketContext,
package/dist/index.mjs CHANGED
@@ -32,7 +32,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
- // ../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs
35
+ // ../../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs
36
36
  import * as React2 from "react";
37
37
  import * as React22 from "react";
38
38
  import * as React3 from "react";
@@ -9988,7 +9988,7 @@ function htmlEscape(str) {
9988
9988
  }
9989
9989
  var __typeError, __accessCheck, __privateGet, __privateAdd, Action, PopStateEventType, _map, RouterContextProvider, unsupportedLazyRouteObjectKeys, unsupportedLazyRouteFunctionKeys, paramRe, dynamicSegmentValue, indexRouteValue, emptySegmentValue, staticSegmentValue, splatPenalty, isSplat, ABSOLUTE_URL_REGEX, isAbsoluteUrl, joinPaths, normalizePathname, normalizeSearch, normalizeHash, DataWithResponseInit, redirect, redirectDocument, replace, ErrorResponseImpl, UninstrumentedSymbol, objectProtoNames, validMutationMethodsArr, validMutationMethods, validRequestMethodsArr, validRequestMethods, redirectStatusCodes, redirectPreserveMethodStatusCodes, IDLE_NAVIGATION, IDLE_FETCHER, IDLE_BLOCKER, defaultMapRouteProperties, TRANSITIONS_STORAGE_KEY, ResetLoaderDataSymbol, lazyRoutePropertyCache, loadLazyRouteProperty, lazyRouteFunctionCache, DataRouterContext, DataRouterStateContext, RSCRouterContext, ViewTransitionContext, FetchersContext, AwaitContext, AwaitContextProvider, NavigationContext, LocationContext, RouteContext, RouteErrorContext, ENABLE_DEV_WARNINGS, navigateEffectWarning, OutletContext, defaultErrorElement, RenderErrorBoundary, blockerId, alreadyWarned, alreadyWarned2, hydrationRouteProperties, Deferred, MemoizedDataRoutes, AwaitErrorBoundary, createRoutesFromElements, defaultMethod, defaultEncType, _formDataSupportsSubmitter, supportedFormEncTypes, HOLE, NAN, NEGATIVE_INFINITY, NEGATIVE_ZERO, NULL, POSITIVE_INFINITY, UNDEFINED, TYPE_BIGINT, TYPE_DATE, TYPE_ERROR, TYPE_MAP, TYPE_NULL_OBJECT, TYPE_PROMISE, TYPE_REGEXP, TYPE_SET, TYPE_SYMBOL, TYPE_URL, TYPE_PREVIOUS_RESOLVED, Deferred2, objectProtoNames2, globalObj, ESCAPE_LOOKUP, ESCAPE_REGEX, SingleFetchRedirectSymbol, SingleFetchNoResultError, SINGLE_FETCH_REDIRECT_STATUS, NO_BODY_STATUS_CODES, _isPreloadSupported, nextPaths, discoveredPathsMaxSize, discoveredPaths, URL_LIMIT, MANIFEST_VERSION_STORAGE_KEY, FrameworkContext, CRITICAL_CSS_DATA_ATTRIBUTE, isHydrated, RemixErrorBoundary, isBrowser, ABSOLUTE_URL_REGEX2, Link, NavLink, Form, fetcherId, getUniqueFetcherId, SCROLL_RESTORATION_STORAGE_KEY, savedScrollPositions, ABSOLUTE_URL_REGEX3, ESCAPE_LOOKUP2, ESCAPE_REGEX2;
9990
9990
  var init_chunk_4WY6JWTD = __esm({
9991
- "../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs"() {
9991
+ "../../../node_modules/react-router/dist/development/chunk-4WY6JWTD.mjs"() {
9992
9992
  __typeError = (msg) => {
9993
9993
  throw TypeError(msg);
9994
9994
  };
@@ -10703,9 +10703,9 @@ var init_chunk_4WY6JWTD = __esm({
10703
10703
  }
10704
10704
  });
10705
10705
 
10706
- // ../../node_modules/cookie/dist/index.js
10706
+ // ../../../node_modules/cookie/dist/index.js
10707
10707
  var require_dist = __commonJS({
10708
- "../../node_modules/cookie/dist/index.js"(exports) {
10708
+ "../../../node_modules/cookie/dist/index.js"(exports) {
10709
10709
  "use strict";
10710
10710
  Object.defineProperty(exports, "__esModule", { value: true });
10711
10711
  exports.parse = parse2;
@@ -10862,9 +10862,9 @@ var require_dist = __commonJS({
10862
10862
  }
10863
10863
  });
10864
10864
 
10865
- // ../../node_modules/set-cookie-parser/lib/set-cookie.js
10865
+ // ../../../node_modules/set-cookie-parser/lib/set-cookie.js
10866
10866
  var require_set_cookie = __commonJS({
10867
- "../../node_modules/set-cookie-parser/lib/set-cookie.js"(exports, module) {
10867
+ "../../../node_modules/set-cookie-parser/lib/set-cookie.js"(exports, module) {
10868
10868
  "use strict";
10869
10869
  var defaultParseOptions = {
10870
10870
  decodeValues: true,
@@ -11045,7 +11045,7 @@ var require_set_cookie = __commonJS({
11045
11045
  }
11046
11046
  });
11047
11047
 
11048
- // ../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs
11048
+ // ../../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs
11049
11049
  import * as React12 from "react";
11050
11050
  import * as React23 from "react";
11051
11051
  import * as React42 from "react";
@@ -13015,7 +13015,7 @@ function getHydrationData({
13015
13015
  }
13016
13016
  var import_cookie, import_set_cookie_parser, encoder, sign, unsign, createKey2, createCookie, isCookie, ServerMode, globalDevServerHooksKey, SERVER_NO_BODY_STATUS_CODES, createRequestHandler, createSession, isSession, encoder2, trailer, RSCRouterGlobalErrorBoundary, noopComponent, REACT_USE, useImpl;
13017
13017
  var init_chunk_G3INQAYP = __esm({
13018
- "../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs"() {
13018
+ "../../../node_modules/react-router/dist/development/chunk-G3INQAYP.mjs"() {
13019
13019
  init_chunk_4WY6JWTD();
13020
13020
  import_cookie = __toESM(require_dist(), 1);
13021
13021
  import_set_cookie_parser = __toESM(require_set_cookie(), 1);
@@ -13208,7 +13208,7 @@ var init_chunk_G3INQAYP = __esm({
13208
13208
  }
13209
13209
  });
13210
13210
 
13211
- // ../../node_modules/react-router/dist/development/dom-export.mjs
13211
+ // ../../../node_modules/react-router/dist/development/dom-export.mjs
13212
13212
  var dom_export_exports = {};
13213
13213
  __export(dom_export_exports, {
13214
13214
  HydratedRouter: () => HydratedRouter2,
@@ -14080,7 +14080,7 @@ function getRSCStream() {
14080
14080
  }
14081
14081
  var ssrInfo, router, renderedRoutesContext, nextPaths2, discoveredPathsMaxSize2, discoveredPaths2, URL_LIMIT2;
14082
14082
  var init_dom_export = __esm({
14083
- "../../node_modules/react-router/dist/development/dom-export.mjs"() {
14083
+ "../../../node_modules/react-router/dist/development/dom-export.mjs"() {
14084
14084
  "use client";
14085
14085
  init_chunk_G3INQAYP();
14086
14086
  init_chunk_4WY6JWTD();
@@ -14094,7 +14094,7 @@ var init_dom_export = __esm({
14094
14094
  }
14095
14095
  });
14096
14096
 
14097
- // ../../node_modules/react-router/dist/development/index.mjs
14097
+ // ../../../node_modules/react-router/dist/development/index.mjs
14098
14098
  var development_exports = {};
14099
14099
  __export(development_exports, {
14100
14100
  Await: () => Await,
@@ -14226,16 +14226,16 @@ __export(development_exports, {
14226
14226
  useViewTransitionState: () => useViewTransitionState
14227
14227
  });
14228
14228
  var init_development = __esm({
14229
- "../../node_modules/react-router/dist/development/index.mjs"() {
14229
+ "../../../node_modules/react-router/dist/development/index.mjs"() {
14230
14230
  "use client";
14231
14231
  init_chunk_G3INQAYP();
14232
14232
  init_chunk_4WY6JWTD();
14233
14233
  }
14234
14234
  });
14235
14235
 
14236
- // ../../node_modules/react-router-dom/dist/index.js
14236
+ // ../../../node_modules/react-router-dom/dist/index.js
14237
14237
  var require_dist2 = __commonJS({
14238
- "../../node_modules/react-router-dom/dist/index.js"(exports, module) {
14238
+ "../../../node_modules/react-router-dom/dist/index.js"(exports, module) {
14239
14239
  "use strict";
14240
14240
  var __defProp2 = Object.defineProperty;
14241
14241
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -19026,6 +19026,15 @@ var notificationManager = new NotificationManager2();
19026
19026
  var showMessageNotification = (senderName, messageContent, propertyAddress) => {
19027
19027
  notificationManager.showMessageNotification(senderName, messageContent, propertyAddress);
19028
19028
  };
19029
+ var requestNotificationPermission2 = () => {
19030
+ return notificationManager.requestPermission();
19031
+ };
19032
+ var hasNotificationPermission = () => {
19033
+ return notificationManager.hasPermission();
19034
+ };
19035
+ var isNotificationSupported = () => {
19036
+ return NotificationManager2.isSupported();
19037
+ };
19029
19038
 
19030
19039
  // src/utils/pushNotifications.js
19031
19040
  var isPushNotificationSupported = () => {
@@ -19128,7 +19137,9 @@ export {
19128
19137
  getNotificationPermission,
19129
19138
  getRelativeLuminance,
19130
19139
  getStatusContrastColors,
19140
+ hasNotificationPermission,
19131
19141
  isColorDark,
19142
+ isNotificationSupported,
19132
19143
  isPushNotificationSupported,
19133
19144
  isPushSubscribed,
19134
19145
  isTenantAuthenticated,
@@ -19142,6 +19153,7 @@ export {
19142
19153
  notifyMessage,
19143
19154
  notifySuccess,
19144
19155
  notifyTicketUpdate,
19156
+ requestNotificationPermission2 as requestNotificationPermission,
19145
19157
  rgbToHex,
19146
19158
  sendTestNotification,
19147
19159
  setSocketContext,
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "@propknot/shared-ui",
3
- "version": "1.0.0",
4
- "main": "dist/index.js",
5
- "module": "dist/index.mjs",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "build": "tsup src/index.js --format cjs,esm --out-dir dist --loader .js=jsx --external react,react-dom,@mui/material,@mui/icons-material,axios,socket.io-client,date-fns,@testing-library/react,@testing-library/user-event",
11
- "dev": "tsup src/index.js --watch --format cjs,esm --out-dir dist --loader .js=jsx --external react,react-dom,@mui/material,@mui/icons-material,axios,socket.io-client,date-fns,@testing-library/react,@testing-library/user-event",
12
- "test": "echo \"No tests configured\""
13
- },
14
- "peerDependencies": {
15
- "@mui/material": "^5.11.15",
16
- "@mui/icons-material": "^5.11.15",
17
- "axios": "^1.7.0",
18
- "react": "^18.2.0",
19
- "react-dom": "^18.2.0"
20
- },
21
- "devDependencies": {
22
- "@types/react": "^18.3.27",
23
- "@types/react-dom": "^18.3.7",
24
- "react": "^18.2.0",
25
- "react-dom": "^18.2.0",
26
- "tsup": "^8.5.1",
27
- "typescript": "^5.9.3"
28
- }
1
+ {
2
+ "name": "@propknot/shared-ui",
3
+ "version": "1.0.2",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsup src/index.js --format cjs,esm --out-dir dist --loader .js=jsx --external react,react-dom,@mui/material,@mui/icons-material,axios,socket.io-client,date-fns,@testing-library/react,@testing-library/user-event",
11
+ "dev": "tsup src/index.js --watch --format cjs,esm --out-dir dist --loader .js=jsx --external react,react-dom,@mui/material,@mui/icons-material,axios,socket.io-client,date-fns,@testing-library/react,@testing-library/user-event",
12
+ "test": "echo \"No tests configured\""
13
+ },
14
+ "peerDependencies": {
15
+ "@mui/material": "^5.11.15",
16
+ "@mui/icons-material": "^5.11.15",
17
+ "axios": "^1.7.0",
18
+ "react": "^18.2.0",
19
+ "react-dom": "^18.2.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/react": "^18.3.27",
23
+ "@types/react-dom": "^18.3.7",
24
+ "react": "^18.2.0",
25
+ "react-dom": "^18.2.0",
26
+ "tsup": "^8.5.1",
27
+ "typescript": "^5.9.3"
28
+ }
29
29
  }