@phis/ui 0.6.3 → 0.6.5

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 (168) hide show
  1. package/components/cms/phi-cms-layout-renderer.js +11 -2
  2. package/components/controls/phi-multi-select-control.js +4 -2
  3. package/components/controls/phi-options-provider.d.ts +1 -0
  4. package/components/controls/phi-options-provider.js +1 -0
  5. package/components/controls/phi-segmented-control.js +15 -1
  6. package/components/controls/phi-select-control.d.ts +21 -0
  7. package/components/controls/phi-select-control.js +2 -2
  8. package/components/controls/phi-status-dot-control.d.ts +15 -0
  9. package/components/controls/phi-status-dot-control.js +25 -0
  10. package/components/controls/phi-table-control.js +8 -1
  11. package/components/controls/phi-tree-control.js +5 -4
  12. package/components/controls/phi-tree-select-control.js +1 -0
  13. package/components/layouts/clients/phi-split-card-half.d.ts +4 -1
  14. package/components/layouts/clients/phi-split-card-half.js +2 -2
  15. package/components/layouts/clients/phi-split-card-layout-client.d.ts +6 -3
  16. package/components/layouts/clients/phi-split-card-layout-client.js +5 -3
  17. package/components/layouts/clients/phi-three-column-layout-client.d.ts +20 -1
  18. package/components/layouts/clients/phi-three-column-layout-client.js +31 -15
  19. package/components/layouts/layout-definitions.d.ts +96 -0
  20. package/components/layouts/layout-definitions.js +40 -2
  21. package/components/layouts/plugins/split-card-layout-plugin.js +1 -1
  22. package/components/layouts/plugins/three-column-layout-plugin.js +1 -1
  23. package/components/layouts/split-card-geometry.d.ts +9 -4
  24. package/components/layouts/split-card-geometry.js +29 -13
  25. package/components/media/media-folder-options.d.ts +10 -0
  26. package/components/media/media-folder-options.js +14 -0
  27. package/components/shell/phi-antd-icon.d.ts +1 -0
  28. package/components/shell/phi-antd-icon.js +3 -0
  29. package/components/widgets/inspector-field-row.js +4 -1
  30. package/components/widgets/label-sets/admin-users.d.ts +3 -0
  31. package/components/widgets/label-sets/admin-users.js +8 -2
  32. package/components/widgets/label-sets/gallery.js +2 -2
  33. package/components/widgets/label-sets/inspector.js +4 -0
  34. package/components/widgets/label-sets/observability-logs.js +2 -2
  35. package/components/widgets/label-sets/profile.js +2 -1
  36. package/components/widgets/label-types/gallery.d.ts +2 -3
  37. package/components/widgets/label-types/gallery.js +1 -4
  38. package/components/widgets/label-types/inspector.d.ts +4 -0
  39. package/components/widgets/label-types/inspector.js +2 -0
  40. package/components/widgets/shared/markdown-image-vocabulary.js +1 -1
  41. package/constants/cms-layout-proportions.d.ts +6 -0
  42. package/constants/cms-layout-proportions.js +17 -0
  43. package/constants/runtime-module-ownership.js +1 -0
  44. package/helpers/page-reference-tree.js +8 -0
  45. package/helpers/table-action-links.d.ts +11 -0
  46. package/helpers/table-action-links.js +14 -0
  47. package/helpers/table-action-row-link.d.ts +8 -0
  48. package/helpers/table-action-row-link.js +14 -0
  49. package/package.json +2 -2
  50. package/plugins/factories/widget-renderers.d.ts +7 -1
  51. package/plugins/factories/widget-renderers.js +12 -2
  52. package/plugins/runtime-modules/asset/authoring-widgets.js +2 -2
  53. package/plugins/runtime-modules/asset/data-providers.js +1 -1
  54. package/plugins/runtime-modules/asset/services/options.js +7 -11
  55. package/plugins/runtime-modules/asset/widgets/area-upload/plugin.js +0 -2
  56. package/plugins/runtime-modules/asset/widgets/asset-focal-rect/plugin.js +0 -2
  57. package/plugins/runtime-modules/asset/widgets/image-inspector/plugin.js +0 -2
  58. package/plugins/runtime-modules/asset/widgets/media-picker/plugin.js +0 -2
  59. package/plugins/runtime-modules/asset/widgets.js +4 -4
  60. package/plugins/runtime-modules/auth/authoring-widgets.js +4 -8
  61. package/plugins/runtime-modules/auth/services/installations-table.js +3 -1
  62. package/plugins/runtime-modules/auth/widgets/auth-workflow/plugin.js +0 -6
  63. package/plugins/runtime-modules/auth/widgets/logout/plugin.js +0 -2
  64. package/plugins/runtime-modules/auth/widgets/security/plugin.js +0 -2
  65. package/plugins/runtime-modules/auth/widgets.js +5 -3
  66. package/plugins/runtime-modules/avatar/authoring-widgets.js +2 -2
  67. package/plugins/runtime-modules/avatar/widgets/account-avatar/plugin.js +0 -2
  68. package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/plugin.js +0 -2
  69. package/plugins/runtime-modules/avatar/widgets.js +2 -2
  70. package/plugins/runtime-modules/builder/authoring-widgets.js +1 -1
  71. package/plugins/runtime-modules/builder/clients/inspector-choice-cascader.d.ts +28 -0
  72. package/plugins/runtime-modules/builder/clients/inspector-choice-cascader.js +98 -0
  73. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +27 -3
  74. package/plugins/runtime-modules/builder/clients/inspector-record-field-options.d.ts +17 -0
  75. package/plugins/runtime-modules/builder/clients/inspector-record-field-options.js +21 -0
  76. package/plugins/runtime-modules/builder/clients/inspector-translate-switch.d.ts +24 -0
  77. package/plugins/runtime-modules/builder/clients/inspector-translate-switch.js +29 -0
  78. package/plugins/runtime-modules/builder/clients/layout-inspector.d.ts +1 -1
  79. package/plugins/runtime-modules/builder/clients/layout-inspector.js +4 -2
  80. package/plugins/runtime-modules/builder/clients/widget-inspector.d.ts +1 -1
  81. package/plugins/runtime-modules/builder/clients/widget-inspector.js +6 -6
  82. package/plugins/runtime-modules/builder/plugin-meta-labels.js +17 -0
  83. package/plugins/runtime-modules/builder/render-root-node-scaffold.js +12 -2
  84. package/plugins/runtime-modules/builder/widgets/structure-region/plugin.js +0 -2
  85. package/plugins/runtime-modules/builder/widgets.js +3 -3
  86. package/plugins/runtime-modules/contracts.js +8 -4
  87. package/plugins/runtime-modules/core/authoring-widgets.js +2 -2
  88. package/plugins/runtime-modules/core/data-providers.d.ts +7 -3
  89. package/plugins/runtime-modules/core/data-providers.js +11 -1
  90. package/plugins/runtime-modules/core/definition.d.ts +7 -3
  91. package/plugins/runtime-modules/core/widgets/cascader/authoring.d.ts +1 -1
  92. package/plugins/runtime-modules/core/widgets/draft-status/client.d.ts +2 -1
  93. package/plugins/runtime-modules/core/widgets/draft-status/client.js +4 -3
  94. package/plugins/runtime-modules/core/widgets/gallery/authoring.js +6 -8
  95. package/plugins/runtime-modules/core/widgets/gallery/client.js +4 -0
  96. package/plugins/runtime-modules/core/widgets/gallery/config.js +1 -1
  97. package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +5 -1
  98. package/plugins/runtime-modules/core/widgets/gallery/server.js +8 -4
  99. package/plugins/runtime-modules/core/widgets/image/config.js +1 -1
  100. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +11 -0
  101. package/plugins/runtime-modules/core/widgets/markdown/config.js +24 -22
  102. package/plugins/runtime-modules/core/widgets/simple-text/client.d.ts +9 -5
  103. package/plugins/runtime-modules/core/widgets/simple-text/client.js +5 -7
  104. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +63 -4
  105. package/plugins/runtime-modules/core/widgets/simple-text/config.js +45 -11
  106. package/plugins/runtime-modules/core/widgets/simple-text/editor.js +2 -2
  107. package/plugins/runtime-modules/core/widgets/simple-text/plugin.d.ts +13 -0
  108. package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +23 -4
  109. package/plugins/runtime-modules/core/widgets/simple-text/server.d.ts +4 -2
  110. package/plugins/runtime-modules/core/widgets/simple-text/server.js +7 -6
  111. package/plugins/runtime-modules/core/widgets/table/client.js +4 -4
  112. package/plugins/runtime-modules/core/widgets/table/config.js +11 -3
  113. package/plugins/runtime-modules/core/widgets/table/plugin.js +21 -1
  114. package/plugins/runtime-modules/core/widgets/thread-conversation/plugin.js +0 -2
  115. package/plugins/runtime-modules/core/widgets/tree/config.js +2 -1
  116. package/plugins/runtime-modules/core/widgets/tree/plugin.js +16 -1
  117. package/plugins/runtime-modules/core/widgets.js +1 -1
  118. package/plugins/runtime-modules/editor/services/releases-table.js +4 -1
  119. package/plugins/runtime-modules/observability/data-providers.js +1 -1
  120. package/plugins/runtime-modules/observability/services/table.js +3 -1
  121. package/plugins/runtime-modules/theme/authoring-widgets.js +5 -5
  122. package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +0 -5
  123. package/plugins/runtime-modules/theme/widgets.js +4 -4
  124. package/plugins/runtime-modules/user-management/addon-roles.d.ts +28 -7
  125. package/plugins/runtime-modules/user-management/addon-roles.js +42 -17
  126. package/plugins/runtime-modules/user-management/client-data-providers.js +6 -0
  127. package/plugins/runtime-modules/user-management/data-providers.js +11 -2
  128. package/plugins/runtime-modules/user-management/forms.js +40 -1
  129. package/plugins/runtime-modules/user-management/ids.d.ts +1 -0
  130. package/plugins/runtime-modules/user-management/ids.js +1 -0
  131. package/plugins/runtime-modules/user-management/services/options.d.ts +14 -3
  132. package/plugins/runtime-modules/user-management/services/options.js +52 -16
  133. package/plugins/runtime-modules/user-management/services/table.js +11 -25
  134. package/plugins/runtime-modules/user-management/services/users-query.d.ts +9 -0
  135. package/plugins/runtime-modules/user-management/services/users-query.js +29 -0
  136. package/plugins/runtime-modules/video/widgets/embed/plugin.js +0 -2
  137. package/plugins/runtime-modules/video/widgets.js +1 -1
  138. package/styles/layout.css +4 -4
  139. package/types/cms-config.d.ts +12 -4
  140. package/types/cms-config.js +3 -0
  141. package/types/cms-plugins.d.ts +26 -4
  142. package/types/core-widget-placements.d.ts +4 -4
  143. package/types/table-widget.d.ts +17 -1
  144. package/types/tree.d.ts +2 -0
  145. package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.d.ts +0 -2
  146. package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.js +0 -6
  147. package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.d.ts +0 -2
  148. package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.js +0 -6
  149. package/plugins/runtime-modules/auth/widgets/auth-methods/authoring.d.ts +0 -7
  150. package/plugins/runtime-modules/auth/widgets/auth-methods/authoring.js +0 -12
  151. package/plugins/runtime-modules/auth/widgets/auth-workflow/authoring.d.ts +0 -7
  152. package/plugins/runtime-modules/auth/widgets/auth-workflow/authoring.js +0 -12
  153. package/plugins/runtime-modules/auth/widgets/logout/authoring.d.ts +0 -3
  154. package/plugins/runtime-modules/auth/widgets/logout/authoring.js +0 -8
  155. package/plugins/runtime-modules/auth/widgets/security/authoring.d.ts +0 -3
  156. package/plugins/runtime-modules/auth/widgets/security/authoring.js +0 -8
  157. package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.d.ts +0 -2
  158. package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.js +0 -6
  159. package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.d.ts +0 -2
  160. package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.js +0 -6
  161. package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.d.ts +0 -22
  162. package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.js +0 -8
  163. package/plugins/runtime-modules/core/widgets/form-preview/authoring.d.ts +0 -10
  164. package/plugins/runtime-modules/core/widgets/form-preview/authoring.js +0 -15
  165. package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.d.ts +0 -3
  166. package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.js +0 -9
  167. package/plugins/runtime-modules/theme/widgets/brand-controls/authoring.d.ts +0 -76
  168. package/plugins/runtime-modules/theme/widgets/brand-controls/authoring.js +0 -30
@@ -1,76 +0,0 @@
1
- import { type PhiBuilderBrandWidgetConfig } from "../../../../../plugins/runtime-modules/theme/widgets/brand-controls/config";
2
- export declare const PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_BUILDER_PLUGIN: {
3
- renderEditor: (args_0: import("../../../../../types").PhiCmsBuilderWidgetRenderArgs<PhiBuilderBrandWidgetConfig>) => import("react").ReactNode;
4
- title: string;
5
- kind: "widget";
6
- category: import("../../../../../cms").PhiCmsPluginCategory;
7
- description?: string | undefined;
8
- iconFamily?: string | undefined;
9
- pluginKey: string;
10
- runtimeSignals?: (import("../../../../../types").PhiSignalPluginMeta | null) | undefined;
11
- typeKey: string;
12
- requiredDataProviders?: readonly import("@phis/contracts/controls").PhiRuntimeDataProviderKey[] | undefined;
13
- slotSizePolicy: import("../../../../../types").PhiSlotSizePolicy;
14
- fields: import("../../../../../types").PhiCmsConfigField[];
15
- parseConfig: (raw: Record<string, unknown>) => PhiBuilderBrandWidgetConfig;
16
- };
17
- export declare const PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_BUILDER_PLUGIN: {
18
- renderEditor: (args_0: import("../../../../../types").PhiCmsBuilderWidgetRenderArgs<PhiBuilderBrandWidgetConfig>) => import("react").ReactNode;
19
- title: string;
20
- kind: "widget";
21
- category: import("../../../../../cms").PhiCmsPluginCategory;
22
- description?: string | undefined;
23
- iconFamily?: string | undefined;
24
- pluginKey: string;
25
- runtimeSignals?: (import("../../../../../types").PhiSignalPluginMeta | null) | undefined;
26
- typeKey: string;
27
- requiredDataProviders?: readonly import("@phis/contracts/controls").PhiRuntimeDataProviderKey[] | undefined;
28
- slotSizePolicy: import("../../../../../types").PhiSlotSizePolicy;
29
- fields: import("../../../../../types").PhiCmsConfigField[];
30
- parseConfig: (raw: Record<string, unknown>) => PhiBuilderBrandWidgetConfig;
31
- };
32
- export declare const PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_BUILDER_PLUGIN: {
33
- renderEditor: (args_0: import("../../../../../types").PhiCmsBuilderWidgetRenderArgs<PhiBuilderBrandWidgetConfig>) => import("react").ReactNode;
34
- title: string;
35
- kind: "widget";
36
- category: import("../../../../../cms").PhiCmsPluginCategory;
37
- description?: string | undefined;
38
- iconFamily?: string | undefined;
39
- pluginKey: string;
40
- runtimeSignals?: (import("../../../../../types").PhiSignalPluginMeta | null) | undefined;
41
- typeKey: string;
42
- requiredDataProviders?: readonly import("@phis/contracts/controls").PhiRuntimeDataProviderKey[] | undefined;
43
- slotSizePolicy: import("../../../../../types").PhiSlotSizePolicy;
44
- fields: import("../../../../../types").PhiCmsConfigField[];
45
- parseConfig: (raw: Record<string, unknown>) => PhiBuilderBrandWidgetConfig;
46
- };
47
- export declare const PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_BUILDER_PLUGIN: {
48
- renderEditor: (args_0: import("../../../../../types").PhiCmsBuilderWidgetRenderArgs<PhiBuilderBrandWidgetConfig>) => import("react").ReactNode;
49
- title: string;
50
- kind: "widget";
51
- category: import("../../../../../cms").PhiCmsPluginCategory;
52
- description?: string | undefined;
53
- iconFamily?: string | undefined;
54
- pluginKey: string;
55
- runtimeSignals?: (import("../../../../../types").PhiSignalPluginMeta | null) | undefined;
56
- typeKey: string;
57
- requiredDataProviders?: readonly import("@phis/contracts/controls").PhiRuntimeDataProviderKey[] | undefined;
58
- slotSizePolicy: import("../../../../../types").PhiSlotSizePolicy;
59
- fields: import("../../../../../types").PhiCmsConfigField[];
60
- parseConfig: (raw: Record<string, unknown>) => PhiBuilderBrandWidgetConfig;
61
- };
62
- export declare const PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_BUILDER_PLUGIN: {
63
- renderEditor: (args_0: import("../../../../../types").PhiCmsBuilderWidgetRenderArgs<PhiBuilderBrandWidgetConfig>) => import("react").ReactNode;
64
- title: string;
65
- kind: "widget";
66
- category: import("../../../../../cms").PhiCmsPluginCategory;
67
- description?: string | undefined;
68
- iconFamily?: string | undefined;
69
- pluginKey: string;
70
- runtimeSignals?: (import("../../../../../types").PhiSignalPluginMeta | null) | undefined;
71
- typeKey: string;
72
- requiredDataProviders?: readonly import("@phis/contracts/controls").PhiRuntimeDataProviderKey[] | undefined;
73
- slotSizePolicy: import("../../../../../types").PhiSlotSizePolicy;
74
- fields: import("../../../../../types").PhiCmsConfigField[];
75
- parseConfig: (raw: Record<string, unknown>) => PhiBuilderBrandWidgetConfig;
76
- };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_DEFINITION, PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_DEFINITION, } from "../../../../../plugins/runtime-modules/theme/widgets/brand-controls/config";
4
- import { PhiWidgetEditorPlaceholder } from "../../../../../components/widgets/builder/widget-editor-placeholder";
5
- function renderBrandPlaceholder(title, summary) {
6
- function PhiBuilderBrandPlaceholderEditor({ widget, }) {
7
- return (_jsx(PhiWidgetEditorPlaceholder, { widget: widget, pluginTitle: title, summary: summary }));
8
- }
9
- return PhiBuilderBrandPlaceholderEditor;
10
- }
11
- export const PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_BUILDER_PLUGIN = {
12
- ...PHI_BUILDER_BRAND_THEME_CONTROLS_WIDGET_DEFINITION,
13
- renderEditor: renderBrandPlaceholder("Builder Brand Theme Controls", "Theme controls are available in the live Theme workspace."),
14
- };
15
- export const PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_BUILDER_PLUGIN = {
16
- ...PHI_BUILDER_BRAND_THEME_PREVIEW_WIDGET_DEFINITION,
17
- renderEditor: renderBrandPlaceholder("Builder Brand Theme Preview", "The live theme preview is available in the Theme workspace."),
18
- };
19
- export const PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_BUILDER_PLUGIN = {
20
- ...PHI_BUILDER_BRAND_STYLE_CONTROLS_WIDGET_DEFINITION,
21
- renderEditor: renderBrandPlaceholder("Builder Brand Style Controls", "Style controls are available in the live Theme workspace."),
22
- };
23
- export const PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_BUILDER_PLUGIN = {
24
- ...PHI_BUILDER_BRAND_BACKGROUND_CONTROLS_WIDGET_DEFINITION,
25
- renderEditor: renderBrandPlaceholder("Builder Brand Background Controls", "The Theme Root Background is authored in the live Theme workspace."),
26
- };
27
- export const PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_BUILDER_PLUGIN = {
28
- ...PHI_BUILDER_BRAND_IDENTITY_CONTROLS_WIDGET_DEFINITION,
29
- renderEditor: renderBrandPlaceholder("Builder Brand Identity Controls", "The Logo and the Wordmark are authored in the live Theme workspace."),
30
- };