@operato/shell 8.1.0 → 8.2.11
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/CHANGELOG.md +17 -0
- package/dist/src/actions/index.d.ts +1 -0
- package/dist/src/actions/index.js +1 -0
- package/dist/src/actions/index.js.map +1 -1
- package/dist/src/actions/mutation-busy.d.ts +2 -0
- package/dist/src/actions/mutation-busy.js +13 -0
- package/dist/src/actions/mutation-busy.js.map +1 -0
- package/dist/src/reducers/mutation-busy.d.ts +6 -0
- package/dist/src/reducers/mutation-busy.js +16 -0
- package/dist/src/reducers/mutation-busy.js.map +1 -0
- package/dist/src/store.js +3 -1
- package/dist/src/store.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/yarn-error.log +0 -17014
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,23 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
### [8.2.11](https://github.com/hatiolab/operato/compare/v8.2.10...v8.2.11) (2025-07-11)
|
7
|
+
|
8
|
+
|
9
|
+
### :bug: Bug Fix
|
10
|
+
|
11
|
+
* mutationBusy 상태 추가 ([f895b31](https://github.com/hatiolab/operato/commit/f895b31f290c5187bc79d80bcff2ac24fab11f82))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### [8.2.5](https://github.com/hatiolab/operato/compare/v8.2.4...v8.2.5) (2025-04-22)
|
16
|
+
|
17
|
+
**Note:** Version bump only for package @operato/shell
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
6
23
|
## [8.1.0](https://github.com/hatiolab/operato/compare/v8.0.3...v8.1.0) (2025-02-19)
|
7
24
|
|
8
25
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA","sourcesContent":["export * from './app'\nexport * from './route'\nexport * from './busy'\nexport * from './const'\n"]}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA","sourcesContent":["export * from './app'\nexport * from './route'\nexport * from './busy'\nexport * from './mutation-busy'\nexport * from './const'\n"]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { setMutationActiveRequestCounterCallback } from '@operato/graphql';
|
2
|
+
import { store } from '../store';
|
3
|
+
export const UPDATE_MUTATION_BUSY = 'UPDATE_MUTATION_BUSY';
|
4
|
+
setMutationActiveRequestCounterCallback((count) => {
|
5
|
+
store.dispatch(updateMutationBusy(count != 0));
|
6
|
+
});
|
7
|
+
export const updateMutationBusy = (mutationBusy) => (dispatch) => {
|
8
|
+
dispatch({
|
9
|
+
type: UPDATE_MUTATION_BUSY,
|
10
|
+
mutationBusy
|
11
|
+
});
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=mutation-busy.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mutation-busy.js","sourceRoot":"","sources":["../../../src/actions/mutation-busy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,kBAAkB,CAAA;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAEhC,MAAM,CAAC,MAAM,oBAAoB,GAAG,sBAAsB,CAAA;AAE1D,uCAAuC,CAAC,CAAC,KAAa,EAAE,EAAE;IACxD,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC,CAAQ,CAAC,CAAA;AACvD,CAAC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAAqB,EAAE,EAAE,CAAC,CAAC,QAAa,EAAE,EAAE;IAC7E,QAAQ,CAAC;QACP,IAAI,EAAE,oBAAoB;QAC1B,YAAY;KACb,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { setMutationActiveRequestCounterCallback } from '@operato/graphql'\nimport { store } from '../store'\n\nexport const UPDATE_MUTATION_BUSY = 'UPDATE_MUTATION_BUSY'\n\nsetMutationActiveRequestCounterCallback((count: number) => {\n store.dispatch(updateMutationBusy(count != 0) as any)\n})\n\nexport const updateMutationBusy = (mutationBusy: boolean) => (dispatch: any) => {\n dispatch({\n type: UPDATE_MUTATION_BUSY,\n mutationBusy\n })\n}\n"]}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { UPDATE_MUTATION_BUSY } from '../actions/mutation-busy.js';
|
2
|
+
const INITIAL_STATE = {
|
3
|
+
mutationBusy: false
|
4
|
+
};
|
5
|
+
const mutationBusy = (state = INITIAL_STATE, action) => {
|
6
|
+
switch (action.type) {
|
7
|
+
case UPDATE_MUTATION_BUSY:
|
8
|
+
return {
|
9
|
+
mutationBusy: action.mutationBusy
|
10
|
+
};
|
11
|
+
default:
|
12
|
+
return state;
|
13
|
+
}
|
14
|
+
};
|
15
|
+
export default mutationBusy;
|
16
|
+
//# sourceMappingURL=mutation-busy.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mutation-busy.js","sourceRoot":"","sources":["../../../src/reducers/mutation-busy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAElE,MAAM,aAAa,GAEf;IACF,YAAY,EAAE,KAAK;CACpB,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,KAAK,GAAG,aAAa,EAAE,MAAW,EAAE,EAAE;IAC1D,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,oBAAoB;YACvB,OAAO;gBACL,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAA;QAEH;YACE,OAAO,KAAK,CAAA;IAChB,CAAC;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA","sourcesContent":["import { UPDATE_MUTATION_BUSY } from '../actions/mutation-busy.js'\n\nconst INITIAL_STATE: {\n mutationBusy: boolean\n} = {\n mutationBusy: false\n}\n\nconst mutationBusy = (state = INITIAL_STATE, action: any) => {\n switch (action.type) {\n case UPDATE_MUTATION_BUSY:\n return {\n mutationBusy: action.mutationBusy\n }\n\n default:\n return state\n }\n}\n\nexport default mutationBusy\n"]}
|
package/dist/src/store.js
CHANGED
@@ -4,6 +4,7 @@ import thunk from 'redux-thunk';
|
|
4
4
|
import app from './reducers/app';
|
5
5
|
import route from './reducers/route';
|
6
6
|
import busy from './reducers/busy';
|
7
|
+
import mutationBusy from './reducers/mutation-busy';
|
7
8
|
// Sets up a Chrome extension for time travel debugging.
|
8
9
|
// See https://github.com/zalmoxisus/redux-devtools-extension for more information.
|
9
10
|
const devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
@@ -20,6 +21,7 @@ export const store = createStore(state => state, devCompose(lazyReducerEnhancer(
|
|
20
21
|
store.addReducers({
|
21
22
|
app,
|
22
23
|
route,
|
23
|
-
busy
|
24
|
+
busy,
|
25
|
+
mutationBusy
|
24
26
|
});
|
25
27
|
//# sourceMappingURL=store.js.map
|
package/dist/src/store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,gBAAgB,CAAA;AAChC,OAAO,KAAK,MAAM,kBAAkB,CAAA;AACpC,OAAO,IAAI,MAAM,iBAAiB,CAAA;
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAa,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAU,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,EAAS,MAAM,OAAO,CAAA;AAC7F,OAAO,KAAK,MAAM,aAAa,CAAA;AAE/B,OAAO,GAAG,MAAM,gBAAgB,CAAA;AAChC,OAAO,KAAK,MAAM,kBAAkB,CAAA;AACpC,OAAO,IAAI,MAAM,iBAAiB,CAAA;AAClC,OAAO,YAAY,MAAM,0BAA0B,CAAA;AAMnD,wDAAwD;AACxD,mFAAmF;AACnF,MAAM,UAAU,GAAG,MAAM,CAAC,oCAAoC,IAAI,OAAO,CAAA;AAEzE,2FAA2F;AAC3F,IAAI,OAAO,MAAM,CAAC,OAAO,IAAI,WAAW,EAAE,CAAC;IACzC,MAAM,CAAC,OAAO,GAAG;QACf,GAAG,EAAE;YACH,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;SACxC;KACK,CAAA;AACV,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAA4C,WAAW,CACvE,KAAK,CAAC,EAAE,CAAC,KAAK,EACd,UAAU,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC,CACzE,CAAA;AAED,6BAA6B;AAC7B,KAAK,CAAC,WAAW,CAAC;IAChB,GAAG;IACH,KAAK;IACL,IAAI;IACJ,YAAY;CACb,CAAC,CAAA","sourcesContent":["import { lazyReducerEnhancer, LazyStore } from 'pwa-helpers/lazy-reducer-enhancer.js'\nimport { Action, applyMiddleware, combineReducers, compose, createStore, Store } from 'redux'\nimport thunk from 'redux-thunk'\n\nimport app from './reducers/app'\nimport route from './reducers/route'\nimport busy from './reducers/busy'\nimport mutationBusy from './reducers/mutation-busy'\n\ndeclare global {\n var __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any\n}\n\n// Sets up a Chrome extension for time travel debugging.\n// See https://github.com/zalmoxisus/redux-devtools-extension for more information.\nconst devCompose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\n\n// Only for providing test environment - combineReducers 에서 process.env.NODE_ENV를 접근하기 때문에.\nif (typeof window.process == 'undefined') {\n window.process = {\n env: {\n NODE_ENV: JSON.stringify('development')\n }\n } as any\n}\n\nexport const store: Store<unknown, Action<any>> & LazyStore = createStore(\n state => state,\n devCompose(lazyReducerEnhancer(combineReducers), applyMiddleware(thunk))\n)\n\n// Initially loaded reducers.\nstore.addReducers({\n app,\n route,\n busy,\n mutationBusy\n})\n"]}
|