@opengeoweb/cross-section 21.1.0 → 21.2.0-nightly-20261113

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/index.esm.js CHANGED
@@ -3,6 +3,7 @@ import i18n from 'i18next';
3
3
  import { useTranslation, I18nextProvider } from 'react-i18next';
4
4
  import { SHARED_NAMESPACE, safelyInitI18nForTestsAndStories, sharedTranslations } from '@opengeoweb/shared';
5
5
  import { ThemeWrapper, lightTheme } from '@opengeoweb/theme';
6
+ import { Stack, Card } from '@mui/material';
6
7
 
7
8
  var en = {
8
9
  welcome: "Welcome to Cross Section!"
@@ -90,4 +91,30 @@ var CrossSectionProviderWrapper = function CrossSectionProviderWrapper(_ref3) {
90
91
  });
91
92
  };
92
93
 
93
- export { CrossSection, CrossSectionI18nProvider, CrossSectionProviderWrapper };
94
+ var CrossSectionView = function CrossSectionView() {
95
+ return jsx(Stack, {
96
+ "data-testid": "crossSectionView",
97
+ sx: {
98
+ padding: '12px',
99
+ width: '100%',
100
+ height: '100%',
101
+ backgroundColor: 'geowebColors.background.surfaceApp'
102
+ },
103
+ children: jsx(Card, {
104
+ "data-testid": "crossSectionContent",
105
+ sx: {
106
+ width: '100%',
107
+ height: '100%'
108
+ }
109
+ })
110
+ });
111
+ };
112
+
113
+ var crossSectionLookUp = function crossSectionLookUp(payload) {
114
+ if (payload.componentType === 'CrossSection') {
115
+ return jsx(CrossSectionView, {});
116
+ }
117
+ return null;
118
+ };
119
+
120
+ export { CrossSection, CrossSectionI18nProvider, CrossSectionProviderWrapper, CrossSectionView, crossSectionLookUp };
@@ -1,2 +1,4 @@
1
1
  export * from './lib/components/dummy/cross-section';
2
2
  export * from './lib/components/Providers';
3
+ export * from './lib/components/CrossSectionView';
4
+ export * from './lib/utils/crossSectionLookUp';
@@ -0,0 +1,2 @@
1
+ import type { FC } from 'react';
2
+ export declare const CrossSectionView: FC;
@@ -0,0 +1 @@
1
+ export * from './CrossSectionView';
@@ -0,0 +1,11 @@
1
+ export type CrossSectionComponentType = 'CrossSection';
2
+ export interface CrossSectionInitialProps {
3
+ syncGroupsIds?: string[];
4
+ }
5
+ export interface CrossSectionLookUpPayload {
6
+ componentType: CrossSectionComponentType;
7
+ id: string;
8
+ title?: string;
9
+ initialProps?: CrossSectionInitialProps;
10
+ }
11
+ export declare const crossSectionLookUp: (payload: CrossSectionLookUpPayload) => React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cross-section",
3
- "version": "21.1.0",
3
+ "version": "21.2.0-nightly-20261113",
4
4
  "description": "GeoWeb Cross Section library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,8 +20,9 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@opengeoweb/shared": "21.1.0",
24
- "@opengeoweb/theme": "21.1.0",
23
+ "@mui/material": "^9.0.1",
24
+ "@opengeoweb/shared": "21.2.0-nightly-20261113",
25
+ "@opengeoweb/theme": "21.2.0-nightly-20261113",
25
26
  "i18next": "^25.0.1",
26
27
  "react-i18next": "^15.1.1"
27
28
  },
@@ -31,7 +32,7 @@
31
32
  "@emotion/styled": "*"
32
33
  },
33
34
  "devDependencies": {
34
- "eslint-plugin-storybook": "10.3.3",
35
+ "eslint-plugin-storybook": "^10.3.3",
35
36
  "msw": "^2.7.3"
36
37
  },
37
38
  "files": [