@finsemble/finsemble-ui 7.2.0-alpha.1 → 7.2.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.
Files changed (59) hide show
  1. package/package.json +6 -6
  2. package/react/components/appCatalog/AppCatalogComponent.d.ts +12 -0
  3. package/react/components/appCatalog/components/AppCard.d.ts +13 -0
  4. package/react/components/appCatalog/components/Carousel.d.ts +5 -0
  5. package/react/components/appCatalog/components/Showcase/AppShowcase.d.ts +9 -0
  6. package/react/components/menu/keyboardNavigation.js.map +1 -1
  7. package/react/components/menu/menuHelpers.d.ts +1 -1
  8. package/react/components/notifications/components/views/CardView.js.map +1 -1
  9. package/react/components/notifications/components/views/ListView.js.map +1 -1
  10. package/react/components/processMonitor/stores/ProcessMonitorStore.d.ts +3 -3
  11. package/react/components/sdd/Appearance.d.ts +1 -13
  12. package/react/components/sdd/Appearance.js +2 -2
  13. package/react/components/sdd/Appearance.js.map +1 -1
  14. package/react/components/sdd/AssetsPage.d.ts +1 -13
  15. package/react/components/sdd/AssetsPage.js +50 -47
  16. package/react/components/sdd/AssetsPage.js.map +1 -1
  17. package/react/components/sdd/SmartDesktopDesigner.d.ts +1 -1
  18. package/react/components/sdd/SmartDesktopDesigner.js +7 -3
  19. package/react/components/sdd/SmartDesktopDesigner.js.map +1 -1
  20. package/react/components/sdd/Themes.d.ts +1 -6
  21. package/react/components/sdd/Themes.js +5 -52
  22. package/react/components/sdd/Themes.js.map +1 -1
  23. package/react/components/sdd/common/fsbl_functions.d.ts +1 -1
  24. package/react/components/sdd/common/views.js +0 -2
  25. package/react/components/sdd/common/views.js.map +1 -1
  26. package/react/components/sdd/css/addApp.css +11 -5
  27. package/react/components/sdd/fixtures/themeProps.d.ts +0 -4
  28. package/react/components/sdd/fixtures/themeProps.js +0 -15
  29. package/react/components/sdd/fixtures/themeProps.js.map +1 -1
  30. package/react/components/sdd/fixtures/views.js +1 -1
  31. package/react/components/sdd/fixtures/views.js.map +1 -1
  32. package/react/components/sdd/smartDesktopClient.d.ts +3 -3
  33. package/react/components/sdd/stories/Appearance.stories.d.ts +1 -1
  34. package/react/components/sdd/stories/Appearance.stories.js +0 -12
  35. package/react/components/sdd/stories/Appearance.stories.js.map +1 -1
  36. package/react/components/sdd/stories/AssetsPage.stories.d.ts +1 -1
  37. package/react/components/sdd/stories/AssetsPage.stories.js +0 -24
  38. package/react/components/sdd/stories/AssetsPage.stories.js.map +1 -1
  39. package/react/components/sdd/stories/SmartDesktopDesigner.stories.d.ts +1 -1
  40. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js +16 -1
  41. package/react/components/sdd/stories/SmartDesktopDesigner.stories.js.map +1 -1
  42. package/react/components/sdd/stories/Themes.stories.d.ts +1 -1
  43. package/react/components/sdd/stories/Themes.stories.js +0 -25
  44. package/react/components/sdd/stories/Themes.stories.js.map +1 -1
  45. package/react/components/toolbar/appLauncher/stores/appLauncherStore.d.ts +2 -2
  46. package/react/components/toolbar/workspaceManagementMenu/stores/workspaceManagementMenuStore.d.ts +2 -2
  47. package/react/components/userPreferences/components/workspaces/WorkspaceItem.js.map +1 -1
  48. package/react/components/windowTitleBar/WindowTitleBarShell.js +60 -5
  49. package/react/components/windowTitleBar/WindowTitleBarShell.js.map +1 -1
  50. package/react/components/windowTitleBar/components/left/LinkerButtonDeprecated.d.ts +25 -0
  51. package/react/components/windowTitleBar/components/left/LinkerGroupsDeprecated.d.ts +23 -0
  52. package/react/components/windowTitleBar/components/left/ShareButton.d.ts +16 -0
  53. package/react/components/windowTitleBar/components/windowTitle.js +2 -2
  54. package/react/components/windowTitleBar/components/windowTitle.js.map +1 -1
  55. package/react/reducers/smartDesktopDesignerReducer.js +1 -0
  56. package/react/reducers/smartDesktopDesignerReducer.js.map +1 -1
  57. package/react/tsconfig.tsbuildinfo +1 -1
  58. package/react/types/smartDesktopDesignerTypes.d.ts +1 -0
  59. package/react/types/smartDesktopDesignerTypes.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,YAAY,GAA8B;IACtD,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE,IAAI;IACnB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;IACd,YAAY,EAAE,IAAI;IAClB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;IACpB,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE;QACZ,IAAI,EAAE,EAAE;QACR,IAAI,EAAE;YACL,SAAS,EAAE,EAAE;YACb,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE,EAAE;YACX,KAAK,EAAE,EAAE;SACT;QACD,MAAM,EAAE;YACP,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,WAAW,EAAE,EAAE;YACf,WAAW,EAAE,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,WAAW,EAAE,EAAE;YACf,cAAc,EAAE,EAAE;YAClB,iBAAiB,EAAE,EAAE;SACrB;KACD;IACD,MAAM,EAAE;QACP,IAAI,EAAE,IAAI;QACV,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;KAChB;IACD,cAAc,EAAE;QACf,SAAS,EAAE;YACV;gBACC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,kBAAkB,CAAC,MAAM;gBAC/B,SAAS,EAAE,IAAI;gBACf,MAAM,EAAE,IAAI;gBACZ,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,EAAE;gBAChB,sB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CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;YAC7E,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9E,CAAC;QACD,4BAA4B,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACjC,CAAC;QACD,eAAe,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC7B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;QACD,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE;YAChC,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC;QAChC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\nimport { Reducer } from \"react\";\n\nimport {\n\tSmartDesktopDesignerState,\n\tApplicationSetupType,\n\tAuthenticationType,\n} from \"../types/smartDesktopDesignerTypes\";\n\nexport const initialState: SmartDesktopDesignerState = {\n\tisGettingStarted: false,\n\tpreviousViewId: null,\n\tcurrentViewId: null,\n\tapps: [],\n\tnewAppId: null,\n\tcurrentAppId: null,\n\tcurrentAppSetupType: null,\n\tcurrentPreload: null,\n\tmenus: {},\n\tpreloads: {},\n\tprojectInfo: {\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t},\n\texport: {\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\n\t\tisPublishing: false,\n\t\tpublishError: null,\n\t\tdeployInfo: null,\n\t},\n\tauthentication: {\n\t\tproviders: [\n\t\t\t{\n\t\t\t\tname: \"Google\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Salesforce\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tauthorization_endpoint: \"\",\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t],\n\t},\n\terrors: [],\n\tisReviewingErrors: false,\n};\n\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\n\t\tSmartDesktopDesignerActions.match(action, {\n\t\t\tchange_view: (payload) => {\n\t\t\t\tstate.isGettingStarted = false;\n\t\t\t\tstate.previousViewId = state.currentViewId;\n\t\t\t\tstate.currentViewId = payload;\n\t\t\t\tstate.currentAppId = null;\n\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t},\n\t\t\tupdate_apps: (payload) => {\n\t\t\t\tstate.apps = payload;\n\t\t\t},\n\t\t\tnew_app: (appId) => {\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\n\t\t\t},\n\t\t\tset_current_app_id: (currentAppId) => {\n\t\t\t\tif (currentAppId !== null) {\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\n\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\n\t\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t}\n\n\t\t\t\tstate.currentAppId = currentAppId;\n\t\t\t},\n\t\t\tupdate_app: (appConfig) => {\n\t\t\t\tif (!appConfig || !appConfig.appId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\n\n\t\t\t\tstate.apps.push(appConfig);\n\t\t\t},\n\t\t\tupdate_menus: (menus) => {\n\t\t\t\tstate.menus = menus;\n\t\t\t},\n\t\t\tdelete_app: (appId) => {\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\n\t\t\t},\n\t\t\tset_is_publishing: (isPublishing) => {\n\t\t\t\tstate.export.isPublishing = isPublishing;\n\t\t\t},\n\t\t\tset_deploy_info: (value) => {\n\t\t\t\tstate.export.deployInfo = value;\n\t\t\t},\n\t\t\tset_publish_error: (value) => {\n\t\t\t\tstate.export.publishError = value;\n\t\t\t},\n\t\t\tset_project_info: (value) => {\n\t\t\t\tstate.projectInfo = value;\n\t\t\t},\n\t\t\tset_is_getting_started: (value) => {\n\t\t\t\tstate.isGettingStarted = value;\n\t\t\t},\n\t\t\tupdate_auth_provider: (value) => {\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\n\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tstate.authentication.providers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tstate.authentication.providers[index] = value;\n\t\t\t\t}\n\t\t\t},\n\t\t\tenable_auth_provider: (value) => {\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\n\t\t\t\t\tprovider.enabled = provider.name === value;\n\t\t\t\t});\n\t\t\t},\n\t\t\tset_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t\tstate.errors.push(value);\n\t\t\t},\n\t\t\tdelete_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t},\n\t\t\tset_reviewing_project_errors: (value) => {\n\t\t\t\tstate.isReviewingErrors = value;\n\t\t\t},\n\t\t\tupdate_preloads: (preloads) => {\n\t\t\t\tstate.preloads = preloads;\n\t\t\t},\n\t\t\tset_current_preload: (preload) => {\n\t\t\t\tstate.currentPreload = preload;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t}, initialState);\n"]}
1
+ {"version":3,"file":"smartDesktopDesignerReducer.js","sourceRoot":"","sources":["../../src/reducers/smartDesktopDesignerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,2BAA2B,EAAoC,MAAM,wCAAwC,CAAC;AAGvH,OAAO,EAEN,oBAAoB,EACpB,kBAAkB,GAClB,MAAM,oCAA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KAAK,EAAE,EAAE;YAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9E,CAAC;QACD,4BAA4B,EAAE,CAAC,KAAK,EAAE,EAAE;YACvC,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC;QACjC,CAAC;QACD,eAAe,EAAE,CAAC,QAAQ,EAAE,EAAE;YAC7B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;QACD,mBAAmB,EAAE,CAAC,OAAO,EAAE,EAAE;YAChC,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC;QAChC,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK;KACpB,CAAC,CAAC;AACJ,CAAC,EAAE,YAAY,CAAC,CAAC","sourcesContent":["import produce from \"immer\";\nimport { SmartDesktopDesignerActions, SmartDesktopDesignerActionsTypes } from \"../actions/smartDesktopDesignerActions\";\nimport { Reducer } from \"react\";\n\nimport {\n\tSmartDesktopDesignerState,\n\tApplicationSetupType,\n\tAuthenticationType,\n} from \"../types/smartDesktopDesignerTypes\";\n\nexport const initialState: SmartDesktopDesignerState = {\n\tisGettingStarted: false,\n\tpreviousViewId: null,\n\tcurrentViewId: null,\n\tapps: [],\n\tnewAppId: null,\n\tcurrentAppId: null,\n\tcurrentAppSetupType: null,\n\tcurrentPreload: null,\n\tmenus: {},\n\tpreloads: {},\n\tprojectInfo: {\n\t\tapplicationRoot: \"\",\n\t\tname: \"\",\n\t\tuser: {\n\t\t\tfirstName: \"\",\n\t\t\tlastName: \"\",\n\t\t\tcompany: \"\",\n\t\t\temail: \"\",\n\t\t},\n\t\texport: {\n\t\t\tauthor: \"\",\n\t\t\tcompanyName: \"\",\n\t\t\tdescription: \"\",\n\t\t\ttoolbarIcon: \"\",\n\t\t\tinstallerIcon: \"\",\n\t\t\ttaskbarIcon: \"\",\n\t\t\tsystemTrayIcon: \"\",\n\t\t\tsplashScreenImage: \"\",\n\t\t},\n\t},\n\texport: {\n\t\tuuid: null, // `${new Date().getTime()}-${Math.round(Math.random() * Math.pow(10, 10))}`,\n\t\tisPublishing: false,\n\t\tpublishError: null,\n\t\tdeployInfo: null,\n\t},\n\tauthentication: {\n\t\tproviders: [\n\t\t\t{\n\t\t\t\tname: \"Google\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://accounts.google.com/o/oauth2/v2/auth\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Salesforce\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tauthorization_endpoint: \"https://login.salesforce.com/services/oauth2/authorize\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"Custom\",\n\t\t\t\ttype: AuthenticationType.OAUTH2,\n\t\t\t\tclient_id: null,\n\t\t\t\tsecret: null,\n\t\t\t\tenabled: false,\n\t\t\t\tauthorization_endpoint: \"\",\n\t\t\t\tredirect_uri: \"\",\n\t\t\t\tscope: \"openid\",\n\t\t\t\tnonce: false,\n\t\t\t},\n\t\t],\n\t},\n\terrors: [],\n\tisReviewingErrors: false,\n};\n\nexport const smartDesktopDesignerReducer: Reducer<SmartDesktopDesignerState, SmartDesktopDesignerActionsTypes> =\n\tproduce((state: SmartDesktopDesignerState, action: SmartDesktopDesignerActionsTypes) => {\n\t\tSmartDesktopDesignerActions.match(action, {\n\t\t\tchange_view: (payload) => {\n\t\t\t\tstate.isGettingStarted = false;\n\t\t\t\tstate.previousViewId = state.currentViewId;\n\t\t\t\tstate.currentViewId = payload;\n\t\t\t\tstate.currentAppId = null;\n\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t},\n\t\t\tupdate_apps: (payload) => {\n\t\t\t\tstate.apps = payload;\n\t\t\t},\n\t\t\tnew_app: (appId) => {\n\t\t\t\tstate.currentAppId = state.newAppId = appId;\n\t\t\t},\n\t\t\tset_current_app_id: (currentAppId) => {\n\t\t\t\tif (currentAppId !== null) {\n\t\t\t\t\tlet currentAppConfig = state.apps.find((app) => app.appId === currentAppId);\n\n\t\t\t\t\tif (!currentAppConfig || currentAppId === state.newAppId) {\n\t\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate.currentAppSetupType = ApplicationSetupType.APP_EDIT_ADVANCED;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstate.currentAppSetupType = null;\n\t\t\t\t}\n\n\t\t\t\tstate.currentAppId = currentAppId;\n\t\t\t},\n\t\t\tupdate_app: (appConfig) => {\n\t\t\t\tif (!appConfig || !appConfig.appId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appConfig.appId);\n\n\t\t\t\tstate.apps.push(appConfig);\n\t\t\t},\n\t\t\tupdate_menus: (menus) => {\n\t\t\t\tstate.menus = menus;\n\t\t\t},\n\t\t\tdelete_app: (appId) => {\n\t\t\t\tstate.apps = state.apps.filter((app) => app.appId !== appId);\n\t\t\t},\n\t\t\tset_is_publishing: (isPublishing) => {\n\t\t\t\tstate.export.isPublishing = isPublishing;\n\t\t\t},\n\t\t\tset_deploy_info: (value) => {\n\t\t\t\tstate.export.deployInfo = value;\n\t\t\t},\n\t\t\tset_publish_error: (value) => {\n\t\t\t\tstate.export.publishError = value;\n\t\t\t},\n\t\t\tset_project_info: (value) => {\n\t\t\t\tstate.projectInfo = value;\n\t\t\t},\n\t\t\tset_is_getting_started: (value) => {\n\t\t\t\tstate.isGettingStarted = value;\n\t\t\t},\n\t\t\tupdate_auth_provider: (value) => {\n\t\t\t\tconst index = state.authentication.providers.findIndex((provider) => provider.name === value.name);\n\n\t\t\t\tif (index == -1) {\n\t\t\t\t\tstate.authentication.providers.push(value);\n\t\t\t\t} else {\n\t\t\t\t\tstate.authentication.providers[index] = value;\n\t\t\t\t}\n\t\t\t},\n\t\t\tenable_auth_provider: (value) => {\n\t\t\t\tstate.authentication.providers.forEach((provider) => {\n\t\t\t\t\tprovider.enabled = provider.name === value;\n\t\t\t\t});\n\t\t\t},\n\t\t\tset_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t\tstate.errors.push(value);\n\t\t\t},\n\t\t\tdelete_project_error: (value) => {\n\t\t\t\tstate.errors = state.errors.filter((error) => error.viewId !== value.viewId);\n\t\t\t},\n\t\t\tset_reviewing_project_errors: (value) => {\n\t\t\t\tstate.isReviewingErrors = value;\n\t\t\t},\n\t\t\tupdate_preloads: (preloads) => {\n\t\t\t\tstate.preloads = preloads;\n\t\t\t},\n\t\t\tset_current_preload: (preload) => {\n\t\t\t\tstate.currentPreload = preload;\n\t\t\t},\n\t\t\tdefault: () => state,\n\t\t});\n\t}, initialState);\n"]}