@phis/ui 0.5.7 → 0.6.1

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 (116) hide show
  1. package/components/controls/phi-amount-list-control.d.ts +69 -0
  2. package/components/controls/phi-amount-list-control.js +15 -0
  3. package/components/controls/phi-button-control.js +16 -2
  4. package/components/controls/phi-form-control.d.ts +6 -0
  5. package/components/controls/phi-form-control.js +23 -7
  6. package/components/controls/phi-media-picker-control.d.ts +3 -1
  7. package/components/controls/phi-media-picker-control.js +2 -2
  8. package/components/forms/form-descriptor-runtime-client.d.ts +3 -1
  9. package/components/forms/form-descriptor-runtime-client.js +2 -2
  10. package/components/forms/form-field-provider-modules.d.ts +23 -0
  11. package/components/forms/form-field-provider-modules.js +28 -0
  12. package/components/forms/form-provider-contract.d.ts +7 -0
  13. package/components/forms/form-provider-contract.js +7 -0
  14. package/components/forms/lazy-form-field-control.d.ts +14 -0
  15. package/components/forms/lazy-form-field-control.js +35 -0
  16. package/components/forms/phi-form-widget.d.ts +3 -2
  17. package/components/forms/phi-form-widget.js +21 -3
  18. package/components/forms/shared-form-provider-registry.js +1 -33
  19. package/components/media/phi-area-upload-widget.js +6 -58
  20. package/components/media/phi-media-picker-binding.d.ts +16 -1
  21. package/components/media/phi-media-picker-binding.js +3 -2
  22. package/components/media/phi-media-upload.d.ts +12 -0
  23. package/components/media/phi-media-upload.js +22 -0
  24. package/components/media/phi-upload-drop-area.d.ts +22 -0
  25. package/components/media/phi-upload-drop-area.js +49 -0
  26. package/components/root/phi-root-layout.d.ts +1 -0
  27. package/components/root/phi-root-layout.js +1 -0
  28. package/components/widgets/helpers/semantic-html-translation.d.ts +4 -1
  29. package/components/widgets/helpers/semantic-html-translation.js +4 -2
  30. package/components/widgets/label-sets/admin-users.d.ts +9 -1
  31. package/components/widgets/label-sets/admin-users.js +14 -2
  32. package/components/widgets/label-sets/slot-upload.js +6 -3
  33. package/components/widgets/label-types/slot-upload.d.ts +7 -1
  34. package/components/widgets/label-types/slot-upload.js +2 -1
  35. package/components/widgets/shared/markdown-render.js +6 -6
  36. package/constants/media-library-provider-keys.d.ts +9 -0
  37. package/constants/media-library-provider-keys.js +9 -0
  38. package/constants/media.d.ts +2 -0
  39. package/constants/media.js +2 -0
  40. package/constants/runtime-module-ownership.js +2 -0
  41. package/controls.d.ts +4 -0
  42. package/controls.js +2 -0
  43. package/gateway/signet-route.d.ts +24 -0
  44. package/gateway/signet-route.js +107 -0
  45. package/gateway/site-proxy.js +14 -7
  46. package/helpers/phi-metadata.d.ts +8 -6
  47. package/helpers/phi-metadata.js +9 -2
  48. package/helpers/phi-signet-head.d.ts +26 -0
  49. package/helpers/phi-signet-head.js +53 -0
  50. package/helpers/phi-signet-paths.d.ts +16 -0
  51. package/helpers/phi-signet-paths.js +19 -0
  52. package/helpers/phi-signet.d.ts +40 -0
  53. package/helpers/phi-signet.js +70 -0
  54. package/net/phi-next-proxy.d.ts +10 -8
  55. package/net/phi-next-proxy.js +27 -84
  56. package/next/proxy-runtime.js +15 -0
  57. package/next/root-route.js +7 -4
  58. package/next/site-proxy.js +21 -0
  59. package/package.json +3 -3
  60. package/plugins/runtime-modules/area-definitions.d.ts +24 -3
  61. package/plugins/runtime-modules/area-definitions.js +11 -3
  62. package/plugins/runtime-modules/asset/definition.d.ts +44 -2
  63. package/plugins/runtime-modules/asset/definition.js +5 -2
  64. package/plugins/runtime-modules/asset/form-providers.d.ts +63 -0
  65. package/plugins/runtime-modules/asset/form-providers.js +54 -0
  66. package/plugins/runtime-modules/asset/form-ui-provider.js +13 -3
  67. package/plugins/runtime-modules/asset/media-asset-field.d.ts +20 -0
  68. package/plugins/runtime-modules/asset/media-asset-field.js +33 -0
  69. package/plugins/runtime-modules/asset/media-asset-form-control.d.ts +21 -0
  70. package/plugins/runtime-modules/asset/media-asset-form-control.js +74 -0
  71. package/plugins/runtime-modules/core/widgets/html/server.js +1 -1
  72. package/plugins/runtime-modules/core/widgets/slot-upload/client.js +28 -23
  73. package/plugins/runtime-modules/core/widgets/slot-upload/slot.d.ts +19 -0
  74. package/plugins/runtime-modules/core/widgets/slot-upload/slot.js +16 -0
  75. package/plugins/runtime-modules/public/presets.d.ts +12 -0
  76. package/plugins/runtime-modules/public/presets.js +10 -0
  77. package/plugins/runtime-modules/public/server.js +1 -1
  78. package/plugins/runtime-modules/public/trees/phi-default-pub-privacy-page-tree.d.ts +4 -0
  79. package/plugins/runtime-modules/public/trees/phi-default-pub-privacy-page-tree.js +66 -0
  80. package/plugins/runtime-modules/public-base-page-references.d.ts +2 -1
  81. package/plugins/runtime-modules/public-base-page-references.js +2 -1
  82. package/plugins/runtime-modules/resolver.js +38 -4
  83. package/plugins/runtime-modules/theme/controller/runtime.js +7 -2
  84. package/plugins/runtime-modules/theme/materialize-images.d.ts +16 -0
  85. package/plugins/runtime-modules/theme/materialize-images.js +37 -0
  86. package/plugins/runtime-modules/user-management/addon-roles.d.ts +35 -0
  87. package/plugins/runtime-modules/user-management/addon-roles.js +76 -0
  88. package/plugins/runtime-modules/user-management/cards.js +1 -1
  89. package/plugins/runtime-modules/user-management/client-data-providers.js +6 -0
  90. package/plugins/runtime-modules/user-management/data-providers.d.ts +11 -2
  91. package/plugins/runtime-modules/user-management/data-providers.js +12 -1
  92. package/plugins/runtime-modules/user-management/definition.d.ts +11 -2
  93. package/plugins/runtime-modules/user-management/ids.d.ts +1 -0
  94. package/plugins/runtime-modules/user-management/ids.js +1 -0
  95. package/plugins/runtime-modules/user-management/services/options.d.ts +8 -0
  96. package/plugins/runtime-modules/user-management/services/options.js +25 -0
  97. package/plugins/runtime-modules/user-management/services/table.js +9 -1
  98. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +20 -2
  99. package/server-helpers/cms-widget-texts.js +1 -1
  100. package/server-helpers/search-index.js +22 -13
  101. package/server-helpers/search-text.d.ts +3 -2
  102. package/server-helpers/search-text.js +6 -5
  103. package/server-helpers/translate.d.ts +13 -2
  104. package/server-helpers/translate.js +10 -6
  105. package/styles/amount-list.css +142 -0
  106. package/styles/controls.css +156 -7
  107. package/styles/gradients.css +21 -20
  108. package/theme/phi-theme-blocks.d.ts +7 -6
  109. package/theme/phi-theme-composition.d.ts +19 -1
  110. package/theme/phi-theme-composition.js +15 -0
  111. package/theme/phi-theme-signet.d.ts +31 -0
  112. package/theme/phi-theme-signet.js +53 -0
  113. package/theme/phi-tokens.d.ts +1 -1
  114. package/theme/phi-tokens.js +5 -1
  115. package/types/cms-plugins.d.ts +10 -1
  116. package/types/site-theme.d.ts +29 -0
@@ -105,6 +105,29 @@ export type PhiSiteThemeBrandLogo = {
105
105
  sourceKind: "url";
106
106
  sourceUrl: string;
107
107
  };
108
+ /**
109
+ * The Site's own Signet: where the browser tab's mark comes from once a save has made it the Site's.
110
+ *
111
+ * The Logo's `asset` and `url` shapes and nothing else -- there is no "none". A Signet is a square the
112
+ * Site either carries or leaves to the followed Set, and a Site that wants no mark simply follows a
113
+ * Set that has none. `url` is the state before a save takes the picture into the Media library (a data
114
+ * URL, a Set's own Signet); an `asset` is the state after.
115
+ */
116
+ export type PhiSiteThemeBrandSignet = (Extract<PhiSiteThemeBrandLogo, {
117
+ sourceKind: "asset";
118
+ }> & {
119
+ /**
120
+ * What the Core states about the Asset when it resolves the Site config (Core 0.4.1): `url` carries the
121
+ * delivered address with the Asset's revision (`?r=<revision>`), and the type and size of the picture
122
+ * are stated beside it. All absent from a record an older Core resolved, or one a draft carries; the
123
+ * head and the route then fall back to what the id alone says.
124
+ */
125
+ contentType?: string | null;
126
+ width?: number | null;
127
+ height?: number | null;
128
+ }) | Extract<PhiSiteThemeBrandLogo, {
129
+ sourceKind: "url";
130
+ }>;
108
131
  export type PhiSiteThemeBrandLogos = {
109
132
  light?: PhiSiteThemeBrandLogo | null;
110
133
  dark?: PhiSiteThemeBrandLogo | null;
@@ -135,6 +158,12 @@ export type PhiSiteThemeBrand = {
135
158
  eyebrow?: string | null;
136
159
  /** The Logo, one picture per mode. A mode the record says nothing about wears the Theme Set's. */
137
160
  logo?: PhiSiteThemeBrandLogos | null;
161
+ /**
162
+ * The Signet, one picture for both modes. Absent means the followed Theme Set's, and that is how a
163
+ * Site that never saved a Theme still wears one: a save (`materializePhiThemeBrandSignet`) takes a
164
+ * Module Set's Signet into the Media library and writes the Asset here, the way it does the Logo.
165
+ */
166
+ signet?: PhiSiteThemeBrandSignet | null;
138
167
  /** What the Logo says to somebody who cannot see it. Falls back to the asset's own alt text. */
139
168
  logoAlt?: string | null;
140
169
  /**