create-mendix-widget-gleam 2.0.21 → 3.0.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.
@@ -8,4 +8,7 @@ runtime = "node"
8
8
 
9
9
  [dependencies]
10
10
  gleam_stdlib = ">= 0.44.0 and < 2.0.0"
11
- glendix = ">= 2.0.20 and < 3.0.0"
11
+ glendix = ">= 3.0.0 and < 4.0.0"
12
+ redraw = ">= 19.2.2 and < 20.0.0"
13
+ redraw_dom = ">= 19.2.2 and < 20.0.0"
14
+ lustre = ">= 5.6.0 and < 6.0.0"
@@ -23,7 +23,10 @@
23
23
  "playwright": "^1.58.2"
24
24
  },
25
25
  "dependencies": {
26
- "classnames": "^2.5.1"
26
+ "classnames": "^2.5.1",
27
+ "react": "^19.0.0",
28
+ "react-dom": "^19.0.0",
29
+ "big.js": "^6.0.0"
27
30
  },
28
31
  "resolutions": {
29
32
  "react": "^19.0.0",
@@ -2,11 +2,11 @@
2
2
  {{I18N:widget_main_2}}
3
3
 
4
4
  import components/hello_world
5
- import glendix/mendix
6
- import glendix/react.{type JsProps, type ReactElement}
5
+ import glendix/mendix.{type JsProps}
6
+ import redraw.{type Element}
7
7
 
8
8
  {{I18N:widget_main_doc}}
9
- pub fn widget(props: JsProps) -> ReactElement {
9
+ pub fn widget(props: JsProps) -> Element {
10
10
  let sample_text = mendix.get_string_prop(props, "sampleText")
11
11
  hello_world.render(sample_text)
12
12
  }
@@ -1,13 +1,13 @@
1
1
  {{I18N:hello_world_1}}
2
2
  {{I18N:hello_world_2}}
3
3
 
4
- import glendix/react.{type ReactElement}
5
- import glendix/react/attribute
6
- import glendix/react/html
4
+ import redraw.{type Element}
5
+ import redraw/dom/attribute
6
+ import redraw/dom/html
7
7
 
8
8
  {{I18N:hello_world_doc}}
9
- pub fn render(sample_text: String) -> ReactElement {
9
+ pub fn render(sample_text: String) -> Element {
10
10
  html.div([attribute.class("widget-hello-world")], [
11
- react.text("Hello " <> sample_text),
11
+ html.text("Hello " <> sample_text),
12
12
  ])
13
13
  }
@@ -1,18 +1,14 @@
1
1
  {{I18N:editor_config_1}}
2
2
  {{I18N:editor_config_2}}
3
3
 
4
- {{I18N:editor_config_3}}
5
- pub type Values
6
-
7
- pub type Properties
8
-
9
- pub type Target
4
+ import glendix/editor_config.{type Properties}
5
+ import glendix/mendix.{type JsProps}
10
6
 
11
7
  {{I18N:editor_config_doc}}
12
8
  pub fn get_properties(
13
- _values: Values,
9
+ _values: JsProps,
14
10
  default_properties: Properties,
15
- _target: Target,
11
+ _platform: String,
16
12
  ) -> Properties {
17
13
  default_properties
18
14
  }
@@ -2,11 +2,11 @@
2
2
  {{I18N:editor_preview_2}}
3
3
 
4
4
  import components/hello_world
5
- import glendix/mendix
6
- import glendix/react.{type JsProps, type ReactElement}
5
+ import glendix/mendix.{type JsProps}
6
+ import redraw.{type Element}
7
7
 
8
8
  {{I18N:editor_preview_doc}}
9
- pub fn preview(props: JsProps) -> ReactElement {
9
+ pub fn preview(props: JsProps) -> Element {
10
10
  let sample_text = mendix.get_string_prop(props, "sampleText")
11
11
  hello_world.render(sample_text)
12
12
  }