How to use the babel/utils/helper/objects/KeyMirror function in babel

To help you get started, we’ve selected a few babel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Esri / storymap-crowdsource / src / app / constants / old / viewer / Events.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const appState = keyMirror({
  LAYOUT_STATE: null,
  LOAD_STATE: null,
  VIEW_STATE: null,
  CONTRIBUTE: null
},'lower-dashed');

const common = keyMirror({
  CHANGE: null
},'lower-dashed');

const forms = keyMirror({
  VALIDATION_EVENT: null
},'lower-dashed');

export const Events = {
  appState,
github Esri / storymap-crowdsource / src / app / constants / old / viewer / ActionTypes.babel.js View on Github external
SCRIPTS_LOADED: null,
  SET_LAYOUT: null,
  SET_VIEW: null
},'lower-dashed');

const arcgis = keyMirror({
  RECEIVE_APP_ITEM: null
},'lower-dashed');

const contribute = keyMirror({
  SAVE: null,
  START: null,
  UPDATE_CONTRIBUTION: null
},'lower-dashed');

const forms = keyMirror({
  FORM_CREATED: null,
  FORM_COMPLETED: null,
  VALIDATION_FINISHED: null,
  VALIDATION_STARTED: null
},'lower-dashed');

const map = keyMirror({
  RECEIVE_FEATURES: null,
  STORE_MAP_OBJECTS: null
},'lower-dashed');

export const ActionTypes = {
  app,
  arcgis,
  contribute,
  forms,
github Esri / storymap-crowdsource / src / app / constants / old / viewer / Components.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const names = keyMirror({
  GALLERY: null,
  INTRO: null,
  MAP: null
},'lower-dashed');

export const Components = {
  names
};
export default Components;
github Esri / storymap-crowdsource / src / app / constants / old / builder / ActionTypes.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const app = keyMirror({
  SETTINGS_NEXT: null,
  UPDATE_APP_DATA: null
},'lower-dashed');

export const ActionTypes = {
  app
};
export default ActionTypes;
github Esri / storymap-crowdsource / src / app / constants / old / viewer / ActionTypes.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const app = keyMirror({
  AUTHORIZATION: null,
  COMPONENT_LOADED: null,
  LOADING_ERROR: null,
  SCRIPTS_LOADED: null,
  SET_LAYOUT: null,
  SET_VIEW: null
},'lower-dashed');

const arcgis = keyMirror({
  RECEIVE_APP_ITEM: null
},'lower-dashed');

const contribute = keyMirror({
  SAVE: null,
  START: null,
  UPDATE_CONTRIBUTION: null
},'lower-dashed');

const forms = keyMirror({
  FORM_CREATED: null,
  FORM_COMPLETED: null,
  VALIDATION_FINISHED: null,
  VALIDATION_STARTED: null
},'lower-dashed');
github Esri / storymap-crowdsource / src / app / constants / old / viewer / ActionTypes.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const app = keyMirror({
  AUTHORIZATION: null,
  COMPONENT_LOADED: null,
  LOADING_ERROR: null,
  SCRIPTS_LOADED: null,
  SET_LAYOUT: null,
  SET_VIEW: null
},'lower-dashed');

const arcgis = keyMirror({
  RECEIVE_APP_ITEM: null
},'lower-dashed');

const contribute = keyMirror({
  SAVE: null,
  START: null,
  UPDATE_CONTRIBUTION: null
},'lower-dashed');

const forms = keyMirror({
  FORM_CREATED: null,
  FORM_COMPLETED: null,
  VALIDATION_FINISHED: null,
  VALIDATION_STARTED: null
},'lower-dashed');

const map = keyMirror({
  RECEIVE_FEATURES: null,
  STORE_MAP_OBJECTS: null
},'lower-dashed');
github Esri / storymap-crowdsource / src / app / constants / old / builder / Events.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const appState = keyMirror({
  SETTINGS_VIEW: null
},'lower-dashed');

export const Events = {
  appState
};
export default Events;
github Esri / storymap-crowdsource / src / app / constants / old / viewer / ActionTypes.babel.js View on Github external
},'lower-dashed');

const contribute = keyMirror({
  SAVE: null,
  START: null,
  UPDATE_CONTRIBUTION: null
},'lower-dashed');

const forms = keyMirror({
  FORM_CREATED: null,
  FORM_COMPLETED: null,
  VALIDATION_FINISHED: null,
  VALIDATION_STARTED: null
},'lower-dashed');

const map = keyMirror({
  RECEIVE_FEATURES: null,
  STORE_MAP_OBJECTS: null
},'lower-dashed');

export const ActionTypes = {
  app,
  arcgis,
  contribute,
  forms,
  map
};
export default ActionTypes;
github Esri / storymap-crowdsource / src / app / constants / old / viewer / ActionTypes.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const app = keyMirror({
  AUTHORIZATION: null,
  COMPONENT_LOADED: null,
  LOADING_ERROR: null,
  SCRIPTS_LOADED: null,
  SET_LAYOUT: null,
  SET_VIEW: null
},'lower-dashed');

const arcgis = keyMirror({
  RECEIVE_APP_ITEM: null
},'lower-dashed');

const contribute = keyMirror({
  SAVE: null,
  START: null,
  UPDATE_CONTRIBUTION: null
github Esri / storymap-crowdsource / src / app / constants / old / viewer / Events.babel.js View on Github external
import keyMirror from 'babel/utils/helper/objects/KeyMirror';

const appState = keyMirror({
  LAYOUT_STATE: null,
  LOAD_STATE: null,
  VIEW_STATE: null,
  CONTRIBUTE: null
},'lower-dashed');

const common = keyMirror({
  CHANGE: null
},'lower-dashed');

const forms = keyMirror({
  VALIDATION_EVENT: null
},'lower-dashed');

export const Events = {
  appState,
  common,
  forms
};
export default Events;