onelaraveljs 2.0.0 → 2.1.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/index.js +8 -45
- package/package.json +5 -7
package/index.js
CHANGED
|
@@ -1,48 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { StoreService } from './src/v1/core/services/StoreService.js';
|
|
10
|
-
import { HttpService } from './src/v1/core/services/HttpService.js';
|
|
11
|
-
import { StorageService } from './src/v1/core/services/StorageService.js';
|
|
12
|
-
|
|
13
|
-
// V2 Core Framework (Main Library)
|
|
14
|
-
import * as V2Core from './dist/index.js';
|
|
15
|
-
|
|
16
|
-
// Re-export all V2 components as main exports
|
|
1
|
+
/**
|
|
2
|
+
* OneJS Framework V2.0.0
|
|
3
|
+
* Modern TypeScript Framework for Laravel Integration
|
|
4
|
+
*
|
|
5
|
+
* Pure V2 Export - V1 has been completely removed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Export all V2 framework components
|
|
17
9
|
export * from './dist/index.js';
|
|
18
10
|
|
|
19
|
-
// V1 Legacy Support (Backward Compatible)
|
|
20
|
-
export { OneMarkup } from './src/v1/core/OneMarkup.js';
|
|
21
|
-
|
|
22
|
-
// V1 Services (Legacy - Use V2 equivalents)
|
|
23
|
-
export const Store = StoreService.getInstance();
|
|
24
|
-
export const Storage = StorageService.getInstance();
|
|
25
|
-
export const EventBus = EventService.getInstance();
|
|
26
|
-
export const Http = new HttpService();
|
|
27
|
-
|
|
28
|
-
// V1 Components (Legacy - Deprecated)
|
|
29
|
-
export {
|
|
30
|
-
App as LegacyApp,
|
|
31
|
-
viewLoader as legacyViewLoader,
|
|
32
|
-
EventService as LegacyEventService,
|
|
33
|
-
initApp as legacyInitApp,
|
|
34
|
-
View as LegacyView,
|
|
35
|
-
StoreService as LegacyStoreService,
|
|
36
|
-
HttpService as LegacyHttpService,
|
|
37
|
-
StorageService as LegacyStorageService,
|
|
38
|
-
logger as legacyLogger
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
// V2 as Default Export
|
|
42
|
-
export default V2Core;
|
|
43
|
-
|
|
44
|
-
// Backward compatibility aliases
|
|
45
|
-
export const V2 = V2Core;
|
|
46
|
-
export const V1 = { App, viewLoader, EventService, initApp, View, StoreService, HttpService, StorageService, logger };
|
|
47
|
-
|
|
48
11
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onelaraveljs",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "OneJS V2 Framework - Modern JavaScript Framework for Laravel
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "OneJS V2 TypeScript Framework - Modern JavaScript Framework for Laravel (V1-free)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.js",
|
|
8
|
-
"./plugins": "./plugins.js",
|
|
9
|
-
"./
|
|
10
|
-
"./
|
|
11
|
-
"./v2/core": "./dist/core/index.js",
|
|
12
|
-
"./v2/scripts/build-views": "./src/v2/scripts/build-views.js"
|
|
8
|
+
"./plugins": "./plugins.js",
|
|
9
|
+
"./core": "./dist/core/index.js",
|
|
10
|
+
"./scripts/build-views": "./src/v2/scripts/build-views.js"
|
|
13
11
|
},
|
|
14
12
|
"bin": {
|
|
15
13
|
"onejs-build": "bin/onejs-build.js"
|