@equinor/roma-framework 6.0.1-beta.0 → 6.0.1-beta.1

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.
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  type Props = {
3
3
  scope: string;
4
4
  children: ReactNode;
5
+ version?: string;
5
6
  };
6
- export declare const StyleProvider: ({ scope, children }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const StyleProvider: ({ scope, children, version }: Props) => import("react/jsx-runtime").JSX.Element;
7
8
  export {};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "6.0.1-beta.0",
3
+ "version": "6.0.1-beta.1",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
7
7
  "peerDependencies": {
8
- "@equinor/eds-core-react": "^0.47.0",
9
- "@equinor/eds-icons": "^0.22.0",
10
- "@equinor/eds-tokens": "^0.9.2",
8
+ "@equinor/eds-core-react": "^2.4.0",
9
+ "@equinor/eds-icons": "^1.3.0",
10
+ "@equinor/eds-tokens": "^2.2.0",
11
11
  "@equinor/fusion-framework": "^8.0.0",
12
12
  "@equinor/fusion-framework-app": "^11.0.0",
13
13
  "@equinor/fusion-framework-module": "^6.0.0",
@@ -42,7 +42,7 @@
42
42
  "@nx/vite": "22.5.4",
43
43
  "@testing-library/react": "16.1.0",
44
44
  "@vitejs/plugin-react": "^5.1.4",
45
- "vite": "^7.3.1",
45
+ "vite": "^7.3.2",
46
46
  "vite-plugin-dts": "^4.5.4"
47
47
  },
48
48
  "exports": {
@@ -54,6 +54,7 @@
54
54
  "types": "./lib/test-utils/roma-cypress-wrapper.d.ts",
55
55
  "import": "./cypress.mjs",
56
56
  "require": "./cypress.js"
57
- }
57
+ },
58
+ "./css-variables.css": "./src/css-variables.css"
58
59
  }
59
60
  }
@@ -32,14 +32,14 @@ const createExtraScopePlugin = (scope) => {
32
32
  };
33
33
  return plugin;
34
34
  };
35
- const StyleProvider = ({ scope, children }) => {
35
+ const StyleProvider = ({ scope, children, version: version2 }) => {
36
36
  const stylisPlugins = [];
37
37
  if (scope) {
38
38
  const plugin = createExtraScopePlugin(`#${scope}`);
39
39
  Object.defineProperty(plugin, "name", { value: `style-scope-${scope}` });
40
40
  stylisPlugins.push(plugin);
41
41
  }
42
- return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
42
+ return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, "data-roma-version": version2, children }) });
43
43
  };
44
44
  function lastValueFrom(source, config) {
45
45
  return new Promise(function(resolve, reject) {
@@ -196,8 +196,9 @@ const makeComponent = (Component, args, configure2) => lazy(async () => {
196
196
  source: Component
197
197
  });
198
198
  const queryClient = args.query ?? new QueryClient();
199
+ const version2 = "6.0.1-beta.1";
199
200
  return {
200
- default: () => /* @__PURE__ */ jsx(FrameworkProvider, { value: fusion, children: /* @__PURE__ */ jsx(IntlProvider, { locale: navigator.language, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(StyleProvider, { scope: `roma-${appKey}`, children: /* @__PURE__ */ jsx(
201
+ default: () => /* @__PURE__ */ jsx(FrameworkProvider, { value: fusion, children: /* @__PURE__ */ jsx(IntlProvider, { locale: navigator.language, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(StyleProvider, { scope: `roma-${appKey}`, version: version2, children: /* @__PURE__ */ jsx(
201
202
  EdsEventProvider,
202
203
  {
203
204
  portalContainer: `roma-${appKey}`,