@reventlessdev/trait-attachments 1.0.0-alpha.7 → 1.0.0-alpha.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/trait-attachments",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.8",
|
|
4
4
|
"description": "Attachments domain trait: rules, host contract, conformance suite and emitter for an ordered set of stored files on an entity, with a primary and captions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"sury": "11.0.0-rc.2",
|
|
15
15
|
"sury-ppx": "11.0.0-rc.2",
|
|
16
|
-
"@reventlessdev/reventless-
|
|
17
|
-
"@reventlessdev/reventless-
|
|
16
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.206",
|
|
17
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.132"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"rescript": "12.3.0"
|
|
@@ -629,7 +629,7 @@ let conformanceBinding = (c: config): string => {
|
|
|
629
629
|
let singleProjectionPatch = (c: config): patch => {
|
|
630
630
|
let n = namesOf(c)
|
|
631
631
|
{
|
|
632
|
-
into: `
|
|
632
|
+
into: `StateViewStream/${c.view}_Projection.res`,
|
|
633
633
|
at: `the projection's \`switch\`, and one field on \`${c.view}\`'s state`,
|
|
634
634
|
contents: lines([
|
|
635
635
|
`// On the view's state, one field — the reference and its text, in one value.`,
|
|
@@ -669,7 +669,7 @@ let manyProjectionPatch = (c: config): patch => {
|
|
|
669
669
|
let n = namesOf(c)
|
|
670
670
|
let set = setFieldOf(c)
|
|
671
671
|
{
|
|
672
|
-
into: `
|
|
672
|
+
into: `StateViewStream/${c.view}_Projection.res`,
|
|
673
673
|
at: `the projection's \`switch\`, and one field on \`${c.view}\`'s state`,
|
|
674
674
|
contents: lines([
|
|
675
675
|
`// On the view's state, one field — the set, primary first.`,
|
|
@@ -738,9 +738,9 @@ let emit = (~config: config, ~into: string, ~tests: string): output => {
|
|
|
738
738
|
let n = namesOf(config)
|
|
739
739
|
{
|
|
740
740
|
files: [
|
|
741
|
-
{path: `${into}/
|
|
741
|
+
{path: `${into}/StateChange/${n.slice}.res`, contents: sliceSpec(config)},
|
|
742
742
|
{
|
|
743
|
-
path: `${into}/
|
|
743
|
+
path: `${into}/StateChange/${n.slice}_Behavior.res`,
|
|
744
744
|
contents: sliceBehavior(config),
|
|
745
745
|
},
|
|
746
746
|
{
|
|
@@ -437,7 +437,7 @@ function conformanceBinding(c) {
|
|
|
437
437
|
function singleProjectionPatch(c) {
|
|
438
438
|
let n = namesOf(c);
|
|
439
439
|
return {
|
|
440
|
-
into: `
|
|
440
|
+
into: `StateViewStream/` + c.view + `_Projection.res`,
|
|
441
441
|
at: `the projection's \`switch\`, and one field on \`` + c.view + `\`'s state`,
|
|
442
442
|
contents: [
|
|
443
443
|
`// On the view's state, one field — the reference and its text, in one value.`,
|
|
@@ -477,7 +477,7 @@ function manyProjectionPatch(c) {
|
|
|
477
477
|
let n = namesOf(c);
|
|
478
478
|
let set = c.file + "s";
|
|
479
479
|
return {
|
|
480
|
-
into: `
|
|
480
|
+
into: `StateViewStream/` + c.view + `_Projection.res`,
|
|
481
481
|
at: `the projection's \`switch\`, and one field on \`` + c.view + `\`'s state`,
|
|
482
482
|
contents: [
|
|
483
483
|
`// On the view's state, one field — the set, primary first.`,
|
|
@@ -546,11 +546,11 @@ function emit(config, into, tests) {
|
|
|
546
546
|
return {
|
|
547
547
|
files: [
|
|
548
548
|
{
|
|
549
|
-
path: into + `/
|
|
549
|
+
path: into + `/StateChange/` + n.slice + `.res`,
|
|
550
550
|
contents: sliceSpec(config)
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
|
-
path: into + `/
|
|
553
|
+
path: into + `/StateChange/` + n.slice + `_Behavior.res`,
|
|
554
554
|
contents: sliceBehavior(config)
|
|
555
555
|
},
|
|
556
556
|
{
|