@lingk/sync 0.0.34 → 0.0.36

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/build/reducer.js CHANGED
@@ -59,12 +59,15 @@ module.exports =
59
59
  Object.defineProperty(exports, "__esModule", {
60
60
  value: true
61
61
  });
62
- // Wizard
62
+ var SET_WIZARD_SAVED_MAPPING = exports.SET_WIZARD_SAVED_MAPPING = 'SET_WIZARD_SAVED_MAPPING';
63
+ var SET_WIZARD_SAVED_CONFIGURATION = exports.SET_WIZARD_SAVED_CONFIGURATION = 'SET_WIZARD_SAVED_CONFIGURATION';
64
+ var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
65
+ var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
66
+
67
+ // old Wizard
63
68
  var SET_WIZARD_DATA_ENTITIES = exports.SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';
64
69
  var SET_WIZARD_RESOURCE_META = exports.SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';
65
- var SET_WIZARD_LOADED = exports.SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';
66
70
  var SET_WIZARD_DATA = exports.SET_WIZARD_DATA = 'SET_WIZARD_DATA';
67
- var SET_WIZARD_SAVED_SCHEMAS = exports.SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';
68
71
 
69
72
  /***/ },
70
73
 
@@ -85,9 +88,12 @@ module.exports =
85
88
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
86
89
 
87
90
  var initialState = {
91
+ savedSchemas: null,
92
+ savedMapping: null,
93
+ savedConfiguration: null,
88
94
  loaded: false,
95
+
89
96
  data: {},
90
- savedSchemas: [],
91
97
  schemaGuids: {},
92
98
 
93
99
  dataEntities: {},
@@ -99,20 +105,28 @@ module.exports =
99
105
  var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
100
106
 
101
107
  switch (action.type) {
108
+ case types.SET_WIZARD_SAVED_SCHEMAS:
109
+ return Object.assign({}, state, {
110
+ savedSchemas: action.data
111
+ });
112
+ case types.SET_WIZARD_SAVED_MAPPING:
113
+ return Object.assign({}, state, {
114
+ savedMapping: action.data
115
+ });
116
+ case types.SET_WIZARD_SAVED_CONFIGURATION:
117
+ return Object.assign({}, state, {
118
+ savedConfiguration: action.data
119
+ });
102
120
  case types.SET_WIZARD_LOADED:
103
121
  return Object.assign({}, state, {
104
122
  loaded: action.bool
105
123
  });
124
+
106
125
  case types.SET_WIZARD_DATA:
107
126
  return Object.assign({}, state, {
108
127
  data: action.data,
109
128
  loaded: true
110
129
  });
111
- case types.SET_WIZARD_SAVED_SCHEMAS:
112
- return Object.assign({}, state, {
113
- savedSchemas: action.data
114
- });
115
-
116
130
  case types.SET_WIZARD_DATA_ENTITIES:
117
131
  return Object.assign({}, state, {
118
132
  dataEntities: action.data
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap 72172b766b53eac43251?5069**","webpack:///./src/lib/wizard/actions/types.js?caa0","webpack:///./src/lib/reducer/wizard.js"],"names":["SET_WIZARD_DATA_ENTITIES","SET_WIZARD_RESOURCE_META","SET_WIZARD_LOADED","SET_WIZARD_DATA","SET_WIZARD_SAVED_SCHEMAS","wizardReducer","types","initialState","loaded","data","savedSchemas","schemaGuids","dataEntities","resourceMeta","state","action","type","bool"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;ACtCA;AACO,KAAMA,8DAA2B,0BAAjC;AACA,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,gDAAoB,mBAA1B;AACA,KAAMC,4CAAkB,iBAAxB;AACA,KAAMC,8DAA2B,0BAAjC,C;;;;;;;;;;;;mBCOiBC,a;;AAZxB;;KAAYC,K;;;;AAEZ,KAAMC,eAAe;AACnBC,WAAO,KADY;AAEnBC,SAAK,EAFc;AAGnBC,iBAAa,EAHM;AAInBC,gBAAa,EAJM;;AAMnBC,iBAAc,EANK;AAOnBC,iBAAc;AAPK,EAArB;;AAUe,UAASR,aAAT,GAA0D;AAAA,OAAnCS,KAAmC,uEAA3BP,YAA2B;AAAA,OAAbQ,MAAa,uEAAJ,EAAI;;AACvE,WAAQA,OAAOC,IAAf;AACE,UAAKV,MAAMJ,iBAAX;AACE,gCACKY,KADL;AAEEN,iBAAQO,OAAOE;AAFjB;AAIF,UAAKX,MAAMH,eAAX;AACE,gCACKW,KADL;AAEEL,eAAMM,OAAON,IAFf;AAGED,iBAAQ;AAHV;AAKF,UAAKF,MAAMF,wBAAX;AACE,gCACKU,KADL;AAEEJ,uBAAcK,OAAON;AAFvB;;AAKF,UAAKH,MAAMN,wBAAX;AACE,gCACKc,KADL;AAEEF,uBAAcG,OAAON;AAFvB;AAIF,UAAKH,MAAML,wBAAX;AACE,gCACKa,KADL;AAEED,uBAAcE,OAAON;AAFvB;AAIF;AAAS,cAAOK,KAAP;AA5BX;AA8BD,G","file":"reducer.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 72172b766b53eac43251","// Wizard\nexport const SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';\nexport const SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';\nexport const SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';\nexport const SET_WIZARD_DATA = 'SET_WIZARD_DATA';\nexport const SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/actions/types.js","import * as types from '../wizard/actions/types';\n\nconst initialState = {\n loaded:false,\n data:{},\n savedSchemas:[],\n schemaGuids: {},\n\n dataEntities: {},\n resourceMeta: [],\n};\n\nexport default function wizardReducer(state = initialState, action = {}) {\n switch (action.type) {\n case types.SET_WIZARD_LOADED:\n return {\n ...state,\n loaded: action.bool\n };\n case types.SET_WIZARD_DATA:\n return {\n ...state,\n data: action.data,\n loaded: true\n }\n case types.SET_WIZARD_SAVED_SCHEMAS:\n return {\n ...state,\n savedSchemas: action.data\n }\n\n case types.SET_WIZARD_DATA_ENTITIES:\n return {\n ...state,\n dataEntities: action.data,\n };\n case types.SET_WIZARD_RESOURCE_META:\n return {\n ...state,\n resourceMeta: action.data,\n };\n default: return state;\n }\n};\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/reducer/wizard.js"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap 73f59e64d2bfc60162a7?045d**","webpack:///./src/lib/wizard/actions/types.js?caa0","webpack:///./src/lib/reducer/wizard.js"],"names":["SET_WIZARD_SAVED_MAPPING","SET_WIZARD_SAVED_CONFIGURATION","SET_WIZARD_SAVED_SCHEMAS","SET_WIZARD_LOADED","SET_WIZARD_DATA_ENTITIES","SET_WIZARD_RESOURCE_META","SET_WIZARD_DATA","wizardReducer","types","initialState","savedSchemas","savedMapping","savedConfiguration","loaded","data","schemaGuids","dataEntities","resourceMeta","state","action","type","bool"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;ACtCO,KAAMA,8DAA2B,0BAAjC;AACA,KAAMC,0EAAiC,gCAAvC;AACA,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,gDAAoB,mBAA1B;;AAEP;AACO,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,8DAA2B,0BAAjC;AACA,KAAMC,4CAAkB,iBAAxB,C;;;;;;;;;;;;mBCOiBC,a;;AAfxB;;KAAYC,K;;;;AAEZ,KAAMC,eAAe;AACnBC,iBAAc,IADK;AAEnBC,iBAAc,IAFK;AAGnBC,uBAAoB,IAHD;AAInBC,WAAO,KAJY;;AAMnBC,SAAK,EANc;AAOnBC,gBAAa,EAPM;;AASnBC,iBAAc,EATK;AAUnBC,iBAAc;AAVK,EAArB;;AAae,UAASV,aAAT,GAA0D;AAAA,OAAnCW,KAAmC,uEAA3BT,YAA2B;AAAA,OAAbU,MAAa,uEAAJ,EAAI;;AACvE,WAAQA,OAAOC,IAAf;AACE,UAAKZ,MAAMN,wBAAX;AACE,gCACKgB,KADL;AAEER,uBAAcS,OAAOL;AAFvB;AAIF,UAAKN,MAAMR,wBAAX;AACE,gCACKkB,KADL;AAEEP,uBAAcQ,OAAOL;AAFvB;AAIF,UAAKN,MAAMP,8BAAX;AACE,gCACKiB,KADL;AAEEN,6BAAoBO,OAAOL;AAF7B;AAIF,UAAKN,MAAML,iBAAX;AACE,gCACKe,KADL;AAEEL,iBAAQM,OAAOE;AAFjB;;AAMF,UAAKb,MAAMF,eAAX;AACE,gCACKY,KADL;AAEEJ,eAAMK,OAAOL,IAFf;AAGED,iBAAQ;AAHV;AAKF,UAAKL,MAAMJ,wBAAX;AACE,gCACKc,KADL;AAEEF,uBAAcG,OAAOL;AAFvB;AAIF,UAAKN,MAAMH,wBAAX;AACE,gCACKa,KADL;AAEED,uBAAcE,OAAOL;AAFvB;AAIF;AAAS,cAAOI,KAAP;AAvCX;AAyCD,G","file":"reducer.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 73f59e64d2bfc60162a7","export const SET_WIZARD_SAVED_MAPPING = 'SET_WIZARD_SAVED_MAPPING';\nexport const SET_WIZARD_SAVED_CONFIGURATION = 'SET_WIZARD_SAVED_CONFIGURATION';\nexport const SET_WIZARD_SAVED_SCHEMAS = 'SET_WIZARD_SAVED_SCHEMAS';\nexport const SET_WIZARD_LOADED = 'SET_WIZARD_LOADED';\n\n// old Wizard\nexport const SET_WIZARD_DATA_ENTITIES = 'SET_WIZARD_DATA_ENTITIES';\nexport const SET_WIZARD_RESOURCE_META = 'SET_WIZARD_RESOURCE_META';\nexport const SET_WIZARD_DATA = 'SET_WIZARD_DATA';\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/wizard/actions/types.js","import * as types from '../wizard/actions/types';\n\nconst initialState = {\n savedSchemas: null,\n savedMapping: null,\n savedConfiguration: null,\n loaded:false,\n\n data:{}, \n schemaGuids: {},\n\n dataEntities: {},\n resourceMeta: [],\n};\n\nexport default function wizardReducer(state = initialState, action = {}) {\n switch (action.type) {\n case types.SET_WIZARD_SAVED_SCHEMAS:\n return {\n ...state,\n savedSchemas: action.data\n }\n case types.SET_WIZARD_SAVED_MAPPING:\n return {\n ...state,\n savedMapping: action.data\n }\n case types.SET_WIZARD_SAVED_CONFIGURATION:\n return {\n ...state,\n savedConfiguration: action.data\n }\n case types.SET_WIZARD_LOADED:\n return {\n ...state,\n loaded: action.bool\n };\n\n\n case types.SET_WIZARD_DATA:\n return {\n ...state,\n data: action.data,\n loaded: true\n }\n case types.SET_WIZARD_DATA_ENTITIES:\n return {\n ...state,\n dataEntities: action.data,\n };\n case types.SET_WIZARD_RESOURCE_META:\n return {\n ...state,\n resourceMeta: action.data,\n };\n default: return state;\n }\n};\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/reducer/wizard.js"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingk/sync",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "author": "Evan Feenstra",
5
5
  "repository": "https://github.com/lingkio/wizard-framework.git",
6
6
  "files": [