@deephaven/app-utils 0.74.1-beta.1 → 0.74.1-beta.7
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.
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import 'fira';
|
|
2
|
+
import '@fontsource/fira-mono/400.css';
|
|
3
|
+
import '@fontsource/fira-mono/500.css';
|
|
4
|
+
import '@fontsource/fira-mono/700.css';
|
|
5
|
+
import '@fontsource/fira-sans/300.css';
|
|
6
|
+
import '@fontsource/fira-sans/300-italic.css';
|
|
7
|
+
import '@fontsource/fira-sans/400.css';
|
|
8
|
+
import '@fontsource/fira-sans/400-italic.css';
|
|
9
|
+
import '@fontsource/fira-sans/500.css';
|
|
10
|
+
import '@fontsource/fira-sans/600.css';
|
|
11
|
+
import '@fontsource/fira-sans/700.css';
|
|
12
|
+
import '@fontsource/fira-sans/700-italic.css';
|
|
3
13
|
export declare const FontsLoadedContext: React.Context<boolean>;
|
|
4
14
|
export type FontBootstrapProps = {
|
|
5
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/FontBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"FontBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/FontBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AACvC,OAAO,sCAAsC,CAAC;AAE9C,eAAO,MAAM,kBAAkB,wBAAgC,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,cAAyE,EACzE,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAmClC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React, { createContext, useEffect, useState } from 'react';
|
|
2
|
-
import 'fira';
|
|
2
|
+
import '@fontsource/fira-mono/400.css';
|
|
3
|
+
import '@fontsource/fira-mono/500.css';
|
|
4
|
+
import '@fontsource/fira-mono/700.css';
|
|
5
|
+
import '@fontsource/fira-sans/300.css';
|
|
6
|
+
import '@fontsource/fira-sans/300-italic.css';
|
|
7
|
+
import '@fontsource/fira-sans/400.css';
|
|
8
|
+
import '@fontsource/fira-sans/400-italic.css';
|
|
9
|
+
import '@fontsource/fira-sans/500.css';
|
|
10
|
+
import '@fontsource/fira-sans/600.css';
|
|
11
|
+
import '@fontsource/fira-sans/700.css';
|
|
12
|
+
import '@fontsource/fira-sans/700-italic.css';
|
|
3
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
14
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontBootstrap.js","names":["React","createContext","useEffect","useState","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FontsLoadedContext","FontBootstrap","_ref","fontClassNames","children","isLoaded","setIsLoaded","initFonts","document","fonts","ready","then","Provider","value","id","style","visibility","position","top","map","className"],"sources":["../../src/components/FontBootstrap.tsx"],"sourcesContent":["import React, { createContext, useEffect, useState } from 'react';\nimport 'fira';\n\nexport const FontsLoadedContext = createContext<boolean>(false);\n\nexport type FontBootstrapProps = {\n /**\n * Class names of the font elements to pre load\n */\n fontClassNames?: string[];\n\n /**\n * The children to render wrapped with the FontsLoadedContext.\n * Note that it renders the children even if the fonts aren't loaded yet.\n */\n children: React.ReactNode;\n};\n\n/**\n * FontBootstrap component. Handles preloading fonts.\n */\nexport function FontBootstrap({\n fontClassNames = ['fira-sans-regular', 'fira-sans-semibold', 'fira-mono'],\n children,\n}: FontBootstrapProps): JSX.Element {\n const [isLoaded, setIsLoaded] = useState(false);\n useEffect(function initFonts() {\n document.fonts.ready.then(() => {\n setIsLoaded(true);\n });\n }, []);\n\n return (\n <>\n <FontsLoadedContext.Provider value={isLoaded}>\n {children}\n </FontsLoadedContext.Provider>\n {/*\n Need to preload any monaco and Deephaven grid fonts.\n We hide text with all the fonts we need on the root app.jsx page\n Load the Fira Mono font so that Monaco calculates word wrapping properly.\n This element doesn't need to be visible, just load the font and stay hidden.\n https://github.com/microsoft/vscode/issues/88689\n Can be replaced with a rel=\"preload\" when firefox adds support\n https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content\n */}\n <div\n id=\"preload-fonts\"\n style={{ visibility: 'hidden', position: 'absolute', top: -10000 }}\n >\n {/* trigger loading of fonts needed by monaco and iris grid */}\n {fontClassNames.map(className => (\n <p key={className} className={className}>\n preload\n </p>\n ))}\n </div>\n </>\n );\n}\n\nexport default FontBootstrap;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"FontBootstrap.js","names":["React","createContext","useEffect","useState","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","FontsLoadedContext","FontBootstrap","_ref","fontClassNames","children","isLoaded","setIsLoaded","initFonts","document","fonts","ready","then","Provider","value","id","style","visibility","position","top","map","className"],"sources":["../../src/components/FontBootstrap.tsx"],"sourcesContent":["import React, { createContext, useEffect, useState } from 'react';\nimport '@fontsource/fira-mono/400.css';\nimport '@fontsource/fira-mono/500.css';\nimport '@fontsource/fira-mono/700.css';\nimport '@fontsource/fira-sans/300.css';\nimport '@fontsource/fira-sans/300-italic.css';\nimport '@fontsource/fira-sans/400.css';\nimport '@fontsource/fira-sans/400-italic.css';\nimport '@fontsource/fira-sans/500.css';\nimport '@fontsource/fira-sans/600.css';\nimport '@fontsource/fira-sans/700.css';\nimport '@fontsource/fira-sans/700-italic.css';\n\nexport const FontsLoadedContext = createContext<boolean>(false);\n\nexport type FontBootstrapProps = {\n /**\n * Class names of the font elements to pre load\n */\n fontClassNames?: string[];\n\n /**\n * The children to render wrapped with the FontsLoadedContext.\n * Note that it renders the children even if the fonts aren't loaded yet.\n */\n children: React.ReactNode;\n};\n\n/**\n * FontBootstrap component. Handles preloading fonts.\n */\nexport function FontBootstrap({\n fontClassNames = ['fira-sans-regular', 'fira-sans-semibold', 'fira-mono'],\n children,\n}: FontBootstrapProps): JSX.Element {\n const [isLoaded, setIsLoaded] = useState(false);\n useEffect(function initFonts() {\n document.fonts.ready.then(() => {\n setIsLoaded(true);\n });\n }, []);\n\n return (\n <>\n <FontsLoadedContext.Provider value={isLoaded}>\n {children}\n </FontsLoadedContext.Provider>\n {/*\n Need to preload any monaco and Deephaven grid fonts.\n We hide text with all the fonts we need on the root app.jsx page\n Load the Fira Mono font so that Monaco calculates word wrapping properly.\n This element doesn't need to be visible, just load the font and stay hidden.\n https://github.com/microsoft/vscode/issues/88689\n Can be replaced with a rel=\"preload\" when firefox adds support\n https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content\n */}\n <div\n id=\"preload-fonts\"\n style={{ visibility: 'hidden', position: 'absolute', top: -10000 }}\n >\n {/* trigger loading of fonts needed by monaco and iris grid */}\n {fontClassNames.map(className => (\n <p key={className} className={className}>\n preload\n </p>\n ))}\n </div>\n </>\n );\n}\n\nexport default FontBootstrap;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Ac,CAACgB,GAAG,CAACC,SAAS,iBAC3BzB,IAAA;QAAmByB,SAAS,EAAEA,SAAU;QAAAhB,QAAA,EAAC;MAEzC,GAFQgB,SAEL,CACJ;IAAC,CACC,CAAC;EAAA,CACN,CAAC;AAEP;AAEA,eAAenB,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.74.1-beta.
|
|
3
|
+
"version": "0.74.1-beta.7+fb63be1f",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,28 +29,29 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@adobe/react-spectrum": "^3.34.1",
|
|
32
|
-
"@deephaven/auth-plugins": "^0.74.1-beta.
|
|
33
|
-
"@deephaven/chart": "^0.74.1-beta.
|
|
34
|
-
"@deephaven/components": "^0.74.1-beta.
|
|
35
|
-
"@deephaven/console": "^0.74.1-beta.
|
|
36
|
-
"@deephaven/dashboard": "^0.74.1-beta.
|
|
37
|
-
"@deephaven/dashboard-core-plugins": "^0.74.1-beta.
|
|
38
|
-
"@deephaven/golden-layout": "^0.74.1-beta.
|
|
39
|
-
"@deephaven/icons": "^0.74.1-beta.
|
|
40
|
-
"@deephaven/iris-grid": "^0.74.1-beta.
|
|
41
|
-
"@deephaven/jsapi-bootstrap": "^0.74.1-beta.
|
|
42
|
-
"@deephaven/jsapi-components": "^0.74.1-beta.
|
|
43
|
-
"@deephaven/jsapi-types": "1.0.0-dev0.
|
|
44
|
-
"@deephaven/jsapi-utils": "^0.74.1-beta.
|
|
45
|
-
"@deephaven/log": "^0.74.1-beta.
|
|
46
|
-
"@deephaven/plugin": "^0.74.1-beta.
|
|
47
|
-
"@deephaven/react-hooks": "^0.74.1-beta.
|
|
48
|
-
"@deephaven/redux": "^0.74.1-beta.
|
|
49
|
-
"@deephaven/utils": "^0.74.1-beta.
|
|
32
|
+
"@deephaven/auth-plugins": "^0.74.1-beta.7+fb63be1f",
|
|
33
|
+
"@deephaven/chart": "^0.74.1-beta.7+fb63be1f",
|
|
34
|
+
"@deephaven/components": "^0.74.1-beta.7+fb63be1f",
|
|
35
|
+
"@deephaven/console": "^0.74.1-beta.7+fb63be1f",
|
|
36
|
+
"@deephaven/dashboard": "^0.74.1-beta.7+fb63be1f",
|
|
37
|
+
"@deephaven/dashboard-core-plugins": "^0.74.1-beta.7+fb63be1f",
|
|
38
|
+
"@deephaven/golden-layout": "^0.74.1-beta.7+fb63be1f",
|
|
39
|
+
"@deephaven/icons": "^0.74.1-beta.7+fb63be1f",
|
|
40
|
+
"@deephaven/iris-grid": "^0.74.1-beta.7+fb63be1f",
|
|
41
|
+
"@deephaven/jsapi-bootstrap": "^0.74.1-beta.7+fb63be1f",
|
|
42
|
+
"@deephaven/jsapi-components": "^0.74.1-beta.7+fb63be1f",
|
|
43
|
+
"@deephaven/jsapi-types": "1.0.0-dev0.34.0",
|
|
44
|
+
"@deephaven/jsapi-utils": "^0.74.1-beta.7+fb63be1f",
|
|
45
|
+
"@deephaven/log": "^0.74.1-beta.7+fb63be1f",
|
|
46
|
+
"@deephaven/plugin": "^0.74.1-beta.7+fb63be1f",
|
|
47
|
+
"@deephaven/react-hooks": "^0.74.1-beta.7+fb63be1f",
|
|
48
|
+
"@deephaven/redux": "^0.74.1-beta.7+fb63be1f",
|
|
49
|
+
"@deephaven/utils": "^0.74.1-beta.7+fb63be1f",
|
|
50
|
+
"@fontsource/fira-mono": "5.0.13",
|
|
51
|
+
"@fontsource/fira-sans": "5.0.20",
|
|
50
52
|
"@paciolan/remote-component": "2.13.0",
|
|
51
53
|
"@paciolan/remote-module-loader": "^3.0.2",
|
|
52
|
-
"classnames": "^2.5.1"
|
|
53
|
-
"fira": "mozilla/fira#4.202"
|
|
54
|
+
"classnames": "^2.5.1"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
57
|
"react": ">=16.8.0",
|
|
@@ -67,5 +68,5 @@
|
|
|
67
68
|
"publishConfig": {
|
|
68
69
|
"access": "public"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "fb63be1f4b437634c4b3bdbacc0578f174e212fb"
|
|
71
72
|
}
|