@pontive/pontkit-core 1.21.2 → 1.22.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 (31) hide show
  1. package/catalog.json +60 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/components/renderers/auth/form/_form.d.ts +2 -0
  4. package/dist/components/renderers/auth/form/form.defs.d.ts +2 -1
  5. package/dist/components/renderers/auth/form/form.types.d.ts +7 -2
  6. package/dist/components/renderers/auth/index.d.ts +1 -0
  7. package/dist/components/renderers/auth/scope-list/_scope-list.d.ts +44 -0
  8. package/dist/components/renderers/auth/scope-list/index.d.ts +7 -0
  9. package/dist/components/renderers/auth/scope-list/scope-list.defs.d.ts +2 -0
  10. package/dist/components/renderers/auth/scope-list/scope-list.stories.d.ts +8 -0
  11. package/dist/components/renderers/auth/scope-list/scope-list.types.d.ts +20 -0
  12. package/dist/components/renderers/auth/scope-list/scope-list.value.d.ts +14 -0
  13. package/dist/components/renderers/navigation/external-link/_external-link.d.ts +26 -0
  14. package/dist/components/renderers/navigation/external-link/external-link.defs.d.ts +2 -0
  15. package/dist/components/renderers/navigation/external-link/external-link.href.d.ts +9 -0
  16. package/dist/components/renderers/navigation/external-link/external-link.stories.d.ts +7 -0
  17. package/dist/components/renderers/navigation/external-link/external-link.types.d.ts +5 -0
  18. package/dist/components/renderers/navigation/external-link/index.d.ts +7 -0
  19. package/dist/components/renderers/navigation/index.d.ts +1 -0
  20. package/dist/components/widgets/index.d.ts +1 -0
  21. package/dist/components/widgets/pont-consent/consent-api.d.ts +56 -0
  22. package/dist/components/widgets/pont-consent/pont-consent.d.ts +50 -0
  23. package/dist/components/wrappers/layout/layout.d.ts +12 -0
  24. package/dist/element-tag-map.d.ts +6 -0
  25. package/dist/index.js +524 -473
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +6216 -5783
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/styles.css +88 -0
  30. package/dist/utils/flow-error.d.ts +6 -0
  31. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -17247,6 +17247,27 @@ pont-radio-group-item {
17247
17247
  --pont-recovery-codes-tooltip-transition: opacity 0.2s ease;
17248
17248
  }
17249
17249
 
17250
+ /*
17251
+ * ----------------------------------------
17252
+ * SCOPE LIST
17253
+ * ----------------------------------------
17254
+ */
17255
+
17256
+ :root {
17257
+ /* Root */
17258
+ --pont-scope-list-space-width: 100%;
17259
+ --pont-scope-list-alignment-align-self: auto;
17260
+ --pont-scope-list-space-gap: var(--pont-ref-space-3);
17261
+
17262
+ /* Row: checkbox beside its text */
17263
+ --pont-scope-list-item-space-gap: var(--pont-ref-space-2);
17264
+
17265
+ /* Text */
17266
+ --pont-scope-list-text-font-size: var(--pont-ref-font-size-sm);
17267
+ --pont-scope-list-text-font-line-height: var(--pont-ref-font-line-height-of-sm);
17268
+ --pont-scope-list-text-color-text: inherit;
17269
+ }
17270
+
17250
17271
  /*
17251
17272
  * ----------------------------------------
17252
17273
  * SECRET
@@ -18429,6 +18450,41 @@ pont-recovery-codes {
18429
18450
  border: 6px solid transparent;
18430
18451
  border-top-color: var(--pont-recovery-codes-tooltip-color-bg);
18431
18452
  }
18453
+ /* scope-list.css */
18454
+ pont-scope-list {
18455
+ display: flex;
18456
+ flex-direction: column;
18457
+ width: var(--pont-scope-list-space-width);
18458
+ align-self: var(--pont-scope-list-alignment-align-self);
18459
+ }
18460
+
18461
+ .pont-scope-list-root {
18462
+ display: flex;
18463
+ flex-direction: column;
18464
+ gap: var(--pont-scope-list-space-gap);
18465
+ margin: 0;
18466
+ padding: 0;
18467
+ list-style: none;
18468
+ }
18469
+
18470
+ .pont-scope-list-label {
18471
+ display: flex;
18472
+ align-items: flex-start;
18473
+ gap: var(--pont-scope-list-item-space-gap);
18474
+ cursor: pointer;
18475
+ }
18476
+
18477
+ .pont-scope-list-item[data-required] .pont-scope-list-label,
18478
+ .pont-scope-list-root[data-disabled] .pont-scope-list-label {
18479
+ cursor: default;
18480
+ }
18481
+
18482
+ .pont-scope-list-text {
18483
+ font-size: var(--pont-scope-list-text-font-size);
18484
+ line-height: var(--pont-scope-list-text-font-line-height);
18485
+ color: var(--pont-scope-list-text-color-text);
18486
+ }
18487
+
18432
18488
  /*
18433
18489
  * ============================================================
18434
18490
  * ALERT
@@ -18881,6 +18937,38 @@ pont-link > [part="link"] > [part="link-button"] > [data-slot="button"]:hover {
18881
18937
  color: var(--pont-link-button-color-text-hover);
18882
18938
  }
18883
18939
 
18940
+ /*
18941
+ * ============================================================
18942
+ * EXTERNAL LINK
18943
+ * ============================================================
18944
+ */
18945
+
18946
+ /* Styled as pont-link's button, from pont-link's own tokens, so the two read
18947
+ as one kind of thing on a screen. */
18948
+
18949
+ pont-external-link {
18950
+ display: flex;
18951
+ align-self: var(--pont-link-alignment-align-self);
18952
+ justify-content: var(--pont-link-alignment-justify-content);
18953
+ }
18954
+
18955
+ /* An empty or unsafe href renders nothing and takes no space. */
18956
+ pont-external-link[hidden] {
18957
+ display: none;
18958
+ }
18959
+
18960
+ pont-external-link > [part="external-link"] {
18961
+ color: var(--pont-link-color-text);
18962
+ font-size: var(--pont-link-font-size);
18963
+ line-height: var(--pont-link-font-line-height);
18964
+ font-weight: var(--pont-link-font-weight);
18965
+ text-decoration-line: underline;
18966
+ }
18967
+
18968
+ pont-external-link > [part="external-link"]:hover {
18969
+ color: var(--pont-link-button-color-text-hover);
18970
+ }
18971
+
18884
18972
  /*
18885
18973
  * ============================================================
18886
18974
  * SUBTITLE
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * What a flow failure says to the person on the screen.
3
3
  *
4
+ * A refusal's sentence is the server's: it is raised by message code and
5
+ * worded in the flow's language and the instance's own copy before it is sent
6
+ * (branding-svc pkg/message), so the widget shows it as it comes rather than
7
+ * substituting English of its own. What is worded here is only what the server
8
+ * cannot say — it was unreachable, or failed outright.
9
+ *
4
10
  * A step that fails and can be retried (a wrong password, an invalid code)
5
11
  * comes back as a screen with the error banner already in it. Everything else
6
12
  * comes back as an exception: the request failed, or the flow is over. Those
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.21.2",
3
+ "version": "1.22.1",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",