create-middag-ui 0.7.2 → 0.8.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.
Files changed (2) hide show
  1. package/lib/scaffold.js +2 -1
  2. package/package.json +1 -1
package/lib/scaffold.js CHANGED
@@ -939,10 +939,11 @@ function buildNavigation() {
939
939
 
940
940
  const mockSharedProps = {
941
941
  auth: { id: 1, name: "Dev User", email: "dev@localhost", capabilities: [] },
942
- theme: { appearance: "light" as const },
942
+ theme: { appearance: "light" as const, strings: {} as Record<string, string> },
943
943
  flash: {},
944
944
  locale: "en",
945
945
  version: "0.0.0-mock",
946
+ scope: { extension: null, context: "global" },
946
947
  };
947
948
 
948
949
  export function usePage<T = Record<string, unknown>>(): { props: T; url: string } {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-middag-ui",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "Bootstrap a MIDDAG React UI layer in your Moodle or WordPress plugin",
6
6
  "bin": {