@ossy/connected-components 0.7.6 → 0.7.8
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/index.js +19 -19
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -5,6 +5,23 @@ import { Overlay, View, Button, Text, useTheme, Theme, useDocumentTitle, Switch
|
|
|
5
5
|
import { Router } from '@ossy/router-react';
|
|
6
6
|
import { Resume as Resume$1 } from '@ossy/design-system-extras';
|
|
7
7
|
|
|
8
|
+
function defaultAppSettings() {
|
|
9
|
+
return {
|
|
10
|
+
workspaceId: undefined,
|
|
11
|
+
defaultLanguage: undefined,
|
|
12
|
+
supportedLanguages: [],
|
|
13
|
+
theme: undefined,
|
|
14
|
+
themes: undefined,
|
|
15
|
+
routes: [],
|
|
16
|
+
initialEntries: [],
|
|
17
|
+
initialIndex: 0,
|
|
18
|
+
router: 'browser',
|
|
19
|
+
gaId: undefined,
|
|
20
|
+
apiUrl: undefined,
|
|
21
|
+
devMode: false
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
8
25
|
const AppContext = /*#__PURE__*/createContext(defaultAppSettings());
|
|
9
26
|
const useApp = () => React$1.useContext(AppContext);
|
|
10
27
|
|
|
@@ -137,26 +154,9 @@ const ThemeEditor = () => {
|
|
|
137
154
|
}));
|
|
138
155
|
};
|
|
139
156
|
|
|
140
|
-
function defaultAppSettings$1() {
|
|
141
|
-
return {
|
|
142
|
-
workspaceId: undefined,
|
|
143
|
-
defaultLanguage: undefined,
|
|
144
|
-
supportedLanguages: [],
|
|
145
|
-
theme: undefined,
|
|
146
|
-
themes: undefined,
|
|
147
|
-
routes: [],
|
|
148
|
-
initialEntries: [],
|
|
149
|
-
initialIndex: 0,
|
|
150
|
-
router: 'browser',
|
|
151
|
-
gaId: undefined,
|
|
152
|
-
apiUrl: undefined,
|
|
153
|
-
devMode: false
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
|
|
157
157
|
const App = _appSettings => {
|
|
158
158
|
const appSettings = {
|
|
159
|
-
...defaultAppSettings
|
|
159
|
+
...defaultAppSettings(),
|
|
160
160
|
..._appSettings
|
|
161
161
|
};
|
|
162
162
|
const sdk = SDK.of({
|
|
@@ -598,4 +598,4 @@ const ThemeProvider = props => {
|
|
|
598
598
|
}, props)) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null);
|
|
599
599
|
};
|
|
600
600
|
|
|
601
|
-
export { App, Layout, Ossybot, Page, PageDataLoader, PagesModule, Resume, ResumeTemplates, ThemeEditor, ThemeProvider, defaultAppSettings
|
|
601
|
+
export { App, Layout, Ossybot, Page, PageDataLoader, PagesModule, Resume, ResumeTemplates, ThemeEditor, ThemeProvider, defaultAppSettings, location, useApp, useMergeAsyncStatus, useResume };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/connected-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ossy-se/packages.git"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"/build",
|
|
59
59
|
"README.md"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "444b07347555d52448c3f206db9f492d434222d3"
|
|
62
62
|
}
|