likec4 1.36.0 → 1.37.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/__app__/src/{index-iX7kahqQ.js → index-CIsxIzOH.js} +23 -53
- package/__app__/src/main.js +2063 -1808
- package/__app__/src/style.css +1 -1
- package/__app__/src/webcomponent.tsx +0 -22
- package/dist/cli/index.mjs +255 -255
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/likec4.B6V1NOky.mjs +258 -0
- package/dist/shared/likec4.B7noVoso.mjs +2 -0
- package/dist/shared/{likec4.DWIqzE5d.mjs → likec4.BKp9_9LQ.mjs} +1735 -1719
- package/dist/shared/{likec4.CoVNuZKl.d.mts → likec4.cqC6tNHO.d.mts} +2108 -2038
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/index.mjs +2 -2
- package/dist/vite-plugin/internal.mjs +7 -9
- package/package.json +15 -15
- package/react/index.d.mts +2145 -72
- package/react/index.mjs +37 -50
- package/vite-plugin-modules.d.ts +2 -1
- package/dist/shared/likec4.D8qlxD_Y.mjs +0 -239
|
@@ -55,22 +55,6 @@ export class LikeC4View extends HTMLElement {
|
|
|
55
55
|
this.hostCss = undefined
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
// protected get view(): DiagramView {
|
|
59
|
-
// const viewId = this.getAttribute('view-id') ?? 'index'
|
|
60
|
-
// let view = LikeC4Views[viewId as LikeC4ViewId]
|
|
61
|
-
// if (view) {
|
|
62
|
-
// return view
|
|
63
|
-
// }
|
|
64
|
-
|
|
65
|
-
// console.error(`Invalid view id: ${viewId},\nAvailable: ${Object.keys(LikeC4Views).join(', ')}`)
|
|
66
|
-
// view = LikeC4Views['index' as LikeC4ViewId] ?? Object.values(LikeC4Views)[0]
|
|
67
|
-
// invariant(view, `Empty LikeC4Views`)
|
|
68
|
-
// console.warn(`LikeC4: Falling back to view: ${view.id}`)
|
|
69
|
-
// const fallbackViewId = view.id
|
|
70
|
-
// setTimeout(() => this.setAttribute('view-id', fallbackViewId), 50)
|
|
71
|
-
// return view
|
|
72
|
-
// }
|
|
73
|
-
|
|
74
58
|
protected render() {
|
|
75
59
|
const viewId = this.getAttribute('view-id') ?? 'index'
|
|
76
60
|
const browserAttr = this.getAttribute('browser') ?? 'true'
|
|
@@ -87,12 +71,6 @@ export class LikeC4View extends HTMLElement {
|
|
|
87
71
|
)
|
|
88
72
|
}
|
|
89
73
|
|
|
90
|
-
// openBrowser(viewId?: ViewId) {
|
|
91
|
-
// const fs = document.createElement(ComponentName.Browser)
|
|
92
|
-
// fs.setAttribute('view-id', viewId ?? this.view.id)
|
|
93
|
-
// document.body.appendChild(fs)
|
|
94
|
-
// }
|
|
95
|
-
|
|
96
74
|
attributeChangedCallback(_name: string) {
|
|
97
75
|
if (this.root) {
|
|
98
76
|
this.render()
|