@files-stack/client-redux
Advanced tools
Comparing version 0.0.28-39 to 0.0.29
773
lib/index.js
@@ -6,2 +6,5 @@ module.exports = | ||
/******/ | ||
/******/ // object to store loaded and loading wasm modules | ||
/******/ var installedWasmModules = {}; | ||
/******/ | ||
/******/ // The require function | ||
@@ -49,2 +52,7 @@ /******/ function __webpack_require__(moduleId) { | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
@@ -65,8 +73,17 @@ /******/ __webpack_require__.n = function(module) { | ||
/******/ | ||
/******/ // object with all compiled WebAssembly.Modules | ||
/******/ __webpack_require__.w = {}; | ||
/******/ | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 2); | ||
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/******/ ({ | ||
/***/ "./src/actions/edit-actions.ts": | ||
/*!*************************************!*\ | ||
!*** ./src/actions/edit-actions.ts ***! | ||
\*************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -77,2 +94,151 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(/*! ./types */ "./src/actions/types.ts"); | ||
exports.openFileAction = (content) => ({ | ||
type: actionTypes.OPEN_FILE, content, | ||
}); | ||
exports.selectEditAction = (content) => ({ | ||
type: actionTypes.SELECT_EDIT, content, | ||
}); | ||
exports.removeEditAction = (content) => ({ | ||
type: actionTypes.REMOVE_EDIT, content, | ||
}); | ||
exports.changeEditAction = (changed) => ({ | ||
type: actionTypes.CHANGE_EDIT, changed, | ||
}); | ||
exports.activateEditorAction = (editorId) => ({ | ||
type: actionTypes.ACTIVATE_EDITOR, editorId, | ||
}); | ||
exports.updateEditorsHeightAction = (editorWrappers) => ({ | ||
type: actionTypes.UPDATE_EDITORS_HEIGHT, editorWrappers, | ||
}); | ||
exports.openMarkdownAction = (content, previewEditorId) => ({ | ||
type: actionTypes.OPEN_MARKDOWN, content, previewEditorId, | ||
}); | ||
exports.saveAllEditorAction = (allSave) => ({ | ||
type: actionTypes.SAVE_ALL_EDITORS, allSave, | ||
}); | ||
exports.closeAllEditorAction = () => ({ | ||
type: actionTypes.CLOSE_ALL_EDITORS, | ||
}); | ||
exports.keepOpenAction = (content) => ({ | ||
type: actionTypes.KEEP_OPEN_EDITOR, content, | ||
}); | ||
exports.changeEditorSubscribesAction = (editorSubscribes) => ({ | ||
type: actionTypes.CHANGE_EDITOR_SUBSCRIBES, editorSubscribes, | ||
}); | ||
exports.updateEditorContentAction = (content) => ({ | ||
type: actionTypes.UPDATE_EDITOR_CONTENT, content, | ||
}); | ||
exports.updateChangedContentAction = (resource) => ({ | ||
type: actionTypes.UPDATE_CHANGED_CONTENT, resource, | ||
}); | ||
exports.openDiffEditorAction = (content) => ({ | ||
type: actionTypes.OPEN_DIFF_EDITOR, content, | ||
}); | ||
/***/ }), | ||
/***/ "./src/actions/files-actions.ts": | ||
/*!**************************************!*\ | ||
!*** ./src/actions/files-actions.ts ***! | ||
\**************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(/*! ./types */ "./src/actions/types.ts"); | ||
exports.setRootpathAction = (rootpath) => ({ | ||
type: actionTypes.SET_ROOTPATH, | ||
rootpath, | ||
}); | ||
exports.refreshDirectoryAction = () => ({ | ||
type: actionTypes.REFRESH_DIRECTORY, | ||
}); | ||
exports.selectFileAction = (fileStat) => ({ | ||
type: actionTypes.SELECT_FILE, fileStat, | ||
}); | ||
exports.resetMutateAction = () => ({ | ||
type: actionTypes.MUTATE_FILES_RESET, | ||
}); | ||
exports.completeMutateAction = () => ({ | ||
type: actionTypes.MUTATE_FILES_COMPLETE, | ||
}); | ||
exports.mutateFileAction = (mutation, options) => ({ | ||
type: actionTypes.MUTATE_FILES, mutation, payload: options, | ||
}); | ||
exports.newFileAction = (payload) => ({ | ||
type: actionTypes.NEW_FILE, | ||
payload, | ||
}); | ||
exports.newFolderAction = (payload) => ({ | ||
type: actionTypes.NEW_FOLDER, | ||
payload, | ||
}); | ||
exports.dragOverFileAction = (fileStat, path) => ({ | ||
type: actionTypes.DRAG_OVER_FILE, | ||
fileStat, | ||
path, | ||
}); | ||
exports.toggleEditorsExpandAction = (expand) => ({ | ||
type: actionTypes.TOGGLE_EDITORS_EXPAND, | ||
expand, | ||
}); | ||
exports.addSubscribeAction = (subscribe) => ({ | ||
type: actionTypes.ADD_SUBSCRIBE, subscribe, | ||
}); | ||
exports.setCreatingFileAction = (payload) => ({ | ||
type: actionTypes.SET_CREATING_FILE, payload, | ||
}); | ||
exports.deselectFileAction = (resource = null) => ({ | ||
type: actionTypes.DESELECT_FILE, resource, | ||
}); | ||
exports.setTreeDataAction = (treeData) => ({ | ||
type: actionTypes.SET_TREE_DATA, treeData, | ||
}); | ||
exports.setRootExpandAction = (expand) => ({ | ||
type: actionTypes.SET_ROOT_EXPAND, expand, | ||
}); | ||
exports.setFinderOptionsAction = (options) => ({ | ||
type: actionTypes.SET_FINDER_OPTIONS, options, | ||
}); | ||
exports.reloadTreeDataAction = (reload) => ({ | ||
type: actionTypes.RELOAD_TREE_DATA, reload, | ||
}); | ||
/***/ }), | ||
/***/ "./src/actions/index.ts": | ||
/*!******************************!*\ | ||
!*** ./src/actions/index.ts ***! | ||
\******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(/*! ./types */ "./src/actions/types.ts")); | ||
__export(__webpack_require__(/*! ./files-actions */ "./src/actions/files-actions.ts")); | ||
__export(__webpack_require__(/*! ./edit-actions */ "./src/actions/edit-actions.ts")); | ||
/***/ }), | ||
/***/ "./src/actions/types.ts": | ||
/*!******************************!*\ | ||
!*** ./src/actions/types.ts ***! | ||
\******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SET_ROOTPATH = '@@files-stack/SET_ROOTPATH'; | ||
@@ -113,3 +279,8 @@ exports.REFRESH_DIRECTORY = '@@files-stack/REFRESH_DIRECTORY'; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ "./src/editor-actions/editor-actions.ts": | ||
/*!**********************************************!*\ | ||
!*** ./src/editor-actions/editor-actions.ts ***! | ||
\**********************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -119,13 +290,23 @@ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(0)); | ||
__export(__webpack_require__(10)); | ||
__export(__webpack_require__(11)); | ||
const actions_1 = __webpack_require__(/*! ../actions */ "./src/actions/index.ts"); | ||
exports.editorActions = (dispatch) => { | ||
return { | ||
id: actions_1.SET_ROOTPATH, | ||
label: 'Files: Set Root Path', | ||
run: (ed) => { | ||
const root = '/tmp'; | ||
dispatch(actions_1.setRootpathAction(root)); | ||
}, | ||
}; | ||
}; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ "./src/editor-actions/index.ts": | ||
/*!*************************************!*\ | ||
!*** ./src/editor-actions/index.ts ***! | ||
\*************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -139,9 +320,12 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(3)); | ||
__export(__webpack_require__(1)); | ||
__export(__webpack_require__(12)); | ||
__export(__webpack_require__(/*! ./editor-actions */ "./src/editor-actions/editor-actions.ts")); | ||
/***/ }), | ||
/* 3 */ | ||
/***/ "./src/index.ts": | ||
/*!**********************!*\ | ||
!*** ./src/index.ts ***! | ||
\**********************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -151,183 +335,18 @@ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const files_reducer_1 = __webpack_require__(4); | ||
const edit_reducer_1 = __webpack_require__(5); | ||
exports.reducers = Object.assign({}, files_reducer_1.filesReducers, edit_reducer_1.editReducers); | ||
__export(__webpack_require__(/*! ./reducers */ "./src/reducers/index.ts")); | ||
__export(__webpack_require__(/*! ./actions */ "./src/actions/index.ts")); | ||
__export(__webpack_require__(/*! ./editor-actions */ "./src/editor-actions/index.ts")); | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(0); | ||
function refresh(state = 0, action) { | ||
switch (action.type) { | ||
case actionTypes.REFRESH_DIRECTORY: | ||
return state + 1; | ||
default: | ||
return state; | ||
} | ||
} | ||
function selectedFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SELECT_FILE: | ||
return Object.assign({}, action.fileStat); | ||
case actionTypes.DESELECT_FILE: | ||
if (action.resource) { | ||
if (state && state.resource === action.resource) { | ||
return null; | ||
} | ||
} | ||
else { | ||
return null; | ||
} | ||
return state; | ||
default: | ||
return state; | ||
} | ||
} | ||
function rootpath(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_ROOTPATH: | ||
return action.rootpath; | ||
default: | ||
return state; | ||
} | ||
} | ||
function mutateFiles(state = {}, action) { | ||
switch (action.type) { | ||
case actionTypes.MUTATE_FILES_RESET: | ||
return Object.assign({}, state, { | ||
mutation: '', | ||
options: {}, | ||
calling: false, | ||
}); | ||
case actionTypes.MUTATE_FILES_COMPLETE: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
}); | ||
case actionTypes.MUTATE_FILES: | ||
let newState = Object.assign({}, state, { | ||
calling: true, | ||
mutation: action.mutation, | ||
options: action.payload, | ||
}); | ||
if (action.mutation === 'copy') { | ||
return Object.assign({}, newState, { | ||
copyPath: action.payload.resource, | ||
}); | ||
} | ||
else { | ||
return newState; | ||
} | ||
case actionTypes.NEW_FILE: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
mutation: 'new-file', | ||
options: action.payload, | ||
}); | ||
case actionTypes.NEW_FOLDER: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
mutation: 'new-folder', | ||
options: action.payload, | ||
}); | ||
default: | ||
return state; | ||
} | ||
} | ||
function dragOveredFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.DRAG_OVER_FILE: | ||
if (action.fileStat) { | ||
return { fileStat: action.fileStat, path: action.path }; | ||
} | ||
else { | ||
return null; | ||
} | ||
default: | ||
return state; | ||
} | ||
} | ||
function editorsExpand(state = true, action) { | ||
switch (action.type) { | ||
case actionTypes.TOGGLE_EDITORS_EXPAND: | ||
return action.expand; | ||
default: | ||
return state; | ||
} | ||
} | ||
function subscriber(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.ADD_SUBSCRIBE: | ||
return action.subscribe; | ||
default: | ||
return state; | ||
} | ||
} | ||
function creatingFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_CREATING_FILE: | ||
return Object.assign({}, action.payload); | ||
default: | ||
return state; | ||
} | ||
} | ||
function treeData(state = null, action) { | ||
if (action.type === actionTypes.SET_TREE_DATA) { | ||
return action.treeData; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
function rootExpand(state = true, action) { | ||
if (action.type === actionTypes.SET_ROOT_EXPAND) { | ||
return action.expand; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
const initialFinderOptions = { | ||
lineNumber: -1, | ||
searchText: '', | ||
}; | ||
function finderOptions(state = initialFinderOptions, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_FINDER_OPTIONS: | ||
return Object.assign({}, state, action.options); | ||
default: | ||
return state; | ||
} | ||
} | ||
function reloadTreeData(state = false, action) { | ||
if (action.type === actionTypes.RELOAD_TREE_DATA) { | ||
return action.reload; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
exports.filesReducers = { | ||
'@files/selectedFile': selectedFile, | ||
'@files/rootpath': rootpath, | ||
'@files/refresh': refresh, | ||
'@files/mutate': mutateFiles, | ||
'@files/dragOveredFile': dragOveredFile, | ||
'@files/editorsExpand': editorsExpand, | ||
'@files/rootExpand': rootExpand, | ||
'@files/subscriber': subscriber, | ||
'@files/creatingFile': creatingFile, | ||
'@files/treeData': treeData, | ||
'@files/finderOptions': finderOptions, | ||
'@files/reloadTreeData': reloadTreeData, | ||
}; | ||
/***/ }), | ||
/* 5 */ | ||
/***/ "./src/reducers/edit-reducer.ts": | ||
/*!**************************************!*\ | ||
!*** ./src/reducers/edit-reducer.ts ***! | ||
\**************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -338,7 +357,7 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const ramda_1 = __webpack_require__(6); | ||
const lodash_1 = __webpack_require__(7); | ||
const client_core_1 = __webpack_require__(8); | ||
const core_1 = __webpack_require__(9); | ||
const actionTypes = __webpack_require__(0); | ||
const ramda_1 = __webpack_require__(/*! ramda */ "ramda"); | ||
const lodash_1 = __webpack_require__(/*! lodash */ "lodash"); | ||
const client_core_1 = __webpack_require__(/*! @files-stack/client-core */ "@files-stack/client-core"); | ||
const core_1 = __webpack_require__(/*! @files-stack/core */ "@files-stack/core"); | ||
const actionTypes = __webpack_require__(/*! ../actions/types */ "./src/actions/types.ts"); | ||
const initialEditState = { | ||
@@ -670,27 +689,186 @@ openingFiles: [], | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("ramda"); | ||
/***/ "./src/reducers/files-reducer.ts": | ||
/*!***************************************!*\ | ||
!*** ./src/reducers/files-reducer.ts ***! | ||
\***************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports) { | ||
"use strict"; | ||
module.exports = require("lodash"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(/*! ../actions/types */ "./src/actions/types.ts"); | ||
function refresh(state = 0, action) { | ||
switch (action.type) { | ||
case actionTypes.REFRESH_DIRECTORY: | ||
return state + 1; | ||
default: | ||
return state; | ||
} | ||
} | ||
function selectedFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SELECT_FILE: | ||
return Object.assign({}, action.fileStat); | ||
case actionTypes.DESELECT_FILE: | ||
if (action.resource) { | ||
if (state && state.resource === action.resource) { | ||
return null; | ||
} | ||
} | ||
else { | ||
return null; | ||
} | ||
return state; | ||
default: | ||
return state; | ||
} | ||
} | ||
function rootpath(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_ROOTPATH: | ||
return action.rootpath; | ||
default: | ||
return state; | ||
} | ||
} | ||
function mutateFiles(state = {}, action) { | ||
switch (action.type) { | ||
case actionTypes.MUTATE_FILES_RESET: | ||
return Object.assign({}, state, { | ||
mutation: '', | ||
options: {}, | ||
calling: false, | ||
}); | ||
case actionTypes.MUTATE_FILES_COMPLETE: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
}); | ||
case actionTypes.MUTATE_FILES: | ||
let newState = Object.assign({}, state, { | ||
calling: true, | ||
mutation: action.mutation, | ||
options: action.payload, | ||
}); | ||
if (action.mutation === 'copy') { | ||
return Object.assign({}, newState, { | ||
copyPath: action.payload.resource, | ||
}); | ||
} | ||
else { | ||
return newState; | ||
} | ||
case actionTypes.NEW_FILE: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
mutation: 'new-file', | ||
options: action.payload, | ||
}); | ||
case actionTypes.NEW_FOLDER: | ||
return Object.assign({}, state, { | ||
calling: false, | ||
mutation: 'new-folder', | ||
options: action.payload, | ||
}); | ||
default: | ||
return state; | ||
} | ||
} | ||
function dragOveredFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.DRAG_OVER_FILE: | ||
if (action.fileStat) { | ||
return { fileStat: action.fileStat, path: action.path }; | ||
} | ||
else { | ||
return null; | ||
} | ||
default: | ||
return state; | ||
} | ||
} | ||
function editorsExpand(state = true, action) { | ||
switch (action.type) { | ||
case actionTypes.TOGGLE_EDITORS_EXPAND: | ||
return action.expand; | ||
default: | ||
return state; | ||
} | ||
} | ||
function subscriber(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.ADD_SUBSCRIBE: | ||
return action.subscribe; | ||
default: | ||
return state; | ||
} | ||
} | ||
function creatingFile(state = null, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_CREATING_FILE: | ||
return Object.assign({}, action.payload); | ||
default: | ||
return state; | ||
} | ||
} | ||
function treeData(state = null, action) { | ||
if (action.type === actionTypes.SET_TREE_DATA) { | ||
return action.treeData; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
function rootExpand(state = true, action) { | ||
if (action.type === actionTypes.SET_ROOT_EXPAND) { | ||
return action.expand; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
const initialFinderOptions = { | ||
lineNumber: -1, | ||
searchText: '', | ||
}; | ||
function finderOptions(state = initialFinderOptions, action) { | ||
switch (action.type) { | ||
case actionTypes.SET_FINDER_OPTIONS: | ||
return Object.assign({}, state, action.options); | ||
default: | ||
return state; | ||
} | ||
} | ||
function reloadTreeData(state = false, action) { | ||
if (action.type === actionTypes.RELOAD_TREE_DATA) { | ||
return action.reload; | ||
} | ||
else { | ||
return state; | ||
} | ||
} | ||
exports.filesReducers = { | ||
'@files/selectedFile': selectedFile, | ||
'@files/rootpath': rootpath, | ||
'@files/refresh': refresh, | ||
'@files/mutate': mutateFiles, | ||
'@files/dragOveredFile': dragOveredFile, | ||
'@files/editorsExpand': editorsExpand, | ||
'@files/rootExpand': rootExpand, | ||
'@files/subscriber': subscriber, | ||
'@files/creatingFile': creatingFile, | ||
'@files/treeData': treeData, | ||
'@files/finderOptions': finderOptions, | ||
'@files/reloadTreeData': reloadTreeData, | ||
}; | ||
/***/ }), | ||
/* 8 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("@files-stack/client-core"); | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("@files-stack/core"); | ||
/***/ }), | ||
/* 10 */ | ||
/***/ "./src/reducers/index.ts": | ||
/*!*******************************!*\ | ||
!*** ./src/reducers/index.ts ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -701,149 +879,54 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(0); | ||
exports.setRootpathAction = (rootpath) => ({ | ||
type: actionTypes.SET_ROOTPATH, | ||
rootpath, | ||
}); | ||
exports.refreshDirectoryAction = () => ({ | ||
type: actionTypes.REFRESH_DIRECTORY, | ||
}); | ||
exports.selectFileAction = (fileStat) => ({ | ||
type: actionTypes.SELECT_FILE, fileStat, | ||
}); | ||
exports.resetMutateAction = () => ({ | ||
type: actionTypes.MUTATE_FILES_RESET, | ||
}); | ||
exports.completeMutateAction = () => ({ | ||
type: actionTypes.MUTATE_FILES_COMPLETE, | ||
}); | ||
exports.mutateFileAction = (mutation, options) => ({ | ||
type: actionTypes.MUTATE_FILES, mutation, payload: options, | ||
}); | ||
exports.newFileAction = (payload) => ({ | ||
type: actionTypes.NEW_FILE, | ||
payload, | ||
}); | ||
exports.newFolderAction = (payload) => ({ | ||
type: actionTypes.NEW_FOLDER, | ||
payload, | ||
}); | ||
exports.dragOverFileAction = (fileStat, path) => ({ | ||
type: actionTypes.DRAG_OVER_FILE, | ||
fileStat, | ||
path, | ||
}); | ||
exports.toggleEditorsExpandAction = (expand) => ({ | ||
type: actionTypes.TOGGLE_EDITORS_EXPAND, | ||
expand, | ||
}); | ||
exports.addSubscribeAction = (subscribe) => ({ | ||
type: actionTypes.ADD_SUBSCRIBE, subscribe, | ||
}); | ||
exports.setCreatingFileAction = (payload) => ({ | ||
type: actionTypes.SET_CREATING_FILE, payload, | ||
}); | ||
exports.deselectFileAction = (resource = null) => ({ | ||
type: actionTypes.DESELECT_FILE, resource, | ||
}); | ||
exports.setTreeDataAction = (treeData) => ({ | ||
type: actionTypes.SET_TREE_DATA, treeData, | ||
}); | ||
exports.setRootExpandAction = (expand) => ({ | ||
type: actionTypes.SET_ROOT_EXPAND, expand, | ||
}); | ||
exports.setFinderOptionsAction = (options) => ({ | ||
type: actionTypes.SET_FINDER_OPTIONS, options, | ||
}); | ||
exports.reloadTreeDataAction = (reload) => ({ | ||
type: actionTypes.RELOAD_TREE_DATA, reload, | ||
}); | ||
const files_reducer_1 = __webpack_require__(/*! ./files-reducer */ "./src/reducers/files-reducer.ts"); | ||
const edit_reducer_1 = __webpack_require__(/*! ./edit-reducer */ "./src/reducers/edit-reducer.ts"); | ||
exports.reducers = Object.assign({}, files_reducer_1.filesReducers, edit_reducer_1.editReducers); | ||
/***/ }), | ||
/* 11 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/***/ "@files-stack/client-core": | ||
/*!*******************************************!*\ | ||
!*** external "@files-stack/client-core" ***! | ||
\*******************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actionTypes = __webpack_require__(0); | ||
exports.openFileAction = (content) => ({ | ||
type: actionTypes.OPEN_FILE, content, | ||
}); | ||
exports.selectEditAction = (content) => ({ | ||
type: actionTypes.SELECT_EDIT, content, | ||
}); | ||
exports.removeEditAction = (content) => ({ | ||
type: actionTypes.REMOVE_EDIT, content, | ||
}); | ||
exports.changeEditAction = (changed) => ({ | ||
type: actionTypes.CHANGE_EDIT, changed, | ||
}); | ||
exports.activateEditorAction = (editorId) => ({ | ||
type: actionTypes.ACTIVATE_EDITOR, editorId, | ||
}); | ||
exports.updateEditorsHeightAction = (editorWrappers) => ({ | ||
type: actionTypes.UPDATE_EDITORS_HEIGHT, editorWrappers, | ||
}); | ||
exports.openMarkdownAction = (content, previewEditorId) => ({ | ||
type: actionTypes.OPEN_MARKDOWN, content, previewEditorId, | ||
}); | ||
exports.saveAllEditorAction = (allSave) => ({ | ||
type: actionTypes.SAVE_ALL_EDITORS, allSave, | ||
}); | ||
exports.closeAllEditorAction = () => ({ | ||
type: actionTypes.CLOSE_ALL_EDITORS, | ||
}); | ||
exports.keepOpenAction = (content) => ({ | ||
type: actionTypes.KEEP_OPEN_EDITOR, content, | ||
}); | ||
exports.changeEditorSubscribesAction = (editorSubscribes) => ({ | ||
type: actionTypes.CHANGE_EDITOR_SUBSCRIBES, editorSubscribes, | ||
}); | ||
exports.updateEditorContentAction = (content) => ({ | ||
type: actionTypes.UPDATE_EDITOR_CONTENT, content, | ||
}); | ||
exports.updateChangedContentAction = (resource) => ({ | ||
type: actionTypes.UPDATE_CHANGED_CONTENT, resource, | ||
}); | ||
exports.openDiffEditorAction = (content) => ({ | ||
type: actionTypes.OPEN_DIFF_EDITOR, content, | ||
}); | ||
module.exports = require("@files-stack/client-core"); | ||
/***/ }), | ||
/***/ "@files-stack/core": | ||
/*!************************************!*\ | ||
!*** external "@files-stack/core" ***! | ||
\************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("@files-stack/core"); | ||
/***/ }), | ||
/* 12 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/***/ "lodash": | ||
/*!*************************!*\ | ||
!*** external "lodash" ***! | ||
\*************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(13)); | ||
module.exports = require("lodash"); | ||
/***/ }), | ||
/* 13 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
/***/ "ramda": | ||
/*!************************!*\ | ||
!*** external "ramda" ***! | ||
\************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const actions_1 = __webpack_require__(1); | ||
exports.editorActions = (dispatch) => { | ||
return { | ||
id: actions_1.SET_ROOTPATH, | ||
label: 'Files: Set Root Path', | ||
run: (ed) => { | ||
const root = '/tmp'; | ||
dispatch(actions_1.setRootpathAction(root)); | ||
}, | ||
}; | ||
}; | ||
module.exports = require("ramda"); | ||
/***/ }) | ||
/***/ }) | ||
/******/ ]); | ||
/******/ }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@files-stack/client-redux", | ||
"version": "0.0.28-39", | ||
"version": "0.0.29", | ||
"description": "Files Redux consists of reducers and actions", | ||
@@ -51,9 +51,9 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"jest": "^22.1.0", | ||
"jest": "^22.4.2", | ||
"rimraf": "^2.6.1", | ||
"webpack": "^3.10.0" | ||
"webpack": "4.7.0" | ||
}, | ||
"dependencies": { | ||
"@files-stack/client-core": "^0.0.28-39", | ||
"@files-stack/core": "^0.0.28-39" | ||
"@files-stack/client-core": "^0.0.29", | ||
"@files-stack/core": "^0.0.29" | ||
}, | ||
@@ -60,0 +60,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133334
1899
+ Added@files-stack/client-core@0.0.29(transitive)
+ Added@files-stack/core@0.0.29(transitive)
- Removed@files-stack/client-core@0.0.28-39(transitive)
- Removed@files-stack/core@0.0.28(transitive)
Updated@files-stack/core@^0.0.29