@plusscommunities/pluss-feature-builder-app-b 1.0.3-beta.3 → 8.0.1-auth.0
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/dist/module/actions/featureBuilderActions.js +8 -4
- package/dist/module/actions/featureBuilderActions.js.map +1 -1
- package/dist/module/actions/featureBuilderStringsActions.js +4 -6
- package/dist/module/actions/featureBuilderStringsActions.js.map +1 -1
- package/dist/module/actions/index.js +0 -2
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +0 -2
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/components/FeatureDetailScreen.js +324 -355
- package/dist/module/components/FeatureDetailScreen.js.map +1 -1
- package/dist/module/components/FeatureListItem.js +38 -47
- package/dist/module/components/FeatureListItem.js.map +1 -1
- package/dist/module/components/FeatureListScreen.js +123 -94
- package/dist/module/components/FeatureListScreen.js.map +1 -1
- package/dist/module/components/FieldRenderer.js +76 -91
- package/dist/module/components/FieldRenderer.js.map +1 -1
- package/dist/module/components/FileDownload.js +23 -30
- package/dist/module/components/FileDownload.js.map +1 -1
- package/dist/module/components/WidgetGrid.js +51 -56
- package/dist/module/components/WidgetGrid.js.map +1 -1
- package/dist/module/components/WidgetLarge.js +109 -111
- package/dist/module/components/WidgetLarge.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +107 -109
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/dist/module/components/common/index.js +1 -2
- package/dist/module/components/common/index.js.map +1 -1
- package/dist/module/components/layouts/CondensedList.js +64 -75
- package/dist/module/components/layouts/CondensedList.js.map +1 -1
- package/dist/module/components/layouts/FeatureImageList.js +50 -60
- package/dist/module/components/layouts/FeatureImageList.js.map +1 -1
- package/dist/module/components/layouts/RoundImageList.js +53 -62
- package/dist/module/components/layouts/RoundImageList.js.map +1 -1
- package/dist/module/components/layouts/SquareImageList.js +53 -62
- package/dist/module/components/layouts/SquareImageList.js.map +1 -1
- package/dist/module/config/index.js +0 -2
- package/dist/module/config/index.js.map +1 -1
- package/dist/module/core.config.js +1 -4
- package/dist/module/core.config.js.map +1 -1
- package/dist/module/feature.config.js +9 -8
- package/dist/module/feature.config.js.map +1 -1
- package/dist/module/index.js +0 -2
- package/dist/module/index.js.map +1 -1
- package/dist/module/js/Colors.js +0 -2
- package/dist/module/js/Colors.js.map +1 -1
- package/dist/module/js/FieldTypes.js +0 -2
- package/dist/module/js/FieldTypes.js.map +1 -1
- package/dist/module/js/NavigationService.js +0 -2
- package/dist/module/js/NavigationService.js.map +1 -1
- package/dist/module/js/Styles.js +0 -2
- package/dist/module/js/Styles.js.map +1 -1
- package/dist/module/js/helpers.js +7 -6
- package/dist/module/js/helpers.js.map +1 -1
- package/dist/module/js/index.js +0 -2
- package/dist/module/js/index.js.map +1 -1
- package/dist/module/js/spacing.js +0 -2
- package/dist/module/js/spacing.js.map +1 -1
- package/dist/module/js/types.js +0 -2
- package/dist/module/js/types.js.map +1 -1
- package/dist/module/reducers/featureBuilderReducer.js +0 -2
- package/dist/module/reducers/featureBuilderReducer.js.map +1 -1
- package/dist/module/utils/featureSelectors.js +0 -2
- package/dist/module/utils/featureSelectors.js.map +1 -1
- package/dist/module/utils/selectors.js +13 -9
- package/dist/module/utils/selectors.js.map +1 -1
- package/dist/module/values.config.a.js +0 -2
- package/dist/module/values.config.a.js.map +1 -1
- package/dist/module/values.config.b.js +0 -2
- package/dist/module/values.config.b.js.map +1 -1
- package/dist/module/values.config.c.js +0 -2
- package/dist/module/values.config.c.js.map +1 -1
- package/dist/module/values.config.d.js +0 -2
- package/dist/module/values.config.d.js.map +1 -1
- package/dist/module/values.config.default.js +2 -4
- package/dist/module/values.config.default.js.map +1 -1
- package/dist/module/values.config.js +0 -2
- package/dist/module/values.config.js.map +1 -1
- package/dist/module/webapi/featureBuilderAPI.js +0 -2
- package/dist/module/webapi/featureBuilderAPI.js.map +1 -1
- package/dist/module/webapi/helper.js +0 -2
- package/dist/module/webapi/helper.js.map +1 -1
- package/dist/module/webapi/index.js +0 -2
- package/dist/module/webapi/index.js.map +1 -1
- package/package.json +19 -14
- package/src/actions/featureBuilderActions.js +10 -2
- package/src/components/FeatureDetailScreen.js +2 -2
- package/src/components/FeatureListItem.js +2 -2
- package/src/components/FeatureListScreen.js +87 -61
- package/src/components/FieldRenderer.js +3 -8
- package/src/components/FileDownload.js +2 -2
- package/src/components/WidgetGrid.js +2 -1
- package/src/components/WidgetLarge.js +36 -28
- package/src/components/WidgetSmall.js +34 -26
- package/src/components/common/index.js +1 -0
- package/src/components/layouts/CondensedList.js +4 -3
- package/src/components/layouts/FeatureImageList.js +4 -3
- package/src/components/layouts/RoundImageList.js +4 -3
- package/src/components/layouts/SquareImageList.js +4 -3
- package/src/core.config.js +0 -2
- package/src/values.config.default.js +2 -2
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import { values } from "../values.config";
|
|
4
2
|
import { featureBuilderAPI } from "../webapi/featureBuilderAPI";
|
|
5
3
|
import { updateFeatureBuilderStringAndIconFromDefinition } from "./featureBuilderStringsActions";
|
|
@@ -43,8 +41,9 @@ export const loadTargetFeature = () => {
|
|
|
43
41
|
type: FeatureBuilderActionTypes.LOADING
|
|
44
42
|
});
|
|
45
43
|
try {
|
|
44
|
+
var _state$user;
|
|
46
45
|
const state = getState();
|
|
47
|
-
const site = state.user
|
|
46
|
+
const site = state === null || state === void 0 || (_state$user = state.user) === null || _state$user === void 0 ? void 0 : _state$user.site;
|
|
48
47
|
const targetId = values.targetFeatureDefinitionId;
|
|
49
48
|
const defResponse = await featureBuilderAPI.getFeatureDefinitions(site);
|
|
50
49
|
const allDefinitions = defResponse.data.featureDefinitions || [];
|
|
@@ -62,7 +61,7 @@ export const loadTargetFeature = () => {
|
|
|
62
61
|
const rawListings = listResponse.data.listings || [];
|
|
63
62
|
|
|
64
63
|
// Filter out soft-deleted items at the Redux level
|
|
65
|
-
const listings = rawListings.filter(listing => !listing.deletedAt);
|
|
64
|
+
const listings = rawListings.filter(listing => !listing.deletedAt).sort(sortByOrder);
|
|
66
65
|
const payload = {
|
|
67
66
|
feature: flattenedFeature,
|
|
68
67
|
listings: listings
|
|
@@ -83,4 +82,9 @@ export const loadTargetFeature = () => {
|
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
84
|
};
|
|
85
|
+
function sortByOrder(listingA, listingB) {
|
|
86
|
+
const a = (listingA === null || listingA === void 0 ? void 0 : listingA.order) || 999;
|
|
87
|
+
const b = (listingB === null || listingB === void 0 ? void 0 : listingB.order) || 999;
|
|
88
|
+
return a - b;
|
|
89
|
+
}
|
|
86
90
|
//# sourceMappingURL=featureBuilderActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["values","featureBuilderAPI","updateFeatureBuilderStringAndIconFromDefinition","FeatureBuilderActionTypes","LOADING","actions","LOAD_SUCCESS","FAILURE","loadTargetFeature","dispatch","getState","type","state","site","user","targetId","targetFeatureDefinitionId","defResponse","getFeatureDefinitions","allDefinitions","data","featureDefinitions","rawTarget","find","d","id","Error","flattenedFeature","definition","listResponse","getFeatureListings","rawListings","listings","filter","listing","deletedAt","payload","feature","error","console","message"
|
|
1
|
+
{"version":3,"names":["values","featureBuilderAPI","updateFeatureBuilderStringAndIconFromDefinition","FeatureBuilderActionTypes","LOADING","actions","LOAD_SUCCESS","FAILURE","loadTargetFeature","dispatch","getState","type","_state$user","state","site","user","targetId","targetFeatureDefinitionId","defResponse","getFeatureDefinitions","allDefinitions","data","featureDefinitions","rawTarget","find","d","id","Error","flattenedFeature","definition","listResponse","getFeatureListings","rawListings","listings","filter","listing","deletedAt","sort","sortByOrder","payload","feature","error","console","message","listingA","listingB","a","order","b"],"sources":["featureBuilderActions.js"],"sourcesContent":["import { values } from \"../values.config\";\nimport { featureBuilderAPI } from \"../webapi/featureBuilderAPI\";\nimport { updateFeatureBuilderStringAndIconFromDefinition } from \"./featureBuilderStringsActions\";\n\n/**\n * Action types for feature builder Redux actions\n * These are pulled from values.config.actions to ensure unique action types per instance\n * @readonly\n * @enum {string}\n */\nexport const FeatureBuilderActionTypes = {\n\t/** Indicates loading state for feature data fetch */\n\tLOADING: values.actions.LOADING,\n\t/** Indicates successful fetch of feature definition and listings */\n\tLOAD_SUCCESS: values.actions.LOAD_SUCCESS,\n\t/** Indicates failure in fetching feature data */\n\tFAILURE: values.actions.FAILURE,\n};\n\n/**\n * Loads the target feature definition and its listings from the API\n * This function fetches the feature definition configured in values.config\n * and loads all associated listings for display\n *\n * @function\n * @returns {Function} Redux thunk function that handles the async loading\n * @throws {Error} When no feature definitions are found or API calls fail\n *\n * @example\n * // In component\n * useEffect(() => {\n * props.loadTargetFeature();\n * }, []);\n *\n * // Dispatch directly\n * dispatch(loadTargetFeature());\n */\nexport const loadTargetFeature = () => {\n\treturn async (dispatch, getState) => {\n\t\tdispatch({ type: FeatureBuilderActionTypes.LOADING });\n\n\t\ttry {\n\t\t\tconst state = getState();\n\t\t\tconst site = state?.user?.site;\n\t\t\tconst targetId = values.targetFeatureDefinitionId;\n\n\t\t\tconst defResponse = await featureBuilderAPI.getFeatureDefinitions(site);\n\t\t\tconst allDefinitions = defResponse.data.featureDefinitions || [];\n\n\t\t\t// Find the specific target definition - throw if not found\n\t\t\tconst rawTarget = allDefinitions.find((d) => d.id === targetId);\n\n\t\t\tif (!rawTarget) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Target feature definition with ID '${targetId}' not found.`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tconst flattenedFeature = {\n\t\t\t\tid: rawTarget.id,\n\t\t\t\t...rawTarget.definition,\n\t\t\t};\n\n\t\t\tconst listResponse = await featureBuilderAPI.getFeatureListings(\n\t\t\t\tsite,\n\t\t\t\trawTarget.id,\n\t\t\t);\n\t\t\tconst rawListings = listResponse.data.listings || [];\n\n\t\t\t// Filter out soft-deleted items at the Redux level\n\t\t\tconst listings = rawListings\n\t\t\t\t.filter((listing) => !listing.deletedAt)\n\t\t\t\t.sort(sortByOrder);\n\n\t\t\tconst payload = {\n\t\t\t\tfeature: flattenedFeature,\n\t\t\t\tlistings: listings,\n\t\t\t};\n\t\t\tdispatch({\n\t\t\t\ttype: FeatureBuilderActionTypes.LOAD_SUCCESS,\n\t\t\t\tpayload,\n\t\t\t});\n\n\t\t\t// Update strings store with feature definition title and icon\n\t\t\tdispatch(updateFeatureBuilderStringAndIconFromDefinition());\n\t\t} catch (error) {\n\t\t\tconsole.error(\n\t\t\t\t\"FeatureBuilder Actions - Error in loadTargetFeature:\",\n\t\t\t\terror,\n\t\t\t);\n\t\t\tdispatch({\n\t\t\t\ttype: FeatureBuilderActionTypes.FAILURE,\n\t\t\t\tpayload: error.message || \"Failed to load feature.\",\n\t\t\t});\n\t\t}\n\t};\n};\n\nfunction sortByOrder(listingA, listingB) {\n\tconst a = listingA?.order || 999;\n\tconst b = listingB?.order || 999;\n\treturn a - b;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,kBAAkB;AACzC,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,+CAA+C,QAAQ,gCAAgC;;AAEhG;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAG;EACxC;EACAC,OAAO,EAAEJ,MAAM,CAACK,OAAO,CAACD,OAAO;EAC/B;EACAE,YAAY,EAAEN,MAAM,CAACK,OAAO,CAACC,YAAY;EACzC;EACAC,OAAO,EAAEP,MAAM,CAACK,OAAO,CAACE;AACzB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACtC,OAAO,OAAOC,QAAQ,EAAEC,QAAQ,KAAK;IACpCD,QAAQ,CAAC;MAAEE,IAAI,EAAER,yBAAyB,CAACC;IAAQ,CAAC,CAAC;IAErD,IAAI;MAAA,IAAAQ,WAAA;MACH,MAAMC,KAAK,G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fC,OAAO,CAACD,KAAK,CACZ,sDAAsD,EACtDA,KACD,CAAC;MACDhC,QAAQ,CAAC;QACRE,IAAI,EAAER,yBAAyB,CAACI,OAAO;QACvCgC,OAAO,EAAEE,KAAK,CAACE,OAAO,IAAI;MAC3B,CAAC,CAAC;IACH;EACD,CAAC;AACF,CAAC;AAED,SAASL,WAAWA,CAACM,QAAQ,EAAEC,QAAQ,EAAE;EACxC,MAAMC,CAAC,GAAG,CAAAF,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEG,KAAK,KAAI,GAAG;EAChC,MAAMC,CAAC,GAAG,CAAAH,QAAQ,aAARA,QAAQ,uBAARA,QAAQ,CAAEE,KAAK,KAAI,GAAG;EAChC,OAAOD,CAAC,GAAGE,CAAC;AACb","ignoreList":[]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
import { selectFeatureDefinition } from "../utils/selectors";
|
|
4
2
|
import { values } from "../values.config";
|
|
5
3
|
|
|
@@ -28,7 +26,7 @@ export const updateFeatureBuilderString = title => dispatch => {
|
|
|
28
26
|
*/
|
|
29
27
|
export const updateFeatureBuilderStringFromDefinition = () => (dispatch, getState) => {
|
|
30
28
|
const definition = selectFeatureDefinition(getState());
|
|
31
|
-
const title = definition
|
|
29
|
+
const title = (definition === null || definition === void 0 ? void 0 : definition.title) || values.featureName;
|
|
32
30
|
// Capitalize first letter of title
|
|
33
31
|
const capitalizedTitle = title ? title.charAt(0).toUpperCase() + title.slice(1) : values.featureName;
|
|
34
32
|
dispatch(updateFeatureBuilderString(capitalizedTitle));
|
|
@@ -55,7 +53,7 @@ export const updateFeatureBuilderIcon = icon => dispatch => {
|
|
|
55
53
|
*/
|
|
56
54
|
export const updateFeatureBuilderIconFromDefinition = () => (dispatch, getState) => {
|
|
57
55
|
const definition = selectFeatureDefinition(getState());
|
|
58
|
-
const icon = definition
|
|
56
|
+
const icon = (definition === null || definition === void 0 ? void 0 : definition.icon) || values.navigation.gridMenu.icon;
|
|
59
57
|
dispatch(updateFeatureBuilderIcon(icon));
|
|
60
58
|
};
|
|
61
59
|
|
|
@@ -80,8 +78,8 @@ export const updateFeatureBuilderGridIcon = gridIcon => dispatch => {
|
|
|
80
78
|
*/
|
|
81
79
|
export const updateFeatureBuilderStringAndIconFromDefinition = () => (dispatch, getState) => {
|
|
82
80
|
const definition = selectFeatureDefinition(getState());
|
|
83
|
-
const title = definition
|
|
84
|
-
const icon = definition
|
|
81
|
+
const title = (definition === null || definition === void 0 ? void 0 : definition.title) || values.featureName;
|
|
82
|
+
const icon = (definition === null || definition === void 0 ? void 0 : definition.icon) || values.navigation.gridMenu.icon;
|
|
85
83
|
|
|
86
84
|
// Update title
|
|
87
85
|
const capitalizedTitle = title ? title.charAt(0).toUpperCase() + title.slice(1) : values.featureName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["selectFeatureDefinition","values","UPDATE_STRINGS","updateFeatureBuilderString","title","dispatch","type","payload","featureTitles","featureKey","featureName","updateFeatureBuilderStringFromDefinition","getState","definition","capitalizedTitle","charAt","toUpperCase","slice","updateFeatureBuilderIcon","icon","featureIcons","updateFeatureBuilderIconFromDefinition","navigation","gridMenu","updateFeatureBuilderGridIcon","gridIcon","updateFeatureBuilderStringAndIconFromDefinition"],"
|
|
1
|
+
{"version":3,"names":["selectFeatureDefinition","values","UPDATE_STRINGS","updateFeatureBuilderString","title","dispatch","type","payload","featureTitles","featureKey","featureName","updateFeatureBuilderStringFromDefinition","getState","definition","capitalizedTitle","charAt","toUpperCase","slice","updateFeatureBuilderIcon","icon","featureIcons","updateFeatureBuilderIconFromDefinition","navigation","gridMenu","updateFeatureBuilderGridIcon","gridIcon","updateFeatureBuilderStringAndIconFromDefinition"],"sources":["featureBuilderStringsActions.js"],"sourcesContent":["import { selectFeatureDefinition } from \"../utils/selectors\";\nimport { values } from \"../values.config\";\n\n// IMPORTANT: Using local UPDATE_STRINGS action type to make extension self-contained\n// The main app's StringsReducer will handle this action type the same way\nexport const UPDATE_STRINGS = \"UPDATE_STRINGS\";\n\n/**\n * Updates the feature builder's menu text in the global strings store\n * This ensures UI components use the dynamic title from feature definition\n */\nexport const updateFeatureBuilderString = (title) => (dispatch) => {\n\tdispatch({\n\t\ttype: UPDATE_STRINGS,\n\t\tpayload: {\n\t\t\tfeatureTitles: { [values.featureKey]: title || values.featureName },\n\t\t},\n\t});\n};\n\n/**\n * Updates the feature builder string using the current title from feature definition\n * This is useful when the feature definition has been updated\n */\nexport const updateFeatureBuilderStringFromDefinition =\n\t() => (dispatch, getState) => {\n\t\tconst definition = selectFeatureDefinition(getState());\n\t\tconst title = definition?.title || values.featureName;\n\t\t// Capitalize first letter of title\n\t\tconst capitalizedTitle = title\n\t\t\t? title.charAt(0).toUpperCase() + title.slice(1)\n\t\t\t: values.featureName;\n\t\tdispatch(updateFeatureBuilderString(capitalizedTitle));\n\t};\n\n/**\n * Updates the feature builder icon in the global strings store\n * This ensures UI components use the dynamic icon from the feature definition\n */\nexport const updateFeatureBuilderIcon = (icon) => (dispatch) => {\n\tdispatch({\n\t\ttype: UPDATE_STRINGS,\n\t\tpayload: {\n\t\t\tfeatureIcons: { [values.featureKey]: icon },\n\t\t},\n\t});\n};\n\n/**\n * Updates the feature builder icon using the current icon from feature definition\n * This is useful when the feature definition has been updated\n */\nexport const updateFeatureBuilderIconFromDefinition =\n\t() => (dispatch, getState) => {\n\t\tconst definition = selectFeatureDefinition(getState());\n\t\tconst icon = definition?.icon || values.navigation.gridMenu.icon;\n\t\tdispatch(updateFeatureBuilderIcon(icon));\n\t};\n\n/**\n * Updates the feature builder grid icon in the global strings store\n * This ensures UI components use the dynamic grid icon from the feature definition\n */\nexport const updateFeatureBuilderGridIcon = (gridIcon) => (dispatch) => {\n\tdispatch({\n\t\ttype: UPDATE_STRINGS,\n\t\tpayload: {\n\t\t\tfeatureIcons: { [values.featureKey]: gridIcon },\n\t\t},\n\t});\n};\n\n/**\n * Updates both the title and icon from the current feature definition\n * This is useful when both have been updated in the definition\n */\nexport const updateFeatureBuilderStringAndIconFromDefinition =\n\t() => (dispatch, getState) => {\n\t\tconst definition = selectFeatureDefinition(getState());\n\t\tconst title = definition?.title || values.featureName;\n\t\tconst icon = definition?.icon || values.navigation.gridMenu.icon;\n\n\t\t// Update title\n\t\tconst capitalizedTitle = title\n\t\t\t? title.charAt(0).toUpperCase() + title.slice(1)\n\t\t\t: values.featureName;\n\t\tdispatch(updateFeatureBuilderString(capitalizedTitle));\n\n\t\t// Update icon\n\t\tdispatch(updateFeatureBuilderIcon(icon));\n\t};\n"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,MAAM,QAAQ,kBAAkB;;AAEzC;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,gBAAgB;;AAE9C;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAAIC,KAAK,IAAMC,QAAQ,IAAK;EAClEA,QAAQ,CAAC;IACRC,IAAI,EAAEJ,cAAc;IACpBK,OAAO,EAAE;MACRC,aAAa,EAAE;QAAE,CAACP,MAAM,CAACQ,UAAU,GAAGL,KAAK,IAAIH,MAAM,CAACS;MAAY;IACnE;EACD,CAAC,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMC,wCAAwC,GACpDA,CAAA,KAAM,CAACN,QAAQ,EAAEO,QAAQ,KAAK;EAC7B,MAAMC,UAAU,GAAGb,uBAAuB,CAACY,QAAQ,CAAC,CAAC,CAAC;EACtD,MAAMR,KAAK,GAAG,CAAAS,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAET,KAAK,KAAIH,MAAM,CAACS,WAAW;EACrD;EACA,MAAMI,gBAAgB,GAAGV,KAAK,GAC3BA,KAAK,CAACW,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGZ,KAAK,CAACa,KAAK,CAAC,CAAC,CAAC,GAC9ChB,MAAM,CAACS,WAAW;EACrBL,QAAQ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AAVA,UAAU,uBAAVA,UAAU,CAAEM,IAAI,KAAIlB,MAAM,CAACqB,UAAU,CAACC,QAAQ,CAACJ,IAAI;;EAEhE;EACA,MAAML,gBAAgB,GAAGV,KAAK,GAC3BA,KAAK,CAACW,MAAM,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC,GAAGZ,KAAK,CAACa,KAAK,CAAC,CAAC,CAAC,GAC9ChB,MAAM,CAACS,WAAW;EACrBL,QAAQ,CAACF,0BAA0B,CAACW,gBAAgB,CAAC,CAAC;;EAEtD;EACAT,QAAQ,CAACa,wBAAwB,CAACC,IAAI,CAAC,CAAC;AACzC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Actions","getFollowers","addFollower","selectEventTime","residentsLoaded","linkedUsersLoaded","linkedToUsersLoaded","updateNavRead"],"
|
|
1
|
+
{"version":3,"names":["Actions","getFollowers","addFollower","selectEventTime","residentsLoaded","linkedUsersLoaded","linkedToUsersLoaded","updateNavRead"],"sources":["index.js"],"sourcesContent":["import { Actions } from \"../core.config\";\n\nexport const getFollowers = Actions.getFollowers;\nexport const addFollower = Actions.addFollower;\nexport const selectEventTime = Actions.selectEventTime;\nexport const residentsLoaded = Actions.residentsLoaded;\nexport const linkedUsersLoaded = Actions.linkedToUsersLoaded;\nexport const linkedToUsersLoaded = Actions.linkedToUsersLoaded;\nexport const updateNavRead = Actions.updateNavRead;\n\n// TODO: Add custom actions below for example,\n// export * from './AlertActions';\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,gBAAgB;AAExC,OAAO,MAAMC,YAAY,GAAGD,OAAO,CAACC,YAAY;AAChD,OAAO,MAAMC,WAAW,GAAGF,OAAO,CAACE,WAAW;AAC9C,OAAO,MAAMC,eAAe,GAAGH,OAAO,CAACG,eAAe;AACtD,OAAO,MAAMC,eAAe,GAAGJ,OAAO,CAACI,eAAe;AACtD,OAAO,MAAMC,iBAAiB,GAAGL,OAAO,CAACM,mBAAmB;AAC5D,OAAO,MAAMA,mBAAmB,GAAGN,OAAO,CAACM,mBAAmB;AAC9D,OAAO,MAAMC,aAAa,GAAGP,OAAO,CAACO,aAAa;;AAElD;AACA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ActionTypes","LOGOUT","CHANGE_ROLE"],"
|
|
1
|
+
{"version":3,"names":["ActionTypes","LOGOUT","CHANGE_ROLE"],"sources":["types.js"],"sourcesContent":["import { ActionTypes } from \"../core.config\";\n\nexport const LOGOUT = ActionTypes.LOGOUT;\nexport const CHANGE_ROLE = ActionTypes.CHANGE_ROLE;\n\n// TODO: Define action types for example,\n// export const EVENTS_UPDATED = 'EVENTS_UPDATED';\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,gBAAgB;AAE5C,OAAO,MAAMC,MAAM,GAAGD,WAAW,CAACC,MAAM;AACxC,OAAO,MAAMC,WAAW,GAAGF,WAAW,CAACE,WAAW;;AAElD;AACA","ignoreList":[]}
|