create-vidra-app 0.3.1 → 0.5.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.
@@ -0,0 +1,6 @@
1
+ // Generated by the Vidra CLI. Do not edit.
2
+ import { vidra } from "@vidra-dev/sdk";
3
+
4
+ vidra.registerExpectedAccessFingerprint(
5
+ "f8e12289e430f3ecfce80c132a8b23e9539c041a0912b7c116feae722f510f68",
6
+ );
@@ -2,6 +2,7 @@ import { StrictMode } from "react";
2
2
  import { createRoot } from "react-dom/client";
3
3
  import App from "./App";
4
4
  import "./index.css";
5
+ import "./generated/vidra-access-policy.js";
5
6
 
6
7
  createRoot(document.getElementById("root")!).render(
7
8
  <StrictMode>
@@ -25,8 +25,11 @@ export default defineConfig({
25
25
  emptyOutDir: true,
26
26
  rollupOptions: {
27
27
  output: {
28
+ // `format: "iife"` already implies no code splitting, and since Vite 8
29
+ // saying so twice is a warning on every app build: "inlineDynamicImports
30
+ // option is ignored because codeSplitting: false is set". Output is
31
+ // byte-identical without it — still one file, still no import map.
28
32
  format: "iife",
29
- inlineDynamicImports: true,
30
33
  },
31
34
  },
32
35
  },
@@ -0,0 +1,29 @@
1
+ import { defineConfig, events, native } from "@vidra-dev/sdk/config";
2
+
3
+ export default defineConfig({
4
+ bridge: {
5
+ allow: [
6
+ native.app.getInfo,
7
+ native.appWindow.center,
8
+ native.appWindow.configure,
9
+ native.appWindow.getCurrent,
10
+ native.appWindow.getSupport,
11
+ native.appWindow.maximize,
12
+ native.appWindow.minimize,
13
+ native.appWindow.restore,
14
+ native.appWindow.setTitle,
15
+ native.browser.open,
16
+ native.clipboard.getText,
17
+ native.notifications.requestPermission,
18
+ native.notifications.show,
19
+ ],
20
+ events: [
21
+ events.appWindow.resized,
22
+ events.appWindow.stateChanged,
23
+ events.runtime.hotReloaded,
24
+ ],
25
+ },
26
+ updates: {
27
+ feed: "",
28
+ },
29
+ });
package/bin/vidra.mjs DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import("../dist/cli.js");