Skip to content

Commit a556294

Browse files
authored
Merge pull request #89 from lisb/[email protected]
Update lib/*.js based on albero-client-web@[email protected]
2 parents ab76965 + d87dabf commit a556294

11 files changed

+551
-15
lines changed

.github/workflows/npmpublish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
1515
node-version: 18
1616
registry-url: https://registry.npmjs.org/

.github/workflows/testing.yml

+27-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,45 @@
1-
name: testing
1+
name: Test direct-js
22

33
on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- LICENSE
9+
- '**.md'
710
pull_request:
811
branches:
912
- master
13+
paths-ignore:
14+
- LICENSE
15+
- '**.md'
16+
17+
permissions:
18+
contents: read
19+
20+
defaults:
21+
run:
22+
shell: bash
1023

1124
jobs:
1225
test:
13-
runs-on: ubuntu-latest
1426
strategy:
1527
matrix:
16-
node: [ 16, 18, 20 ]
28+
os:
29+
- ubuntu-latest
30+
- windows-latest
31+
- macos-latest
32+
node:
33+
- 18.x
34+
- 20.x
35+
- 22.x
1736

37+
runs-on: ${{ matrix.os }}
1838
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-node@v3
39+
- uses: actions/checkout@v4
40+
41+
- name: Use Node.js ${{ matrix.node }}
42+
uses: actions/setup-node@v4
2143
with:
2244
node-version: ${{ matrix.node }}
2345

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ node_modules
2929
# misc
3030
.env
3131
storage.local
32+
*.tgz

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ example/
1010
test/
1111
.github/
1212
bower.json
13+
storage.local/
14+
.env
15+
*.tgz

NOTICE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NOTICES
2+
3+
This package incorporates material from third parties.
4+
5+
## xml.xsd
6+
7+
Source: <http://www.w3.org/2001/xml.xsd>
8+
9+
[Copyright](https://www.w3.org/Consortium/Legal/ipr-notice) © 2001 [World Wide Web Consortium](https://www.w3.org/). All Rights Reserved. This work is distributed under the [W3C® Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software) [1] in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
[1] <https://www.w3.org/Consortium/Legal/copyright-software>

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# direct-js
2+
23
Low-level javascript library for direct

lib/direct-node.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/direct.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/note-richtext.v1.xsd

+210
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3+
xmlns:note="http://ns.direct4b.com/note"
4+
targetNamespace="http://ns.direct4b.com/note"
5+
elementFormDefault="unqualified"
6+
attributeFormDefault="unqualified">
7+
<xs:import namespace='http://www.w3.org/XML/1998/namespace'
8+
schemaLocation='xml.xsd' />
9+
<xs:element name="note">
10+
<xs:annotation>
11+
<xs:documentation>root tag</xs:documentation>
12+
</xs:annotation>
13+
<xs:complexType mixed="true">
14+
<xs:complexContent>
15+
<xs:extension base="note:note.content">
16+
<xs:attribute name="version" use="required">
17+
<xs:simpleType>
18+
<xs:restriction base="xs:integer">
19+
<xs:minInclusive value="0" />
20+
</xs:restriction>
21+
</xs:simpleType>
22+
</xs:attribute>
23+
<xs:attribute ref="xml:space" fixed="preserve" />
24+
</xs:extension>
25+
</xs:complexContent>
26+
</xs:complexType>
27+
</xs:element>
28+
<xs:element name="checkbox">
29+
<xs:annotation>
30+
<xs:documentation>checkbox</xs:documentation>
31+
</xs:annotation>
32+
<xs:complexType mixed="true">
33+
<xs:complexContent>
34+
<xs:extension base="note:checkbox.content">
35+
<xs:attribute name="checked" type="xs:boolean" use="optional" default="false" />
36+
</xs:extension>
37+
</xs:complexContent>
38+
</xs:complexType>
39+
</xs:element>
40+
<xs:element name="textsize">
41+
<xs:annotation>
42+
<xs:documentation>size of text</xs:documentation>
43+
</xs:annotation>
44+
<xs:complexType mixed="true">
45+
<xs:complexContent>
46+
<xs:extension base="note:textsize.content">
47+
<xs:attribute name="value" use="required">
48+
<xs:simpleType>
49+
<xs:restriction base="xs:string">
50+
<xs:enumeration value="x-large" />
51+
<xs:enumeration value="large" />
52+
<xs:enumeration value="medium" />
53+
<xs:enumeration value="small" />
54+
</xs:restriction>
55+
</xs:simpleType>
56+
</xs:attribute>
57+
<xs:attribute ref="xml:space" fixed="preserve" />
58+
</xs:extension>
59+
</xs:complexContent>
60+
</xs:complexType>
61+
</xs:element>
62+
<xs:element name="color">
63+
<xs:annotation>
64+
<xs:documentation>color of text</xs:documentation>
65+
</xs:annotation>
66+
<xs:complexType mixed="true">
67+
<xs:complexContent>
68+
<xs:extension base="note:color.content">
69+
<xs:attribute name="name" use="required">
70+
<xs:simpleType>
71+
<xs:restriction base="xs:string">
72+
<xs:enumeration value="red" />
73+
<xs:enumeration value="blue" />
74+
<xs:enumeration value="green" />
75+
<xs:enumeration value="default" />
76+
</xs:restriction>
77+
</xs:simpleType>
78+
</xs:attribute>
79+
<xs:attribute ref="xml:space" fixed="preserve" />
80+
</xs:extension>
81+
</xs:complexContent>
82+
</xs:complexType>
83+
</xs:element>
84+
<xs:element name="link">
85+
<xs:annotation>
86+
<xs:documentation>link</xs:documentation>
87+
</xs:annotation>
88+
<xs:complexType mixed="true">
89+
<xs:complexContent>
90+
<xs:extension base="note:link.content">
91+
<xs:attribute name="url" type="note:URI" use="required" />
92+
</xs:extension>
93+
</xs:complexContent>
94+
</xs:complexType>
95+
</xs:element>
96+
<xs:element name="b">
97+
<xs:annotation>
98+
<xs:documentation>bold font</xs:documentation>
99+
</xs:annotation>
100+
<xs:complexType mixed="true">
101+
<xs:complexContent>
102+
<xs:extension base="note:b.content">
103+
<xs:attribute ref="xml:space" fixed="preserve" />
104+
</xs:extension>
105+
</xs:complexContent>
106+
</xs:complexType>
107+
</xs:element>
108+
<xs:element name="u">
109+
<xs:annotation>
110+
<xs:documentation>under line</xs:documentation>
111+
</xs:annotation>
112+
<xs:complexType mixed="true">
113+
<xs:complexContent>
114+
<xs:extension base="note:u.content">
115+
<xs:attribute ref="xml:space" fixed="preserve" />
116+
</xs:extension>
117+
</xs:complexContent>
118+
</xs:complexType>
119+
</xs:element>
120+
<xs:element name="strike">
121+
<xs:annotation>
122+
<xs:documentation>strike-through line</xs:documentation>
123+
</xs:annotation>
124+
<xs:complexType mixed="true">
125+
<xs:complexContent>
126+
<xs:extension base="note:strike.content">
127+
<xs:attribute ref="xml:space" fixed="preserve" />
128+
</xs:extension>
129+
</xs:complexContent>
130+
</xs:complexType>
131+
</xs:element>
132+
<xs:complexType name="note.content" mixed="true">
133+
<xs:choice minOccurs="0" maxOccurs="unbounded">
134+
<xs:element ref="note:textsize" />
135+
<xs:element ref="note:color" />
136+
<xs:element ref="note:b" />
137+
<xs:element ref="note:link" />
138+
<xs:element ref="note:u" />
139+
<xs:element ref="note:strike" />
140+
<xs:element ref="note:checkbox" />
141+
</xs:choice>
142+
</xs:complexType>
143+
<xs:complexType name="checkbox.content" mixed="true">
144+
<xs:choice minOccurs="0" maxOccurs="unbounded">
145+
<xs:element ref="note:color" />
146+
<xs:element ref="note:b" />
147+
<xs:element ref="note:link" />
148+
<xs:element ref="note:u" />
149+
<xs:element ref="note:strike" />
150+
</xs:choice>
151+
</xs:complexType>
152+
<xs:complexType name="textsize.content" mixed="true">
153+
<xs:choice minOccurs="0" maxOccurs="unbounded">
154+
<xs:element ref="note:color" />
155+
<xs:element ref="note:b" />
156+
<xs:element ref="note:link" />
157+
<xs:element ref="note:u" />
158+
<xs:element ref="note:strike" />
159+
</xs:choice>
160+
</xs:complexType>
161+
<xs:complexType name="color.content" mixed="true">
162+
<xs:choice minOccurs="0" maxOccurs="unbounded">
163+
<xs:element ref="note:textsize" />
164+
<xs:element ref="note:b" />
165+
<xs:element ref="note:link" />
166+
<xs:element ref="note:u" />
167+
<xs:element ref="note:strike" />
168+
</xs:choice>
169+
</xs:complexType>
170+
<xs:complexType name="link.content" mixed="true">
171+
<xs:choice minOccurs="0" maxOccurs="unbounded">
172+
<xs:element ref="note:textsize" />
173+
<xs:element ref="note:b" />
174+
<xs:element ref="note:strike" />
175+
</xs:choice>
176+
</xs:complexType>
177+
<xs:complexType name="u.content" mixed="true">
178+
<xs:choice minOccurs="0" maxOccurs="unbounded">
179+
<xs:element ref="note:textsize" />
180+
<xs:element ref="note:color" />
181+
<xs:element ref="note:b" />
182+
<xs:element ref="note:link" />
183+
<xs:element ref="note:strike" />
184+
</xs:choice>
185+
</xs:complexType>
186+
<xs:complexType name="strike.content" mixed="true">
187+
<xs:choice minOccurs="0" maxOccurs="unbounded">
188+
<xs:element ref="note:textsize" />
189+
<xs:element ref="note:color" />
190+
<xs:element ref="note:b" />
191+
<xs:element ref="note:link" />
192+
<xs:element ref="note:u" />
193+
</xs:choice>
194+
</xs:complexType>
195+
<xs:complexType name="b.content" mixed="true">
196+
<xs:choice minOccurs="0" maxOccurs="unbounded">
197+
<xs:element ref="note:textsize" />
198+
<xs:element ref="note:color" />
199+
<xs:element ref="note:link" />
200+
<xs:element ref="note:u" />
201+
<xs:element ref="note:strike" />
202+
</xs:choice>
203+
</xs:complexType>
204+
<xs:simpleType name="URI">
205+
<xs:annotation>
206+
<xs:documentation> a Uniform Resource Identifier, see [RFC2396] </xs:documentation>
207+
</xs:annotation>
208+
<xs:restriction base="xs:anyURI" />
209+
</xs:simpleType>
210+
</xs:schema>

0 commit comments

Comments
 (0)