@pngwasi/config-editor 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +1985 -2
- package/binding.d.ts +216 -0
- package/binding.js +634 -0
- package/index.d.ts +41 -0
- package/index.js +14 -0
- package/load.d.ts +18 -0
- package/load.js +57 -0
- package/package.json +70 -4
- package/pkg/config_editor.d.ts +2500 -0
- package/pkg/config_editor.js +3281 -0
- package/pkg/config_editor_bg.wasm +0 -0
- package/pkg/config_editor_bg.wasm.d.ts +110 -0
- package/preset.css +2899 -0
- package/setting-types.js +24 -0
- package/tools.d.ts +23 -0
- package/tools.js +19 -0
package/setting-types.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated from crates/config-editor-leptos/src/settings.rs by js/config-editor/tests/settings.rs; do not edit. Regenerate with `UPDATE_GENERATED=1 cargo test -p config-editor-js --test settings`.
|
|
2
|
+
|
|
3
|
+
/** Each key of `EditorSettings` and the JavaScript type of its values. */
|
|
4
|
+
export const SETTING_TYPES = Object.freeze({
|
|
5
|
+
theme: "string",
|
|
6
|
+
colors: "object",
|
|
7
|
+
styled: "boolean",
|
|
8
|
+
showToolbar: "boolean",
|
|
9
|
+
showFooter: "boolean",
|
|
10
|
+
showDiagnostics: "boolean",
|
|
11
|
+
showDiff: "boolean",
|
|
12
|
+
completions: "boolean",
|
|
13
|
+
autoTriggerCompletions: "boolean",
|
|
14
|
+
hoverDocs: "boolean",
|
|
15
|
+
highlighting: "boolean",
|
|
16
|
+
autoClosing: "boolean",
|
|
17
|
+
search: "boolean",
|
|
18
|
+
goToLine: "boolean",
|
|
19
|
+
folding: "boolean",
|
|
20
|
+
stickyScroll: "boolean",
|
|
21
|
+
stickyScrollMaxLines: "number",
|
|
22
|
+
saveShortcut: "boolean",
|
|
23
|
+
strings: "object",
|
|
24
|
+
});
|
package/tools.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export {
|
|
2
|
+
changeSummary,
|
|
3
|
+
convert,
|
|
4
|
+
parse,
|
|
5
|
+
pathAt,
|
|
6
|
+
presetCss,
|
|
7
|
+
rangeOf,
|
|
8
|
+
rangesOf,
|
|
9
|
+
schemaWarnings,
|
|
10
|
+
serialize,
|
|
11
|
+
unifiedDiff,
|
|
12
|
+
validate,
|
|
13
|
+
type ChangeSummary,
|
|
14
|
+
type Conversion,
|
|
15
|
+
type Diagnostic,
|
|
16
|
+
type EditorPath,
|
|
17
|
+
type EditorRange,
|
|
18
|
+
type FieldPath,
|
|
19
|
+
type LanguageName,
|
|
20
|
+
type LineRange,
|
|
21
|
+
type Severity,
|
|
22
|
+
} from "./pkg/config_editor.js";
|
|
23
|
+
export { loadConfigEditor } from "./load.js";
|
package/tools.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// `@pngwasi/config-editor/tools`: text without an editor (servers, build
|
|
2
|
+
// steps, review screens). The same answers the editor gives: checks,
|
|
3
|
+
// conversion, parsing, change summaries and diffs, paths, the schema's
|
|
4
|
+
// warnings and the preset stylesheet. They need the WebAssembly module:
|
|
5
|
+
// `await loadConfigEditor()` (also exported here) first.
|
|
6
|
+
export {
|
|
7
|
+
changeSummary,
|
|
8
|
+
convert,
|
|
9
|
+
parse,
|
|
10
|
+
pathAt,
|
|
11
|
+
presetCss,
|
|
12
|
+
rangeOf,
|
|
13
|
+
rangesOf,
|
|
14
|
+
schemaWarnings,
|
|
15
|
+
serialize,
|
|
16
|
+
unifiedDiff,
|
|
17
|
+
validate,
|
|
18
|
+
} from "./pkg/config_editor.js";
|
|
19
|
+
export { loadConfigEditor } from "./load.js";
|