@kong-ui-public/entities-shared 3.68.2-pr.3869.e876c8c8a.0 → 3.68.2

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 (144) hide show
  1. package/dist/_plugin-vue_export-helper-BoB6meVO.cjs +1 -0
  2. package/dist/_plugin-vue_export-helper-cPvCgR8H.js +695 -0
  3. package/dist/deck-editor.cjs.js +1 -0
  4. package/dist/deck-editor.es.js +86 -0
  5. package/dist/entities-shared.cjs.js +79 -0
  6. package/dist/entities-shared.es.js +5348 -0
  7. package/dist/style.css +1 -0
  8. package/dist/types/components/common/DeckCallout.vue.d.ts +10 -0
  9. package/dist/types/components/common/DeckCallout.vue.d.ts.map +1 -0
  10. package/dist/types/components/common/DeckCodeBlock.vue.d.ts +13 -0
  11. package/dist/types/components/common/DeckCodeBlock.vue.d.ts.map +1 -0
  12. package/dist/types/components/common/DeckCodeBlockInternal.vue.d.ts +13 -0
  13. package/dist/types/components/common/DeckCodeBlockInternal.vue.d.ts.map +1 -0
  14. package/dist/types/components/common/DeckCommandEditor.vue.d.ts +16 -0
  15. package/dist/types/components/common/DeckCommandEditor.vue.d.ts.map +1 -0
  16. package/dist/types/components/common/DeckCommandEditorLoading.vue.d.ts +4 -0
  17. package/dist/types/components/common/DeckCommandEditorLoading.vue.d.ts.map +1 -0
  18. package/dist/types/components/common/GeneratePatModal.vue.d.ts +14 -0
  19. package/dist/types/components/common/GeneratePatModal.vue.d.ts.map +1 -0
  20. package/dist/types/components/common/JsonCodeBlock.vue.d.ts +70 -0
  21. package/dist/types/components/common/JsonCodeBlock.vue.d.ts.map +1 -0
  22. package/dist/types/components/common/SensitiveInput.vue.d.ts +73 -0
  23. package/dist/types/components/common/SensitiveInput.vue.d.ts.map +1 -0
  24. package/dist/types/components/common/TableTags.vue.d.ts +27 -0
  25. package/dist/types/components/common/TableTags.vue.d.ts.map +1 -0
  26. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts +58 -0
  27. package/dist/types/components/common/TerraformCodeBlock.vue.d.ts.map +1 -0
  28. package/dist/types/components/common/YamlCodeBlock.vue.d.ts +54 -0
  29. package/dist/types/components/common/YamlCodeBlock.vue.d.ts.map +1 -0
  30. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +213 -0
  31. package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -0
  32. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts +58 -0
  33. package/dist/types/components/entity-base-config-card/ConfigCardItem.vue.d.ts.map +1 -0
  34. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts +335 -0
  35. package/dist/types/components/entity-base-config-card/EntityBaseConfigCard.vue.d.ts.map +1 -0
  36. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts +20 -0
  37. package/dist/types/components/entity-base-config-card/InternalLinkItem.vue.d.ts.map +1 -0
  38. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts +35 -0
  39. package/dist/types/components/entity-base-config-card/JsonCardItem.vue.d.ts.map +1 -0
  40. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts +16 -0
  41. package/dist/types/components/entity-base-config-card/StatusBadge.vue.d.ts.map +1 -0
  42. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +364 -0
  43. package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -0
  44. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts +326 -0
  45. package/dist/types/components/entity-base-table/EntityBaseTable.vue.d.ts.map +1 -0
  46. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts +45 -0
  47. package/dist/types/components/entity-base-table/EntityBaseTableCell.vue.d.ts.map +1 -0
  48. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts +135 -0
  49. package/dist/types/components/entity-delete-modal/EntityDeleteModal.vue.d.ts.map +1 -0
  50. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts +117 -0
  51. package/dist/types/components/entity-empty-state/EntityEmptyState.vue.d.ts.map +1 -0
  52. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts +38 -0
  53. package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -0
  54. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts +22 -0
  55. package/dist/types/components/entity-form-block/EntityFormBlock.vue.d.ts.map +1 -0
  56. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts +77 -0
  57. package/dist/types/components/entity-form-section/EntityFormSection.vue.d.ts.map +1 -0
  58. package/dist/types/components/entity-link/EntityLink.vue.d.ts +50 -0
  59. package/dist/types/components/entity-link/EntityLink.vue.d.ts.map +1 -0
  60. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts +65 -0
  61. package/dist/types/components/entity-toggle-modal/EntityToggleModal.vue.d.ts.map +1 -0
  62. package/dist/types/components/onboarding-card/OnboardingCard.vue.d.ts +15 -0
  63. package/dist/types/components/onboarding-card/OnboardingCard.vue.d.ts.map +1 -0
  64. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts +56 -0
  65. package/dist/types/components/permissions-wrapper/PermissionsWrapper.vue.d.ts.map +1 -0
  66. package/dist/types/composables/index.d.ts +49 -0
  67. package/dist/types/composables/index.d.ts.map +1 -0
  68. package/dist/types/composables/useAxios.d.ts +5 -0
  69. package/dist/types/composables/useAxios.d.ts.map +1 -0
  70. package/dist/types/composables/useDebouncedFilter.d.ts +11 -0
  71. package/dist/types/composables/useDebouncedFilter.d.ts.map +1 -0
  72. package/dist/types/composables/useDeckOptions.d.ts +13 -0
  73. package/dist/types/composables/useDeckOptions.d.ts.map +1 -0
  74. package/dist/types/composables/useDeleteUrlBuilder.d.ts +3 -0
  75. package/dist/types/composables/useDeleteUrlBuilder.d.ts.map +1 -0
  76. package/dist/types/composables/useErrors.d.ts +11 -0
  77. package/dist/types/composables/useErrors.d.ts.map +1 -0
  78. package/dist/types/composables/useExternalLinkCreator.d.ts +2 -0
  79. package/dist/types/composables/useExternalLinkCreator.d.ts.map +1 -0
  80. package/dist/types/composables/useFetchUrlBuilder.d.ts +6 -0
  81. package/dist/types/composables/useFetchUrlBuilder.d.ts.map +1 -0
  82. package/dist/types/composables/useFetcher.d.ts +40 -0
  83. package/dist/types/composables/useFetcher.d.ts.map +1 -0
  84. package/dist/types/composables/useGatewayFeatureSupported.d.ts +11 -0
  85. package/dist/types/composables/useGatewayFeatureSupported.d.ts.map +1 -0
  86. package/dist/types/composables/useHelpers.d.ts +12 -0
  87. package/dist/types/composables/useHelpers.d.ts.map +1 -0
  88. package/dist/types/composables/useI18n.d.ts +9 -0
  89. package/dist/types/composables/useI18n.d.ts.map +1 -0
  90. package/dist/types/composables/useManagedByColumn.d.ts +20 -0
  91. package/dist/types/composables/useManagedByColumn.d.ts.map +1 -0
  92. package/dist/types/composables/useManagedByEnabled.d.ts +11 -0
  93. package/dist/types/composables/useManagedByEnabled.d.ts.map +1 -0
  94. package/dist/types/composables/useSchema.d.ts +12 -0
  95. package/dist/types/composables/useSchema.d.ts.map +1 -0
  96. package/dist/types/composables/useStringHelpers.d.ts +5 -0
  97. package/dist/types/composables/useStringHelpers.d.ts.map +1 -0
  98. package/dist/types/composables/useTableState.d.ts +15 -0
  99. package/dist/types/composables/useTableState.d.ts.map +1 -0
  100. package/dist/types/composables/useTruncationDetector.d.ts +12 -0
  101. package/dist/types/composables/useTruncationDetector.d.ts.map +1 -0
  102. package/dist/types/composables/useValidators.d.ts +8 -0
  103. package/dist/types/composables/useValidators.d.ts.map +1 -0
  104. package/dist/types/constants.d.ts +53 -0
  105. package/dist/types/constants.d.ts.map +1 -0
  106. package/dist/types/deck-editor.d.ts +18 -0
  107. package/dist/types/deck-editor.d.ts.map +1 -0
  108. package/dist/types/index.d.ts +35 -0
  109. package/dist/types/index.d.ts.map +1 -0
  110. package/dist/types/types/app-config.d.ts +43 -0
  111. package/dist/types/types/app-config.d.ts.map +1 -0
  112. package/dist/types/types/base.d.ts +12 -0
  113. package/dist/types/types/base.d.ts.map +1 -0
  114. package/dist/types/types/deck.d.ts +43 -0
  115. package/dist/types/types/deck.d.ts.map +1 -0
  116. package/dist/types/types/entity-base-config-card.d.ts +145 -0
  117. package/dist/types/types/entity-base-config-card.d.ts.map +1 -0
  118. package/dist/types/types/entity-base-form.d.ts +49 -0
  119. package/dist/types/types/entity-base-form.d.ts.map +1 -0
  120. package/dist/types/types/entity-base-table.d.ts +79 -0
  121. package/dist/types/types/entity-base-table.d.ts.map +1 -0
  122. package/dist/types/types/entity-delete-modal.d.ts +28 -0
  123. package/dist/types/types/entity-delete-modal.d.ts.map +1 -0
  124. package/dist/types/types/entity-empty-state.d.ts +7 -0
  125. package/dist/types/types/entity-empty-state.d.ts.map +1 -0
  126. package/dist/types/types/entity-filter.d.ts +48 -0
  127. package/dist/types/types/entity-filter.d.ts.map +1 -0
  128. package/dist/types/types/entity-link.d.ts +6 -0
  129. package/dist/types/types/entity-link.d.ts.map +1 -0
  130. package/dist/types/types/index.d.ts +14 -0
  131. package/dist/types/types/index.d.ts.map +1 -0
  132. package/dist/types/types/onboarding-card.d.ts +37 -0
  133. package/dist/types/types/onboarding-card.d.ts.map +1 -0
  134. package/dist/types/types/sensitive-input.d.ts +9 -0
  135. package/dist/types/types/sensitive-input.d.ts.map +1 -0
  136. package/dist/types/types/utils.d.ts +13 -0
  137. package/dist/types/types/utils.d.ts.map +1 -0
  138. package/dist/types/utils/code-block.d.ts +3 -0
  139. package/dist/types/utils/code-block.d.ts.map +1 -0
  140. package/dist/types/utils/managed-by.d.ts +25 -0
  141. package/dist/types/utils/managed-by.d.ts.map +1 -0
  142. package/dist/types/utils/shiki.d.ts +4 -0
  143. package/dist/types/utils/shiki.d.ts.map +1 -0
  144. package/package.json +5 -5
@@ -0,0 +1,48 @@
1
+ import type { SelectItem, SelectFilterFunctionParams } from '@kong/kongponents';
2
+ import type { Field } from './index';
3
+ /** Base filter configuration */
4
+ interface BaseFilterConfig {
5
+ /** If true, the filter will be an exact match filter, otherwise it will be a fuzzy match filter */
6
+ isExactMatch: boolean;
7
+ }
8
+ /**
9
+ * Exact match filter configuration
10
+ * FIXME: "Exact match" here is no longer accurate, in reality it works as an indicator
11
+ * to use a single input field for filtering.
12
+ */
13
+ export interface ExactMatchFilterConfig extends BaseFilterConfig {
14
+ isExactMatch: true;
15
+ /** Placeholder for the exact match filter input */
16
+ placeholder: string;
17
+ }
18
+ /** Fuzzy match filter fields */
19
+ export interface FilterFields {
20
+ [key: string]: Field;
21
+ }
22
+ /** Fuzzy match filter schema */
23
+ export interface FilterSchema {
24
+ [key: string]: {
25
+ /** Used in the filter dropdown to determine the type of input */
26
+ type: 'select' | 'number' | 'text';
27
+ /** Support customizing the filter function of the select input. */
28
+ filterFunction?: (params: SelectFilterFunctionParams<string | number>) => SelectItem[];
29
+ /** Options for the select input, only used if type is 'select' */
30
+ values?: string[] | SelectItem[];
31
+ /** Allow users to create custom items in the select input, only used if type is 'select' */
32
+ enableItemCreation?: boolean;
33
+ };
34
+ }
35
+ /**
36
+ * Fuzzy match filter configuration
37
+ * FIXME: "Fuzzy match" here is no longer accurate, in reality it works as an indicator
38
+ * to use a relatively complex form for filtering.
39
+ */
40
+ export interface FuzzyMatchFilterConfig extends BaseFilterConfig {
41
+ isExactMatch: false;
42
+ /** Fuzzy match filter fields */
43
+ fields: FilterFields;
44
+ /** Fuzzy match filter schema */
45
+ schema: FilterSchema;
46
+ }
47
+ export {};
48
+ //# sourceMappingURL=entity-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-filter.d.ts","sourceRoot":"","sources":["../../../src/types/entity-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,gCAAgC;AAChC,UAAU,gBAAgB;IACxB,mGAAmG;IACnG,YAAY,EAAE,OAAO,CAAA;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,YAAY,EAAE,IAAI,CAAA;IAClB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CACrB;AAED,gCAAgC;AAChC,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,iEAAiE;QACjE,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;QAClC,mEAAmE;QACnE,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,0BAA0B,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,UAAU,EAAE,CAAA;QACtF,kEAAkE;QAClE,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAAA;QAChC,4FAA4F;QAC5F,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAC7B,CAAA;CACF;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,YAAY,EAAE,KAAK,CAAA;IACnB,gCAAgC;IAChC,MAAM,EAAE,YAAY,CAAA;IACpB,gCAAgC;IAChC,MAAM,EAAE,YAAY,CAAA;CACrB"}
@@ -0,0 +1,6 @@
1
+ export interface EntityLinkData {
2
+ id: string;
3
+ label?: string;
4
+ deleted?: boolean;
5
+ }
6
+ //# sourceMappingURL=entity-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-link.d.ts","sourceRoot":"","sources":["../../../src/types/entity-link.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,14 @@
1
+ export * from './app-config';
2
+ export * from './base';
3
+ export * from './deck';
4
+ export * from './onboarding-card';
5
+ export * from './entity-delete-modal';
6
+ export * from './entity-base-form';
7
+ export * from './entity-base-table';
8
+ export * from './entity-base-config-card';
9
+ export * from './entity-filter';
10
+ export * from './entity-link';
11
+ export * from './entity-empty-state';
12
+ export * from './sensitive-input';
13
+ export * from './utils';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,SAAS,CAAA"}
@@ -0,0 +1,37 @@
1
+ import type { Component } from 'vue';
2
+ import type { RouteLocationRaw } from 'vue-router';
3
+ /**
4
+ * Color scheme for an `OnboardingCardItem`'s icon box, akin to `KBadge`'s `appearance` prop.
5
+ */
6
+ export type OnboardingCardItemAppearance = 'success' | 'decorative-purple' | 'decorative-aqua' | 'neutral';
7
+ export interface OnboardingCardItem {
8
+ /** Icon component from `@kong/icons`. Optional - omit to render without an icon. */
9
+ icon?: Component;
10
+ /** Icon box color scheme. Defaults to `success`. */
11
+ appearance?: OnboardingCardItemAppearance;
12
+ title: string;
13
+ description?: string;
14
+ /**
15
+ * Icon component from `@kong/icons` rendered at the trailing edge of the item, e.g. an
16
+ * external-link indicator for items with an `href`. Optional - omit to render without one.
17
+ */
18
+ appendIcon?: Component;
19
+ /**
20
+ * Named route (or full route location) to navigate to when the item is clicked.
21
+ * Takes precedence over `href` and `onClick` if more than one is provided.
22
+ */
23
+ to?: RouteLocationRaw;
24
+ /**
25
+ * External URL to link to when the item is clicked, rendered as an `<a>` opening in a new tab.
26
+ * Takes precedence over `onClick` if both are provided. Ignored if `to` is also provided.
27
+ */
28
+ href?: string;
29
+ /** Click handler, used when the item does not navigate to a route or link to a URL. */
30
+ onClick?: () => void;
31
+ /**
32
+ * Defaults to icon left and text right.
33
+ * `vertical` stacks the icon, title, and description vertically and centers them.
34
+ */
35
+ variant?: 'default' | 'vertical';
36
+ }
37
+ //# sourceMappingURL=onboarding-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onboarding-card.d.ts","sourceRoot":"","sources":["../../../src/types/onboarding-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,SAAS,CAAA;AAE1G,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,oDAAoD;IACpD,UAAU,CAAC,EAAE,4BAA4B,CAAA;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAA;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uFAAuF;IACvF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;CACjC"}
@@ -0,0 +1,9 @@
1
+ export interface SensitiveInputLabels {
2
+ /** Label for the "Rotate key" action shown in the masked (edit) state. */
3
+ rotateLabel?: string;
4
+ /** Label for the "Generate key" action shown when `generateKey` is provided. */
5
+ generateLabel?: string;
6
+ /** Text for the one-time hint banner shown when `showOneTimeHint` is `true`. */
7
+ hintLabel?: string;
8
+ }
9
+ //# sourceMappingURL=sensitive-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sensitive-input.d.ts","sourceRoot":"","sources":["../../../src/types/sensitive-input.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gFAAgF;IAChF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,13 @@
1
+ import type { Ref } from 'vue';
2
+ export type MaybeRef<T> = T | Ref<T>;
3
+ export interface FilterKeys {
4
+ fetchedItemsKey: string;
5
+ searchKeys: string[];
6
+ /**
7
+ * The key to look for while doing exact match
8
+ *
9
+ * @default 'id'
10
+ */
11
+ exactMatchKey?: string;
12
+ }
13
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAA;AAEpC,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,EAAE,CAAA;IAEpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
@@ -0,0 +1,3 @@
1
+ import type { CodeBlockEventData } from '@kong/kongponents';
2
+ export declare function highlightCodeBlock({ codeElement, code, language }: CodeBlockEventData): void;
3
+ //# sourceMappingURL=code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../../src/utils/code-block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAG3D,wBAAgB,kBAAkB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,kBAAkB,QAerF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Ownership metadata Konnect attaches to control plane entities that were created
3
+ * by something other than a human in the UI (Terraform, decK, the operator, ...).
4
+ */
5
+ export type ManagedBy = Record<string, string> | null;
6
+ /** Owners report themselves under `tool` (external) or `service` (Konnect). */
7
+ export declare const getManagedByOwner: (managedBy?: ManagedBy) => string | null;
8
+ /** Shown for a known owner that we have no friendly name for. */
9
+ export declare const CUSTOM_OWNER_LABEL = "Custom";
10
+ export declare const MANAGED_BY_LABELS: Record<string, string>;
11
+ /**
12
+ * Resolve `managed_by` to a display label.
13
+ * Returns `null` when there is no owner, so callers can render their own empty state
14
+ * rather than a misleading label.
15
+ */
16
+ export declare const getManagedByLabel: (managedBy?: ManagedBy) => string | null;
17
+ /**
18
+ * The "Managed By" heading, shared by the detail cards and the list column so the two
19
+ * surfaces cannot drift apart. Entity packages use this instead of a per-package key.
20
+ *
21
+ * Memoized because callers read it from inside computeds, and `createI18n` re-flattens the
22
+ * whole message catalogue on every call.
23
+ */
24
+ export declare const getManagedByFieldLabel: () => string;
25
+ //# sourceMappingURL=managed-by.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"managed-by.d.ts","sourceRoot":"","sources":["../../../src/utils/managed-by.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;AAErD,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,GAAI,YAAY,SAAS,KAAG,MAAM,GAAG,IACpB,CAAA;AAE/C,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAE1C,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOpD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,SAAS,KAAG,MAAM,GAAG,IAUlE,CAAA;AAID;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAMzC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CodeToHastOptions } from '@shikijs/core';
2
+ declare function codeToHtml(code: string, options: CodeToHastOptions): string;
3
+ export { codeToHtml };
4
+ //# sourceMappingURL=shiki.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shiki.d.ts","sourceRoot":"","sources":["../../../src/utils/shiki.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAqBvE,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAEpE;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-shared",
3
- "version": "3.68.2-pr.3869.e876c8c8a.0",
3
+ "version": "3.68.2",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-shared.umd.js",
6
6
  "module": "./dist/entities-shared.es.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@kong-ui-public/i18n": "^2.5.1",
30
- "@kong-ui-public/misc-widgets": "^2.6.4-pr.3869.e876c8c8a.0",
31
- "@kong-ui-public/monaco-editor": "^0.26.1-pr.3869.e876c8c8a.0",
30
+ "@kong-ui-public/misc-widgets": "^2.6.4",
31
+ "@kong-ui-public/monaco-editor": "^0.26.1",
32
32
  "@kong/icons": "^1.58.0",
33
33
  "@kong/kongponents": "^9.64.0",
34
34
  "@shikijs/core": "^4.2.0",
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@kong-ui-public/i18n": "^2.5.1",
47
- "@kong-ui-public/misc-widgets": "^2.6.4-pr.3869.e876c8c8a.0",
48
- "@kong-ui-public/monaco-editor": "^0.26.1-pr.3869.e876c8c8a.0",
47
+ "@kong-ui-public/misc-widgets": "^2.6.4",
48
+ "@kong-ui-public/monaco-editor": "^0.26.1",
49
49
  "@kong/design-tokens": "3.3.1",
50
50
  "@kong/icons": "^1.62.1",
51
51
  "@kong/kongponents": "9.64.18",