@apia/store 0.0.9-alpha.0 → 0.2.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/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) [year] [fullname]
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,22 +1,22 @@
1
- # Initiator
2
-
3
- Este package se creó con la única utilidad de copiarlo entero y pegarlo a la hora de crear un nuevo package.
4
-
5
- Este iniciador permite crear un paquete que compila typescript y puede ser importado desde otros packages.
6
-
7
- ## IMPORTANTE
8
-
9
- Los archivos **tsconfig.json** y **tsup.config.ts** no son archivos únicos sino symlinks a archivos de configuración comunes a todos los packages. En caso de que sea necesario modificar alguno de ellos **que en la gran mayoría de los casos no sería necesario**, es necesario eliminar el archivo a modificar y crear uno nuevo.
10
-
11
- ## Procedimiento
12
-
13
- - Copiar la carpeta initiator y pegarla con otro nombre dentro de packages.
14
- - Modificar el package.json:
15
- - Eliminar la línea ```private: true```.
16
- - Cambiar la ocurrencia `initiator` por el nombre del nuevo paquete.
17
- - Agregar los scripts convenientes: dev, build, etc.
18
- - Ejecutar el comando lerna bootstrap desde la carpeta raíz.
19
-
20
- Luego de ejecutar estos pasos, el package estaría listo para comenzar a usarse.
21
-
22
- Este package trae como dependencias por defecto theme-ui y react. Si se desea agregar más dependencias se debe ejecutar el comando ```lerna add --scope="@apia/packageName" dependencyName```. Ejemplo, si creamos un paquete con el nombre @apia/myPackage y queremos agregar lodash como dependencia, ejecutamos el comando ```lerna add --scope="@apia/myPackage" lodash```. **Importante**: lerna no permite instalar de a varias dependencias a la vez como lo hace npm, por lo tanto, si se desea agregar varias dependencias se debe ejecutar el comando anterior tantas veces como dependencias se quiera agregar.
1
+ # Initiator
2
+
3
+ Este package se creó con la única utilidad de copiarlo entero y pegarlo a la hora de crear un nuevo package.
4
+
5
+ Este iniciador permite crear un paquete que compila typescript y puede ser importado desde otros packages.
6
+
7
+ ## IMPORTANTE
8
+
9
+ Los archivos **tsconfig.json** y **tsup.config.ts** no son archivos únicos sino symlinks a archivos de configuración comunes a todos los packages. En caso de que sea necesario modificar alguno de ellos **que en la gran mayoría de los casos no sería necesario**, es necesario eliminar el archivo a modificar y crear uno nuevo.
10
+
11
+ ## Procedimiento
12
+
13
+ - Copiar la carpeta initiator y pegarla con otro nombre dentro de packages.
14
+ - Modificar el package.json:
15
+ - Eliminar la línea ```private: true```.
16
+ - Cambiar la ocurrencia `initiator` por el nombre del nuevo paquete.
17
+ - Agregar los scripts convenientes: dev, build, etc.
18
+ - Ejecutar el comando lerna bootstrap desde la carpeta raíz.
19
+
20
+ Luego de ejecutar estos pasos, el package estaría listo para comenzar a usarse.
21
+
22
+ Este package trae como dependencias por defecto theme-ui y react. Si se desea agregar más dependencias se debe ejecutar el comando ```lerna add --scope="@apia/packageName" dependencyName```. Ejemplo, si creamos un paquete con el nombre @apia/myPackage y queremos agregar lodash como dependencia, ejecutamos el comando ```lerna add --scope="@apia/myPackage" lodash```. **Importante**: lerna no permite instalar de a varias dependencias a la vez como lo hace npm, por lo tanto, si se desea agregar varias dependencias se debe ejecutar el comando anterior tantas veces como dependencias se quiera agregar.
package/dist/index.d.ts CHANGED
@@ -2,15 +2,15 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import * as redux from 'redux';
4
4
  import * as store from 'react-redux';
5
- import { TypedUseSelectorHook } from 'react-redux';
5
+ import { EqualityFn } from 'react-redux';
6
6
  export { shallowEqual } from 'react-redux';
7
7
  export { Draft } from 'immer';
8
8
  import { Action, AnyAction, ReducersMapObject, Store, CombinedState } from '@reduxjs/toolkit';
9
9
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
10
10
  export { _reduxjs_toolkit as reduxjsToolkit };
11
11
  export { AnyAction, CaseReducer, PayloadAction, Slice, SliceCaseReducers, createSlice } from '@reduxjs/toolkit';
12
- import * as theme_ui_jsx_runtime from 'theme-ui/jsx-runtime';
13
12
 
13
+ type TypedUseSelectorHook<TState> = <TSelected>(selector: (state: TState) => TSelected, equalityFn?: EqualityFn<TSelected>) => TSelected;
14
14
  /**
15
15
  * Esta función permite agregar reducers al store en forma dinámica.
16
16
  *
@@ -44,7 +44,7 @@ declare function injectReducers<S, A extends Action = AnyAction>(reducers: Reduc
44
44
  };
45
45
  declare const StoreProvider: ({ children }: {
46
46
  children: ReactNode;
47
- }) => theme_ui_jsx_runtime.JSX.Element;
47
+ }) => react.JSX.Element;
48
48
 
49
49
  declare const reactRedux: {
50
50
  batch: typeof store.batch;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,66 +1,118 @@
1
- 'use strict';
1
+ import * as store$1 from 'react-redux';
2
+ import { Provider, useSelector } from 'react-redux';
3
+ export { shallowEqual } from 'react-redux';
4
+ import { configureStore, combineReducers, createSlice } from '@reduxjs/toolkit';
5
+ import * as toolkit from '@reduxjs/toolkit';
6
+ export { toolkit as reduxjsToolkit };
7
+ export { createSlice } from '@reduxjs/toolkit';
8
+ import { jsx } from 'react/jsx-runtime';
2
9
 
3
- var P = require('react-redux');
4
- var immer = require('immer');
5
- var toolkit = require('@reduxjs/toolkit');
6
- var jsxRuntime = require('theme-ui/jsx-runtime');
7
-
8
- function _interopNamespace(e) {
9
- if (e && e.__esModule) return e;
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
10
+ var __defProp$1 = Object.defineProperty;
11
+ var __defProps = Object.defineProperties;
12
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
13
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
14
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
15
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
16
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17
+ var __spreadValues$1 = (a, b) => {
18
+ for (var prop in b || (b = {}))
19
+ if (__hasOwnProp$1.call(b, prop))
20
+ __defNormalProp$1(a, prop, b[prop]);
21
+ if (__getOwnPropSymbols$1)
22
+ for (var prop of __getOwnPropSymbols$1(b)) {
23
+ if (__propIsEnum$1.call(b, prop))
24
+ __defNormalProp$1(a, prop, b[prop]);
25
+ }
26
+ return a;
27
+ };
28
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
29
+ const injectedReducers = {};
30
+ const store = configureStore({
31
+ devTools: {
32
+ actionSanitizer: (action) => {
33
+ if ([
34
+ "responsiveTableSlice/handleKey",
35
+ "responsiveTableSlice/update",
36
+ "responsiveTableSlice/addRows"
37
+ ].includes(action.type))
38
+ return __spreadProps(__spreadValues$1({}, action), {
39
+ payload: `Sanitized due to performance ${action.type}`
40
+ });
41
+ return action;
42
+ }
43
+ },
44
+ middleware: (defaultMiddleWare) => {
45
+ return defaultMiddleWare({
46
+ immutableCheck: {
47
+ ignoredPaths: ["responsiveTableSlice"]
48
+ },
49
+ serializableCheck: {
50
+ ignoredPaths: ["responsiveTableSlice", "panelsSlice"],
51
+ ignoredActions: [
52
+ "responsiveTableSlice/handleKey",
53
+ "responsiveTableSlice/update",
54
+ "responsiveTableSlice/addRows",
55
+ "panelsSlice/updatePanelStore"
56
+ ]
57
+ }
58
+ });
59
+ },
60
+ reducer: combineReducers({
61
+ defaultSlice: createSlice({
62
+ name: "defaultSlice",
63
+ initialState: {},
64
+ reducers: {
65
+ update() {
66
+ }
67
+ }
68
+ }).reducer
69
+ })
70
+ });
71
+ function injectReducers(reducers) {
72
+ Object.entries(reducers).forEach(([name, value]) => {
73
+ injectedReducers[name] = value;
74
+ });
75
+ const newReducer = combineReducers(injectedReducers);
76
+ store.replaceReducer(newReducer);
77
+ const newUseSelector = useSelector;
78
+ return {
79
+ store,
80
+ useSelector: newUseSelector
81
+ };
24
82
  }
83
+ const StoreProvider = ({ children }) => {
84
+ return /* @__PURE__ */ jsx(Provider, { store, children });
85
+ };
25
86
 
26
- var P__namespace = /*#__PURE__*/_interopNamespace(P);
27
- var toolkit__namespace = /*#__PURE__*/_interopNamespace(toolkit);
28
-
29
- var m=Object.defineProperty;var c=Object.getOwnPropertySymbols;var s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var n=(e,r,t)=>r in e?m(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,i=(e,r)=>{for(var t in r||(r={}))s.call(r,t)&&n(e,t,r[t]);if(c)for(var t of c(r))a.call(r,t)&&n(e,t,r[t]);return e};var u=(e,r)=>{var t={};for(var o in e)s.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&c)for(var o of c(e))r.indexOf(o)<0&&a.call(e,o)&&(t[o]=e[o]);return t};var S={},d=toolkit.configureStore({middleware:e=>e(),reducer:toolkit.combineReducers({defaultSlice:toolkit.createSlice({name:"defaultSlice",initialState:{},reducers:{update(){}}}).reducer})});function b(e){Object.entries(e).forEach(([o,R])=>{S[o]=R;});let r=toolkit.combineReducers(S);return d.replaceReducer(r),{store:d,useSelector:P.useSelector}}var j=({children:e})=>jsxRuntime.jsx(P.Provider,{store:d,children:e});var p=P__namespace,v=u(p,["useSelector"]),B=i({},v);
87
+ var __defProp = Object.defineProperty;
88
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
89
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
90
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
91
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
92
+ var __spreadValues = (a, b) => {
93
+ for (var prop in b || (b = {}))
94
+ if (__hasOwnProp.call(b, prop))
95
+ __defNormalProp(a, prop, b[prop]);
96
+ if (__getOwnPropSymbols)
97
+ for (var prop of __getOwnPropSymbols(b)) {
98
+ if (__propIsEnum.call(b, prop))
99
+ __defNormalProp(a, prop, b[prop]);
100
+ }
101
+ return a;
102
+ };
103
+ var __objRest = (source, exclude) => {
104
+ var target = {};
105
+ for (var prop in source)
106
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
107
+ target[prop] = source[prop];
108
+ if (source != null && __getOwnPropSymbols)
109
+ for (var prop of __getOwnPropSymbols(source)) {
110
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
111
+ target[prop] = source[prop];
112
+ }
113
+ return target;
114
+ };
115
+ const _a = store$1, reactReduxRest = __objRest(_a, ["useSelector"]);
116
+ const reactRedux = __spreadValues({}, reactReduxRest);
30
117
 
31
- Object.defineProperty(exports, 'shallowEqual', {
32
- enumerable: true,
33
- get: function () { return P.shallowEqual; }
34
- });
35
- Object.defineProperty(exports, 'Draft', {
36
- enumerable: true,
37
- get: function () { return immer.Draft; }
38
- });
39
- Object.defineProperty(exports, 'AnyAction', {
40
- enumerable: true,
41
- get: function () { return toolkit.AnyAction; }
42
- });
43
- Object.defineProperty(exports, 'CaseReducer', {
44
- enumerable: true,
45
- get: function () { return toolkit.CaseReducer; }
46
- });
47
- Object.defineProperty(exports, 'PayloadAction', {
48
- enumerable: true,
49
- get: function () { return toolkit.PayloadAction; }
50
- });
51
- Object.defineProperty(exports, 'Slice', {
52
- enumerable: true,
53
- get: function () { return toolkit.Slice; }
54
- });
55
- Object.defineProperty(exports, 'SliceCaseReducers', {
56
- enumerable: true,
57
- get: function () { return toolkit.SliceCaseReducers; }
58
- });
59
- Object.defineProperty(exports, 'createSlice', {
60
- enumerable: true,
61
- get: function () { return toolkit.createSlice; }
62
- });
63
- exports.reduxjsToolkit = toolkit__namespace;
64
- exports.StoreProvider = j;
65
- exports.injectReducers = b;
66
- exports.reactRedux = B;
118
+ export { StoreProvider, injectReducers, reactRedux };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/store.tsx","../src/index.ts"],"sourcesContent":["import {\r\n configureStore,\r\n combineReducers,\r\n Reducer,\r\n CombinedState,\r\n Action,\r\n AnyAction,\r\n ReducersMapObject,\r\n createSlice,\r\n Store,\r\n} from '@reduxjs/toolkit';\r\nimport { ReactNode } from 'react';\r\nimport { EqualityFn, Provider, useSelector } from 'react-redux';\r\n\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nconst injectedReducers: ReducersMapObject<any, any> = {};\r\n\r\nexport const store = configureStore({\r\n devTools: {\r\n actionSanitizer: (action) => {\r\n if (\r\n [\r\n 'responsiveTableSlice/handleKey',\r\n 'responsiveTableSlice/update',\r\n 'responsiveTableSlice/addRows',\r\n ].includes(action.type as string)\r\n )\r\n return {\r\n ...action,\r\n payload: `Sanitized due to performance ${action.type as string}`,\r\n };\r\n return action;\r\n },\r\n },\r\n middleware: (defaultMiddleWare) => {\r\n return defaultMiddleWare({\r\n immutableCheck: {\r\n ignoredPaths: ['responsiveTableSlice'],\r\n },\r\n serializableCheck: {\r\n ignoredPaths: ['responsiveTableSlice', 'panelsSlice'],\r\n ignoredActions: [\r\n 'responsiveTableSlice/handleKey',\r\n 'responsiveTableSlice/update',\r\n 'responsiveTableSlice/addRows',\r\n 'panelsSlice/updatePanelStore',\r\n ],\r\n },\r\n });\r\n },\r\n reducer: combineReducers({\r\n defaultSlice: createSlice({\r\n name: 'defaultSlice',\r\n initialState: {},\r\n reducers: {\r\n update() {},\r\n },\r\n }).reducer,\r\n }),\r\n});\r\n\r\ntype TypedUseSelectorHook<TState> = <TSelected>(\r\n selector: (state: TState) => TSelected,\r\n equalityFn?: EqualityFn<TSelected>,\r\n) => TSelected;\r\n\r\n/**\r\n * Esta función permite agregar reducers al store en forma dinámica.\r\n *\r\n * @example\r\n *\r\n import { injectReducers, createSlice } from '@apia/store';\r\n\r\n const slice = createSlice({\r\n name: 'holaMundo',\r\n initialState: {\r\n hola: 'mundo',\r\n } as { hola: string },\r\n reducers: {\r\n updateMundo(state) {\r\n state.hola = 'world';\r\n },\r\n },\r\n });\r\n\r\n const store = injectReducers({\r\n holaMundo: slice.reducer,\r\n });\r\n\r\n store.dispatch(slice.actions.updateMundo());\r\n\r\n // Ahora el store dice hola: 'world'\r\n */\r\nexport function injectReducers<S, A extends Action = AnyAction>(\r\n reducers: ReducersMapObject<S, A>,\r\n) {\r\n Object.entries(reducers).forEach(([name, value]) => {\r\n injectedReducers[name] = value as Reducer;\r\n });\r\n\r\n const newReducer = combineReducers(injectedReducers);\r\n store.replaceReducer(newReducer);\r\n const newUseSelector: TypedUseSelectorHook<S> = useSelector;\r\n\r\n return {\r\n store: store as Store<CombinedState<S>>,\r\n useSelector: newUseSelector,\r\n };\r\n}\r\n\r\nexport const StoreProvider = ({ children }: { children: ReactNode }) => {\r\n return <Provider store={store}>{children}</Provider>;\r\n};\r\n","/* eslint-disable no-restricted-imports */\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\nimport * as store from 'react-redux';\r\n\r\nconst { useSelector: nomatter, ...reactReduxRest } = store;\r\nexport const reactRedux = {\r\n ...reactReduxRest,\r\n};\r\n\r\nexport type { Draft } from 'immer';\r\n\r\nexport { createSlice } from '@reduxjs/toolkit';\r\n\r\nexport type {\r\n PayloadAction,\r\n AnyAction,\r\n CaseReducer,\r\n SliceCaseReducers,\r\n Slice,\r\n} from '@reduxjs/toolkit';\r\n\r\nexport { shallowEqual } from 'react-redux';\r\n\r\nexport { StoreProvider, injectReducers } from './store';\r\n\r\nexport * as reduxjsToolkit from '@reduxjs/toolkit';\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAM,mBAAgD,EAAC,CAAA;AAEhD,MAAM,QAAQ,cAAe,CAAA;AAAA,EAClC,QAAU,EAAA;AAAA,IACR,eAAA,EAAiB,CAAC,MAAW,KAAA;AAC3B,MACE,IAAA;AAAA,QACE,gCAAA;AAAA,QACA,6BAAA;AAAA,QACA,8BAAA;AAAA,OACF,CAAE,QAAS,CAAA,MAAA,CAAO,IAAc,CAAA;AAEhC,QAAA,OAAO,mCACF,MADE,CAAA,EAAA;AAAA,UAEL,OAAA,EAAS,gCAAgC,MAAO,CAAA,IAAA,CAAA,CAAA;AAAA,SAClD,CAAA,CAAA;AACF,MAAO,OAAA,MAAA,CAAA;AAAA,KACT;AAAA,GACF;AAAA,EACA,UAAA,EAAY,CAAC,iBAAsB,KAAA;AACjC,IAAA,OAAO,iBAAkB,CAAA;AAAA,MACvB,cAAgB,EAAA;AAAA,QACd,YAAA,EAAc,CAAC,sBAAsB,CAAA;AAAA,OACvC;AAAA,MACA,iBAAmB,EAAA;AAAA,QACjB,YAAA,EAAc,CAAC,sBAAA,EAAwB,aAAa,CAAA;AAAA,QACpD,cAAgB,EAAA;AAAA,UACd,gCAAA;AAAA,UACA,6BAAA;AAAA,UACA,8BAAA;AAAA,UACA,8BAAA;AAAA,SACF;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AAAA,EACA,SAAS,eAAgB,CAAA;AAAA,IACvB,cAAc,WAAY,CAAA;AAAA,MACxB,IAAM,EAAA,cAAA;AAAA,MACN,cAAc,EAAC;AAAA,MACf,QAAU,EAAA;AAAA,QACR,MAAS,GAAA;AAAA,SAAC;AAAA,OACZ;AAAA,KACD,CAAE,CAAA,OAAA;AAAA,GACJ,CAAA;AACH,CAAC,CAAA,CAAA;AAkCM,SAAS,eACd,QACA,EAAA;AACA,EAAO,MAAA,CAAA,OAAA,CAAQ,QAAQ,CAAE,CAAA,OAAA,CAAQ,CAAC,CAAC,IAAA,EAAM,KAAK,CAAM,KAAA;AAClD,IAAA,gBAAA,CAAiB,IAAI,CAAI,GAAA,KAAA,CAAA;AAAA,GAC1B,CAAA,CAAA;AAED,EAAM,MAAA,UAAA,GAAa,gBAAgB,gBAAgB,CAAA,CAAA;AACnD,EAAA,KAAA,CAAM,eAAe,UAAU,CAAA,CAAA;AAC/B,EAAA,MAAM,cAA0C,GAAA,WAAA,CAAA;AAEhD,EAAO,OAAA;AAAA,IACL,KAAA;AAAA,IACA,WAAa,EAAA,cAAA;AAAA,GACf,CAAA;AACF,CAAA;AAEO,MAAM,aAAgB,GAAA,CAAC,EAAE,QAAA,EAAwC,KAAA;AACtE,EAAO,uBAAA,GAAA,CAAC,QAAS,EAAA,EAAA,KAAA,EAAe,QAAS,EAAA,CAAA,CAAA;AAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3GA,MAAqD,cAAnB,cAAA,GAAA,SAAA,CAAmB,IAAnB,CAA1B,aAAA,CAAA,EAAA;AACD,MAAM,aAAa,cACrB,CAAA,EAAA,EAAA,cAAA;;;;"}
package/package.json CHANGED
@@ -6,7 +6,25 @@
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
- "version": "0.0.9-alpha.0",
9
+ "version": "0.2.2",
10
+ "scripts": {
11
+ "build": "rollup -c rollup.config.esb.mjs",
12
+ "buildDev": "rollup -c rollup.config.esb.mjs --dev",
13
+ "watch": "rollup -c rollup.config.esb.mjs --dev --watch"
14
+ },
15
+ "devDependencies": {
16
+ "@rollup/plugin-commonjs": "^24.0.1",
17
+ "@rollup/plugin-json": "^6.0.0",
18
+ "@rollup/plugin-node-resolve": "^15.0.1",
19
+ "@rollup/plugin-terser": "^0.4.0",
20
+ "@rollup/plugin-typescript": "^11.0.0",
21
+ "esbuild": "^0.17.14",
22
+ "rollup": "^3.20.2",
23
+ "rollup-plugin-bundle-analyzer": "^1.6.6",
24
+ "rollup-plugin-dts": "^5.3.0",
25
+ "rollup-plugin-esbuild": "^5.0.0",
26
+ "typescript": "^4.9.5"
27
+ },
10
28
  "dependencies": {
11
29
  "@reduxjs/toolkit": "^1.9.3",
12
30
  "@types/qs": "^6.9.7",
@@ -14,16 +32,10 @@
14
32
  "qs": "^6.11.1",
15
33
  "react-redux": "^8.0.5"
16
34
  },
17
- "devDependencies": {
18
- "tsup": "^6.6.3",
19
- "type-fest": "^3.6.1",
20
- "typescript": "^4.9.5"
21
- },
22
35
  "peerDependencies": {
23
36
  "@emotion/react": "^11.10.6",
24
37
  "react": "^18.2.0",
25
- "react-dom": "^18.2.0",
26
- "theme-ui": "^0.15.5"
38
+ "react-dom": "^18.2.0"
27
39
  },
28
40
  "publishConfig": {
29
41
  "access": "public",
@@ -34,8 +46,5 @@
34
46
  "url": "http://corp-gitlab-01.domst.st.net/products/apia/ApiaNPMPackages.git",
35
47
  "directory": "packages/store"
36
48
  },
37
- "scripts": {
38
- "build": "tsup"
39
- },
40
- "gitHead": "44a7f4d12bba024c862a7a811b79547c6a8030b1"
49
+ "gitHead": "eed8d2895151a4b3e0d4b7ca00c7f22371075487"
41
50
  }