@strav/view 0.1.0 → 0.1.1

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": "@strav/view",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "View layer for the Strav framework — template engine, Vue SFC islands, and SPA client router",
6
6
  "license": "MIT",
@@ -7,7 +7,7 @@
7
7
  * Uses shared route definitions (from defineRoutes) so server and client stay in sync.
8
8
  *
9
9
  * Usage:
10
- * import { createRouter, useRouter, useRoute } from '@stravigor/view/client/router'
10
+ * import { createRouter, useRouter, useRoute } from '@strav/view/client/router'
11
11
  */
12
12
 
13
13
  import {
package/src/compiler.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TemplateError } from '@stravigor/kernel/exceptions/errors'
1
+ import { TemplateError } from '@strav/kernel/exceptions/errors'
2
2
  import type { Token } from './tokenizer.ts'
3
3
 
4
4
  export interface CompilationResult {
package/src/engine.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { resolve, join } from 'node:path'
2
2
  import { watch as fsWatch, type FSWatcher } from 'node:fs'
3
- import { inject } from '@stravigor/kernel/core/inject'
4
- import Configuration from '@stravigor/kernel/config/configuration'
3
+ import { inject } from '@strav/kernel/core/inject'
4
+ import Configuration from '@strav/kernel/config/configuration'
5
5
  import { escapeHtml } from './escape.ts'
6
6
  import { tokenize } from './tokenizer.ts'
7
7
  import { compile } from './compiler.ts'
8
8
  import TemplateCache from './cache.ts'
9
9
  import type { CacheEntry, RenderFunction, IncludeFn } from './cache.ts'
10
- import { ConfigurationError, TemplateError } from '@stravigor/kernel/exceptions/errors'
10
+ import { ConfigurationError, TemplateError } from '@strav/kernel/exceptions/errors'
11
11
 
12
12
  const MAX_INCLUDE_DEPTH = 50
13
13
 
@@ -1,7 +1,7 @@
1
- import ServiceProvider from '@stravigor/kernel/core/service_provider'
2
- import type Application from '@stravigor/kernel/core/application'
3
- import Configuration from '@stravigor/kernel/config/configuration'
4
- import Context from '@stravigor/http/http/context'
1
+ import ServiceProvider from '@strav/kernel/core/service_provider'
2
+ import type Application from '@strav/kernel/core/application'
3
+ import Configuration from '@strav/kernel/config/configuration'
4
+ import Context from '@strav/http/http/context'
5
5
  import ViewEngine from '../engine.ts'
6
6
  import { AssetVersioner } from '../asset_versioner.ts'
7
7
 
package/src/spa_routes.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type Router from '@stravigor/http/http/router'
2
- import type { HandlerInput } from '@stravigor/http/http/router'
1
+ import type Router from '@strav/http/http/router'
2
+ import type { HandlerInput } from '@strav/http/http/router'
3
3
  import type { SpaRouteDefinition } from './route_types.ts'
4
4
 
5
5
  /**
package/src/tokenizer.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TemplateError } from '@stravigor/kernel/exceptions/errors'
1
+ import { TemplateError } from '@strav/kernel/exceptions/errors'
2
2
  export type TokenType = 'text' | 'escaped' | 'raw' | 'comment' | 'directive' | 'vue_island'
3
3
 
4
4
  export interface VueAttr {