@powerhousedao/service-offering 1.0.0-dev.1 → 1.0.0-dev.3

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 (34) hide show
  1. package/dist/document-models/upgrade-manifests.d.ts.map +1 -1
  2. package/dist/document-models/upgrade-manifests.js +0 -2
  3. package/dist/editors/service-offering-editor/editor.css +119 -0
  4. package/package.json +3 -2
  5. package/dist/document-models/facet/gen/schema/types.d.ts +0 -195
  6. package/dist/document-models/facet/gen/schema/types.d.ts.map +0 -1
  7. package/dist/document-models/facet/gen/schema/types.js +0 -1
  8. package/dist/document-models/facet/gen/schema/zod.d.ts +0 -18
  9. package/dist/document-models/facet/gen/schema/zod.d.ts.map +0 -1
  10. package/dist/document-models/facet/gen/schema/zod.js +0 -69
  11. package/dist/document-models/resource-instance/gen/schema/types.d.ts +0 -272
  12. package/dist/document-models/resource-instance/gen/schema/types.d.ts.map +0 -1
  13. package/dist/document-models/resource-instance/gen/schema/types.js +0 -1
  14. package/dist/document-models/resource-instance/gen/schema/zod.d.ts +0 -43
  15. package/dist/document-models/resource-instance/gen/schema/zod.d.ts.map +0 -1
  16. package/dist/document-models/resource-instance/gen/schema/zod.js +0 -185
  17. package/dist/document-models/resource-template/gen/schema/types.d.ts +0 -371
  18. package/dist/document-models/resource-template/gen/schema/types.d.ts.map +0 -1
  19. package/dist/document-models/resource-template/gen/schema/types.js +0 -1
  20. package/dist/document-models/resource-template/gen/schema/zod.d.ts +0 -52
  21. package/dist/document-models/resource-template/gen/schema/zod.d.ts.map +0 -1
  22. package/dist/document-models/resource-template/gen/schema/zod.js +0 -312
  23. package/dist/document-models/service-offering/gen/schema/types.d.ts +0 -451
  24. package/dist/document-models/service-offering/gen/schema/types.d.ts.map +0 -1
  25. package/dist/document-models/service-offering/gen/schema/types.js +0 -1
  26. package/dist/document-models/service-offering/gen/schema/zod.d.ts +0 -89
  27. package/dist/document-models/service-offering/gen/schema/zod.d.ts.map +0 -1
  28. package/dist/document-models/service-offering/gen/schema/zod.js +0 -419
  29. package/dist/document-models/subscription-instance/gen/schema/types.d.ts +0 -435
  30. package/dist/document-models/subscription-instance/gen/schema/types.d.ts.map +0 -1
  31. package/dist/document-models/subscription-instance/gen/schema/types.js +0 -1
  32. package/dist/document-models/subscription-instance/gen/schema/zod.d.ts +0 -99
  33. package/dist/document-models/subscription-instance/gen/schema/zod.d.ts.map +0 -1
  34. package/dist/document-models/subscription-instance/gen/schema/zod.js +0 -410
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-manifests.d.ts","sourceRoot":"","sources":["../../document-models/upgrade-manifests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAOtD,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,SAAS,MAAM,EAAE,CAAC,EAMhE,CAAC"}
1
+ {"version":3,"file":"upgrade-manifests.d.ts","sourceRoot":"","sources":["../../document-models/upgrade-manifests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtD,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,SAAS,MAAM,EAAE,CAAC,EAKhE,CAAC"}
@@ -2,11 +2,9 @@ import { facetUpgradeManifest } from "./facet/upgrades/upgrade-manifest.js";
2
2
  import { resourceInstanceUpgradeManifest } from "./resource-instance/upgrades/upgrade-manifest.js";
3
3
  import { resourceTemplateUpgradeManifest } from "./resource-template/upgrades/upgrade-manifest.js";
4
4
  import { serviceOfferingUpgradeManifest } from "./service-offering/upgrades/upgrade-manifest.js";
5
- import { subscriptionInstanceUpgradeManifest } from "./subscription-instance/upgrades/upgrade-manifest.js";
6
5
  export const upgradeManifests = [
7
6
  facetUpgradeManifest,
8
7
  resourceInstanceUpgradeManifest,
9
8
  resourceTemplateUpgradeManifest,
10
9
  serviceOfferingUpgradeManifest,
11
- subscriptionInstanceUpgradeManifest,
12
10
  ];
@@ -0,0 +1,119 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');
2
+
3
+ /* ── Keyframes (cannot be expressed as Tailwind utilities) ── */
4
+
5
+ @keyframes so-fade-in {
6
+ from { opacity: 0; transform: translateY(8px); }
7
+ to { opacity: 1; transform: translateY(0); }
8
+ }
9
+
10
+ @keyframes so-scale-in {
11
+ from { opacity: 0; transform: scale(0.96); }
12
+ to { opacity: 1; transform: scale(1); }
13
+ }
14
+
15
+ @keyframes so-float {
16
+ 0%, 100% { transform: translateY(0); }
17
+ 50% { transform: translateY(-8px); }
18
+ }
19
+
20
+ @keyframes so-fab-in {
21
+ from { opacity: 0; transform: translateY(8px); }
22
+ to { opacity: 1; transform: translateY(0); }
23
+ }
24
+
25
+ @keyframes so-confirm-fade-in {
26
+ from { opacity: 0; }
27
+ to { opacity: 1; }
28
+ }
29
+
30
+ @keyframes so-confirm-scale-in {
31
+ from { opacity: 0; transform: scale(0.95); }
32
+ to { opacity: 1; transform: scale(1); }
33
+ }
34
+
35
+ @keyframes progress-pulse {
36
+ 0%, 100% { opacity: 1; }
37
+ 50% { opacity: 0.4; }
38
+ }
39
+
40
+ @keyframes progress-dropdown-in {
41
+ from { opacity: 0; transform: translateY(-4px); }
42
+ to { opacity: 1; transform: translateY(0); }
43
+ }
44
+
45
+ @keyframes progress-overlay-in {
46
+ from { opacity: 0; }
47
+ to { opacity: 1; }
48
+ }
49
+
50
+ @keyframes progress-modal-in {
51
+ from { opacity: 0; transform: scale(0.95) translateY(8px); }
52
+ to { opacity: 1; transform: scale(1) translateY(0); }
53
+ }
54
+
55
+ @keyframes tier-slide-up {
56
+ from { opacity: 0; transform: translateY(12px); }
57
+ to { opacity: 1; transform: translateY(0); }
58
+ }
59
+
60
+ @keyframes catalog__fade-in {
61
+ from { opacity: 0; transform: translateY(4px); }
62
+ to { opacity: 1; transform: translateY(0); }
63
+ }
64
+
65
+ @keyframes rts-spin {
66
+ to { transform: rotate(360deg); }
67
+ }
68
+
69
+ @keyframes matrix-warning-pulse {
70
+ 0%, 100% { opacity: 1; }
71
+ 50% { opacity: 0.5; }
72
+ }
73
+
74
+ @keyframes panel-overlay-fade {
75
+ from { opacity: 0; }
76
+ to { opacity: 1; }
77
+ }
78
+
79
+ @keyframes panel-slide-in {
80
+ from { opacity: 0; transform: translateX(20px); }
81
+ to { opacity: 1; transform: translateX(0); }
82
+ }
83
+
84
+ @keyframes modal-backdrop {
85
+ from { opacity: 0; }
86
+ to { opacity: 1; }
87
+ }
88
+
89
+ @keyframes modal-pop {
90
+ from { opacity: 0; transform: scale(0.95) translateY(8px); }
91
+ to { opacity: 1; transform: scale(1) translateY(0); }
92
+ }
93
+
94
+ /* ── Tooltip overrides — Radix portals outside .so-editor scope ── */
95
+
96
+ [data-radix-popper-content-wrapper] {
97
+ z-index: 9999 !important;
98
+ min-width: 0 !important;
99
+ max-width: 280px !important;
100
+ }
101
+
102
+ [data-radix-popper-content-wrapper] [data-side] {
103
+ max-width: 280px !important;
104
+ white-space: normal !important;
105
+ line-height: 1.45 !important;
106
+ word-wrap: break-word !important;
107
+ }
108
+
109
+ /* ── Scrollbar styles (not possible with Tailwind) ── */
110
+
111
+ .so-scrollbar-h::-webkit-scrollbar { height: 8px; }
112
+ .so-scrollbar-h::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
113
+ .so-scrollbar-h::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
114
+ .so-scrollbar-h::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
115
+
116
+ .so-scrollbar-v::-webkit-scrollbar { width: 6px; }
117
+ .so-scrollbar-v::-webkit-scrollbar-track { background: #f8fafc; border-radius: 3px; }
118
+ .so-scrollbar-v::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
119
+ .so-scrollbar-v::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/service-offering",
3
3
  "description": "service offering document models",
4
- "version": "1.0.0-dev.1",
4
+ "version": "1.0.0-dev.3",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
7
7
  "type": "git",
@@ -55,7 +55,8 @@
55
55
  "./style.css": "./dist/style.css"
56
56
  },
57
57
  "scripts": {
58
- "build": "npm run tsc && npm run tailwind",
58
+ "build": "npm run tsc && npm run tailwind && npm run copy-css",
59
+ "copy-css": "cp editors/service-offering-editor/editor.css dist/editors/service-offering-editor/editor.css",
59
60
  "test": "vitest run",
60
61
  "test:watch": "vitest",
61
62
  "lint": "eslint --config eslint.config.js --cache --cache-strategy content",
@@ -1,195 +0,0 @@
1
- export type Maybe<T> = T | null | undefined;
2
- export type InputMaybe<T> = T | null | undefined;
3
- export type Exact<T extends {
4
- [key: string]: unknown;
5
- }> = {
6
- [K in keyof T]: T[K];
7
- };
8
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
- [SubKey in K]?: Maybe<T[SubKey]>;
10
- };
11
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
- [SubKey in K]: Maybe<T[SubKey]>;
13
- };
14
- export type MakeEmpty<T extends {
15
- [key: string]: unknown;
16
- }, K extends keyof T> = {
17
- [_ in K]?: never;
18
- };
19
- export type Incremental<T> = T | {
20
- [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
21
- };
22
- /** All built-in and custom scalars, mapped to their actual values */
23
- export type Scalars = {
24
- ID: {
25
- input: string;
26
- output: string;
27
- };
28
- String: {
29
- input: string;
30
- output: string;
31
- };
32
- Boolean: {
33
- input: boolean;
34
- output: boolean;
35
- };
36
- Int: {
37
- input: number;
38
- output: number;
39
- };
40
- Float: {
41
- input: number;
42
- output: number;
43
- };
44
- Address: {
45
- input: `${string}:0x${string}`;
46
- output: `${string}:0x${string}`;
47
- };
48
- Amount: {
49
- input: {
50
- unit?: string;
51
- value?: number;
52
- };
53
- output: {
54
- unit?: string;
55
- value?: number;
56
- };
57
- };
58
- Amount_Crypto: {
59
- input: {
60
- unit: string;
61
- value: string;
62
- };
63
- output: {
64
- unit: string;
65
- value: string;
66
- };
67
- };
68
- Amount_Currency: {
69
- input: {
70
- unit: string;
71
- value: string;
72
- };
73
- output: {
74
- unit: string;
75
- value: string;
76
- };
77
- };
78
- Amount_Fiat: {
79
- input: {
80
- unit: string;
81
- value: number;
82
- };
83
- output: {
84
- unit: string;
85
- value: number;
86
- };
87
- };
88
- Amount_Money: {
89
- input: number;
90
- output: number;
91
- };
92
- Amount_Percentage: {
93
- input: number;
94
- output: number;
95
- };
96
- Amount_Tokens: {
97
- input: number;
98
- output: number;
99
- };
100
- Attachment: {
101
- input: string;
102
- output: string;
103
- };
104
- Currency: {
105
- input: string;
106
- output: string;
107
- };
108
- Date: {
109
- input: string;
110
- output: string;
111
- };
112
- DateTime: {
113
- input: string;
114
- output: string;
115
- };
116
- EmailAddress: {
117
- input: string;
118
- output: string;
119
- };
120
- EthereumAddress: {
121
- input: string;
122
- output: string;
123
- };
124
- OID: {
125
- input: string;
126
- output: string;
127
- };
128
- OLabel: {
129
- input: string;
130
- output: string;
131
- };
132
- PHID: {
133
- input: string;
134
- output: string;
135
- };
136
- URL: {
137
- input: string;
138
- output: string;
139
- };
140
- Unknown: {
141
- input: unknown;
142
- output: unknown;
143
- };
144
- Upload: {
145
- input: File;
146
- output: File;
147
- };
148
- };
149
- export type AddOptionInput = {
150
- description?: InputMaybe<Scalars["String"]["input"]>;
151
- displayOrder?: InputMaybe<Scalars["Int"]["input"]>;
152
- id: Scalars["OID"]["input"];
153
- isDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
154
- label: Scalars["String"]["input"];
155
- lastModified: Scalars["DateTime"]["input"];
156
- };
157
- export type FacetOption = {
158
- description: Maybe<Scalars["String"]["output"]>;
159
- displayOrder: Maybe<Scalars["Int"]["output"]>;
160
- id: Scalars["OID"]["output"];
161
- isDefault: Scalars["Boolean"]["output"];
162
- label: Scalars["String"]["output"];
163
- };
164
- export type FacetState = {
165
- description: Maybe<Scalars["String"]["output"]>;
166
- id: Scalars["PHID"]["output"];
167
- lastModified: Scalars["DateTime"]["output"];
168
- name: Scalars["String"]["output"];
169
- options: Array<FacetOption>;
170
- };
171
- export type RemoveOptionInput = {
172
- id: Scalars["OID"]["input"];
173
- lastModified: Scalars["DateTime"]["input"];
174
- };
175
- export type ReorderOptionsInput = {
176
- lastModified: Scalars["DateTime"]["input"];
177
- optionIds: Array<Scalars["OID"]["input"]>;
178
- };
179
- export type SetFacetDescriptionInput = {
180
- description?: InputMaybe<Scalars["String"]["input"]>;
181
- lastModified: Scalars["DateTime"]["input"];
182
- };
183
- export type SetFacetNameInput = {
184
- lastModified: Scalars["DateTime"]["input"];
185
- name: Scalars["String"]["input"];
186
- };
187
- export type UpdateOptionInput = {
188
- description?: InputMaybe<Scalars["String"]["input"]>;
189
- displayOrder?: InputMaybe<Scalars["Int"]["input"]>;
190
- id: Scalars["OID"]["input"];
191
- isDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
192
- label?: InputMaybe<Scalars["String"]["input"]>;
193
- lastModified: Scalars["DateTime"]["input"];
194
- };
195
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/facet/gen/schema/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAC5C,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KACvD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,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CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import * as z from "zod";
2
- import type { AddOptionInput, FacetOption, FacetState, RemoveOptionInput, ReorderOptionsInput, SetFacetDescriptionInput, SetFacetNameInput, UpdateOptionInput } from "./types.js";
3
- type Properties<T> = Required<{
4
- [K in keyof T]: z.ZodType<T[K]>;
5
- }>;
6
- type definedNonNullAny = {};
7
- export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
8
- export declare const definedNonNullAnySchema: z.ZodAny & z.ZodType<definedNonNullAny, any, z.core.$ZodTypeInternals<definedNonNullAny, any>>;
9
- export declare function AddOptionInputSchema(): z.ZodObject<Properties<AddOptionInput>>;
10
- export declare function FacetOptionSchema(): z.ZodObject<Properties<FacetOption>>;
11
- export declare function FacetStateSchema(): z.ZodObject<Properties<FacetState>>;
12
- export declare function RemoveOptionInputSchema(): z.ZodObject<Properties<RemoveOptionInput>>;
13
- export declare function ReorderOptionsInputSchema(): z.ZodObject<Properties<ReorderOptionsInput>>;
14
- export declare function SetFacetDescriptionInputSchema(): z.ZodObject<Properties<SetFacetDescriptionInput>>;
15
- export declare function SetFacetNameInputSchema(): z.ZodObject<Properties<SetFacetNameInput>>;
16
- export declare function UpdateOptionInputSchema(): z.ZodObject<Properties<UpdateOptionInput>>;
17
- export {};
18
- //# sourceMappingURL=zod.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/facet/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,KAAK,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,iBACnB,CAAC;AAEhC,eAAO,MAAM,uBAAuB,gGAEI,CAAC;AAEzC,wBAAgB,oBAAoB,IAAI,CAAC,CAAC,SAAS,CACjD,UAAU,CAAC,cAAc,CAAC,CAC3B,CASA;AAED,wBAAgB,iBAAiB,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CASxE;AAED,wBAAgB,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAStE;AAED,wBAAgB,uBAAuB,IAAI,CAAC,CAAC,SAAS,CACpD,UAAU,CAAC,iBAAiB,CAAC,CAC9B,CAKA;AAED,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAKA;AAED,wBAAgB,8BAA8B,IAAI,CAAC,CAAC,SAAS,CAC3D,UAAU,CAAC,wBAAwB,CAAC,CACrC,CAKA;AAED,wBAAgB,uBAAuB,IAAI,CAAC,CAAC,SAAS,CACpD,UAAU,CAAC,iBAAiB,CAAC,CAC9B,CAKA;AAED,wBAAgB,uBAAuB,IAAI,CAAC,CAAC,SAAS,CACpD,UAAU,CAAC,iBAAiB,CAAC,CAC9B,CASA"}
@@ -1,69 +0,0 @@
1
- import * as z from "zod";
2
- export const isDefinedNonNullAny = (v) => v !== undefined && v !== null;
3
- export const definedNonNullAnySchema = z
4
- .any()
5
- .refine((v) => isDefinedNonNullAny(v));
6
- export function AddOptionInputSchema() {
7
- return z.object({
8
- description: z.string().nullish(),
9
- displayOrder: z.number().nullish(),
10
- id: z.string(),
11
- isDefault: z.boolean().nullish(),
12
- label: z.string(),
13
- lastModified: z.iso.datetime(),
14
- });
15
- }
16
- export function FacetOptionSchema() {
17
- return z.object({
18
- __typename: z.literal("FacetOption").optional(),
19
- description: z.string().nullish(),
20
- displayOrder: z.number().nullish(),
21
- id: z.string(),
22
- isDefault: z.boolean(),
23
- label: z.string(),
24
- });
25
- }
26
- export function FacetStateSchema() {
27
- return z.object({
28
- __typename: z.literal("FacetState").optional(),
29
- description: z.string().nullish(),
30
- id: z.string(),
31
- lastModified: z.iso.datetime(),
32
- name: z.string(),
33
- options: z.array(z.lazy(() => FacetOptionSchema())),
34
- });
35
- }
36
- export function RemoveOptionInputSchema() {
37
- return z.object({
38
- id: z.string(),
39
- lastModified: z.iso.datetime(),
40
- });
41
- }
42
- export function ReorderOptionsInputSchema() {
43
- return z.object({
44
- lastModified: z.iso.datetime(),
45
- optionIds: z.array(z.string()),
46
- });
47
- }
48
- export function SetFacetDescriptionInputSchema() {
49
- return z.object({
50
- description: z.string().nullish(),
51
- lastModified: z.iso.datetime(),
52
- });
53
- }
54
- export function SetFacetNameInputSchema() {
55
- return z.object({
56
- lastModified: z.iso.datetime(),
57
- name: z.string(),
58
- });
59
- }
60
- export function UpdateOptionInputSchema() {
61
- return z.object({
62
- description: z.string().nullish(),
63
- displayOrder: z.number().nullish(),
64
- id: z.string(),
65
- isDefault: z.boolean().nullish(),
66
- label: z.string().nullish(),
67
- lastModified: z.iso.datetime(),
68
- });
69
- }