@stigmer/react 3.33.0 → 3.34.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.
@@ -3,13 +3,25 @@ import { Feature, type Entitlements } from "@stigmer/protos/ai/stigmer/platform/
3
3
  import { LicenseTerm } from "@stigmer/protos/ai/stigmer/platform/v1/license_pb";
4
4
  /** A term an operator can issue; the unspecified zero value is not one. */
5
5
  export type IssuableTerm = LicenseTerm.trial | LicenseTerm.paid;
6
- /** A feature an operator can grant; the unspecified zero value is not one. */
7
- export type GrantableFeature = Exclude<Feature, Feature.feature_unspecified>;
6
+ /**
7
+ * Features a Cloud plan sells but a license never carries: they tier the
8
+ * hosted runtime, and an Enterprise deployment has them by edition, so
9
+ * offering one on a license would sell a capability the license does not
10
+ * control.
11
+ */
12
+ export type PlanOnlyFeature = Feature.teams | Feature.managed_organizations;
13
+ /**
14
+ * A feature an operator can grant on a license: every feature but the
15
+ * unspecified zero value and the plan-only ones. Derived by exclusion, so
16
+ * a feature added to the contract lands here by default and must be given
17
+ * a label below, or be named plan-only above, before the package compiles.
18
+ */
19
+ export type GrantableFeature = Exclude<Feature, Feature.feature_unspecified | PlanOnlyFeature>;
8
20
  /** Display labels for the issuable terms. */
9
21
  export declare const TERM_LABELS: Readonly<Record<IssuableTerm, string>>;
10
22
  /**
11
23
  * Label and one-line explanation per grantable feature. Keyed by every
12
- * non-zero `Feature` value, so a feature added to the contract fails to
24
+ * grantable `Feature` value, so a feature added to the contract fails to
13
25
  * compile here until it has words an operator can read.
14
26
  */
15
27
  export declare const FEATURE_LABELS: Readonly<Record<GrantableFeature, {
@@ -1 +1 @@
1
- {"version":3,"file":"license-format.d.ts","sourceRoot":"","sources":["../../src/licenses/license-format.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EACL,OAAO,EACP,KAAK,YAAY,EAClB,MAAM,uDAAuD,CAAC;AAC/D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BAAgB,EAEnC,CAAC;AAWxB,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAInD;AAED,2EAA2E;AAC3E,wBAAgB,MAAM,CAAC,EAAE,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAElE;AAED,2DAA2D;AAC3D,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEzC;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,CAEzD;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM,CAIjE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,CAQ1F;AAED,0EAA0E;AAC1E,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAGhE"}
@@ -22,7 +22,7 @@ export const TERM_LABELS = {
22
22
  };
23
23
  /**
24
24
  * Label and one-line explanation per grantable feature. Keyed by every
25
- * non-zero `Feature` value, so a feature added to the contract fails to
25
+ * grantable `Feature` value, so a feature added to the contract fails to
26
26
  * compile here until it has words an operator can read.
27
27
  */
28
28
  export const FEATURE_LABELS = {
@@ -1 +1 @@
1
- {"version":3,"file":"license-format.js","sourceRoot":"","sources":["../../src/licenses/license-format.ts"],"names":[],"mappings":"A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,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC;IACpD,OAAO;QACL,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;QACnC,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,CAAC;QACnD,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC7D,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,SAAS,CAAC,KAAyB,EAAE,IAAY;IAC/D,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,IAAI,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC1E,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,YAAY,CAAC,QAA2B;IACtD,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACzG,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,MAAM,CAAC,KAAa,EAAE,IAAY;IACzC,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigmer/react",
3
- "version": "3.33.0",
3
+ "version": "3.34.0",
4
4
  "description": "React provider and client hook for the Stigmer platform SDK",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@bufbuild/protovalidate": "^1.1.1",
39
39
  "@dagrejs/dagre": "^1.1.4",
40
- "@stigmer/plugin-package": "3.33.0",
41
- "@stigmer/theme": "3.33.0",
40
+ "@stigmer/plugin-package": "3.34.0",
41
+ "@stigmer/theme": "3.34.0",
42
42
  "diff": "^8.0.3",
43
43
  "fflate": "^0.8.2",
44
44
  "hast-util-to-jsx-runtime": "^2.3.6",
@@ -61,8 +61,8 @@
61
61
  "@codemirror/state": "^6.0.0",
62
62
  "@codemirror/view": "^6.0.0",
63
63
  "@lezer/highlight": "^1.0.0",
64
- "@stigmer/protos": "3.33.0",
65
- "@stigmer/sdk": "3.33.0",
64
+ "@stigmer/protos": "3.34.0",
65
+ "@stigmer/sdk": "3.34.0",
66
66
  "@tanstack/react-table": "^8.20.0",
67
67
  "@xyflow/react": "^12.0.0",
68
68
  "elkjs": "^0.9.0",
@@ -1,11 +1,31 @@
1
1
  // The licenses surface's display vocabulary: "covered through" steps back
2
- // from the expiry instant, relative days count UTC days, and an absent
3
- // limit reads as unlimited rather than blank.
2
+ // from the expiry instant, relative days count UTC days, an absent limit
3
+ // reads as unlimited rather than blank, and the plan-only features are
4
+ // never offered on a license.
4
5
 
5
6
  import { describe, it, expect } from "vitest";
6
7
  import { create } from "@bufbuild/protobuf";
7
- import { EntitlementsSchema } from "@stigmer/protos/ai/stigmer/platform/v1/entitlement_pb";
8
- import { coveredThroughDay, entitlementParts, formatDayFromToday } from "../license-format";
8
+ import { EntitlementsSchema, Feature } from "@stigmer/protos/ai/stigmer/platform/v1/entitlement_pb";
9
+ import {
10
+ coveredThroughDay,
11
+ entitlementParts,
12
+ formatDayFromToday,
13
+ GRANTABLE_FEATURES,
14
+ } from "../license-format";
15
+
16
+ describe("GRANTABLE_FEATURES", () => {
17
+ it("offers every license feature and never a plan-only one", () => {
18
+ expect(GRANTABLE_FEATURES).toEqual([
19
+ Feature.sso_enforcement,
20
+ Feature.platform_client,
21
+ Feature.byo_provider_keys,
22
+ Feature.channels,
23
+ Feature.sharing,
24
+ ]);
25
+ expect(GRANTABLE_FEATURES).not.toContain(Feature.teams);
26
+ expect(GRANTABLE_FEATURES).not.toContain(Feature.managed_organizations);
27
+ });
28
+ });
9
29
 
10
30
  describe("coveredThroughDay", () => {
11
31
  it("is the day before a midnight expiry and the same day for a mid-day one", () => {
@@ -24,8 +24,24 @@ import { LicenseTerm } from "@stigmer/protos/ai/stigmer/platform/v1/license_pb";
24
24
  /** A term an operator can issue; the unspecified zero value is not one. */
25
25
  export type IssuableTerm = LicenseTerm.trial | LicenseTerm.paid;
26
26
 
27
- /** A feature an operator can grant; the unspecified zero value is not one. */
28
- export type GrantableFeature = Exclude<Feature, Feature.feature_unspecified>;
27
+ /**
28
+ * Features a Cloud plan sells but a license never carries: they tier the
29
+ * hosted runtime, and an Enterprise deployment has them by edition, so
30
+ * offering one on a license would sell a capability the license does not
31
+ * control.
32
+ */
33
+ export type PlanOnlyFeature = Feature.teams | Feature.managed_organizations;
34
+
35
+ /**
36
+ * A feature an operator can grant on a license: every feature but the
37
+ * unspecified zero value and the plan-only ones. Derived by exclusion, so
38
+ * a feature added to the contract lands here by default and must be given
39
+ * a label below, or be named plan-only above, before the package compiles.
40
+ */
41
+ export type GrantableFeature = Exclude<
42
+ Feature,
43
+ Feature.feature_unspecified | PlanOnlyFeature
44
+ >;
29
45
 
30
46
  /** Display labels for the issuable terms. */
31
47
  export const TERM_LABELS: Readonly<Record<IssuableTerm, string>> = {
@@ -35,7 +51,7 @@ export const TERM_LABELS: Readonly<Record<IssuableTerm, string>> = {
35
51
 
36
52
  /**
37
53
  * Label and one-line explanation per grantable feature. Keyed by every
38
- * non-zero `Feature` value, so a feature added to the contract fails to
54
+ * grantable `Feature` value, so a feature added to the contract fails to
39
55
  * compile here until it has words an operator can read.
40
56
  */
41
57
  export const FEATURE_LABELS: Readonly<