@getsoren/shared-module 2.56.0 → 2.58.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.
@@ -74,6 +74,7 @@ export declare const CLIENT_EVENTS: {
74
74
  inventory: {
75
75
  closesOnSubmit: true;
76
76
  id: string;
77
+ isProof: true;
77
78
  photos: "focus";
78
79
  reason: string;
79
80
  };
@@ -56,6 +56,8 @@ export interface EventDefinition {
56
56
  photos?: "first" | "focus" | "none";
57
57
  /** Closed on submit for the users allowed to close events. */
58
58
  closesOnSubmit?: boolean;
59
+ /** A dated proof: the other side only reads it, and never corrects what may be held against it. */
60
+ isProof?: boolean;
59
61
  questions?: Partial<Record<EventQuestionStep, EventQuestionKey>>;
60
62
  /** Shown on the hovered and picked day of a one-day event. */
61
63
  dayHint?: EventDayHintKey;
@@ -13,7 +13,7 @@ interface StoredEvent {
13
13
  * An event declared with this engine, read with the definition it was declared with: a tenant whose funnel changes
14
14
  * keeps reading its older events right. The reader edits it with its own definition when that one asks the same
15
15
  * answers, a client edits a supplier's with the supplier's questions, and the event is only shown otherwise (another
16
- * team's, a client's read by a supplier). Undefined for a Treege event.
16
+ * team's, a client's read by a supplier, a proof read by the other side). Undefined for a Treege event.
17
17
  */
18
18
  declare const readEvent: ({ workflow, workflowValues }: StoredEvent, readerFunnel: EventFunnel) => DeclaredEvent | undefined;
19
19
  export default readEvent;
package/dist/events.js CHANGED
@@ -77,6 +77,7 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
77
77
  [o]: {
78
78
  closesOnSubmit: !0,
79
79
  id: o,
80
+ isProof: !0,
80
81
  photos: "focus",
81
82
  reason: o
82
83
  },
@@ -348,7 +349,9 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
348
349
  reasons: ["booking_end", "booking_extension"]
349
350
  },
350
351
  {
352
+ closesOnSubmit: !0,
351
353
  id: o,
354
+ isProof: !0,
352
355
  photos: "first",
353
356
  questions: {
354
357
  details: "photos",
@@ -1936,7 +1939,7 @@ var n = "eventDeclaration", r = "soren-event", i = 2, a = {
1936
1939
  side: e.side
1937
1940
  } : {
1938
1941
  answers: o,
1939
- editFunnel: r && q(n.side, e.side) ? {
1942
+ editFunnel: r && !a.isProof && q(n.side, e.side) ? {
1940
1943
  ...r,
1941
1944
  pricing: n.pricing
1942
1945
  } : void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getsoren/shared-module",
3
- "version": "2.56.0",
3
+ "version": "2.58.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "types": "./dist/main.d.ts",
@@ -85,7 +85,7 @@
85
85
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
86
86
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
87
87
  "react-i18next": "*",
88
- "react-router": "*"
88
+ "react-router": "^7.0.0"
89
89
  },
90
90
  "peerDependenciesMeta": {
91
91
  "@amplitude/analytics-browser": {