Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export const simpleData = {
  text: "This text exists for no reason",
};
 
export const textareaConfigSimple = `<View>
  <Text name="text"/>
  <TextArea name="desc" toName="text" />
</View>`;
 
export const textareaConfigPerRegion = `<View>
  <Labels name="lbl" toName="text">
    <Label value="Word" />
  </Labels>
  <Text name="text" value="$text"/>
  <View visibleWhen="region-selected">
    <Header>Region description</Header>
    <TextArea name="local" toName="text" perRegion="true" />
  </View>
  <Header>Global description</Header>
  <TextArea name="global" toName="text" />
</View>`;
 
export const textareaResultsPerRegion = [
  {
    id: "reg1",
    type: "labels",
    from_name: "lbl",
    to_name: "text",
    value: {
      start: 5,
      end: 9,
      labels: ["Word"],
      text: "text",
    },
  },
];
 
export const textareaConfigWithValue = `<View>
  <Text name="text"/>
  <TextArea name="desc" toName="text" value="Pre-filled text" />
</View>`;
 
export const textareaConfigWithValueAndRows = `<View>
  <Text name="text"/>
  <TextArea name="desc" toName="text" value="Pre-filled text" rows="3" />
</View>`;
 
export const textareaConfigWithMaxSubmissions = `<View>
  <Text name="text"/>
  <TextArea name="desc" toName="text" maxSubmissions="2" />
</View>`;
 
export const textareaConfigWithValueAndMaxSubmissions = `<View>
  <Text name="text"/>
  <TextArea name="desc" toName="text" value="Pre-filled text" maxSubmissions="2" />
</View>`;