@databricks/appkit 0.17.0 → 0.19.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 (98) hide show
  1. package/CLAUDE.md +9 -1
  2. package/dist/appkit/package.js +1 -1
  3. package/dist/cache/index.d.ts.map +1 -1
  4. package/dist/cache/index.js +2 -2
  5. package/dist/cache/index.js.map +1 -1
  6. package/dist/cli/commands/plugin/create/scaffold.js +2 -8
  7. package/dist/cli/commands/plugin/create/scaffold.js.map +1 -1
  8. package/dist/connectors/files/client.js +223 -0
  9. package/dist/connectors/files/client.js.map +1 -0
  10. package/dist/connectors/files/defaults.js +131 -0
  11. package/dist/connectors/files/defaults.js.map +1 -0
  12. package/dist/connectors/files/index.js +4 -0
  13. package/dist/connectors/genie/client.js.map +1 -1
  14. package/dist/connectors/genie/types.d.ts +1 -1
  15. package/dist/connectors/genie/types.d.ts.map +1 -1
  16. package/dist/connectors/index.js +3 -0
  17. package/dist/context/execution-context.js +7 -1
  18. package/dist/context/execution-context.js.map +1 -1
  19. package/dist/context/index.js +1 -1
  20. package/dist/core/appkit.d.ts.map +1 -1
  21. package/dist/core/appkit.js +24 -4
  22. package/dist/core/appkit.js.map +1 -1
  23. package/dist/index.d.ts +3 -2
  24. package/dist/index.js +2 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/plugin/plugin.d.ts +24 -5
  27. package/dist/plugin/plugin.d.ts.map +1 -1
  28. package/dist/plugin/plugin.js +43 -10
  29. package/dist/plugin/plugin.js.map +1 -1
  30. package/dist/plugin/to-plugin.d.ts +5 -2
  31. package/dist/plugin/to-plugin.d.ts.map +1 -1
  32. package/dist/plugin/to-plugin.js +5 -2
  33. package/dist/plugin/to-plugin.js.map +1 -1
  34. package/dist/plugins/analytics/analytics.d.ts +1 -2
  35. package/dist/plugins/analytics/analytics.d.ts.map +1 -1
  36. package/dist/plugins/analytics/analytics.js +1 -2
  37. package/dist/plugins/analytics/analytics.js.map +1 -1
  38. package/dist/plugins/files/defaults.d.ts +1 -0
  39. package/dist/plugins/files/defaults.js +56 -0
  40. package/dist/plugins/files/defaults.js.map +1 -0
  41. package/dist/plugins/files/helpers.js +30 -0
  42. package/dist/plugins/files/helpers.js.map +1 -0
  43. package/dist/plugins/files/index.d.ts +3 -0
  44. package/dist/plugins/files/index.js +5 -0
  45. package/dist/plugins/files/manifest.js +40 -0
  46. package/dist/plugins/files/manifest.js.map +1 -0
  47. package/dist/plugins/files/plugin.d.ts +105 -0
  48. package/dist/plugins/files/plugin.d.ts.map +1 -0
  49. package/dist/plugins/files/plugin.js +714 -0
  50. package/dist/plugins/files/plugin.js.map +1 -0
  51. package/dist/plugins/files/types.d.ts +105 -0
  52. package/dist/plugins/files/types.d.ts.map +1 -0
  53. package/dist/plugins/genie/genie.d.ts +1 -2
  54. package/dist/plugins/genie/genie.d.ts.map +1 -1
  55. package/dist/plugins/genie/genie.js +1 -2
  56. package/dist/plugins/genie/genie.js.map +1 -1
  57. package/dist/plugins/index.d.ts +3 -0
  58. package/dist/plugins/index.js +4 -0
  59. package/dist/plugins/lakebase/lakebase.d.ts +1 -2
  60. package/dist/plugins/lakebase/lakebase.d.ts.map +1 -1
  61. package/dist/plugins/lakebase/lakebase.js +1 -2
  62. package/dist/plugins/lakebase/lakebase.js.map +1 -1
  63. package/dist/plugins/server/index.d.ts +2 -2
  64. package/dist/plugins/server/index.d.ts.map +1 -1
  65. package/dist/plugins/server/index.js +9 -4
  66. package/dist/plugins/server/index.js.map +1 -1
  67. package/dist/registry/manifest-loader.js +1 -1
  68. package/dist/registry/manifest-loader.js.map +1 -1
  69. package/dist/registry/types.d.ts +3 -3
  70. package/dist/registry/types.d.ts.map +1 -1
  71. package/dist/registry/types.js.map +1 -1
  72. package/dist/shared/src/genie.d.ts +16 -2
  73. package/dist/shared/src/genie.d.ts.map +1 -1
  74. package/dist/shared/src/index.d.ts +1 -1
  75. package/dist/shared/src/plugin.d.ts +12 -4
  76. package/dist/shared/src/plugin.d.ts.map +1 -1
  77. package/docs/api/appkit/Class.Plugin.md +60 -12
  78. package/docs/api/appkit/Class.ResourceRegistry.md +3 -3
  79. package/docs/api/appkit/Function.createApp.md +3 -3
  80. package/docs/api/appkit/Interface.PluginManifest.md +9 -3
  81. package/docs/api/appkit/TypeAlias.PluginData.md +45 -0
  82. package/docs/api/appkit/TypeAlias.ToPlugin.md +1 -1
  83. package/docs/api/appkit-ui/files/DirectoryList.md +36 -0
  84. package/docs/api/appkit-ui/files/FileBreadcrumb.md +27 -0
  85. package/docs/api/appkit-ui/files/FileEntry.md +27 -0
  86. package/docs/api/appkit-ui/files/FilePreviewPanel.md +32 -0
  87. package/docs/api/appkit-ui/files/NewFolderInput.md +30 -0
  88. package/docs/api/appkit-ui/genie/GenieQueryVisualization.md +29 -0
  89. package/docs/api/appkit.md +1 -0
  90. package/docs/configuration.md +15 -0
  91. package/docs/plugins/custom-plugins.md +4 -13
  92. package/docs/plugins/files.md +350 -0
  93. package/docs/plugins.md +2 -1
  94. package/llms.txt +9 -1
  95. package/package.json +1 -1
  96. package/dist/plugins/server/remote-tunnel/denied.html/denied.html +0 -68
  97. package/dist/plugins/server/remote-tunnel/index.html/index.html +0 -165
  98. package/dist/plugins/server/remote-tunnel/wait.html/wait.html +0 -158
@@ -1,165 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Local Environment Preview</title>
6
- </head>
7
- <body>
8
- <div id="root">
9
- <style>
10
- body {
11
- background: #1b1b1d;
12
- height: 100vh;
13
- margin: 0;
14
- display: flex;
15
- align-items: center;
16
- justify-content: center;
17
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
18
- "Helvetica", "Arial", sans-serif;
19
- }
20
- .loader-container {
21
- display: flex;
22
- flex-direction: column;
23
- align-items: center;
24
- padding: 50px 70px;
25
- }
26
- .logo {
27
- width: 64px;
28
- height: 64px;
29
- margin-bottom: 32px;
30
- position: relative;
31
- }
32
- .logo svg {
33
- width: 100%;
34
- height: 100%;
35
- }
36
- .spinner {
37
- width: 32px;
38
- height: 32px;
39
- border: 3px solid rgba(255, 255, 255, 0.1);
40
- border-top: 3px solid #ff3621;
41
- border-radius: 50%;
42
- animation: spin 0.8s linear infinite;
43
- margin-bottom: 32px;
44
- }
45
- @keyframes spin {
46
- 0% {
47
- transform: rotate(0deg);
48
- }
49
- 100% {
50
- transform: rotate(360deg);
51
- }
52
- }
53
- .loading-text {
54
- font-size: 1.125rem;
55
- color: #ffffff;
56
- letter-spacing: 0.02em;
57
- font-weight: 400;
58
- text-align: center;
59
- margin-top: 0;
60
- opacity: 0.9;
61
- }
62
- .databricks-brand {
63
- font-size: 0.875rem;
64
- color: rgba(255, 255, 255, 0.5);
65
- margin-top: 16px;
66
- letter-spacing: 0.05em;
67
- text-transform: uppercase;
68
- font-weight: 500;
69
- }
70
- .dots {
71
- display: inline-block;
72
- animation: dots 1.5s steps(4, end) infinite;
73
- }
74
- @keyframes dots {
75
- 0%,
76
- 20% {
77
- content: ".";
78
- }
79
- 40% {
80
- content: "..";
81
- }
82
- 60%,
83
- 100% {
84
- content: "...";
85
- }
86
- }
87
- </style>
88
- <div class="loader-container">
89
- <div class="logo">
90
- <svg
91
- version="1.1"
92
- id="Layer_1"
93
- xmlns:x="ns_extend;"
94
- xmlns:i="ns_ai;"
95
- xmlns:graph="ns_graphs;"
96
- xmlns="http://www.w3.org/2000/svg"
97
- xmlns:xlink="http://www.w3.org/1999/xlink"
98
- x="0px"
99
- y="0px"
100
- viewBox="0 0 40.1 42"
101
- style="enable-background: new 0 0 40.1 42"
102
- xml:space="preserve"
103
- >
104
- <style type="text/css">
105
- .st0 {
106
- fill: #ff3621;
107
- }
108
- </style>
109
- <metadata>
110
- <sfw xmlns="ns_sfw;">
111
- <slices></slices>
112
- <sliceSourceBounds
113
- bottomLeftOrigin="true"
114
- height="42"
115
- width="40.1"
116
- x="-69.1"
117
- y="-10.5"
118
- ></sliceSourceBounds>
119
- </sfw>
120
- </metadata>
121
- <g>
122
- <path
123
- class="st0"
124
- d="M40.1,31.1v-7.4l-0.8-0.5L20.1,33.7l-18.2-10l0-4.3l18.2,9.9l20.1-10.9v-7.3l-0.8-0.5L20.1,21.2L2.6,11.6
125
- L20.1,2l14.1,7.7l1.1-0.6V8.3L20.1,0L0,10.9V12L20.1,23l18.2-10v4.4l-18.2,10L0.8,16.8L0,17.3v7.4l20.1,10.9l18.2-9.9v4.3l-18.2,10
126
- L0.8,29.5L0,30v1.1L20.1,42L40.1,31.1z"
127
- ></path>
128
- </g>
129
- </svg>
130
- </div>
131
-
132
- <div class="spinner"></div>
133
- <div class="loading-text">
134
- Loading local environment<span class="dots">...</span>
135
- </div>
136
- <div class="databricks-brand">Databricks</div>
137
- </div>
138
- </div>
139
- <script type="module">
140
- import RefreshRuntime from "/@react-refresh";
141
- if (!window.__vite_plugin_react_preamble_installed__) {
142
- RefreshRuntime.injectIntoGlobalHook(window);
143
- window.$RefreshReg$ = () => {};
144
- window.$RefreshSig$ = () => (type) => type;
145
- window.__vite_plugin_react_preamble_installed__ = true;
146
- }
147
- </script>
148
-
149
- <script id="vite-client" type="module" src="/@vite/client"></script>
150
- <script type="module" src="/src/main.tsx"></script>
151
- <script>
152
- const viteClient = document.getElementById("vite-client");
153
- if (viteClient) {
154
- viteClient.onload = () => {
155
- console.log("Vite client loaded");
156
- };
157
- viteClient.onerror = () => {
158
- setTimeout(() => {
159
- window.location.reload();
160
- }, 1000);
161
- };
162
- }
163
- </script>
164
- </body>
165
- </html>
@@ -1,158 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <title>Waiting for Approval</title>
6
- <meta http-equiv="refresh" content="2">
7
- </head>
8
- <body>
9
- <div id="root">
10
- <style>
11
- body {
12
- background: #1b1b1d;
13
- height: 100vh;
14
- margin: 0;
15
- display: flex;
16
- align-items: center;
17
- justify-content: center;
18
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
19
- "Helvetica", "Arial", sans-serif;
20
- }
21
- .loader-container {
22
- display: flex;
23
- flex-direction: column;
24
- align-items: center;
25
- padding: 50px 70px;
26
- }
27
- .logo {
28
- width: 64px;
29
- height: 64px;
30
- margin-bottom: 32px;
31
- position: relative;
32
- }
33
- .logo svg {
34
- width: 100%;
35
- height: 100%;
36
- }
37
- .spinner {
38
- width: 32px;
39
- height: 32px;
40
- border: 3px solid rgba(255, 255, 255, 0.1);
41
- border-top: 3px solid #ff3621;
42
- border-radius: 50%;
43
- animation: spin 0.8s linear infinite;
44
- margin-bottom: 32px;
45
- }
46
- @keyframes spin {
47
- 0% {
48
- transform: rotate(0deg);
49
- }
50
- 100% {
51
- transform: rotate(360deg);
52
- }
53
- }
54
- .loading-text {
55
- font-size: 1.125rem;
56
- color: #ffffff;
57
- letter-spacing: 0.02em;
58
- font-weight: 400;
59
- text-align: center;
60
- margin-top: 0;
61
- opacity: 0.9;
62
- }
63
- .sub-text {
64
- font-size: 0.875rem;
65
- color: rgba(255, 255, 255, 0.6);
66
- margin-top: 12px;
67
- text-align: center;
68
- }
69
- .tunnel-id {
70
- font-size: 0.75rem;
71
- color: rgba(255, 255, 255, 0.4);
72
- margin-top: 8px;
73
- letter-spacing: 0.05em;
74
- font-family: monospace;
75
- }
76
- .databricks-brand {
77
- font-size: 0.875rem;
78
- color: rgba(255, 255, 255, 0.5);
79
- margin-top: 24px;
80
- letter-spacing: 0.05em;
81
- text-transform: uppercase;
82
- font-weight: 500;
83
- }
84
- .dots {
85
- display: inline-block;
86
- animation: dots 1.5s steps(4, end) infinite;
87
- }
88
- @keyframes dots {
89
- 0%,
90
- 20% {
91
- content: ".";
92
- }
93
- 40% {
94
- content: "..";
95
- }
96
- 60%,
97
- 100% {
98
- content: "...";
99
- }
100
- }
101
- </style>
102
- <div class="loader-container">
103
- <div class="logo">
104
- <svg
105
- version="1.1"
106
- id="Layer_1"
107
- xmlns:x="ns_extend;"
108
- xmlns:i="ns_ai;"
109
- xmlns:graph="ns_graphs;"
110
- xmlns="http://www.w3.org/2000/svg"
111
- xmlns:xlink="http://www.w3.org/1999/xlink"
112
- x="0px"
113
- y="0px"
114
- viewBox="0 0 40.1 42"
115
- style="enable-background: new 0 0 40.1 42"
116
- xml:space="preserve"
117
- >
118
- <style type="text/css">
119
- .st0 {
120
- fill: #ff3621;
121
- }
122
- </style>
123
- <metadata>
124
- <sfw xmlns="ns_sfw;">
125
- <slices></slices>
126
- <sliceSourceBounds
127
- bottomLeftOrigin="true"
128
- height="42"
129
- width="40.1"
130
- x="-69.1"
131
- y="-10.5"
132
- ></sliceSourceBounds>
133
- </sfw>
134
- </metadata>
135
- <g>
136
- <path
137
- class="st0"
138
- d="M40.1,31.1v-7.4l-0.8-0.5L20.1,33.7l-18.2-10l0-4.3l18.2,9.9l20.1-10.9v-7.3l-0.8-0.5L20.1,21.2L2.6,11.6
139
- L20.1,2l14.1,7.7l1.1-0.6V8.3L20.1,0L0,10.9V12L20.1,23l18.2-10v4.4l-18.2,10L0.8,16.8L0,17.3v7.4l20.1,10.9l18.2-9.9v4.3l-18.2,10
140
- L0.8,29.5L0,30v1.1L20.1,42L40.1,31.1z"
141
- ></path>
142
- </g>
143
- </svg>
144
- </div>
145
-
146
- <div class="spinner"></div>
147
- <div class="loading-text">
148
- Waiting for approval<span class="dots">...</span>
149
- </div>
150
- <div class="sub-text">
151
- Requesting access to tunnel from owner
152
- </div>
153
- <div class="tunnel-id">Tunnel ID: {{tunnelId}}</div>
154
- <div class="databricks-brand">Databricks</div>
155
- </div>
156
- </div>
157
- </body>
158
- </html>