@contractspec/lib.surface-runtime 0.3.0 → 0.3.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.
- package/dist/adapters/ai-sdk-stub.js +1 -6
- package/dist/adapters/blocknote-stub.js +3 -8
- package/dist/adapters/dnd-kit-adapter.js +6 -11
- package/dist/adapters/dnd-kit-stub.js +1 -6
- package/dist/adapters/floating-ui-stub.js +4 -9
- package/dist/adapters/index.js +7 -176
- package/dist/adapters/interfaces.js +0 -1
- package/dist/adapters/motion-stub.js +2 -7
- package/dist/adapters/resizable-panels-stub.js +7 -12
- package/dist/browser/adapters/ai-sdk-stub.js +1 -5
- package/dist/browser/adapters/blocknote-stub.js +3 -7
- package/dist/browser/adapters/dnd-kit-adapter.js +6 -10
- package/dist/browser/adapters/dnd-kit-stub.js +1 -5
- package/dist/browser/adapters/floating-ui-stub.js +4 -8
- package/dist/browser/adapters/index.js +7 -175
- package/dist/browser/adapters/motion-stub.js +2 -6
- package/dist/browser/adapters/resizable-panels-stub.js +5 -9
- package/dist/browser/evals/golden-harness.js +4 -825
- package/dist/browser/examples/pm-workbench.bundle.js +2 -316
- package/dist/browser/i18n/catalogs/en.js +1 -5
- package/dist/browser/i18n/catalogs/es.js +1 -5
- package/dist/browser/i18n/catalogs/fr.js +1 -5
- package/dist/browser/i18n/catalogs/index.js +3 -133
- package/dist/browser/i18n/index.js +3 -168
- package/dist/browser/i18n/keys.js +1 -5
- package/dist/browser/i18n/messages.js +6 -137
- package/dist/browser/index.js +4 -2470
- package/dist/browser/react/BundleProvider.js +12 -19
- package/dist/browser/react/BundleRenderer.js +15 -662
- package/dist/browser/react/OverlayConflictResolver.js +12 -180
- package/dist/browser/react/PatchProposalCard.js +9 -177
- package/dist/browser/react/RegionRenderer.js +14 -60
- package/dist/browser/react/SlotRenderer.js +15 -58
- package/dist/browser/react/WidgetPalette.js +6 -10
- package/dist/browser/react/index.js +14 -794
- package/dist/browser/runtime/apply-surface-patch.js +3 -208
- package/dist/browser/runtime/audit-events.js +8 -19
- package/dist/browser/runtime/build-context.js +2 -6
- package/dist/browser/runtime/extension-registry.js +3 -9
- package/dist/browser/runtime/field-renderer-registry.js +5 -11
- package/dist/browser/runtime/index.js +54 -1487
- package/dist/browser/runtime/overlay-alignment.js +8 -19
- package/dist/browser/runtime/overlay-signer.js +2 -7
- package/dist/browser/runtime/override-store.js +3 -9
- package/dist/browser/runtime/planner-prompt.js +2 -6
- package/dist/browser/runtime/planner-tools.js +3 -9
- package/dist/browser/runtime/policy-eval.js +3 -135
- package/dist/browser/runtime/preference-adapter.js +2 -62
- package/dist/browser/runtime/resolve-bundle.js +10 -447
- package/dist/browser/runtime/resolve-preferences.js +3 -7
- package/dist/browser/runtime/rollback.js +2 -325
- package/dist/browser/runtime/widget-registry.js +1 -5
- package/dist/browser/spec/define-module-bundle.js +2 -67
- package/dist/browser/spec/index.js +9 -317
- package/dist/browser/spec/validate-bundle.js +3 -8
- package/dist/browser/spec/validate-surface-patch.js +5 -11
- package/dist/browser/telemetry/index.js +4 -16
- package/dist/browser/telemetry/surface-metrics.js +7 -16
- package/dist/evals/golden-context.js +0 -1
- package/dist/evals/golden-harness.js +4 -826
- package/dist/examples/pm-workbench.bundle.js +2 -317
- package/dist/i18n/catalogs/en.js +1 -6
- package/dist/i18n/catalogs/es.js +1 -6
- package/dist/i18n/catalogs/fr.js +1 -6
- package/dist/i18n/catalogs/index.js +3 -134
- package/dist/i18n/index.js +3 -169
- package/dist/i18n/keys.js +1 -6
- package/dist/i18n/messages.js +6 -138
- package/dist/index.js +4 -2471
- package/dist/node/adapters/ai-sdk-stub.js +1 -5
- package/dist/node/adapters/blocknote-stub.js +3 -7
- package/dist/node/adapters/dnd-kit-adapter.js +6 -10
- package/dist/node/adapters/dnd-kit-stub.js +1 -5
- package/dist/node/adapters/floating-ui-stub.js +4 -8
- package/dist/node/adapters/index.js +7 -175
- package/dist/node/adapters/motion-stub.js +2 -6
- package/dist/node/adapters/resizable-panels-stub.js +5 -9
- package/dist/node/evals/golden-harness.js +4 -825
- package/dist/node/examples/pm-workbench.bundle.js +2 -316
- package/dist/node/i18n/catalogs/en.js +1 -5
- package/dist/node/i18n/catalogs/es.js +1 -5
- package/dist/node/i18n/catalogs/fr.js +1 -5
- package/dist/node/i18n/catalogs/index.js +3 -133
- package/dist/node/i18n/index.js +3 -168
- package/dist/node/i18n/keys.js +1 -5
- package/dist/node/i18n/messages.js +6 -137
- package/dist/node/index.js +4 -2470
- package/dist/node/react/BundleProvider.js +12 -19
- package/dist/node/react/BundleRenderer.js +15 -662
- package/dist/node/react/OverlayConflictResolver.js +12 -180
- package/dist/node/react/PatchProposalCard.js +9 -177
- package/dist/node/react/RegionRenderer.js +14 -60
- package/dist/node/react/SlotRenderer.js +15 -58
- package/dist/node/react/WidgetPalette.js +6 -10
- package/dist/node/react/index.js +14 -794
- package/dist/node/runtime/apply-surface-patch.js +3 -208
- package/dist/node/runtime/audit-events.js +8 -19
- package/dist/node/runtime/build-context.js +2 -6
- package/dist/node/runtime/extension-registry.js +3 -9
- package/dist/node/runtime/field-renderer-registry.js +5 -11
- package/dist/node/runtime/index.js +54 -1487
- package/dist/node/runtime/overlay-alignment.js +8 -19
- package/dist/node/runtime/overlay-signer.js +2 -7
- package/dist/node/runtime/override-store.js +3 -9
- package/dist/node/runtime/planner-prompt.js +2 -6
- package/dist/node/runtime/planner-tools.js +3 -9
- package/dist/node/runtime/policy-eval.js +3 -135
- package/dist/node/runtime/preference-adapter.js +2 -62
- package/dist/node/runtime/resolve-bundle.js +10 -447
- package/dist/node/runtime/resolve-preferences.js +3 -7
- package/dist/node/runtime/rollback.js +2 -325
- package/dist/node/runtime/widget-registry.js +1 -5
- package/dist/node/spec/define-module-bundle.js +2 -67
- package/dist/node/spec/index.js +9 -317
- package/dist/node/spec/validate-bundle.js +3 -8
- package/dist/node/spec/validate-surface-patch.js +5 -11
- package/dist/node/telemetry/index.js +4 -16
- package/dist/node/telemetry/surface-metrics.js +7 -16
- package/dist/react/BundleProvider.js +12 -20
- package/dist/react/BundleRenderer.js +15 -663
- package/dist/react/OverlayConflictResolver.js +12 -181
- package/dist/react/PatchProposalCard.js +9 -178
- package/dist/react/RegionRenderer.js +14 -61
- package/dist/react/SlotRenderer.js +15 -59
- package/dist/react/WidgetPalette.js +6 -11
- package/dist/react/index.js +14 -795
- package/dist/runtime/apply-surface-patch.js +3 -209
- package/dist/runtime/audit-events.js +8 -20
- package/dist/runtime/build-context.js +2 -7
- package/dist/runtime/extension-registry.js +3 -10
- package/dist/runtime/field-renderer-registry.js +9 -16
- package/dist/runtime/index.js +54 -1488
- package/dist/runtime/overlay-alignment.js +8 -20
- package/dist/runtime/overlay-signer.js +2 -8
- package/dist/runtime/override-store.js +3 -10
- package/dist/runtime/planner-prompt.js +11 -9
- package/dist/runtime/planner-tools.js +4 -11
- package/dist/runtime/policy-eval.js +3 -136
- package/dist/runtime/preference-adapter.js +2 -63
- package/dist/runtime/resolve-bundle.js +10 -448
- package/dist/runtime/resolve-preferences.js +3 -8
- package/dist/runtime/rollback.js +2 -326
- package/dist/runtime/widget-registry.js +1 -6
- package/dist/spec/define-module-bundle.js +2 -68
- package/dist/spec/index.js +9 -318
- package/dist/spec/types.js +0 -1
- package/dist/spec/validate-bundle.js +3 -9
- package/dist/spec/validate-surface-patch.js +5 -12
- package/dist/spec/verification-snapshot-types.js +0 -1
- package/dist/telemetry/index.js +4 -17
- package/dist/telemetry/surface-metrics.js +7 -17
- package/package.json +7 -7
package/dist/i18n/keys.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// src/i18n/keys.ts
|
|
3
|
-
var SURFACE_KEYS = {
|
|
1
|
+
export const SURFACE_KEYS = {
|
|
4
2
|
"overlay.conflicts.title": "overlay.conflicts.title",
|
|
5
3
|
"overlay.conflicts.keepScope": "overlay.conflicts.keepScope",
|
|
6
4
|
"patch.accept": "patch.accept",
|
|
@@ -15,6 +13,3 @@ var SURFACE_KEYS = {
|
|
|
15
13
|
"patch.promote": "patch.promote",
|
|
16
14
|
"patch.changes": "patch.changes"
|
|
17
15
|
};
|
|
18
|
-
export {
|
|
19
|
-
SURFACE_KEYS
|
|
20
|
-
};
|
package/dist/i18n/messages.js
CHANGED
|
@@ -1,144 +1,12 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// src/i18n/catalogs/en.ts
|
|
3
|
-
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
-
var enMessages = defineTranslation({
|
|
5
|
-
meta: {
|
|
6
|
-
key: "surface-runtime.messages",
|
|
7
|
-
version: "1.0.0",
|
|
8
|
-
domain: "surface-runtime",
|
|
9
|
-
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
-
owners: ["platform"],
|
|
11
|
-
stability: "experimental"
|
|
12
|
-
},
|
|
13
|
-
locale: "en",
|
|
14
|
-
fallback: "en",
|
|
15
|
-
messages: {
|
|
16
|
-
"overlay.conflicts.title": {
|
|
17
|
-
value: "Overlay conflicts",
|
|
18
|
-
description: "Title for overlay conflict resolution banner"
|
|
19
|
-
},
|
|
20
|
-
"overlay.conflicts.keepScope": {
|
|
21
|
-
value: "Keep {scope}",
|
|
22
|
-
description: "Button to keep overlay from scope A or B"
|
|
23
|
-
},
|
|
24
|
-
"patch.accept": {
|
|
25
|
-
value: "Accept",
|
|
26
|
-
description: "Accept patch proposal button"
|
|
27
|
-
},
|
|
28
|
-
"patch.reject": {
|
|
29
|
-
value: "Reject",
|
|
30
|
-
description: "Reject patch proposal button"
|
|
31
|
-
},
|
|
32
|
-
"patch.addWidget": {
|
|
33
|
-
value: "Add {title} to {slot}",
|
|
34
|
-
description: "Insert node proposal summary"
|
|
35
|
-
},
|
|
36
|
-
"patch.removeItem": {
|
|
37
|
-
value: "Remove item",
|
|
38
|
-
description: "Remove node proposal summary"
|
|
39
|
-
},
|
|
40
|
-
"patch.switchLayout": {
|
|
41
|
-
value: "Switch to {layoutId} layout",
|
|
42
|
-
description: "Set layout proposal summary"
|
|
43
|
-
},
|
|
44
|
-
"patch.showField": {
|
|
45
|
-
value: "Show field {fieldId}",
|
|
46
|
-
description: "Reveal field proposal summary"
|
|
47
|
-
},
|
|
48
|
-
"patch.hideField": {
|
|
49
|
-
value: "Hide field {fieldId}",
|
|
50
|
-
description: "Hide field proposal summary"
|
|
51
|
-
},
|
|
52
|
-
"patch.moveTo": {
|
|
53
|
-
value: "Move to {slot}",
|
|
54
|
-
description: "Move node proposal summary"
|
|
55
|
-
},
|
|
56
|
-
"patch.replaceItem": {
|
|
57
|
-
value: "Replace item",
|
|
58
|
-
description: "Replace node proposal summary"
|
|
59
|
-
},
|
|
60
|
-
"patch.promote": {
|
|
61
|
-
value: "Promote {actionId}",
|
|
62
|
-
description: "Promote action proposal summary"
|
|
63
|
-
},
|
|
64
|
-
"patch.changes": {
|
|
65
|
-
value: "{count} changes",
|
|
66
|
-
description: "Multiple patch ops summary"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
// src/i18n/catalogs/es.ts
|
|
72
|
-
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
73
|
-
var esMessages = defineTranslation2({
|
|
74
|
-
meta: {
|
|
75
|
-
key: "surface-runtime.messages",
|
|
76
|
-
version: "1.0.0",
|
|
77
|
-
domain: "surface-runtime",
|
|
78
|
-
description: "User-facing strings for surface-runtime UI components",
|
|
79
|
-
owners: ["platform"],
|
|
80
|
-
stability: "experimental"
|
|
81
|
-
},
|
|
82
|
-
locale: "es",
|
|
83
|
-
fallback: "en",
|
|
84
|
-
messages: {
|
|
85
|
-
"overlay.conflicts.title": { value: "Conflictos de superposici\xF3n" },
|
|
86
|
-
"overlay.conflicts.keepScope": { value: "Mantener {scope}" },
|
|
87
|
-
"patch.accept": { value: "Aceptar" },
|
|
88
|
-
"patch.reject": { value: "Rechazar" },
|
|
89
|
-
"patch.addWidget": { value: "A\xF1adir {title} a {slot}" },
|
|
90
|
-
"patch.removeItem": { value: "Eliminar elemento" },
|
|
91
|
-
"patch.switchLayout": { value: "Cambiar a disposici\xF3n {layoutId}" },
|
|
92
|
-
"patch.showField": { value: "Mostrar campo {fieldId}" },
|
|
93
|
-
"patch.hideField": { value: "Ocultar campo {fieldId}" },
|
|
94
|
-
"patch.moveTo": { value: "Mover a {slot}" },
|
|
95
|
-
"patch.replaceItem": { value: "Reemplazar elemento" },
|
|
96
|
-
"patch.promote": { value: "Promover {actionId}" },
|
|
97
|
-
"patch.changes": { value: "{count} cambios" }
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
// src/i18n/catalogs/fr.ts
|
|
102
|
-
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
103
|
-
var frMessages = defineTranslation3({
|
|
104
|
-
meta: {
|
|
105
|
-
key: "surface-runtime.messages",
|
|
106
|
-
version: "1.0.0",
|
|
107
|
-
domain: "surface-runtime",
|
|
108
|
-
description: "User-facing strings for surface-runtime UI components",
|
|
109
|
-
owners: ["platform"],
|
|
110
|
-
stability: "experimental"
|
|
111
|
-
},
|
|
112
|
-
locale: "fr",
|
|
113
|
-
fallback: "en",
|
|
114
|
-
messages: {
|
|
115
|
-
"overlay.conflicts.title": { value: "Conflits de superposition" },
|
|
116
|
-
"overlay.conflicts.keepScope": { value: "Conserver {scope}" },
|
|
117
|
-
"patch.accept": { value: "Accepter" },
|
|
118
|
-
"patch.reject": { value: "Rejeter" },
|
|
119
|
-
"patch.addWidget": { value: "Ajouter {title} \xE0 {slot}" },
|
|
120
|
-
"patch.removeItem": { value: "Supprimer l'\xE9l\xE9ment" },
|
|
121
|
-
"patch.switchLayout": { value: "Passer \xE0 la disposition {layoutId}" },
|
|
122
|
-
"patch.showField": { value: "Afficher le champ {fieldId}" },
|
|
123
|
-
"patch.hideField": { value: "Masquer le champ {fieldId}" },
|
|
124
|
-
"patch.moveTo": { value: "D\xE9placer vers {slot}" },
|
|
125
|
-
"patch.replaceItem": { value: "Remplacer l'\xE9l\xE9ment" },
|
|
126
|
-
"patch.promote": { value: "Promouvoir {actionId}" },
|
|
127
|
-
"patch.changes": { value: "{count} modifications" }
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
// src/i18n/messages.ts
|
|
132
1
|
import {
|
|
133
2
|
createI18nFactory
|
|
134
3
|
} from "@contractspec/lib.contracts-spec/translations";
|
|
135
|
-
|
|
4
|
+
import { enMessages } from "./catalogs/en";
|
|
5
|
+
import { frMessages } from "./catalogs/fr";
|
|
6
|
+
import { esMessages } from "./catalogs/es";
|
|
7
|
+
const factory = createI18nFactory({
|
|
136
8
|
specKey: "surface-runtime.messages",
|
|
137
9
|
catalogs: [enMessages, frMessages, esMessages]
|
|
138
10
|
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
export {
|
|
142
|
-
getDefaultSurfaceI18n,
|
|
143
|
-
createSurfaceI18n
|
|
144
|
-
};
|
|
11
|
+
export const createSurfaceI18n = factory.create;
|
|
12
|
+
export const getDefaultSurfaceI18n = factory.getDefault;
|