@aegis-framework/pandora 0.6.2 → 0.7.0
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/README.md +226 -27
- package/dist/pandora.browser.js +15 -26
- package/dist/pandora.browser.js.map +38 -37
- package/dist/pandora.js +15 -26
- package/dist/pandora.js.map +37 -36
- package/dist/types/Component.d.ts +226 -30
- package/dist/types/Component.d.ts.map +1 -1
- package/dist/types/Decorators.d.ts +47 -33
- package/dist/types/Decorators.d.ts.map +1 -1
- package/dist/types/Registry.d.ts +51 -13
- package/dist/types/Registry.d.ts.map +1 -1
- package/dist/types/RenderState.d.ts +29 -0
- package/dist/types/RenderState.d.ts.map +1 -0
- package/dist/types/ShadowComponent.d.ts +15 -3
- package/dist/types/ShadowComponent.d.ts.map +1 -1
- package/dist/types/Testing.d.ts +12 -9
- package/dist/types/Testing.d.ts.map +1 -1
- package/dist/types/TypedState.d.ts +1 -1
- package/dist/types/TypedState.d.ts.map +1 -1
- package/dist/types/Types.d.ts +4 -2
- package/dist/types/Types.d.ts.map +1 -1
- package/dist/types/Util.d.ts +119 -62
- package/dist/types/Util.d.ts.map +1 -1
- package/dist/types/browser.d.ts +1 -1
- package/dist/types/browser.d.ts.map +1 -1
- package/dist/types/index.d.ts +20 -17
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +31 -24
package/dist/types/index.d.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import ShadowComponent from './ShadowComponent';
|
|
3
|
-
import Registry from './Registry';
|
|
4
|
-
import { Register, Subscribe, Attribute, Property, State, Computed, Watch, Query, QueryAll, Slot, Listen, Emitter, Style, ClassList } from './Decorators';
|
|
5
|
-
import { reactive, addDecoratorEffect, addTeardown } from './Util';
|
|
6
|
-
import { createState } from './TypedState';
|
|
7
|
-
import * as testing from './Testing';
|
|
8
|
-
import * as Util from './Util';
|
|
9
|
-
import * as Types from './Types';
|
|
10
|
-
import { html, svg, nothing, noChange, render } from 'lit-html';
|
|
11
|
-
import { directive, Directive, PartType } from 'lit-html/directive.js';
|
|
1
|
+
import { html, noChange, nothing, render, svg } from 'lit-html';
|
|
12
2
|
import { AsyncDirective } from 'lit-html/async-directive.js';
|
|
13
|
-
import {
|
|
3
|
+
import { clearPart, getCommittedValue, getDirectiveClass, insertPart, isCompiledTemplateResult, isDirectiveResult, isPrimitive, isSingleExpression, isTemplateResult, removePart, setChildPartValue, setCommittedValue, TemplateResultType } from 'lit-html/directive-helpers.js';
|
|
4
|
+
import { Directive, directive, PartType } from 'lit-html/directive.js';
|
|
14
5
|
import { asyncAppend } from 'lit-html/directives/async-append.js';
|
|
15
6
|
import { asyncReplace } from 'lit-html/directives/async-replace.js';
|
|
16
7
|
import { cache } from 'lit-html/directives/cache.js';
|
|
@@ -23,20 +14,30 @@ import { keyed } from 'lit-html/directives/keyed.js';
|
|
|
23
14
|
import { live } from 'lit-html/directives/live.js';
|
|
24
15
|
import { map } from 'lit-html/directives/map.js';
|
|
25
16
|
import { range } from 'lit-html/directives/range.js';
|
|
26
|
-
import {
|
|
17
|
+
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
27
18
|
import { repeat } from 'lit-html/directives/repeat.js';
|
|
28
19
|
import { styleMap } from 'lit-html/directives/style-map.js';
|
|
29
20
|
import { templateContent } from 'lit-html/directives/template-content.js';
|
|
30
21
|
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
|
|
31
|
-
import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';
|
|
32
22
|
import { unsafeMathML } from 'lit-html/directives/unsafe-mathml.js';
|
|
23
|
+
import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';
|
|
33
24
|
import { until } from 'lit-html/directives/until.js';
|
|
34
25
|
import { when } from 'lit-html/directives/when.js';
|
|
26
|
+
import Component from './Component.js';
|
|
27
|
+
import { Attribute, ClassList, Computed, Emitter, Listen, Property, Query, QueryAll, Register, Slot, State, Style, Subscribe, Watch } from './Decorators.js';
|
|
28
|
+
import Registry, { VERSION } from './Registry.js';
|
|
29
|
+
import ShadowComponent from './ShadowComponent.js';
|
|
30
|
+
import * as testing from './Testing.js';
|
|
31
|
+
import { createState } from './TypedState.js';
|
|
32
|
+
import * as Types from './Types.js';
|
|
33
|
+
import { addDecoratorEffect, addTeardown, reactive, reactiveFields } from './Util.js';
|
|
34
|
+
import * as Util from './Util.js';
|
|
35
35
|
export { Component, ShadowComponent, Registry };
|
|
36
|
+
export { VERSION };
|
|
36
37
|
export { Register, Subscribe, Attribute, Property, State, Computed, Watch, Query, QueryAll, Slot, Listen, Emitter, Style, ClassList };
|
|
37
|
-
export { reactive, addDecoratorEffect, addTeardown };
|
|
38
|
+
export { reactive, reactiveFields, addDecoratorEffect, addTeardown };
|
|
38
39
|
export { createState };
|
|
39
|
-
export type { TypedState } from './TypedState';
|
|
40
|
+
export type { TypedState } from './TypedState.js';
|
|
40
41
|
export { testing };
|
|
41
42
|
export { html, svg, nothing, noChange, render };
|
|
42
43
|
export { asyncAppend, asyncReplace, cache, choose, classMap, guard, ifDefined, join, keyed, live, map, range, ref, createRef, repeat, styleMap, templateContent, unsafeHTML, unsafeSVG, unsafeMathML, until, when, };
|
|
@@ -45,5 +46,7 @@ export { isPrimitive, isTemplateResult, isCompiledTemplateResult, isDirectiveRes
|
|
|
45
46
|
export type { TemplateResult, SVGTemplateResult, RenderOptions } from 'lit-html';
|
|
46
47
|
export type { DirectiveClass, DirectiveResult, DirectiveParameters, PartInfo, ChildPartInfo, AttributePartInfo, ElementPartInfo, Part, ChildPart, AttributePart, BooleanAttributePart, ElementPart, EventPart, PropertyPart, } from 'lit-html/directive.js';
|
|
47
48
|
export { Util, Types };
|
|
48
|
-
export type { Style as StyleObject, CSSValue, CSSProperties, CSSObject, TemplateValue, TemplateFunction, ReactiveOptions, DecoratorInstance, DecoratorEffect, } from './Types';
|
|
49
|
+
export type { Style as StyleObject, CSSValue, CSSProperties, CSSObject, TemplateValue, TemplateFunction, ReactiveOptions, DecoratorInstance, DecoratorEffect, } from './Types.js';
|
|
50
|
+
export type { RegisterOptions, StateOptions, PropertyOptions, AttributeOptions, ListenOptions, ClassListMap, } from './Decorators.js';
|
|
51
|
+
export type { StateSubscriber, LifecycleCallback, ErrorCallback, MiddlewareType, RenderType, Middleware, ComponentLoader, ComponentStats, RegisteredCopy, } from './Registry.js';
|
|
49
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,wBAAwB,EACxB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAA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F,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjF,YAAY,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,SAAS,EACT,YAAY,GACb,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;AAEvB,YAAY,EACV,KAAK,IAAI,WAAW,EACpB,QAAQ,EACR,aAAa,EACb,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,UAAU,EACV,UAAU,EACV,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aegis-framework/pandora",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Aegis Framework Web Components Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/pandora.js",
|
|
@@ -16,14 +16,16 @@
|
|
|
16
16
|
"types": "./dist/types/browser.d.ts",
|
|
17
17
|
"import": "./dist/pandora.browser.js",
|
|
18
18
|
"default": "./dist/pandora.browser.js"
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
20
21
|
},
|
|
21
22
|
"sideEffects": [
|
|
23
|
+
"./dist/pandora.js",
|
|
22
24
|
"./dist/pandora.browser.js"
|
|
23
25
|
],
|
|
24
26
|
"repository": {
|
|
25
27
|
"type": "git",
|
|
26
|
-
"url": "https://github.com/AegisFramework/Pandora.git"
|
|
28
|
+
"url": "git+https://github.com/AegisFramework/Pandora.git"
|
|
27
29
|
},
|
|
28
30
|
"bugs": {
|
|
29
31
|
"url": "https://github.com/AegisFramework/Pandora/issues"
|
|
@@ -41,31 +43,36 @@
|
|
|
41
43
|
"library"
|
|
42
44
|
],
|
|
43
45
|
"scripts": {
|
|
44
|
-
"build": "bun clean && bun lint && bun check && bun build:module && bun build:
|
|
45
|
-
"build:module": "bun
|
|
46
|
-
"build:
|
|
47
|
-
"
|
|
48
|
-
"check": "
|
|
49
|
-
"lint": "eslint
|
|
50
|
-
"
|
|
46
|
+
"build": "bun run clean && bun run lint && bun run check && bun run build:module && bun run build:types && bun run check:package",
|
|
47
|
+
"build:module": "bun run scripts/build-bundles.ts",
|
|
48
|
+
"build:types": "tsc --emitDeclarationOnly --rootDir ./src --declarationDir ./dist/types",
|
|
49
|
+
"check": "tsc --noEmit && tsc -p cypress/tsconfig.json --noEmit",
|
|
50
|
+
"check:package": "publint --strict && attw --pack . --profile esm-only",
|
|
51
|
+
"lint": "eslint .",
|
|
52
|
+
"lint:fix": "eslint . --fix",
|
|
53
|
+
"clean": "bun -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
51
54
|
"test": "cypress run --component",
|
|
52
|
-
"test:e2e": "cypress run --e2e",
|
|
53
|
-
"test:open": "cypress open"
|
|
55
|
+
"test:e2e": "bun run build:module && cypress run --e2e",
|
|
56
|
+
"test:open": "cypress open",
|
|
57
|
+
"prepublishOnly": "bun run build"
|
|
54
58
|
},
|
|
55
59
|
"dependencies": {
|
|
56
|
-
"lit-html": "^3.
|
|
60
|
+
"lit-html": "^3.3.3"
|
|
57
61
|
},
|
|
58
62
|
"devDependencies": {
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@typescript
|
|
63
|
-
"bun": "^1.
|
|
64
|
-
"cypress": "^
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
63
|
+
"@aegis-framework/eslint-config": "^0.1.0",
|
|
64
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
65
|
+
"@eslint/js": "^10.0.1",
|
|
66
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
67
|
+
"bun": "^1.4.5",
|
|
68
|
+
"cypress": "^16.4.0",
|
|
69
|
+
"esbuild": "^0.28.2",
|
|
70
|
+
"eslint": "^10.15.0",
|
|
71
|
+
"globals": "^17.14.0",
|
|
72
|
+
"publint": "^0.3.25",
|
|
73
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
74
|
+
"typescript-eslint": "^8.74.0",
|
|
75
|
+
"vite": "^8.4.0"
|
|
69
76
|
},
|
|
70
77
|
"files": [
|
|
71
78
|
"dist/",
|
|
@@ -74,5 +81,5 @@
|
|
|
74
81
|
"package.json"
|
|
75
82
|
],
|
|
76
83
|
"browserslist": "> 0.5%, last 2 versions, not dead",
|
|
77
|
-
"packageManager": "bun@1.
|
|
84
|
+
"packageManager": "bun@1.4.5"
|
|
78
85
|
}
|