@dovetail-v2/refine 0.0.65 → 0.0.66-pod-exec.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 (216) hide show
  1. package/dist/{MonacoYamlDiffEditor-da40ae05.js → MonacoYamlDiffEditor-6b799b64.js} +1 -1
  2. package/dist/{index-cd2b9e5c.js → index-c07bed15.js} +16211 -2301
  3. package/dist/refine.js +157 -147
  4. package/dist/refine.umd.cjs +15441 -1531
  5. package/dist/style.css +229 -11
  6. package/lib/src/components/Form/FormModal.d.ts +1 -0
  7. package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
  8. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
  9. package/lib/src/components/PodDropdown/index.d.ts +9 -0
  10. package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
  11. package/lib/src/components/PodShellModal/index.d.ts +10 -0
  12. package/lib/src/components/Shell/index.d.ts +50 -0
  13. package/lib/src/components/Shell/zmodem/index.d.ts +51 -0
  14. package/lib/src/components/YamlForm/index.d.ts +4 -0
  15. package/lib/src/components/index.d.ts +3 -0
  16. package/lib/src/hooks/useEagleForm.d.ts +2 -1
  17. package/lib/src/hooks/useModal.d.ts +0 -0
  18. package/lib/src/hooks/useNamespaceFilter.d.ts +5 -0
  19. package/lib/src/i18n.d.ts +1 -0
  20. package/lib/src/locales/en-US/index.d.ts +1 -0
  21. package/lib/src/model/cronjob-model.d.ts +9 -0
  22. package/lib/src/model/index.d.ts +6 -0
  23. package/lib/src/model/job-model.d.ts +10 -0
  24. package/lib/src/model/pod-metrics-model.d.ts +7 -0
  25. package/lib/src/model/pod-model.d.ts +15 -0
  26. package/lib/src/model/resource-model.d.ts +17 -0
  27. package/lib/src/model/workload-model.d.ts +17 -0
  28. package/lib/src/pages/nodes/hooks/useNodeMetrics.d.ts +17 -0
  29. package/lib/src/pages/storageclasses/list/index.d.ts +3 -0
  30. package/lib/src/pages/storageclasses/show/index.d.ts +3 -0
  31. package/lib/src/plugins/index.d.ts +2 -0
  32. package/lib/src/plugins/model-plugin.d.ts +3 -2
  33. package/lib/src/plugins/relation-plugin.d.ts +1 -2
  34. package/lib/src/types/metric.d.ts +25 -0
  35. package/lib/src/utils/shell.d.ts +16 -0
  36. package/package.json +10 -1
  37. package/lib/src/App.js +0 -91
  38. package/lib/src/Dovetail.js +0 -45
  39. package/lib/src/components/Breadcrumb/index.js +0 -20
  40. package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
  41. package/lib/src/components/ConditionsTable/index.js +0 -1
  42. package/lib/src/components/CreateButton/index.js +0 -10
  43. package/lib/src/components/CronJobDropdown/index.js +0 -26
  44. package/lib/src/components/CronjobJobsTable/index.js +0 -49
  45. package/lib/src/components/DeleteButton/index.js +0 -13
  46. package/lib/src/components/DeleteManyButton/index.js +0 -16
  47. package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
  48. package/lib/src/components/DrawerShow/index.js +0 -1
  49. package/lib/src/components/EditButton/index.js +0 -13
  50. package/lib/src/components/EditField/index.js +0 -47
  51. package/lib/src/components/ErrorContent/index.js +0 -36
  52. package/lib/src/components/EventsTable/EventsTable.js +0 -59
  53. package/lib/src/components/EventsTable/index.js +0 -1
  54. package/lib/src/components/Form/KeyValueListWidget.js +0 -56
  55. package/lib/src/components/Form/MetadataForm.js +0 -9
  56. package/lib/src/components/Form/NameInputWidget.js +0 -50
  57. package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
  58. package/lib/src/components/Form/index.js +0 -4
  59. package/lib/src/components/Form/widget.js +0 -1
  60. package/lib/src/components/FormErrorAlert/index.js +0 -8
  61. package/lib/src/components/FormLayout/index.js +0 -21
  62. package/lib/src/components/FormModal/index.js +0 -51
  63. package/lib/src/components/ImageNames/index.js +0 -14
  64. package/lib/src/components/IngressRulesComponent/index.js +0 -11
  65. package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
  66. package/lib/src/components/IngressRulesTable/index.js +0 -1
  67. package/lib/src/components/K8sDropdown/index.js +0 -31
  68. package/lib/src/components/KeyValue/KeyValue.js +0 -27
  69. package/lib/src/components/KeyValue/index.js +0 -1
  70. package/lib/src/components/KeyValueData/index.js +0 -50
  71. package/lib/src/components/Layout/index.js +0 -39
  72. package/lib/src/components/ListPage/index.js +0 -25
  73. package/lib/src/components/Menu/index.js +0 -36
  74. package/lib/src/components/NamespacesFilter/index.js +0 -34
  75. package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
  76. package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
  77. package/lib/src/components/PageShow/PageShow.js +0 -11
  78. package/lib/src/components/PageShow/index.js +0 -1
  79. package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
  80. package/lib/src/components/PodContainersTable/index.js +0 -1
  81. package/lib/src/components/PodLog/index.js +0 -136
  82. package/lib/src/components/ReferenceLink/index.js +0 -17
  83. package/lib/src/components/RefineForm/RefineFormContent.d.ts +0 -10
  84. package/lib/src/components/RefineForm/RefineFormModal.d.ts +0 -8
  85. package/lib/src/components/RefineForm/RefineFormPage.d.ts +0 -7
  86. package/lib/src/components/RefineForm/index.d.ts +0 -3
  87. package/lib/src/components/RefineForm/type.d.ts +0 -20
  88. package/lib/src/components/RefineForm/useRefineForm.d.ts +0 -10
  89. package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
  90. package/lib/src/components/ResourceCRUD/create/index.js +0 -13
  91. package/lib/src/components/ResourceCRUD/index.js +0 -4
  92. package/lib/src/components/ResourceCRUD/list/index.js +0 -19
  93. package/lib/src/components/ResourceCRUD/show/index.js +0 -6
  94. package/lib/src/components/ResourceLink/index.js +0 -21
  95. package/lib/src/components/ResourceUsageBar/index.js +0 -81
  96. package/lib/src/components/Separator/index.js +0 -11
  97. package/lib/src/components/ShowContent/ShowContent.js +0 -157
  98. package/lib/src/components/ShowContent/fields.js +0 -157
  99. package/lib/src/components/ShowContent/index.js +0 -2
  100. package/lib/src/components/StateTag/StateTag.js +0 -22
  101. package/lib/src/components/StateTag/index.js +0 -1
  102. package/lib/src/components/Table/ErrorContent.js +0 -36
  103. package/lib/src/components/Table/TableToolBar.js +0 -14
  104. package/lib/src/components/Table/TableWidgets.js +0 -28
  105. package/lib/src/components/Table/index.js +0 -69
  106. package/lib/src/components/Tags/index.js +0 -22
  107. package/lib/src/components/Time/index.js +0 -14
  108. package/lib/src/components/WorkloadDropdown/index.js +0 -24
  109. package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
  110. package/lib/src/components/WorkloadPodsTable/index.js +0 -1
  111. package/lib/src/components/WorkloadReplicas/index.js +0 -50
  112. package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
  113. package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
  114. package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
  115. package/lib/src/components/YamlEditor/index.js +0 -1
  116. package/lib/src/components/YamlEditor/style.js +0 -102
  117. package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
  118. package/lib/src/components/YamlForm/index.js +0 -61
  119. package/lib/src/components/index.js +0 -38
  120. package/lib/src/constants/index.js +0 -2
  121. package/lib/src/constants/k8s.js +0 -203
  122. package/lib/src/constants/state.js +0 -15
  123. package/lib/src/contexts/component.js +0 -3
  124. package/lib/src/contexts/configs.js +0 -3
  125. package/lib/src/contexts/global-store.js +0 -3
  126. package/lib/src/contexts/index.js +0 -3
  127. package/lib/src/hooks/index.js +0 -7
  128. package/lib/src/hooks/useDeleteModal/index.js +0 -1
  129. package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
  130. package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
  131. package/lib/src/hooks/useDownloadYAML.js +0 -10
  132. package/lib/src/hooks/useEagleForm.js +0 -177
  133. package/lib/src/hooks/useEagleTable/columns.js +0 -246
  134. package/lib/src/hooks/useEagleTable/index.js +0 -2
  135. package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
  136. package/lib/src/hooks/useEdit.js +0 -19
  137. package/lib/src/hooks/useGlobalStore.js +0 -5
  138. package/lib/src/hooks/useK8sYamlEditor.js +0 -37
  139. package/lib/src/hooks/useOpenForm.js +0 -43
  140. package/lib/src/hooks/useSchema.js +0 -37
  141. package/lib/src/hooks/useSubmitForm.js +0 -42
  142. package/lib/src/i18n.js +0 -19
  143. package/lib/src/index.js +0 -13
  144. package/lib/src/locales/en-US/dovetail.json +0 -18
  145. package/lib/src/locales/en-US/index.js +0 -4
  146. package/lib/src/locales/index.js +0 -6
  147. package/lib/src/locales/zh-CN/dovetail.json +0 -91
  148. package/lib/src/locales/zh-CN/index.js +0 -4
  149. package/lib/src/main.js +0 -12
  150. package/lib/src/models/cronjob-model.js +0 -32
  151. package/lib/src/models/daemonset-model.js +0 -17
  152. package/lib/src/models/deployment-model.js +0 -17
  153. package/lib/src/models/event-model.js +0 -11
  154. package/lib/src/models/index.js +0 -14
  155. package/lib/src/models/ingress-model.js +0 -24
  156. package/lib/src/models/job-model.js +0 -56
  157. package/lib/src/models/network-policy-model.js +0 -10
  158. package/lib/src/models/pod-metrics-model.js +0 -34
  159. package/lib/src/models/pod-model.js +0 -78
  160. package/lib/src/models/resource-model.js +0 -34
  161. package/lib/src/models/server-instance-model.d.ts +0 -10
  162. package/lib/src/models/service-model.js +0 -17
  163. package/lib/src/models/statefulset-model.js +0 -17
  164. package/lib/src/models/types/index.js +0 -1
  165. package/lib/src/models/types/metric.js +0 -1
  166. package/lib/src/models/workload-base-model.js +0 -22
  167. package/lib/src/models/workload-model.js +0 -51
  168. package/lib/src/pages/configmaps/index.js +0 -15
  169. package/lib/src/pages/cronjobs/create/index.js +0 -6
  170. package/lib/src/pages/cronjobs/index.js +0 -3
  171. package/lib/src/pages/cronjobs/list/index.js +0 -42
  172. package/lib/src/pages/cronjobs/show/index.js +0 -16
  173. package/lib/src/pages/daemonsets/create/index.js +0 -6
  174. package/lib/src/pages/daemonsets/index.js +0 -3
  175. package/lib/src/pages/daemonsets/list/index.js +0 -32
  176. package/lib/src/pages/daemonsets/show/index.js +0 -16
  177. package/lib/src/pages/deployments/create/index.js +0 -7
  178. package/lib/src/pages/deployments/index.js +0 -3
  179. package/lib/src/pages/deployments/list/index.js +0 -26
  180. package/lib/src/pages/deployments/show/index.js +0 -16
  181. package/lib/src/pages/ingresses/index.js +0 -26
  182. package/lib/src/pages/jobs/index.js +0 -34
  183. package/lib/src/pages/networkPolicies/index.js +0 -67
  184. package/lib/src/pages/pods/create/index.js +0 -6
  185. package/lib/src/pages/pods/index.js +0 -3
  186. package/lib/src/pages/pods/list/index.js +0 -81
  187. package/lib/src/pages/pods/show/index.js +0 -54
  188. package/lib/src/pages/secrets/index.js +0 -15
  189. package/lib/src/pages/services/index.js +0 -26
  190. package/lib/src/pages/statefulsets/create/index.js +0 -6
  191. package/lib/src/pages/statefulsets/index.js +0 -3
  192. package/lib/src/pages/statefulsets/list/index.js +0 -26
  193. package/lib/src/pages/statefulsets/show/index.js +0 -16
  194. package/lib/src/plugins/index.js +0 -3
  195. package/lib/src/plugins/model-plugin.js +0 -46
  196. package/lib/src/plugins/relation-plugin.js +0 -81
  197. package/lib/src/plugins/type.js +0 -1
  198. package/lib/src/providers/index.js +0 -1
  199. package/lib/src/providers/router-provider/index.js +0 -100
  200. package/lib/src/types/index.js +0 -1
  201. package/lib/src/types/resource.js +0 -12
  202. package/lib/src/utils/addId.js +0 -8
  203. package/lib/src/utils/download.js +0 -9
  204. package/lib/src/utils/error.js +0 -53
  205. package/lib/src/utils/form.js +0 -9
  206. package/lib/src/utils/k8s.js +0 -6
  207. package/lib/src/utils/labels.js +0 -15
  208. package/lib/src/utils/match-selector.js +0 -12
  209. package/lib/src/utils/openapi.js +0 -33
  210. package/lib/src/utils/schema.js +0 -117
  211. package/lib/src/utils/selector.js +0 -12
  212. package/lib/src/utils/string.js +0 -6
  213. package/lib/src/utils/time.js +0 -46
  214. package/lib/src/utils/unit.js +0 -69
  215. package/lib/src/utils/yaml.js +0 -44
  216. package/lib/vite.config.js +0 -60
package/dist/style.css CHANGED
@@ -1508,6 +1508,235 @@
1508
1508
  .e1cjl2b8{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e1cjl2b8 .monaco-editor,.e1cjl2b8 .monaco-scrollable-element,.e1cjl2b8 .overflow-guard > .margin{border-radius:8px;}
1509
1509
  .w1akirqw{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1510
1510
  .t30srnq{line-height:32px !important;}
1511
+ .c154n7ie{max-width:144px;}
1512
+ .c1c9j4da{width:100%;}
1513
+ .cjxv8cf{color:rgba(44,56,82,0.6);}
1514
+ .c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
1515
+ .s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
1516
+
1517
+ .e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
1518
+ .f1nltbcu{margin-bottom:16px;}
1519
+ .f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
1520
+ .m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
1521
+ .exjt4uc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
1522
+ /**
1523
+ * Copyright (c) 2014 The xterm.js authors. All rights reserved.
1524
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
1525
+ * https://github.com/chjj/term.js
1526
+ * @license MIT
1527
+ *
1528
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1529
+ * of this software and associated documentation files (the "Software"), to deal
1530
+ * in the Software without restriction, including without limitation the rights
1531
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1532
+ * copies of the Software, and to permit persons to whom the Software is
1533
+ * furnished to do so, subject to the following conditions:
1534
+ *
1535
+ * The above copyright notice and this permission notice shall be included in
1536
+ * all copies or substantial portions of the Software.
1537
+ *
1538
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1539
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1540
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1541
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1542
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1543
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1544
+ * THE SOFTWARE.
1545
+ *
1546
+ * Originally forked from (with the author's permission):
1547
+ * Fabrice Bellard's javascript vt100 for jslinux:
1548
+ * http://bellard.org/jslinux/
1549
+ * Copyright (c) 2011 Fabrice Bellard
1550
+ * The original design remains. The terminal itself
1551
+ * has been extended to include xterm CSI codes, among
1552
+ * other features.
1553
+ */
1554
+
1555
+ /**
1556
+ * Default styles for xterm.js
1557
+ */
1558
+
1559
+ .xterm {
1560
+ cursor: text;
1561
+ position: relative;
1562
+ user-select: none;
1563
+ -ms-user-select: none;
1564
+ -webkit-user-select: none;
1565
+ }
1566
+
1567
+ .xterm.focus,
1568
+ .xterm:focus {
1569
+ outline: none;
1570
+ }
1571
+
1572
+ .xterm .xterm-helpers {
1573
+ position: absolute;
1574
+ top: 0;
1575
+ /**
1576
+ * The z-index of the helpers must be higher than the canvases in order for
1577
+ * IMEs to appear on top.
1578
+ */
1579
+ z-index: 5;
1580
+ }
1581
+
1582
+ .xterm .xterm-helper-textarea {
1583
+ padding: 0;
1584
+ border: 0;
1585
+ margin: 0;
1586
+ /* Move textarea out of the screen to the far left, so that the cursor is not visible */
1587
+ position: absolute;
1588
+ opacity: 0;
1589
+ left: -9999em;
1590
+ top: 0;
1591
+ width: 0;
1592
+ height: 0;
1593
+ z-index: -5;
1594
+ /** Prevent wrapping so the IME appears against the textarea at the correct position */
1595
+ white-space: nowrap;
1596
+ overflow: hidden;
1597
+ resize: none;
1598
+ }
1599
+
1600
+ .xterm .composition-view {
1601
+ /* TODO: Composition position got messed up somewhere */
1602
+ background: #000;
1603
+ color: #FFF;
1604
+ display: none;
1605
+ position: absolute;
1606
+ white-space: nowrap;
1607
+ z-index: 1;
1608
+ }
1609
+
1610
+ .xterm .composition-view.active {
1611
+ display: block;
1612
+ }
1613
+
1614
+ .xterm .xterm-viewport {
1615
+ /* On OS X this is required in order for the scroll bar to appear fully opaque */
1616
+ background-color: #000;
1617
+ overflow-y: scroll;
1618
+ cursor: default;
1619
+ position: absolute;
1620
+ right: 0;
1621
+ left: 0;
1622
+ top: 0;
1623
+ bottom: 0;
1624
+ }
1625
+
1626
+ .xterm .xterm-screen {
1627
+ position: relative;
1628
+ }
1629
+
1630
+ .xterm .xterm-screen canvas {
1631
+ position: absolute;
1632
+ left: 0;
1633
+ top: 0;
1634
+ }
1635
+
1636
+ .xterm .xterm-scroll-area {
1637
+ visibility: hidden;
1638
+ }
1639
+
1640
+ .xterm-char-measure-element {
1641
+ display: inline-block;
1642
+ visibility: hidden;
1643
+ position: absolute;
1644
+ top: 0;
1645
+ left: -9999em;
1646
+ line-height: normal;
1647
+ }
1648
+
1649
+ .xterm.enable-mouse-events {
1650
+ /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
1651
+ cursor: default;
1652
+ }
1653
+
1654
+ .xterm.xterm-cursor-pointer,
1655
+ .xterm .xterm-cursor-pointer {
1656
+ cursor: pointer;
1657
+ }
1658
+
1659
+ .xterm.column-select.focus {
1660
+ /* Column selection mode */
1661
+ cursor: crosshair;
1662
+ }
1663
+
1664
+ .xterm .xterm-accessibility:not(.debug),
1665
+ .xterm .xterm-message {
1666
+ position: absolute;
1667
+ left: 0;
1668
+ top: 0;
1669
+ bottom: 0;
1670
+ right: 0;
1671
+ z-index: 10;
1672
+ color: transparent;
1673
+ pointer-events: none;
1674
+ }
1675
+
1676
+ .xterm .xterm-accessibility-tree:not(.debug) *::selection {
1677
+ color: transparent;
1678
+ }
1679
+
1680
+ .xterm .xterm-accessibility-tree {
1681
+ user-select: text;
1682
+ white-space: pre;
1683
+ }
1684
+
1685
+ .xterm .live-region {
1686
+ position: absolute;
1687
+ left: -9999px;
1688
+ width: 1px;
1689
+ height: 1px;
1690
+ overflow: hidden;
1691
+ }
1692
+
1693
+ .xterm-dim {
1694
+ /* Dim should not apply to background, so the opacity of the foreground color is applied
1695
+ * explicitly in the generated class and reset to 1 here */
1696
+ opacity: 1 !important;
1697
+ }
1698
+
1699
+ .xterm-underline-1 { text-decoration: underline; }
1700
+ .xterm-underline-2 { text-decoration: double underline; }
1701
+ .xterm-underline-3 { text-decoration: wavy underline; }
1702
+ .xterm-underline-4 { text-decoration: dotted underline; }
1703
+ .xterm-underline-5 { text-decoration: dashed underline; }
1704
+
1705
+ .xterm-overline {
1706
+ text-decoration: overline;
1707
+ }
1708
+
1709
+ .xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
1710
+ .xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
1711
+ .xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
1712
+ .xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
1713
+ .xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
1714
+
1715
+ .xterm-strikethrough {
1716
+ text-decoration: line-through;
1717
+ }
1718
+
1719
+ .xterm-screen .xterm-decoration-container .xterm-decoration {
1720
+ z-index: 6;
1721
+ position: absolute;
1722
+ }
1723
+
1724
+ .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
1725
+ z-index: 7;
1726
+ }
1727
+
1728
+ .xterm-decoration-overview-ruler {
1729
+ z-index: 8;
1730
+ position: absolute;
1731
+ top: 0;
1732
+ right: 0;
1733
+ pointer-events: none;
1734
+ }
1735
+
1736
+ .xterm-decoration-top {
1737
+ z-index: 2;
1738
+ position: relative;
1739
+ }
1511
1740
  .sj0ggy.ant-select{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;min-width:276px;max-width:100%;}.sj0ggy.ant-select .ant-select-selector{display:block;overflow:hidden;padding-right:32px;white-space:nowrap;}.sj0ggy.ant-select .ant-select-selector > span:nth-child(-n + 8):not(.ant-select-selection-search){display:inline-block;max-width:var(--tag-max-width);margin-right:4px;}.sj0ggy.ant-select .ant-select-selection-search{display:none;}.sj0ggy.ant-select .zoom-leave{opacity:0;position:absolute;}
1512
1741
  .d1eo8uqs{border-radius:6px;}
1513
1742
  .s64gojc.s64gojc.ant-input-affix-wrapper{border:unset;border-bottom:1px solid rgba(211,218,235,.6);border-radius:unset;box-shadow:unset;outline:unset;padding:5px 18px;}.s64gojc.s64gojc.ant-input-affix-wrapper:hover,.s64gojc.s64gojc.ant-input-affix-wrapper:focus{box-shadow:unset;outline:unset;}
@@ -1522,17 +1751,6 @@
1522
1751
  .l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
1523
1752
  .tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
1524
1753
  .n1rqcyjn.ant-select{margin-bottom:12px;}
1525
- .c154n7ie{max-width:144px;}
1526
- .c1c9j4da{width:100%;}
1527
- .cjxv8cf{color:rgba(44,56,82,0.6);}
1528
- .c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
1529
- .s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
1530
-
1531
- .e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
1532
- .f1nltbcu{margin-bottom:16px;}
1533
- .f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
1534
- .m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
1535
- .exjt4uc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
1536
1754
  .c1pvtlkp{width:100%;}
1537
1755
  .wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
1538
1756
  .mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { YamlFormProps } from './YamlForm';
3
+ export declare const FullscreenModalStyle: import("@linaria/core").LinariaClassName;
3
4
  export type FormModalProps = {
4
5
  resource?: string;
5
6
  id?: string;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface ModalInfo {
3
+ resource: string;
4
+ id?: string;
5
+ }
6
+ type ModalContextValue = ModalInfo & {
7
+ open: (info: ModalInfo) => void;
8
+ close: () => void;
9
+ };
10
+ export declare const ModalContext: React.Context<ModalContextValue>;
11
+ declare function ModalContextProvider(props: React.PropsWithChildren<Record<string, unknown>>): JSX.Element;
12
+ export default ModalContextProvider;
@@ -2,6 +2,7 @@ import type { NetworkPolicyIngressRule, NetworkPolicyEgressRule } from 'kubernet
2
2
  import React from 'react';
3
3
  type Props = {
4
4
  ingressOrEgress: NetworkPolicyIngressRule[] | NetworkPolicyEgressRule[];
5
+ kind?: string;
5
6
  };
6
- export declare const NetworkPolicyRulesTable: React.FC<Props>;
7
+ export declare const NetworkPolicyRulesViewer: React.FC<Props>;
7
8
  export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { PodModel } from '../../models';
3
+ import { DropdownSize } from '../K8sDropdown';
4
+ type Props<Model extends PodModel> = {
5
+ record: Model;
6
+ size?: DropdownSize;
7
+ };
8
+ export declare function PodDropdown<Model extends PodModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
9
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { SocketStatus } from 'src/components/Shell';
3
+ import '@xterm/xterm/css/xterm.css';
4
+ import { PodModel } from 'src/models/pod-model';
5
+ export declare enum OS {
6
+ Linux = "linux",
7
+ Windows = "windows"
8
+ }
9
+ interface PodShellProps {
10
+ pod: PodModel;
11
+ basePath: string;
12
+ onSocketStatusChange?: (socketStatus: SocketStatus) => void;
13
+ }
14
+ interface PodShellHandler {
15
+ getAllTerminalContents: () => string[];
16
+ }
17
+ export declare const PodShell: React.ForwardRefExoticComponent<PodShellProps & React.RefAttributes<PodShellHandler>>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { SocketStatus } from 'src/components/Shell';
3
+ import { PodModel } from 'src/models';
4
+ import { PodShell } from './PodShell';
5
+ interface PodShellModalProps {
6
+ pod: PodModel;
7
+ onSocketStatusChange?: (socketStatus: SocketStatus) => void;
8
+ }
9
+ export declare function PodShellModal(props: PodShellModalProps): JSX.Element;
10
+ export { PodShell };
@@ -0,0 +1,50 @@
1
+ import { Terminal } from '@xterm/xterm';
2
+ import React from 'react';
3
+ import '@xterm/xterm/css/xterm.css';
4
+ export declare enum SocketStatus {
5
+ Opening = "Opening",
6
+ Open = "Open",
7
+ Disconnected = "Disconnected"
8
+ }
9
+ export type ShellProps = React.PropsWithChildren<{
10
+ url: string;
11
+ protocols?: string;
12
+ encode: (input: string) => string | ArrayBufferLike | Blob | ArrayBufferView;
13
+ decode?: (output: string | ArrayBufferLike | Blob | ArrayBufferView) => string | ArrayBuffer;
14
+ fit?: (layout: {
15
+ rows: number;
16
+ cols: number;
17
+ }) => void;
18
+ onSocketInit?: (socket: WebSocket) => void;
19
+ onTermInit?: (term: Terminal) => void;
20
+ onSocketMessage?: (e: MessageEvent, socket: WebSocket, term: Terminal | null) => void;
21
+ onSocketOpen?: (socket: WebSocket) => void;
22
+ onSocketClose?: (socket: WebSocket, term: Terminal | null) => void;
23
+ onSocketStatusChange?: (socketStatus: SocketStatus) => void;
24
+ }>;
25
+ export interface ShellHandler {
26
+ clear: () => void;
27
+ send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void;
28
+ getAllTerminalContents: () => string[];
29
+ setSocketStatus: React.Dispatch<React.SetStateAction<SocketStatus>>;
30
+ searchNext: (search: string) => void;
31
+ searchPrevious: (search: string) => void;
32
+ }
33
+ export declare const Shell: React.ForwardRefExoticComponent<{
34
+ url: string;
35
+ protocols?: string | undefined;
36
+ encode: (input: string) => string | ArrayBufferLike | Blob | ArrayBufferView;
37
+ decode?: ((output: string | ArrayBufferLike | Blob | ArrayBufferView) => string | ArrayBuffer) | undefined;
38
+ fit?: ((layout: {
39
+ rows: number;
40
+ cols: number;
41
+ }) => void) | undefined;
42
+ onSocketInit?: ((socket: WebSocket) => void) | undefined;
43
+ onTermInit?: ((term: Terminal) => void) | undefined;
44
+ onSocketMessage?: ((e: MessageEvent, socket: WebSocket, term: Terminal | null) => void) | undefined;
45
+ onSocketOpen?: ((socket: WebSocket) => void) | undefined;
46
+ onSocketClose?: ((socket: WebSocket, term: Terminal | null) => void) | undefined;
47
+ onSocketStatusChange?: ((socketStatus: SocketStatus) => void) | undefined;
48
+ } & {
49
+ children?: React.ReactNode;
50
+ } & React.RefAttributes<ShellHandler>>;
@@ -0,0 +1,51 @@
1
+ import { ITerminalAddon, Terminal } from '@xterm/xterm';
2
+ import { Component } from 'react';
3
+ export interface FlowControl {
4
+ limit: number;
5
+ highWater: number;
6
+ lowWater: number;
7
+ pause: () => void;
8
+ resume: () => void;
9
+ }
10
+ interface Props {
11
+ sender: (data: ArrayLike<number>) => void;
12
+ control: FlowControl;
13
+ modalDownload: boolean;
14
+ modalUpload: boolean;
15
+ change: (v: string) => void;
16
+ hideDownload: (v: boolean) => void;
17
+ hideUpload: (v: boolean) => void;
18
+ }
19
+ interface State {
20
+ value: string;
21
+ }
22
+ export declare class ZmodemAddon extends Component<Props, State> implements ITerminalAddon {
23
+ private terminal;
24
+ private keyDispose;
25
+ private sentry;
26
+ private session;
27
+ private written;
28
+ private pending;
29
+ constructor(props: Props);
30
+ render(): JSX.Element;
31
+ state: {
32
+ value: string;
33
+ };
34
+ onInput: (ev: any) => void;
35
+ onSubmit: (ev: any) => void;
36
+ componentWillUnmount(): Promise<void>;
37
+ activate(terminal: Terminal): void;
38
+ dispose(): void;
39
+ consume(data: ArrayBuffer): void;
40
+ private handleError;
41
+ private zmodemInit;
42
+ private zmodemReset;
43
+ private zmodemWrite;
44
+ private zmodemSend;
45
+ private zmodemDetect;
46
+ private sendFile;
47
+ private receiveFile;
48
+ private writeProgress;
49
+ private bytesHuman;
50
+ }
51
+ export {};
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { FormAction } from '@refinedev/core';
2
3
  import useEagleForm from 'src/hooks/useEagleForm';
3
4
  export declare enum SchemaStrategy {
4
5
  Required = "Required",
@@ -7,7 +8,9 @@ export declare enum SchemaStrategy {
7
8
  }
8
9
  export interface YamlFormProps {
9
10
  id?: string;
11
+ action?: FormAction;
10
12
  initialValues?: Record<string, unknown>;
13
+ transformValues?: (values: Record<string, unknown>) => Record<string, unknown>;
11
14
  schemaStrategy?: SchemaStrategy;
12
15
  isShowLayout?: boolean;
13
16
  useFormProps?: Parameters<typeof useEagleForm>[0];
@@ -15,6 +18,7 @@ export interface YamlFormProps {
15
18
  disabled?: boolean;
16
19
  onClick: () => void;
17
20
  }) => void;
21
+ onErrorsChange?: (errors: string[]) => void;
18
22
  onFinish?: () => void;
19
23
  }
20
24
  declare function YamlForm(props: YamlFormProps): JSX.Element;
@@ -7,6 +7,7 @@ export * from './FormLayout';
7
7
  export * from './PodContainersTable';
8
8
  export * from './WorkloadDropdown';
9
9
  export * from './ReplicasDropdown';
10
+ export * from './PodDropdown';
10
11
  export * from './CreateButton';
11
12
  export * from './ImageNames';
12
13
  export * from './ResourceCRUD';
@@ -41,3 +42,5 @@ export * from './NetworkPolicyRulesViewer';
41
42
  export * from './Tabs';
42
43
  export * as ValueDisplay from './ValueDisplay';
43
44
  export * from './ResourceSelect';
45
+ export * from './Shell';
46
+ export * from './PodShellModal';
@@ -20,6 +20,7 @@ export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError ex
20
20
  isSkipSchema?: boolean;
21
21
  };
22
22
  initialValuesForCreate?: Record<string, unknown>;
23
+ transformValues?: (values: Record<string, unknown>) => Record<string, unknown>;
23
24
  };
24
25
  export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
25
26
  form: FormInstance;
@@ -43,5 +44,5 @@ declare const useEagleForm: <TQueryFnData extends Unstructured = Unstructured &
43
44
  [prop: string]: unknown;
44
45
  } = {
45
46
  [prop: string]: unknown;
46
- }, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, queryMeta, mutationMeta, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, overtimeOptions, editorOptions, initialValuesForCreate, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
47
+ }, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action: actionFromProps, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, queryMeta, mutationMeta, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, overtimeOptions, editorOptions, initialValuesForCreate, transformValues, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
47
48
  export default useEagleForm;
File without changes
@@ -0,0 +1,5 @@
1
+ import { CrudFilters } from '@refinedev/core';
2
+ declare function useNamespaceRefineFilter(): {
3
+ permanent: CrudFilters;
4
+ };
5
+ export default useNamespaceRefineFilter;
package/lib/src/i18n.d.ts CHANGED
@@ -158,6 +158,7 @@ export declare const resources: {
158
158
  not_support: string;
159
159
  stopped: string;
160
160
  any_node_ip: string;
161
+ exec_pod: string;
161
162
  };
162
163
  };
163
164
  'zh-CN': {
@@ -155,6 +155,7 @@ declare const _default: {
155
155
  not_support: string;
156
156
  stopped: string;
157
157
  any_node_ip: string;
158
+ exec_pod: string;
158
159
  };
159
160
  };
160
161
  export default _default;
@@ -0,0 +1,9 @@
1
+ import { CronJob } from 'kubernetes-types/batch/v1';
2
+ import { WithId } from '../types';
3
+ import { WorkloadModel } from './workload-model';
4
+ export declare class CronJobModel extends WorkloadModel<CronJob> {
5
+ data: WithId<CronJob>;
6
+ constructor(data: WithId<CronJob>);
7
+ suspend(): WithId<CronJob>;
8
+ resume(): WithId<CronJob>;
9
+ }
@@ -0,0 +1,6 @@
1
+ export * from './job-model';
2
+ export * from './pod-model';
3
+ export * from './pod-metrics-model';
4
+ export * from './resource-model';
5
+ export * from './workload-model';
6
+ export * from './cronjob-model';
@@ -0,0 +1,10 @@
1
+ import { Job } from 'kubernetes-types/batch/v1';
2
+ import { WithId } from '../types';
3
+ import { WorkloadModel } from './workload-model';
4
+ export declare class JobModel extends WorkloadModel<Job> {
5
+ rawYaml: WithId<Job>;
6
+ constructor(rawYaml: WithId<Job>);
7
+ get duration(): number;
8
+ get durationDisplay(): string | undefined;
9
+ get completionsDisplay(): string;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PodMetrics, ResourceQuantity } from 'src/types/metric';
2
+ import { ResourceModel } from './resource-model';
3
+ export declare class PodMetricsModel extends ResourceModel {
4
+ data: PodMetrics;
5
+ usage: ResourceQuantity;
6
+ constructor(data: PodMetrics);
7
+ }
@@ -0,0 +1,15 @@
1
+ import type { Pod } from 'kubernetes-types/core/v1';
2
+ import { ResourceQuantity } from 'src/types/metric';
3
+ import { WithId } from '../types';
4
+ import { WorkloadModel } from './workload-model';
5
+ export declare class PodModel extends WorkloadModel<Pod> {
6
+ rawYaml: WithId<Pod>;
7
+ request: ResourceQuantity;
8
+ limit: ResourceQuantity;
9
+ constructor(rawYaml: WithId<Pod>);
10
+ get imageNames(): string[];
11
+ get restartCount(): number;
12
+ get readyDisplay(): string;
13
+ get readyContainerCount(): number | undefined;
14
+ get containerCount(): number | undefined;
15
+ }
@@ -0,0 +1,17 @@
1
+ import { Resource } from '../types';
2
+ export declare class ResourceModel implements Resource {
3
+ rawYaml: Resource;
4
+ id: Resource['id'];
5
+ apiVersion: Resource['apiVersion'];
6
+ kind: Resource['kind'];
7
+ metadata: Resource['metadata'];
8
+ constructor(rawYaml: Resource);
9
+ get name(): string | undefined;
10
+ get namespace(): string | undefined;
11
+ get labels(): {
12
+ [name: string]: string;
13
+ } | undefined;
14
+ get annotations(): {
15
+ [name: string]: string;
16
+ } | undefined;
17
+ }
@@ -0,0 +1,17 @@
1
+ import type { DaemonSet, Deployment, StatefulSet } from 'kubernetes-types/apps/v1';
2
+ import type { CronJob, Job } from 'kubernetes-types/batch/v1';
3
+ import { Pod } from 'kubernetes-types/core/v1';
4
+ import { WithId } from '../types';
5
+ import { ResourceModel } from './resource-model';
6
+ type WorkloadTypes = Deployment | StatefulSet | Job | DaemonSet | CronJob | Pod;
7
+ export declare class WorkloadModel<T extends WorkloadTypes = WorkloadTypes> extends ResourceModel {
8
+ rawYaml: WithId<T>;
9
+ constructor(rawYaml: WithId<T>);
10
+ get status(): T['status'];
11
+ get spec(): T['spec'];
12
+ get imageNames(): string[];
13
+ get restartCount(): number;
14
+ redeploy(): WithId<T>;
15
+ scale(value: number): WithId<T>;
16
+ }
17
+ export {};
@@ -0,0 +1,17 @@
1
+ type MetricMap = Record<string, string>;
2
+ type NodeMetrics = {
3
+ cpuUsed: MetricMap | null;
4
+ cpuUsage: MetricMap | null;
5
+ };
6
+ export interface PrometheusResponse {
7
+ data: {
8
+ result: {
9
+ metric: Record<string, string>;
10
+ value: [number, string];
11
+ }[];
12
+ };
13
+ }
14
+ export declare function transformMetricResult(response: PrometheusResponse, metricName?: string): Record<string, string>;
15
+ export declare function getMonitorDatas(queries: string[], modelName?: string): Promise<Record<string, string>[]>;
16
+ export declare function useNodeMetrics(): NodeMetrics;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IResourceComponentsProps } from '@refinedev/core';
2
+ import React from 'react';
3
+ export declare const StorageClassList: React.FC<IResourceComponentsProps>;
@@ -0,0 +1,3 @@
1
+ import { IResourceComponentsProps } from '@refinedev/core';
2
+ import React from 'react';
3
+ export declare const StorageClassShow: React.FC<IResourceComponentsProps>;
@@ -1,2 +1,4 @@
1
1
  import { IProviderPlugin } from 'k8s-api-provider';
2
+ export * from './model-plugin';
3
+ export * from './relation-plugin';
2
4
  export declare const ProviderPlugins: IProviderPlugin<import("k8s-api-provider").Unstructured>[];
@@ -1,12 +1,13 @@
1
1
  import { GlobalStore, Unstructured, UnstructuredList, IProviderPlugin, DataList } from 'k8s-api-provider';
2
2
  import { ResourceModel } from '../models';
3
- declare class ModelPlugin implements IProviderPlugin<ResourceModel> {
3
+ export declare class ModelPlugin implements IProviderPlugin<ResourceModel> {
4
4
  _globalStore?: GlobalStore;
5
+ private ModelMap;
5
6
  init(globalStore: GlobalStore): void;
6
7
  processData(res: UnstructuredList): Promise<DataList<ResourceModel<Unstructured>>>;
7
8
  processItem(item: Unstructured): Promise<ResourceModel>;
8
9
  restoreData(res: DataList<ResourceModel>): UnstructuredList;
9
10
  restoreItem(item: ResourceModel): Unstructured;
11
+ setModelMap(key: string, model: ResourceModel): void;
10
12
  }
11
13
  export declare const modelPlugin: ModelPlugin;
12
- export {};