@origostudio/origo-design 0.0.29 → 0.0.30
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.
- package/CHANGELOG.md +4 -3
- package/dist/packages/angular-renderer/CHANGELOG.md +11 -0
- package/dist/packages/angular-renderer/package.json +3 -3
- package/dist/packages/angular-renderer/src/devtools/devtools-bridge.d.ts +32 -0
- package/dist/packages/angular-renderer/src/devtools/devtools-bridge.js +84 -0
- package/dist/packages/angular-renderer/src/devtools/devtools-bridge.js.map +1 -0
- package/dist/packages/angular-renderer/src/devtools/index.d.ts +1 -0
- package/dist/packages/angular-renderer/src/devtools/index.js +5 -0
- package/dist/packages/angular-renderer/src/devtools/index.js.map +1 -0
- package/dist/packages/cli/CHANGELOG.md +4 -0
- package/dist/packages/cli/package.json +2 -2
- package/dist/packages/cli/package.json.bak +2 -2
- package/dist/packages/core/CHANGELOG.md +4 -0
- package/dist/packages/core/package.json +1 -1
- package/dist/packages/core/package.json.bak +1 -1
- package/dist/packages/design-tokens/CHANGELOG.md +4 -0
- package/dist/packages/design-tokens/package.json +1 -1
- package/package.json +1 -1
- package/packages/angular-renderer/CHANGELOG.md +11 -0
- package/packages/angular-renderer/package.json +3 -3
- package/packages/angular-renderer/src/devtools/devtools-bridge.ts +120 -0
- package/packages/angular-renderer/src/devtools/index.ts +1 -0
- package/packages/cli/CHANGELOG.md +4 -0
- package/packages/cli/package.json +2 -2
- package/packages/core/CHANGELOG.md +4 -0
- package/packages/core/package.json +1 -1
- package/packages/design-tokens/CHANGELOG.md +4 -0
- package/packages/design-tokens/package.json +1 -1
- package/packages/playground/CHANGELOG.md +4 -0
- package/packages/playground/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/packages/playground/package.json +1 -1
- package/resolve_create_story.json +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
## 0.0.
|
|
1
|
+
## 0.0.30 (2026-09-15)
|
|
2
2
|
|
|
3
3
|
### 🚀 Features
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- add
|
|
5
|
+
- implement diagnostics API runtime hooks and devtools bridge ([5cceec9](https://github.com/OrigoStudio/origo-design/commit/5cceec9))
|
|
6
|
+
- add diagnostics API runtime hooks and devtools bridge ([cb49ce7](https://github.com/OrigoStudio/origo-design/commit/cb49ce7))
|
|
7
|
+
- introduce central test-registry.yaml for test case tracking ([8bd1aca](https://github.com/OrigoStudio/origo-design/commit/8bd1aca))
|
|
7
8
|
|
|
8
9
|
### ❤️ Thank You
|
|
9
10
|
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.0.30 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add diagnostics API runtime hooks and devtools bridge ([cb49ce7](https://github.com/OrigoStudio/origo-design/commit/cb49ce7))
|
|
6
|
+
- implement diagnostics API runtime hooks and devtools bridge ([5cceec9](https://github.com/OrigoStudio/origo-design/commit/5cceec9))
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- Hardik Patel @hardikpatelse
|
|
11
|
+
|
|
1
12
|
## 0.0.29 (2026-09-14)
|
|
2
13
|
|
|
3
14
|
This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-renderer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@origo/core": "0.0.
|
|
10
|
-
"@origo/design-tokens": "0.0.
|
|
9
|
+
"@origo/core": "0.0.30",
|
|
10
|
+
"@origo/design-tokens": "0.0.30",
|
|
11
11
|
"tslib": "^2.3.0",
|
|
12
12
|
"@axe-core/playwright": "^4.13.0",
|
|
13
13
|
"@playwright/test": "^1.36.0"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface MetadataSource {
|
|
2
|
+
file: string;
|
|
3
|
+
line: number;
|
|
4
|
+
}
|
|
5
|
+
export interface ResolutionChain {
|
|
6
|
+
steps: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface RenderingPath {
|
|
9
|
+
path: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ErrorContext {
|
|
12
|
+
message: string;
|
|
13
|
+
stack: string;
|
|
14
|
+
badlPath: string;
|
|
15
|
+
}
|
|
16
|
+
export interface OrigoDevToolsAPI {
|
|
17
|
+
getActiveState: () => unknown;
|
|
18
|
+
getRenderingPath: (path: string) => RenderingPath | null;
|
|
19
|
+
getMetadataSource: (path: string) => MetadataSource | null;
|
|
20
|
+
getResolutionChain: (path: string) => ResolutionChain | null;
|
|
21
|
+
getErrorTelemetry: () => ErrorContext[];
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface Window {
|
|
25
|
+
__ORIGO_DEVTOOLS__?: OrigoDevToolsAPI;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare function _injectTestState(state: unknown): void;
|
|
29
|
+
export declare function _resetTestState(): void;
|
|
30
|
+
export declare function appendErrorTelemetry(error: ErrorContext): void;
|
|
31
|
+
export declare function getDevToolsAPI(): OrigoDevToolsAPI | null;
|
|
32
|
+
export declare function initDevToolsBridge(): void;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._injectTestState = _injectTestState;
|
|
4
|
+
exports._resetTestState = _resetTestState;
|
|
5
|
+
exports.appendErrorTelemetry = appendErrorTelemetry;
|
|
6
|
+
exports.getDevToolsAPI = getDevToolsAPI;
|
|
7
|
+
exports.initDevToolsBridge = initDevToolsBridge;
|
|
8
|
+
const core_1 = require("@angular/core");
|
|
9
|
+
// Sensitive keys to redact
|
|
10
|
+
const SENSITIVE_KEYS = new Set(['password', 'ssn', 'apikey', 'token', 'secret']);
|
|
11
|
+
function redactSensitiveData(obj, seen = new WeakSet()) {
|
|
12
|
+
if (obj === null || typeof obj !== 'object') {
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
15
|
+
if (seen.has(obj)) {
|
|
16
|
+
return '[CIRCULAR]';
|
|
17
|
+
}
|
|
18
|
+
seen.add(obj);
|
|
19
|
+
let result;
|
|
20
|
+
if (Array.isArray(obj)) {
|
|
21
|
+
result = obj.map(item => redactSensitiveData(item, seen));
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
const redacted = {};
|
|
25
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
26
|
+
if (SENSITIVE_KEYS.has(key.toLowerCase()) || key.toLowerCase().includes('password')) {
|
|
27
|
+
redacted[key] = '[REDACTED]';
|
|
28
|
+
}
|
|
29
|
+
else if (value !== null && typeof value === 'object') {
|
|
30
|
+
redacted[key] = redactSensitiveData(value, seen);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
redacted[key] = value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
result = redacted;
|
|
37
|
+
}
|
|
38
|
+
seen.delete(obj);
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
// In-memory mock state for dev tools (to be replaced by actual AST bindings in future epics)
|
|
42
|
+
let _internalState = {
|
|
43
|
+
entities: [],
|
|
44
|
+
};
|
|
45
|
+
let _errorTelemetry = [];
|
|
46
|
+
function _injectTestState(state) {
|
|
47
|
+
_internalState = state;
|
|
48
|
+
}
|
|
49
|
+
function _resetTestState() {
|
|
50
|
+
_internalState = { entities: [] };
|
|
51
|
+
_errorTelemetry = [];
|
|
52
|
+
}
|
|
53
|
+
function appendErrorTelemetry(error) {
|
|
54
|
+
_errorTelemetry.push(error);
|
|
55
|
+
}
|
|
56
|
+
function getDevToolsAPI() {
|
|
57
|
+
if (!(0, core_1.isDevMode)()) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
getActiveState: () => redactSensitiveData(_internalState),
|
|
62
|
+
getRenderingPath: (path) => {
|
|
63
|
+
// Mock BADL semantic path
|
|
64
|
+
return { path: `root.components.${path}` };
|
|
65
|
+
},
|
|
66
|
+
getMetadataSource: (path) => {
|
|
67
|
+
return null;
|
|
68
|
+
},
|
|
69
|
+
getResolutionChain: (path) => {
|
|
70
|
+
return null;
|
|
71
|
+
},
|
|
72
|
+
getErrorTelemetry: () => _errorTelemetry,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function initDevToolsBridge() {
|
|
76
|
+
if (!(0, core_1.isDevMode)()) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const api = getDevToolsAPI();
|
|
80
|
+
if (api && typeof window !== 'undefined') {
|
|
81
|
+
window.__ORIGO_DEVTOOLS__ = api;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=devtools-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-bridge.js","sourceRoot":"","sources":["../../../../../packages/angular-renderer/src/devtools/devtools-bridge.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './devtools-bridge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/angular-renderer/src/devtools/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origostudio/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"origo": "./src/main.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@origo/core": "0.0.
|
|
12
|
+
"@origo/core": "0.0.30",
|
|
13
13
|
"commander": "^15.0.0",
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origostudio/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"origo": "./src/main.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@origo/core": "0.0.
|
|
12
|
+
"@origo/core": "0.0.30",
|
|
13
13
|
"commander": "^15.0.0",
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.0.30 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for design-tokens to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.0.29 (2026-09-14)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for design-tokens to align it with other projects, there were no code changes.
|
package/package.json
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 0.0.30 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- add diagnostics API runtime hooks and devtools bridge ([cb49ce7](https://github.com/OrigoStudio/origo-design/commit/cb49ce7))
|
|
6
|
+
- implement diagnostics API runtime hooks and devtools bridge ([5cceec9](https://github.com/OrigoStudio/origo-design/commit/5cceec9))
|
|
7
|
+
|
|
8
|
+
### ❤️ Thank You
|
|
9
|
+
|
|
10
|
+
- Hardik Patel @hardikpatelse
|
|
11
|
+
|
|
1
12
|
## 0.0.29 (2026-09-14)
|
|
2
13
|
|
|
3
14
|
This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-renderer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@origo/core": "0.0.
|
|
10
|
-
"@origo/design-tokens": "0.0.
|
|
9
|
+
"@origo/core": "0.0.30",
|
|
10
|
+
"@origo/design-tokens": "0.0.30",
|
|
11
11
|
"tslib": "^2.3.0",
|
|
12
12
|
"@axe-core/playwright": "^4.13.0",
|
|
13
13
|
"@playwright/test": "^1.36.0"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { isDevMode } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
export interface MetadataSource {
|
|
4
|
+
file: string;
|
|
5
|
+
line: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ResolutionChain {
|
|
9
|
+
steps: string[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface RenderingPath {
|
|
13
|
+
path: string; // BADL semantic path
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ErrorContext {
|
|
17
|
+
message: string;
|
|
18
|
+
stack: string;
|
|
19
|
+
badlPath: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface OrigoDevToolsAPI {
|
|
23
|
+
getActiveState: () => unknown;
|
|
24
|
+
getRenderingPath: (path: string) => RenderingPath | null;
|
|
25
|
+
getMetadataSource: (path: string) => MetadataSource | null;
|
|
26
|
+
getResolutionChain: (path: string) => ResolutionChain | null;
|
|
27
|
+
getErrorTelemetry: () => ErrorContext[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare global {
|
|
31
|
+
interface Window {
|
|
32
|
+
__ORIGO_DEVTOOLS__?: OrigoDevToolsAPI;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Sensitive keys to redact
|
|
37
|
+
const SENSITIVE_KEYS = new Set(['password', 'ssn', 'apikey', 'token', 'secret']);
|
|
38
|
+
|
|
39
|
+
function redactSensitiveData(obj: unknown, seen = new WeakSet()): unknown {
|
|
40
|
+
if (obj === null || typeof obj !== 'object') {
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (seen.has(obj)) {
|
|
45
|
+
return '[CIRCULAR]';
|
|
46
|
+
}
|
|
47
|
+
seen.add(obj);
|
|
48
|
+
|
|
49
|
+
let result: unknown;
|
|
50
|
+
if (Array.isArray(obj)) {
|
|
51
|
+
result = obj.map(item => redactSensitiveData(item, seen));
|
|
52
|
+
} else {
|
|
53
|
+
const redacted: Record<string, unknown> = {};
|
|
54
|
+
for (const [key, value] of Object.entries(obj as Record<string, unknown>)) {
|
|
55
|
+
if (SENSITIVE_KEYS.has(key.toLowerCase()) || key.toLowerCase().includes('password')) {
|
|
56
|
+
redacted[key] = '[REDACTED]';
|
|
57
|
+
} else if (value !== null && typeof value === 'object') {
|
|
58
|
+
redacted[key] = redactSensitiveData(value, seen);
|
|
59
|
+
} else {
|
|
60
|
+
redacted[key] = value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
result = redacted;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
seen.delete(obj);
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// In-memory mock state for dev tools (to be replaced by actual AST bindings in future epics)
|
|
71
|
+
let _internalState: unknown = {
|
|
72
|
+
entities: [],
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
let _errorTelemetry: ErrorContext[] = [];
|
|
76
|
+
|
|
77
|
+
export function _injectTestState(state: unknown): void {
|
|
78
|
+
_internalState = state;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function _resetTestState(): void {
|
|
82
|
+
_internalState = { entities: [] };
|
|
83
|
+
_errorTelemetry = [];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function appendErrorTelemetry(error: ErrorContext): void {
|
|
87
|
+
_errorTelemetry.push(error);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function getDevToolsAPI(): OrigoDevToolsAPI | null {
|
|
91
|
+
if (!isDevMode()) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
getActiveState: () => redactSensitiveData(_internalState),
|
|
97
|
+
getRenderingPath: (path: string) => {
|
|
98
|
+
// Mock BADL semantic path
|
|
99
|
+
return { path: `root.components.${path}` };
|
|
100
|
+
},
|
|
101
|
+
getMetadataSource: (path: string) => {
|
|
102
|
+
return null;
|
|
103
|
+
},
|
|
104
|
+
getResolutionChain: (path: string) => {
|
|
105
|
+
return null;
|
|
106
|
+
},
|
|
107
|
+
getErrorTelemetry: () => _errorTelemetry,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function initDevToolsBridge(): void {
|
|
112
|
+
if (!isDevMode()) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const api = getDevToolsAPI();
|
|
117
|
+
if (api && typeof window !== 'undefined') {
|
|
118
|
+
window.__ORIGO_DEVTOOLS__ = api;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './devtools-bridge';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@origostudio/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"origo": "./src/main.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@origo/core": "0.0.
|
|
12
|
+
"@origo/core": "0.0.30",
|
|
13
13
|
"commander": "^15.0.0",
|
|
14
14
|
"tslib": "^2.3.0"
|
|
15
15
|
},
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.0.30 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for design-tokens to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.0.29 (2026-09-14)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for design-tokens to align it with other projects, there were no code changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"4.1.11","results":[[":src/
|
|
1
|
+
{"version":"4.1.11","results":[[":src/workers/compiler.worker.spec.ts",{"duration":2691.613603,"failed":false}],[":src/editor/badl-editor.component.spec.ts",{"duration":196.54107199999999,"failed":false}],[":src/editor/schema-registry.spec.ts",{"duration":13.207707999999911,"failed":false}],[":src/preview/preview.service.spec.ts",{"duration":66.2218499999999,"failed":false}],[":src/preview/preview-pane.component.spec.ts",{"duration":99.64676200000031,"failed":false}],[":src/preview/preview-root.component.spec.ts",{"duration":116.00069400000211,"failed":false}],[":src/app/app.component.spec.ts",{"duration":120.78959399999803,"failed":false}]]}
|