@servicetitan/docs-uikit 23.1.0 → 23.2.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/docs/ko-bridge.mdx +9 -22
- package/package.json +2 -2
package/docs/ko-bridge.mdx
CHANGED
|
@@ -31,35 +31,22 @@ _`dangerouslyUpdatable` is dangerous because change in reference might try to up
|
|
|
31
31
|
|
|
32
32
|
### Examples
|
|
33
33
|
|
|
34
|
-
#### Usage
|
|
34
|
+
#### Usage
|
|
35
35
|
|
|
36
36
|
```tsx
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
render() {
|
|
44
|
-
return <div data-bind="visible: window.IsExampleVisible">Invisible Example.</div>;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
#### Usage as JSX element
|
|
50
|
-
|
|
51
|
-
```tsx
|
|
52
|
-
const ExampleTemplate = () => <div data-bind="visible: IsExampleVisible">Invisible Example</div>;
|
|
37
|
+
const ExampleTemplate = forwardRef<HTMLDivElement>((_, ref) => (
|
|
38
|
+
<div ref={ref} data-bind="visible: IsExampleVisible">
|
|
39
|
+
Invisible Example
|
|
40
|
+
</div>
|
|
41
|
+
));
|
|
53
42
|
|
|
54
43
|
interface ExampleKnockoutComponentProps {
|
|
55
44
|
IsExampleVisible: boolean;
|
|
56
45
|
}
|
|
57
46
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
}
|
|
47
|
+
const ExampleKnockoutComponent = (props: ExampleKnockoutComponentProps) => {
|
|
48
|
+
return <KnockoutComponent koModel={props} koTemplate={ExampleTemplate} />;
|
|
49
|
+
};
|
|
63
50
|
```
|
|
64
51
|
|
|
65
52
|
## HtmlComment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/docs-uikit",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"cli": {
|
|
17
17
|
"webpack": false
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "4b72bab5ab6cb52a688d9329c7fbaa702ae6780c"
|
|
20
20
|
}
|