@appscode/design-system 2.17.23 → 2.17.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.17.23",
3
+ "version": "2.17.25",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -15,6 +15,7 @@ interface Props {
15
15
  schema?: Record<string, unknown>;
16
16
  uri: string;
17
17
  };
18
+ needsUpdateOnChange?: boolean
18
19
  }
19
20
 
20
21
  const props = withDefaults(defineProps<Props>(), {
@@ -28,6 +29,7 @@ const props = withDefaults(defineProps<Props>(), {
28
29
  editorTheme: "",
29
30
  wordWrap: "on",
30
31
  validation: () => ({ uri: "" }),
32
+ needsUpdateOnChange: false
31
33
  });
32
34
 
33
35
  const emit = defineEmits(["update:modelValue"]);
@@ -61,7 +63,11 @@ const theme = computed(() => {
61
63
  });
62
64
 
63
65
  const onChange = (e: Event) => {
64
- if (typeof e === "string") editorContent.value = e;
66
+ if (typeof e === "string") {
67
+ editorContent.value = e;
68
+ if(props.needsUpdateOnChange)
69
+ emit("update:modelValue", e);
70
+ }
65
71
  };
66
72
 
67
73
  const onEditorMount = (editor: Record<string, unknown>) => {
@@ -84,12 +84,12 @@ function handleIsActiveChange(isActive: string) {
84
84
 
85
85
  const getUrl = (product: (typeof appList)[0]) => {
86
86
  if (props.baseUrl.search("bb.test") !== -1) {
87
- return `http://bb.test:${product.port}/${product.name}`;
87
+ return `http://bb.test:${product.port}/${product.name}/`;
88
88
  } else if (props.baseUrl.search("localhost") !== -1) {
89
- return `http://localhost:${product.port}/${product.name}`;
89
+ return `http://localhost:${product.port}/${product.name}/`;
90
90
  }
91
91
 
92
- return `${props.baseUrl}/${product.name}`;
92
+ return `${props.baseUrl}/${product.name}/`;
93
93
  };
94
94
 
95
95
  const appListWithUrl = appList.map((el) => {