@riboseinc/anafero-cli 0.0.28 → 0.0.29
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/bootstrap.css +5 -0
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +7 -1
- package/bootstrap.js.map +3 -3
- package/build-generator.mts +21 -3
- package/build-site.css +5 -0
- package/build-site.mjs +1 -0
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.29.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.28.tgz +0 -0
package/build-generator.mts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { resolve, isAbsolute, join } from 'node:path';
|
|
10
|
-
import { readFile } from 'node:fs/promises';
|
|
10
|
+
import { readFile, writeFile } from 'node:fs/promises';
|
|
11
11
|
|
|
12
12
|
import { Logger, Effect } from 'effect';
|
|
13
13
|
import { NodeContext, NodeRuntime } from '@effect/platform-node';
|
|
@@ -66,7 +66,8 @@ Effect.
|
|
|
66
66
|
|
|
67
67
|
async function buildBootstrapScript(opts: ReportingOptions) {
|
|
68
68
|
const { logLevel } = opts;
|
|
69
|
-
|
|
69
|
+
const outfile = join(PACKAGE_ROOT, 'bootstrap.js');
|
|
70
|
+
const result = await esbuild({
|
|
70
71
|
entryPoints: [
|
|
71
72
|
'./bootstrap.tsx',
|
|
72
73
|
//join(PACKAGE_ROOT, 'site', 'index.tsx'),
|
|
@@ -81,7 +82,7 @@ async function buildBootstrapScript(opts: ReportingOptions) {
|
|
|
81
82
|
treeShaking: true,
|
|
82
83
|
sourcemap: true,
|
|
83
84
|
platform: 'browser',
|
|
84
|
-
outfile
|
|
85
|
+
outfile,
|
|
85
86
|
//outdir: 'layout',
|
|
86
87
|
write: true,
|
|
87
88
|
loader: {
|
|
@@ -92,6 +93,23 @@ async function buildBootstrapScript(opts: ReportingOptions) {
|
|
|
92
93
|
},
|
|
93
94
|
logLevel,
|
|
94
95
|
});
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
// This unbreaks react-aria’s virtualizer ScrollView
|
|
99
|
+
// interfering with ProseMirror
|
|
100
|
+
//
|
|
101
|
+
// Ideally, this could be an esbuild plugin.
|
|
102
|
+
// Even more ideally, a proper package manager patch
|
|
103
|
+
// (yarn patch didn’t work for me).
|
|
104
|
+
console.debug("Patching ProseMirror");
|
|
105
|
+
let contents = await readFile(outfile, 'utf8');
|
|
106
|
+
contents = contents.replace(
|
|
107
|
+
'if (!runCustomHandler(view, event)',
|
|
108
|
+
'if (event && !runCustomHandler(view, event)',
|
|
109
|
+
);
|
|
110
|
+
await writeFile(outfile, contents);
|
|
111
|
+
|
|
112
|
+
return result;
|
|
95
113
|
}
|
|
96
114
|
|
|
97
115
|
/**
|
package/build-site.css
CHANGED
|
@@ -31167,6 +31167,11 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31167
31167
|
}
|
|
31168
31168
|
}
|
|
31169
31169
|
}
|
|
31170
|
+
.style_navListView {
|
|
31171
|
+
background: var(--spectrum-alias-background-color-default);
|
|
31172
|
+
border: none;
|
|
31173
|
+
border-radius: 0;
|
|
31174
|
+
}
|
|
31170
31175
|
.style_browserBar {
|
|
31171
31176
|
position: fixed;
|
|
31172
31177
|
left: 0;
|
package/build-site.mjs
CHANGED
|
@@ -315994,6 +315994,7 @@ var style_default = {
|
|
|
315994
315994
|
active: "style_active",
|
|
315995
315995
|
"is-disabled": "style_is-disabled",
|
|
315996
315996
|
resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
|
|
315997
|
+
navListView: "style_navListView",
|
|
315997
315998
|
browserBar: "style_browserBar",
|
|
315998
315999
|
browserBarTitle: "style_browserBarTitle",
|
|
315999
316000
|
browserBarToolbar: "style_browserBarToolbar",
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|