@regardio/brand 0.8.1 → 0.9.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.
Files changed (36) hide show
  1. package/README.md +8 -5
  2. package/dist/components/button.stories.d.mts +103 -63
  3. package/dist/generated/icons/regardio-ensemble-icon-color-full.mjs +136 -136
  4. package/dist/generated/icons/regardio-ensemble-icon-color.mjs +136 -136
  5. package/dist/generated/icons/{regardio-system-zest-icon.d.mts → system-layer-bridges-icon.d.mts} +3 -3
  6. package/dist/generated/icons/{regardio-system-bridge-icon.mjs → system-layer-bridges-icon.mjs} +4 -4
  7. package/dist/generated/icons/{regardio-system-plan-icon.d.mts → system-layer-circles-icon.d.mts} +3 -3
  8. package/dist/generated/icons/{regardio-system-circle-icon.mjs → system-layer-circles-icon.mjs} +3 -3
  9. package/dist/generated/icons/{regardio-system-spark-icon.d.mts → system-layer-facets-icon.d.mts} +3 -3
  10. package/dist/generated/icons/{regardio-system-facet-icon.mjs → system-layer-facets-icon.mjs} +4 -4
  11. package/dist/generated/icons/{regardio-system-facet-icon.d.mts → system-layer-plans-icon.d.mts} +3 -3
  12. package/dist/generated/icons/system-layer-plans-icon.mjs +19 -0
  13. package/dist/generated/icons/system-layer-pursuits-icon.d.mts +14 -0
  14. package/dist/generated/icons/{regardio-system-pursuit-icon.mjs → system-layer-pursuits-icon.mjs} +4 -4
  15. package/dist/generated/icons/system-layer-sources-icon.d.mts +14 -0
  16. package/dist/generated/icons/system-layer-sources-icon.mjs +19 -0
  17. package/dist/generated/sprites/compass-sprite-provider.mjs +323 -293
  18. package/dist/generated/sprites/compass-sprite.d.mts +5 -4
  19. package/dist/generated/sprites/compass-sprite.mjs +54 -3
  20. package/dist/styles/grid.css +47 -5
  21. package/dist/styles/index.css +3 -0
  22. package/dist/styles/tokens.css +1 -1
  23. package/dist/styles/typography.css +14 -32
  24. package/dist/styles/utopia.css +59 -0
  25. package/package.json +39 -40
  26. package/src/styles/grid.css +47 -5
  27. package/src/styles/index.css +3 -0
  28. package/src/styles/tokens.css +1 -1
  29. package/src/styles/typography.css +14 -32
  30. package/src/styles/utopia.css +59 -0
  31. package/dist/generated/icons/regardio-system-bridge-icon.d.mts +0 -14
  32. package/dist/generated/icons/regardio-system-circle-icon.d.mts +0 -14
  33. package/dist/generated/icons/regardio-system-plan-icon.mjs +0 -19
  34. package/dist/generated/icons/regardio-system-pursuit-icon.d.mts +0 -14
  35. package/dist/generated/icons/regardio-system-spark-icon.mjs +0 -19
  36. package/dist/generated/icons/regardio-system-zest-icon.mjs +0 -19
package/README.md CHANGED
@@ -54,13 +54,14 @@ logos, colors, and compass sprites.
54
54
  Raw SVG assets are available in `src/svg/`:
55
55
 
56
56
  - **`icons/`** — Regardio logos, icons, and system symbols
57
- - **`compass-base/`** — Compass sprite components (facets, sparks, bridges, pursuits)
57
+ - **`compass-base/`** — Compass sprite components (pursuits, needs, plans, circles, facets, bridges)
58
58
 
59
59
  ### React Components
60
60
 
61
61
  Generated React components are exported from the package:
62
62
 
63
63
  - **Icons & Logos** — `@regardio/brand/icons/*`
64
+ - **System Layer Icons** — `@regardio/brand/icons/system-layer-*`
64
65
  - **Sprites** — `@regardio/brand/sprites/*`
65
66
 
66
67
  ## Usage
@@ -70,6 +71,7 @@ Generated React components are exported from the package:
70
71
  ```tsx
71
72
  import { RegardioLogoColor } from "@regardio/brand/icons/regardio-logo-color";
72
73
  import { RegardioIconColor } from "@regardio/brand/icons/regardio-icon-color";
74
+ import { SystemLayerSourcesIcon } from "@regardio/brand/icons/system-layer-sources-icon";
73
75
  import { CompassSprite } from "@regardio/brand/sprites/compass-sprite";
74
76
  import { CompassSpriteProvider } from "@regardio/brand/sprites/compass-sprite-provider";
75
77
 
@@ -78,7 +80,8 @@ function App() {
78
80
  <CompassSpriteProvider>
79
81
  <RegardioLogoColor style={{ width: 200 }} />
80
82
  <RegardioIconColor style={{ fontSize: 48 }} />
81
- <CompassSprite id="spark.leisure.calm" width={80} height={80} />
83
+ <SystemLayerSourcesIcon style={{ fontSize: 32 }} />
84
+ <CompassSprite id="source-leisure-calm" width={80} height={80} />
82
85
  </CompassSpriteProvider>
83
86
  );
84
87
  }
@@ -106,9 +109,9 @@ Then use `CompassSprite` anywhere in your app to reference sprites by ID:
106
109
  ```tsx
107
110
  import { CompassSprite } from "@regardio/brand/sprites/compass-sprite";
108
111
 
109
- <CompassSprite id="spark.leisure.calm" width={80} height={80} />
110
- <CompassSprite id="facet.element.people" width={60} height={80} />
111
- <CompassSprite id="bridge.perspective.enables" width={100} height={70} />
112
+ <CompassSprite id="source-leisure-calm" width={80} height={80} />
113
+ <CompassSprite id="facet-element-people" width={60} height={80} />
114
+ <CompassSprite id="bridge-view-enables" width={100} height={70} />
112
115
  ```
113
116
 
114
117
  ### Regardio Color Scheme with Tailwind CSS
@@ -18,7 +18,7 @@ import SassEmbedded from "sass-embedded";
18
18
  import Less from "less";
19
19
  import Stylus from "stylus";
20
20
 
21
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/csf/index.d.ts
21
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/csf/index.d.ts
22
22
  declare global {
23
23
  interface SymbolConstructor {
24
24
  readonly observable: symbol;
@@ -1289,7 +1289,7 @@ type LoaderArgs<TRenderer extends Renderer, Loaders> = UnionToIntersection<Loade
1289
1289
  * args"
1290
1290
  */
1291
1291
  //#endregion
1292
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/router/index.d.ts
1292
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/router/index.d.ts
1293
1293
  /**
1294
1294
  * Actions represent the type of change to a location value.
1295
1295
  */
@@ -1779,7 +1779,7 @@ declare global {
1779
1779
  var __staticRouterHydrationData: HydrationState$3 | undefined;
1780
1780
  }
1781
1781
  //#endregion
1782
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/theming/index.d.ts
1782
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/theming/index.d.ts
1783
1783
  type SerializedStyles = {
1784
1784
  name: string;
1785
1785
  styles: string;
@@ -1970,7 +1970,7 @@ declare module '.' {
1970
1970
  interface Theme extends StorybookTheme {}
1971
1971
  }
1972
1972
  //#endregion
1973
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/preview-api/index.d.ts
1973
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/preview-api/index.d.ts
1974
1974
  declare global {
1975
1975
  var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
1976
1976
  var defaultProjectAnnotations: ProjectAnnotations<any>;
@@ -2481,21 +2481,21 @@ declare global {
2481
2481
  }
2482
2482
  /** System tags used throughout Storybook for categorizing and filtering stories and docs entries. */
2483
2483
  //#endregion
2484
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-events/index.d.ts
2484
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-events/index.d.ts
2485
2485
  declare global {
2486
2486
  interface SymbolConstructor {
2487
2487
  readonly observable: symbol;
2488
2488
  }
2489
2489
  }
2490
2490
  //#endregion
2491
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/common/index.d.ts
2491
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/common/index.d.ts
2492
2492
  declare global {
2493
2493
  interface SymbolConstructor {
2494
2494
  readonly observable: symbol;
2495
2495
  }
2496
2496
  } // Helper type. Not useful on its own.
2497
2497
  //#endregion
2498
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-server/index.d.ts
2498
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/core-server/index.d.ts
2499
2499
  /**
2500
2500
  * Actions represent the type of change to a location value.
2501
2501
  */
@@ -3006,7 +3006,7 @@ declare global {
3006
3006
  }
3007
3007
  /** System tags used throughout Storybook for categorizing and filtering stories and docs entries. */
3008
3008
  //#endregion
3009
- //#region node_modules/.pnpm/storybook@10.3.0_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/types/index.d.ts
3009
+ //#region node_modules/.pnpm/storybook@10.3.3_@testing-library+dom@10.4.1_prettier@2.8.8_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/types/index.d.ts
3010
3010
  /**
3011
3011
  * Actions represent the type of change to a location value.
3012
3012
  */
@@ -3668,7 +3668,7 @@ type ComposedStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = Part
3668
3668
  * will have partial props, as their props should be handled when composing stories
3669
3669
  */
3670
3670
  //#endregion
3671
- //#region node_modules/.pnpm/@storybook+react@10.3.0_react-dom@19.2.4_react@19.2.4__react@19.2.4_storybook@10.3.0_@t_64c16950eddcf08d4120cd73007f6b42/node_modules/@storybook/react/dist/index.d.ts
3671
+ //#region node_modules/.pnpm/@storybook+react@10.3.3_react-dom@19.2.4_react@19.2.4__react@19.2.4_storybook@10.3.3_@t_ad7a8c46a76c0f21d53ef569ab7a818b/node_modules/@storybook/react/dist/index.d.ts
3672
3672
  declare global {
3673
3673
  interface SymbolConstructor {
3674
3674
  readonly observable: symbol;
@@ -4005,7 +4005,7 @@ type AddMocks<TArgs, DefaultArgs> = Simplify<{ [T in keyof TArgs]: T extends key
4005
4005
  mock: {};
4006
4006
  }) ? DefaultArgs[T] : TArgs[T] : TArgs[T] }>;
4007
4007
  //#endregion
4008
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/hmrPayload.d.ts
4008
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/hmrPayload.d.ts
4009
4009
  type HotPayload = ConnectedPayload | PingPayload | UpdatePayload | FullReloadPayload | CustomPayload | ErrorPayload | PrunePayload;
4010
4010
  interface ConnectedPayload {
4011
4011
  type: 'connected';
@@ -4070,7 +4070,7 @@ interface ErrorPayload {
4070
4070
  };
4071
4071
  }
4072
4072
  //#endregion
4073
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts
4073
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts
4074
4074
  //#region src/shared/invokeMethods.d.ts
4075
4075
  interface FetchFunctionOptions {
4076
4076
  cached?: boolean;
@@ -4123,7 +4123,7 @@ interface ViteFetchResult {
4123
4123
  invalidate: boolean;
4124
4124
  }
4125
4125
  //#endregion
4126
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/customEvent.d.ts
4126
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/customEvent.d.ts
4127
4127
  interface CustomEventMap {
4128
4128
  // client events
4129
4129
  'vite:beforeUpdate': UpdatePayload;
@@ -4184,7 +4184,7 @@ type ForwardConsolePayload = {
4184
4184
  */
4185
4185
  type InferCustomEventPayload<T extends string> = T extends keyof CustomEventMap ? CustomEventMap[T] : any;
4186
4186
  //#endregion
4187
- //#region node_modules/.pnpm/rolldown@1.0.0-rc.9/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts
4187
+ //#region node_modules/.pnpm/rolldown@1.0.0-rc.11/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts
4188
4188
  //#region src/log/logging.d.ts
4189
4189
  /** @inline */
4190
4190
  type LogLevel$1 = "info" | "debug" | "warn";
@@ -4234,7 +4234,7 @@ interface RolldownError extends RolldownLog {
4234
4234
  }
4235
4235
  type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void; //#endregion
4236
4236
  //#endregion
4237
- //#region node_modules/.pnpm/@oxc-project+types@0.115.0/node_modules/@oxc-project/types/types.d.ts
4237
+ //#region node_modules/.pnpm/@oxc-project+types@0.122.0/node_modules/@oxc-project/types/types.d.ts
4238
4238
  // Auto-generated code, DO NOT EDIT DIRECTLY!
4239
4239
  // To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
4240
4240
  interface Program extends Span {
@@ -5520,20 +5520,20 @@ interface JSDocUnknownType extends Span {
5520
5520
  type: "TSJSDocUnknownType";
5521
5521
  parent?: Node$2;
5522
5522
  }
5523
- type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
5524
- type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
5525
- type LogicalOperator = "||" | "&&" | "??";
5526
- type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
5527
- type UpdateOperator = "++" | "--";
5523
+ type ModuleKind = "script" | "module" | "commonjs";
5528
5524
  interface Span {
5529
5525
  start: number;
5530
5526
  end: number;
5531
5527
  range?: [number, number];
5532
5528
  }
5533
- type ModuleKind = "script" | "module" | "commonjs";
5529
+ type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
5530
+ type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
5531
+ type LogicalOperator = "||" | "&&" | "??";
5532
+ type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
5533
+ type UpdateOperator = "++" | "--";
5534
5534
  type Node$2 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
5535
5535
  //#endregion
5536
- //#region node_modules/.pnpm/rolldown@1.0.0-rc.9/node_modules/rolldown/dist/shared/binding-BohGL_65.d.mts
5536
+ //#region node_modules/.pnpm/rolldown@1.0.0-rc.11/node_modules/rolldown/dist/shared/binding-CYVfiOV3.d.mts
5537
5537
  interface CodegenOptions {
5538
5538
  /**
5539
5539
  * Remove whitespace.
@@ -6209,15 +6209,25 @@ declare class BindingDecodedMap {
6209
6209
  * Each line is an array of segments, where each segment is [generatedColumn, sourceIndex, originalLine, originalColumn, nameIndex?].
6210
6210
  */
6211
6211
  get mappings(): Array<Array<Array<number>>>;
6212
+ /** The list of source indices that should be excluded from debugging. */
6213
+ get x_google_ignoreList(): Array<number> | null;
6212
6214
  }
6213
- declare class BindingMagicString$1 {
6215
+ declare class BindingMagicString {
6214
6216
  constructor(source: string, options?: BindingMagicStringOptions | undefined | null);
6215
6217
  get original(): string;
6216
6218
  get filename(): string | null;
6219
+ get indentExclusionRanges(): Array<Array<number>> | Array<number> | null;
6220
+ get ignoreList(): boolean;
6217
6221
  get offset(): number;
6218
6222
  set offset(offset: number);
6219
6223
  replace(from: string, to: string): this;
6220
6224
  replaceAll(from: string, to: string): this;
6225
+ /**
6226
+ * Returns the UTF-16 offset past the last match, or -1 if no match was found.
6227
+ * The JS wrapper uses this to update `lastIndex` on the caller's RegExp.
6228
+ * Global/sticky behavior is derived from the regex's own flags.
6229
+ */
6230
+ replaceRegex(from: RegExp, to: string): number;
6221
6231
  prepend(content: string): this;
6222
6232
  append(content: string): this;
6223
6233
  prependLeft(index: number, content: string): this;
@@ -6238,7 +6248,7 @@ declare class BindingMagicString$1 {
6238
6248
  * Returns `this` for method chaining.
6239
6249
  */
6240
6250
  move(start: number, end: number, index: number): this;
6241
- indent(indentor?: string | undefined | null): this;
6251
+ indent(indentor?: string | undefined | null, options?: BindingIndentOptions | undefined | null): this;
6242
6252
  /** Trims whitespace or specified characters from the start and end. */
6243
6253
  trim(charType?: string | undefined | null): this;
6244
6254
  /** Trims whitespace or specified characters from the start. */
@@ -6253,13 +6263,15 @@ declare class BindingMagicString$1 {
6253
6263
  */
6254
6264
  insert(index: number, content: string): void;
6255
6265
  /** Returns a clone of the MagicString instance. */
6256
- clone(): BindingMagicString$1;
6266
+ clone(): BindingMagicString;
6257
6267
  /** Returns the last character of the generated string, or an empty string if empty. */
6258
6268
  lastChar(): string;
6259
6269
  /** Returns the content after the last newline in the generated string. */
6260
6270
  lastLine(): string;
6271
+ /** Returns the guessed indentation string, or `\t` if none is found. */
6272
+ getIndentString(): string;
6261
6273
  /** Returns a clone with content outside the specified range removed. */
6262
- snip(start: number, end: number): BindingMagicString$1;
6274
+ snip(start: number, end: number): BindingMagicString;
6263
6275
  /**
6264
6276
  * Resets the portion of the string from `start` to `end` to its original content.
6265
6277
  * This undoes any modifications made to that range.
@@ -6267,8 +6279,12 @@ declare class BindingMagicString$1 {
6267
6279
  */
6268
6280
  reset(start: number, end: number): this;
6269
6281
  /**
6270
- * Returns the content between the specified original character positions.
6282
+ * Returns the content between the specified UTF-16 code unit positions (JS string indices).
6271
6283
  * Supports negative indices (counting from the end).
6284
+ *
6285
+ * When an index falls in the middle of a surrogate pair, the lone surrogate is
6286
+ * included in the result (matching the original magic-string / JS behavior).
6287
+ * This is done by returning a UTF-16 encoded JS string via `napi_create_string_utf16`.
6272
6288
  */
6273
6289
  slice(start?: number | undefined | null, end?: number | undefined | null): string;
6274
6290
  /**
@@ -6312,6 +6328,8 @@ declare class BindingSourceMap {
6312
6328
  get names(): Array<string>;
6313
6329
  /** The VLQ-encoded mappings string. */
6314
6330
  get mappings(): string;
6331
+ /** The list of source indices that should be excluded from debugging. */
6332
+ get x_google_ignoreList(): Array<number> | null;
6315
6333
  /** Returns the source map as a JSON string. */
6316
6334
  toString(): string;
6317
6335
  /** Returns the source map as a base64-encoded data URL. */
@@ -6324,17 +6342,7 @@ declare class BindingSourceMap {
6324
6342
  declare class BindingWatcherBundler {
6325
6343
  close(): Promise<void>;
6326
6344
  }
6327
- /**
6328
- * Cache for tsconfig resolution to avoid redundant file system operations.
6329
- *
6330
- * The cache stores resolved tsconfig configurations keyed by their file paths.
6331
- * When transforming multiple files in the same project, tsconfig lookups are
6332
- * deduplicated, improving performance.
6333
- *
6334
- * @category Utilities
6335
- * @experimental
6336
- */
6337
- type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post';
6345
+ type BindingBuiltinPluginName = 'builtin:bundle-analyzer' | 'builtin:esm-external-require' | 'builtin:isolated-declaration' | 'builtin:replace' | 'builtin:vite-alias' | 'builtin:vite-build-import-analysis' | 'builtin:vite-dynamic-import-vars' | 'builtin:vite-import-glob' | 'builtin:vite-json' | 'builtin:vite-load-fallback' | 'builtin:vite-manifest' | 'builtin:vite-module-preload-polyfill' | 'builtin:vite-react-refresh-wrapper' | 'builtin:vite-reporter' | 'builtin:vite-resolve' | 'builtin:vite-transform' | 'builtin:vite-wasm-fallback' | 'builtin:vite-web-worker-post' | 'builtin:oxc-runtime';
6338
6346
  /** Enhanced transform options with tsconfig and inputMap support. */
6339
6347
  interface BindingEnhancedTransformOptions {
6340
6348
  /** Treat the source text as 'js', 'jsx', 'ts', 'tsx', or 'dts'. */
@@ -6424,9 +6432,14 @@ interface BindingHookResolveIdExtraArgs {
6424
6432
  */
6425
6433
  kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept';
6426
6434
  }
6435
+ interface BindingIndentOptions {
6436
+ exclude?: Array<Array<number>> | Array<number>;
6437
+ }
6427
6438
  interface BindingMagicStringOptions {
6428
6439
  filename?: string;
6429
6440
  offset?: number;
6441
+ indentExclusionRanges?: Array<Array<number>> | Array<number>;
6442
+ ignoreList?: boolean;
6430
6443
  }
6431
6444
  interface BindingModules {
6432
6445
  values: Array<BindingRenderedModule>;
@@ -6525,12 +6538,11 @@ interface PreRenderedChunk {
6525
6538
  /** Exported variable names from this chunk. */
6526
6539
  exports: Array<string>;
6527
6540
  }
6528
- /** @hidden This is only expected to be used by Vite */
6529
6541
  interface ViteImportGlobMeta {
6530
6542
  isSubImportsPattern?: boolean;
6531
6543
  } //#endregion
6532
6544
  //#endregion
6533
- //#region node_modules/.pnpm/@rolldown+pluginutils@1.0.0-rc.9/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
6545
+ //#region node_modules/.pnpm/@rolldown+pluginutils@1.0.0-rc.11/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
6534
6546
  type StringOrRegExp$1 = string | RegExp;
6535
6547
  type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
6536
6548
  type FilterExpression = And | Or | Not | Id | ImporterId | ModuleType$1 | Code | Query;
@@ -6592,7 +6604,7 @@ declare class Exclude$1 {
6592
6604
  constructor(expr: FilterExpression);
6593
6605
  }
6594
6606
  //#endregion
6595
- //#region node_modules/.pnpm/rolldown@1.0.0-rc.9/node_modules/rolldown/dist/shared/define-config-cG45vHwf.d.mts
6607
+ //#region node_modules/.pnpm/rolldown@1.0.0-rc.11/node_modules/rolldown/dist/shared/define-config-BkRKRADp.d.mts
6596
6608
  //#region src/types/misc.d.ts
6597
6609
  /** @inline */
6598
6610
  type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
@@ -7049,6 +7061,16 @@ interface OutputOptions {
7049
7061
  */
7050
7062
  sourcemapPathTransform?: SourcemapPathTransformOption;
7051
7063
  /**
7064
+ * Whether to exclude the original source code from sourcemaps.
7065
+ *
7066
+ * When `true`, the `sourcesContent` field is omitted from the generated sourcemap,
7067
+ * reducing the sourcemap file size. The sourcemap will still contain source file paths
7068
+ * and mappings, so debugging works if the original files are available.
7069
+ *
7070
+ * @default false
7071
+ */
7072
+ sourcemapExcludeSources?: boolean;
7073
+ /**
7052
7074
  * A string to prepend to the bundle before {@linkcode Plugin.renderChunk | renderChunk} hook.
7053
7075
  *
7054
7076
  * See {@linkcode intro | output.intro}, {@linkcode postBanner | output.postBanner} as well.
@@ -7842,14 +7864,23 @@ interface RolldownWatcher {
7842
7864
  */
7843
7865
  //#endregion
7844
7866
  //#region src/binding-magic-string.d.ts
7845
- interface BindingMagicString extends BindingMagicString$1 {
7867
+ interface RolldownMagicString extends BindingMagicString {
7846
7868
  readonly isRolldownMagicString: true;
7847
- }
7848
- type BindingMagicStringConstructor = Omit<typeof BindingMagicString$1, "prototype"> & {
7849
- new (...args: ConstructorParameters<typeof BindingMagicString$1>): BindingMagicString;
7850
- prototype: BindingMagicString;
7869
+ /** Accepts a string or RegExp pattern. RegExp supports `$&`, `$$`, and `$N` substitutions. */
7870
+ replace(from: string | RegExp, to: string): this;
7871
+ /** Accepts a string or RegExp pattern. RegExp must have the global (`g`) flag. */
7872
+ replaceAll(from: string | RegExp, to: string): this;
7873
+ }
7874
+ type RolldownMagicStringConstructor = Omit<typeof BindingMagicString, "prototype"> & {
7875
+ new (...args: ConstructorParameters<typeof BindingMagicString>): RolldownMagicString;
7876
+ prototype: RolldownMagicString;
7851
7877
  };
7852
- declare const BindingMagicString: BindingMagicStringConstructor; //#endregion
7878
+ /**
7879
+ * A native MagicString implementation powered by Rust.
7880
+ *
7881
+ * @experimental
7882
+ */
7883
+ declare const RolldownMagicString: RolldownMagicStringConstructor; //#endregion
7853
7884
  //#region src/log/log-handler.d.ts
7854
7885
  type LoggingFunction = (log: RolldownLog | string | (() => RolldownLog | string)) => void;
7855
7886
  type LoggingFunctionWithPosition = (log: RolldownLog | string | (() => RolldownLog | string), pos?: number | {
@@ -8187,6 +8218,8 @@ interface NormalizedOutputOptions {
8187
8218
  hashCharacters: "base64" | "base36" | "hex";
8188
8219
  /** @see {@linkcode OutputOptions.sourcemapDebugIds | sourcemapDebugIds} */
8189
8220
  sourcemapDebugIds: boolean;
8221
+ /** @see {@linkcode OutputOptions.sourcemapExcludeSources | sourcemapExcludeSources} */
8222
+ sourcemapExcludeSources: boolean;
8190
8223
  /** @see {@linkcode OutputOptions.sourcemapIgnoreList | sourcemapIgnoreList} */
8191
8224
  sourcemapIgnoreList: boolean | SourcemapIgnoreListOption | StringOrRegExp | undefined;
8192
8225
  /** @see {@linkcode OutputOptions.sourcemapPathTransform | sourcemapPathTransform} */
@@ -8368,8 +8401,6 @@ interface PluginContextMeta {
8368
8401
  }
8369
8402
  /** @category Plugin APIs */
8370
8403
  interface MinimalPluginContext {
8371
- /** @hidden */
8372
- readonly pluginName: string;
8373
8404
  /**
8374
8405
  * Similar to {@linkcode warn | this.warn}, except that it will also abort
8375
8406
  * the bundling process with an error.
@@ -9022,7 +9053,7 @@ type ResolveIdResult = string | NullValue | false | PartialResolvedId;
9022
9053
  type LoadResult = NullValue | string | SourceDescription;
9023
9054
  /** @inline @category Plugin APIs */
9024
9055
  type TransformResult$1 = NullValue | string | (Omit<SourceDescription, "code"> & {
9025
- code?: string | BindingMagicString;
9056
+ code?: string | RolldownMagicString;
9026
9057
  });
9027
9058
  type RenderedChunkMeta = {
9028
9059
  /**
@@ -9035,7 +9066,7 @@ type RenderedChunkMeta = {
9035
9066
  * Use this to perform string transformations with automatic source map support.
9036
9067
  * This is only available when `experimental.nativeMagicString` is enabled.
9037
9068
  */
9038
- magicString?: BindingMagicString;
9069
+ magicString?: RolldownMagicString;
9039
9070
  };
9040
9071
  /** @category Plugin APIs */
9041
9072
  interface FunctionPluginHooks {
@@ -9142,7 +9173,7 @@ interface FunctionPluginHooks {
9142
9173
  */
9143
9174
  [DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
9144
9175
  moduleType: ModuleType;
9145
- magicString?: BindingMagicString;
9176
+ magicString?: RolldownMagicString;
9146
9177
  ast?: Program;
9147
9178
  }) => TransformResult$1;
9148
9179
  /**
@@ -9195,8 +9226,8 @@ interface FunctionPluginHooks {
9195
9226
  *
9196
9227
  * @group Output Generation Hooks
9197
9228
  */
9198
- [DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | BindingMagicString | {
9199
- code: string | BindingMagicString;
9229
+ [DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | RolldownMagicString | {
9230
+ code: string | RolldownMagicString;
9200
9231
  map?: SourceMapInput;
9201
9232
  };
9202
9233
  /**
@@ -10048,6 +10079,8 @@ interface InputOptions {
10048
10079
  *
10049
10080
  * These options only take effect when running with the [`--watch`](/apis/cli#w-watch) flag, or using {@linkcode watch | watch()} API.
10050
10081
  *
10082
+ *
10083
+ *
10051
10084
  * @experimental
10052
10085
  */
10053
10086
  watch?: WatcherOptions | false;
@@ -10116,7 +10149,7 @@ interface RolldownOptions extends InputOptions {
10116
10149
  * @category Config
10117
10150
  */
10118
10151
  //#endregion
10119
- //#region node_modules/.pnpm/rolldown@1.0.0-rc.9/node_modules/rolldown/dist/shared/transform-BoJxrM-e.d.mts
10152
+ //#region node_modules/.pnpm/rolldown@1.0.0-rc.11/node_modules/rolldown/dist/shared/transform-C_gBfjMR.d.mts
10120
10153
  //#endregion
10121
10154
  //#region src/utils/transform.d.ts
10122
10155
  /**
@@ -10152,13 +10185,13 @@ declare global {
10152
10185
  interface URL {}
10153
10186
  }
10154
10187
  //#endregion
10155
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/esbuildOptions.d.ts
10188
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/esbuildOptions.d.ts
10156
10189
  /* eslint-enable @typescript-eslint/ban-ts-comment */
10157
10190
  type EsbuildTarget = string | string[];
10158
10191
  type EsbuildTransformOptions = esbuild.TransformOptions;
10159
10192
  type DepsOptimizerEsbuildOptions = Omit<esbuild.BuildOptions, 'bundle' | 'entryPoints' | 'external' | 'write' | 'watch' | 'outdir' | 'outfile' | 'outbase' | 'outExtension' | 'metafile'>;
10160
10193
  //#endregion
10161
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/metadata.d.ts
10194
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/metadata.d.ts
10162
10195
  interface AssetMetadata {
10163
10196
  importedAssets: Set<string>;
10164
10197
  importedCss: Set<string>;
@@ -10201,16 +10234,16 @@ declare module 'rolldown' {
10201
10234
  }
10202
10235
  }
10203
10236
  //#endregion
10204
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/terserOptions.d.ts
10237
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/terserOptions.d.ts
10205
10238
  /* eslint-enable @typescript-eslint/ban-ts-comment */
10206
10239
  type TerserMinifyOptions = Terser.MinifyOptions;
10207
10240
  //#endregion
10208
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/lightningcssOptions.d.ts
10241
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/lightningcssOptions.d.ts
10209
10242
  /* eslint-enable @typescript-eslint/ban-ts-comment */
10210
10243
  type LightningCSSOptions = Omit<Lightningcss.BundleAsyncOptions<Lightningcss.CustomAtRules>, 'filename' | 'resolver' | 'minify' | 'sourceMap' | 'analyzeDependencies' // properties not overridden by Vite, but does not make sense to set by end users
10211
10244
  | 'inputSourceMap' | 'projectRoot'>;
10212
10245
  //#endregion
10213
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts
10246
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts
10214
10247
  /* eslint-enable @typescript-eslint/ban-ts-comment */
10215
10248
  // https://github.com/type-challenges/type-challenges/issues/29285
10216
10249
  type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
@@ -10229,7 +10262,7 @@ declare global {
10229
10262
  interface HTMLLinkElement {}
10230
10263
  }
10231
10264
  //#endregion
10232
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/importGlob.d.ts
10265
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/types/importGlob.d.ts
10233
10266
  /**
10234
10267
  * Declare Worker in case DOM is not added to the tsconfig lib causing
10235
10268
  * Worker interface is not defined. For developers with DOM lib added,
@@ -10240,10 +10273,10 @@ declare global {
10240
10273
  interface Worker {}
10241
10274
  }
10242
10275
  //#endregion
10243
- //#region node_modules/.pnpm/vite@8.0.0_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/dist/node/index.d.ts
10276
+ //#region node_modules/.pnpm/vite@8.0.2_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0/node_modules/vite/dist/node/index.d.ts
10244
10277
  //#region \0rolldown/runtime.js
10245
10278
  //#endregion
10246
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.0.0-alpha.33_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
10279
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.5_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
10247
10280
  //#region src/node/cli-commands.d.ts
10248
10281
  interface StartOptions {
10249
10282
  root?: string;
@@ -10252,7 +10285,7 @@ interface StartOptions {
10252
10285
  port?: string | number;
10253
10286
  open?: boolean;
10254
10287
  } //#endregion
10255
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.0.0-alpha.33_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/config.d.ts
10288
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.5_typescript@5.9.3_vite@packages+vite_vue@3.5.30_typescript@5.9.3_/node_modules/@vitejs/devtools/dist/config.d.ts
10256
10289
  //#region src/node/config.d.ts
10257
10290
  interface DevToolsConfig extends Partial<StartOptions> {
10258
10291
  enabled: boolean;
@@ -10266,6 +10299,13 @@ interface DevToolsConfig extends Partial<StartOptions> {
10266
10299
  * @default true
10267
10300
  */
10268
10301
  clientAuth?: boolean;
10302
+ /**
10303
+ * Pre-configured auth tokens that are automatically trusted.
10304
+ *
10305
+ * Clients connecting with an auth token matching one of these
10306
+ * will be auto-approved without a terminal prompt.
10307
+ */
10308
+ clientAuthTokens?: string[];
10269
10309
  }
10270
10310
  interface ResolvedDevToolsConfig {
10271
10311
  config: Omit<DevToolsConfig, 'enabled'> & {