@deephaven/app-utils 0.40.1-beta.0 → 0.40.2-beta.2
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/FontBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,MAAM,CAAC;AAEd,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,
|
|
1
|
+
{"version":3,"file":"FontBootstrap.d.ts","sourceRoot":"","sources":["../../src/components/FontBootstrap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,MAAM,CAAC;AAEd,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,eAmCpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -6,7 +6,7 @@ export var FontsLoadedContext = /*#__PURE__*/createContext(false);
|
|
|
6
6
|
*/
|
|
7
7
|
export function FontBootstrap(_ref) {
|
|
8
8
|
var {
|
|
9
|
-
fontClassNames = ['fira-sans-regular', 'fira-sans-
|
|
9
|
+
fontClassNames = ['fira-sans-regular', 'fira-sans-semibold', 'fira-mono'],
|
|
10
10
|
children
|
|
11
11
|
} = _ref;
|
|
12
12
|
var [isLoaded, setIsLoaded] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontBootstrap.js","names":["React","createContext","useEffect","useState","FontsLoadedContext","FontBootstrap","fontClassNames","children","isLoaded","setIsLoaded","initFonts","document","fonts","ready","then","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-
|
|
1
|
+
{"version":3,"file":"FontBootstrap.js","names":["React","createContext","useEffect","useState","FontsLoadedContext","FontBootstrap","fontClassNames","children","isLoaded","setIsLoaded","initFonts","document","fonts","ready","then","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) {\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,MAAM;AAEb,OAAO,IAAMC,kBAAkB,gBAAGH,aAAa,CAAU,KAAK,CAAC;AAe/D;AACA;AACA;AACA,OAAO,SAASI,aAAa,OAGN;EAAA,IAHO;IAC5BC,cAAc,GAAG,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,WAAW,CAAC;IACzEC;EACkB,CAAC;EACnB,IAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAC/CD,SAAS,CAAC,SAASQ,SAAS,GAAG;IAC7BC,QAAQ,CAACC,KAAK,CAACC,KAAK,CAACC,IAAI,CAAC,MAAM;MAC9BL,WAAW,CAAC,IAAI,CAAC;IACnB,CAAC,CAAC;EACJ,CAAC,EAAE,EAAE,CAAC;EAEN,oBACE,uDACE,oBAAC,kBAAkB,CAAC,QAAQ;IAAC,KAAK,EAAED;EAAS,GAC1CD,QAAQ,CACmB,eAU9B;IACE,EAAE,EAAC,eAAe;IAClB,KAAK,EAAE;MAAEQ,UAAU,EAAE,QAAQ;MAAEC,QAAQ,EAAE,UAAU;MAAEC,GAAG,EAAE,CAAC;IAAM;EAAE,GAGlEX,cAAc,CAACY,GAAG,CAACC,SAAS,iBAC3B;IAAG,GAAG,EAAEA,SAAU;IAAC,SAAS,EAAEA;EAAU,GAAC,SAEzC,CACD,CAAC,CACE,CACL;AAEP;AAEA,eAAed,aAAa"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/app-utils",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.2-beta.2+860e4c5c",
|
|
4
4
|
"description": "Deephaven App Utils",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"redux": "^4.x"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@deephaven/auth-plugins": "^0.40.
|
|
32
|
-
"@deephaven/components": "^0.40.
|
|
33
|
-
"@deephaven/jsapi-bootstrap": "^0.40.
|
|
34
|
-
"@deephaven/jsapi-components": "^0.40.
|
|
35
|
-
"@deephaven/jsapi-types": "^0.40.
|
|
36
|
-
"@deephaven/jsapi-utils": "^0.40.
|
|
37
|
-
"@deephaven/log": "^0.40.
|
|
38
|
-
"@deephaven/react-hooks": "^0.40.
|
|
39
|
-
"@deephaven/utils": "^0.40.
|
|
31
|
+
"@deephaven/auth-plugins": "^0.40.2-beta.2+860e4c5c",
|
|
32
|
+
"@deephaven/components": "^0.40.2-beta.2+860e4c5c",
|
|
33
|
+
"@deephaven/jsapi-bootstrap": "^0.40.2-beta.2+860e4c5c",
|
|
34
|
+
"@deephaven/jsapi-components": "^0.40.2-beta.2+860e4c5c",
|
|
35
|
+
"@deephaven/jsapi-types": "^0.40.2-beta.2+860e4c5c",
|
|
36
|
+
"@deephaven/jsapi-utils": "^0.40.2-beta.2+860e4c5c",
|
|
37
|
+
"@deephaven/log": "^0.40.2-beta.2+860e4c5c",
|
|
38
|
+
"@deephaven/react-hooks": "^0.40.2-beta.2+860e4c5c",
|
|
39
|
+
"@deephaven/utils": "^0.40.2-beta.2+860e4c5c",
|
|
40
40
|
"@paciolan/remote-component": "2.13.0",
|
|
41
41
|
"@paciolan/remote-module-loader": "^3.0.2",
|
|
42
42
|
"fira": "mozilla/fira#4.202"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "860e4c5c7c548d9b0aece14455959b5d0a6a6942"
|
|
60
60
|
}
|